frontend.css 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927
  1. .studiou-fpp-product {
  2. max-width: 800px;
  3. margin: 20px 0;
  4. font-family: inherit;
  5. }
  6. .studiou-fpp-product-header {
  7. display: flex;
  8. gap: 20px;
  9. margin-bottom: 30px;
  10. align-items: flex-start;
  11. }
  12. .studiou-fpp-product-image {
  13. flex: 0 0 200px;
  14. }
  15. .studiou-fpp-product-image img {
  16. max-width: 100%;
  17. height: auto;
  18. border-radius: 4px;
  19. }
  20. .studiou-fpp-product-info {
  21. flex: 1;
  22. }
  23. .studiou-fpp-product-title {
  24. margin: 0 0 10px;
  25. font-size: 1.6em;
  26. }
  27. .studiou-fpp-product-description {
  28. color: #555;
  29. line-height: 1.6;
  30. }
  31. .studiou-fpp-section {
  32. margin-bottom: 25px;
  33. }
  34. .studiou-fpp-section h3 {
  35. margin: 0 0 12px;
  36. font-size: 1.2em;
  37. border-bottom: 2px solid #eee;
  38. padding-bottom: 8px;
  39. }
  40. /* Variants table */
  41. .studiou-fpp-variants-table-wrap {
  42. overflow-x: auto;
  43. }
  44. .studiou-fpp-variants-table {
  45. width: 100%;
  46. border-collapse: collapse;
  47. border: 1px solid #ddd;
  48. }
  49. .studiou-fpp-variants-table th,
  50. .studiou-fpp-variants-table td {
  51. padding: 10px 14px;
  52. text-align: left;
  53. border-bottom: 1px solid #eee;
  54. }
  55. .studiou-fpp-variants-table thead th {
  56. background: #f7f7f7;
  57. font-weight: 600;
  58. border-bottom: 2px solid #ddd;
  59. }
  60. .studiou-fpp-variants-table .studiou-fpp-col-select {
  61. width: 40px;
  62. text-align: center;
  63. }
  64. .studiou-fpp-variants-table .studiou-fpp-col-price {
  65. white-space: nowrap;
  66. font-weight: 600;
  67. }
  68. .studiou-fpp-variant-row {
  69. cursor: pointer;
  70. transition: background 0.15s;
  71. }
  72. .studiou-fpp-variant-row:hover {
  73. background: #f5f9ff;
  74. }
  75. .studiou-fpp-variant-row.studiou-fpp-variant-selected {
  76. background: #e8f4fd;
  77. }
  78. .studiou-fpp-variant-row input[type="radio"] {
  79. margin: 0;
  80. cursor: pointer;
  81. }
  82. /* Upload area */
  83. .studiou-fpp-upload-info {
  84. color: #777;
  85. font-size: 0.9em;
  86. margin-bottom: 12px;
  87. }
  88. .studiou-fpp-upload-area {
  89. border: 2px dashed #ccc;
  90. border-radius: 8px;
  91. padding: 40px 20px;
  92. text-align: center;
  93. cursor: pointer;
  94. transition: border-color 0.2s, background 0.2s;
  95. position: relative;
  96. }
  97. .studiou-fpp-upload-area:hover,
  98. .studiou-fpp-upload-area.studiou-fpp-dragover {
  99. border-color: #2271b1;
  100. background: #f0f7ff;
  101. }
  102. .studiou-fpp-upload-icon {
  103. font-size: 48px;
  104. width: 48px;
  105. height: 48px;
  106. color: #999;
  107. display: block;
  108. margin: 0 auto 10px;
  109. }
  110. .studiou-fpp-upload-area:hover .studiou-fpp-upload-icon {
  111. color: #2271b1;
  112. }
  113. .studiou-fpp-upload-prompt p {
  114. margin: 0;
  115. color: #777;
  116. }
  117. .studiou-fpp-file-input {
  118. display: none;
  119. }
  120. /* Progress bar */
  121. .studiou-fpp-progress {
  122. margin-top: 15px;
  123. display: flex;
  124. align-items: center;
  125. gap: 12px;
  126. }
  127. .studiou-fpp-progress-bar {
  128. flex: 1;
  129. height: 20px;
  130. background: #eee;
  131. border-radius: 10px;
  132. overflow: hidden;
  133. }
  134. .studiou-fpp-progress-fill {
  135. height: 100%;
  136. background: #2271b1;
  137. border-radius: 10px;
  138. transition: width 0.3s;
  139. }
  140. .studiou-fpp-progress-text {
  141. font-weight: 600;
  142. min-width: 40px;
  143. text-align: right;
  144. }
  145. /* Preview */
  146. .studiou-fpp-preview {
  147. display: flex;
  148. align-items: center;
  149. gap: 15px;
  150. padding: 15px;
  151. background: #f9f9f9;
  152. border: 1px solid #ddd;
  153. border-radius: 6px;
  154. margin-top: 15px;
  155. }
  156. .studiou-fpp-preview-image {
  157. flex: 0 0 80px;
  158. }
  159. .studiou-fpp-preview-image img {
  160. max-width: 80px;
  161. max-height: 80px;
  162. border-radius: 4px;
  163. display: block;
  164. }
  165. .studiou-fpp-preview-info {
  166. flex: 1;
  167. display: flex;
  168. align-items: center;
  169. justify-content: space-between;
  170. gap: 10px;
  171. }
  172. .studiou-fpp-preview-name {
  173. font-weight: 500;
  174. word-break: break-all;
  175. }
  176. .studiou-fpp-remove-file {
  177. flex-shrink: 0;
  178. color: #b32d2e !important;
  179. border-color: #b32d2e !important;
  180. }
  181. .studiou-fpp-remove-file:hover {
  182. background: #b32d2e !important;
  183. color: #fff !important;
  184. }
  185. /* Actions / Add to cart */
  186. .studiou-fpp-actions {
  187. padding-top: 15px;
  188. border-top: 2px solid #eee;
  189. }
  190. .studiou-fpp-add-to-cart-btn {
  191. padding: 12px 30px !important;
  192. font-size: 1.1em !important;
  193. font-weight: 600;
  194. }
  195. .studiou-fpp-add-to-cart-btn:disabled {
  196. opacity: 0.5;
  197. cursor: not-allowed;
  198. }
  199. /* Cart uploaded photo preview */
  200. .studiou-fpp-cart-preview {
  201. margin-top: 8px;
  202. }
  203. .studiou-fpp-cart-preview img {
  204. max-width: 70px;
  205. max-height: 70px;
  206. object-fit: cover;
  207. border-radius: 4px;
  208. border: 1px solid #ddd;
  209. }
  210. /* Messages */
  211. .studiou-fpp-msg {
  212. padding: 10px 15px;
  213. border-radius: 4px;
  214. margin-bottom: 12px;
  215. font-size: 0.95em;
  216. }
  217. .studiou-fpp-msg-error {
  218. background: #fef1f1;
  219. color: #b32d2e;
  220. border: 1px solid #f5c6c6;
  221. }
  222. .studiou-fpp-msg-success {
  223. background: #ecf7ed;
  224. color: #1e7e34;
  225. border: 1px solid #c3e6c3;
  226. }
  227. .studiou-fpp-error {
  228. color: #b32d2e;
  229. font-style: italic;
  230. }
  231. /* Quantity discount pre-selection notice (above variations form) */
  232. .studiou-fpp-qty-tiers-notice {
  233. display: flex;
  234. align-items: center;
  235. gap: 8px;
  236. padding: 10px 14px;
  237. margin: 0 0 15px;
  238. background: #fff7e6;
  239. border: 1px solid #f0c36d;
  240. border-left: 4px solid #dba617;
  241. border-radius: 4px;
  242. color: #6a4b00;
  243. font-size: 0.95em;
  244. }
  245. .studiou-fpp-qty-tiers-notice .dashicons {
  246. color: #dba617;
  247. font-size: 20px;
  248. width: 20px;
  249. height: 20px;
  250. }
  251. /* Quantity discount tier display */
  252. .studiou-fpp-qty-tiers-display {
  253. margin: 15px 0;
  254. }
  255. .studiou-fpp-qty-tiers-box {
  256. border: 2px solid #2271b1;
  257. border-radius: 6px;
  258. padding: 14px 18px;
  259. background: #f0f7ff;
  260. }
  261. .studiou-fpp-qty-tiers-box h4 {
  262. margin: 0 0 12px;
  263. font-size: 1.05em;
  264. font-weight: 600;
  265. color: #2271b1;
  266. display: flex;
  267. align-items: center;
  268. gap: 6px;
  269. }
  270. .studiou-fpp-qty-tiers-box h4 .dashicons {
  271. font-size: 20px;
  272. width: 20px;
  273. height: 20px;
  274. }
  275. .studiou-fpp-qty-tiers-table-display {
  276. width: 100%;
  277. border-collapse: collapse;
  278. font-size: 0.9em;
  279. }
  280. .studiou-fpp-qty-tiers-table-display th,
  281. .studiou-fpp-qty-tiers-table-display td {
  282. padding: 6px 10px;
  283. text-align: left;
  284. border-bottom: 1px solid #eee;
  285. }
  286. .studiou-fpp-qty-tiers-table-display thead th {
  287. font-weight: 600;
  288. color: #666;
  289. border-bottom: 2px solid #ddd;
  290. }
  291. .studiou-fpp-qty-tiers-table-display tbody tr:last-child td {
  292. border-bottom: none;
  293. }
  294. .studiou-fpp-qty-tiers-table-display tbody tr.studiou-fpp-qty-tier-active {
  295. background: #e8f4fd;
  296. font-weight: 600;
  297. }
  298. .studiou-fpp-qty-tiers-table-display tbody tr.studiou-fpp-qty-tier-active td {
  299. color: #2271b1;
  300. }
  301. /* Per-row tier display for custom variant-table plugins (pvtfw) */
  302. .studiou-fpp-row-tiers {
  303. display: flex;
  304. align-items: center;
  305. gap: 6px;
  306. margin-top: 6px;
  307. font-size: 0.8em;
  308. color: #555;
  309. flex-wrap: wrap;
  310. }
  311. .studiou-fpp-row-tiers .dashicons {
  312. font-size: 14px;
  313. width: 14px;
  314. height: 14px;
  315. color: #dba617;
  316. }
  317. .studiou-fpp-row-tiers-list {
  318. display: inline-flex;
  319. gap: 6px;
  320. flex-wrap: wrap;
  321. }
  322. .studiou-fpp-row-tier {
  323. background: #fff7e6;
  324. border: 1px solid #f0c36d;
  325. border-radius: 3px;
  326. padding: 1px 6px;
  327. white-space: nowrap;
  328. }
  329. .studiou-fpp-row-save-badge {
  330. display: inline-block;
  331. margin-left: 6px;
  332. padding: 2px 7px;
  333. background: #00a32a;
  334. color: #fff;
  335. border-radius: 3px;
  336. font-size: 0.75em;
  337. font-weight: 700;
  338. vertical-align: middle;
  339. }
  340. /* Responsive */
  341. @media (max-width: 600px) {
  342. .studiou-fpp-product-header {
  343. flex-direction: column;
  344. }
  345. .studiou-fpp-product-image {
  346. flex: none;
  347. text-align: center;
  348. }
  349. .studiou-fpp-preview {
  350. flex-direction: column;
  351. text-align: center;
  352. }
  353. .studiou-fpp-preview-info {
  354. flex-direction: column;
  355. }
  356. }
  357. /* ==========================================================================
  358. Upload cards stack — 1.5.0 multi-upload layout
  359. ========================================================================== */
  360. .studiou-fpp-upload-wrap .studiou-fpp-heading {
  361. margin: 20px 0 8px;
  362. font-size: 1.2em;
  363. }
  364. .studiou-fpp-dropzone-disabled {
  365. opacity: 0.5;
  366. cursor: not-allowed;
  367. pointer-events: none;
  368. }
  369. .studiou-fpp-cards {
  370. display: flex;
  371. flex-direction: column;
  372. gap: 12px;
  373. margin-top: 20px;
  374. }
  375. .studiou-fpp-card {
  376. position: relative;
  377. display: flex;
  378. gap: 14px;
  379. padding: 14px;
  380. border: 1px solid #ddd;
  381. border-radius: 6px;
  382. background: #fff;
  383. box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  384. }
  385. .studiou-fpp-card.studiou-fpp-card-uploading {
  386. opacity: 0.85;
  387. }
  388. .studiou-fpp-card-remove {
  389. position: absolute;
  390. top: 6px;
  391. right: 8px;
  392. width: 26px;
  393. height: 26px;
  394. line-height: 1;
  395. padding: 0;
  396. border: 1px solid #d4d4d4;
  397. background: #fff;
  398. color: #b32d2e;
  399. border-radius: 50%;
  400. cursor: pointer;
  401. font-size: 18px;
  402. font-weight: 700;
  403. }
  404. .studiou-fpp-card-remove:hover {
  405. background: #b32d2e;
  406. color: #fff;
  407. border-color: #b32d2e;
  408. }
  409. .studiou-fpp-card-thumb {
  410. position: relative;
  411. flex: 0 0 100px;
  412. width: 100px;
  413. height: 100px;
  414. border-radius: 4px;
  415. overflow: hidden;
  416. background: #f4f4f4;
  417. }
  418. .studiou-fpp-card-thumb img {
  419. width: 100%;
  420. height: 100%;
  421. object-fit: cover;
  422. display: block;
  423. }
  424. .studiou-fpp-card:not(.studiou-fpp-card-uploading) .studiou-fpp-card-thumb {
  425. cursor: zoom-in;
  426. }
  427. .studiou-fpp-card:not(.studiou-fpp-card-uploading) .studiou-fpp-card-thumb img {
  428. transition: opacity 0.15s;
  429. }
  430. .studiou-fpp-card:not(.studiou-fpp-card-uploading) .studiou-fpp-card-thumb:hover img {
  431. opacity: 0.85;
  432. }
  433. .studiou-fpp-card-thumb-placeholder {
  434. width: 100%;
  435. height: 100%;
  436. background: repeating-linear-gradient(45deg, #eee, #eee 6px, #f6f6f6 6px, #f6f6f6 12px);
  437. }
  438. .studiou-fpp-card-progress {
  439. position: absolute;
  440. bottom: 0; left: 0; right: 0;
  441. height: 18px;
  442. background: rgba(0,0,0,0.55);
  443. color: #fff;
  444. font-size: 0.75em;
  445. text-align: center;
  446. line-height: 18px;
  447. }
  448. .studiou-fpp-card-progress-fill {
  449. position: absolute;
  450. top: 0; left: 0; bottom: 0;
  451. width: 0%;
  452. background: #4caf50;
  453. transition: width 0.2s ease;
  454. }
  455. .studiou-fpp-card-progress-text {
  456. position: relative;
  457. z-index: 1;
  458. }
  459. .studiou-fpp-card-body {
  460. flex: 1;
  461. display: flex;
  462. flex-direction: column;
  463. gap: 8px;
  464. min-width: 0;
  465. }
  466. .studiou-fpp-card-name {
  467. font-weight: 600;
  468. word-break: break-all;
  469. padding-right: 30px;
  470. }
  471. .studiou-fpp-card-enlarge,
  472. .studiou-fpp-overview-enlarge {
  473. flex: 0 0 auto;
  474. padding: 4px 12px;
  475. font-size: 0.85em;
  476. line-height: 1.4;
  477. border: 1px solid #2271b1;
  478. background: #fff;
  479. color: #2271b1;
  480. border-radius: 3px;
  481. cursor: pointer;
  482. font-weight: 500;
  483. white-space: nowrap;
  484. position: relative;
  485. z-index: 2;
  486. }
  487. .studiou-fpp-card-enlarge:hover,
  488. .studiou-fpp-overview-enlarge:hover {
  489. background: #2271b1;
  490. color: #fff;
  491. }
  492. .studiou-fpp-card-uploading .studiou-fpp-card-enlarge {
  493. opacity: 0.4;
  494. pointer-events: none;
  495. }
  496. .studiou-fpp-overview-name-row {
  497. display: flex;
  498. gap: 8px;
  499. align-items: center;
  500. flex-wrap: wrap;
  501. }
  502. .studiou-fpp-card-controls {
  503. display: flex;
  504. gap: 10px;
  505. flex-wrap: wrap;
  506. align-items: center;
  507. }
  508. .studiou-fpp-card-variant {
  509. flex: 1 1 auto;
  510. min-width: 160px;
  511. padding: 6px 8px;
  512. }
  513. .studiou-fpp-card-qty {
  514. display: inline-flex;
  515. align-items: stretch;
  516. border: 1px solid #ccc;
  517. border-radius: 4px;
  518. overflow: hidden;
  519. }
  520. .studiou-fpp-card-qty .studiou-fpp-qty-btn {
  521. width: 28px;
  522. border: none;
  523. background: #f6f6f6;
  524. cursor: pointer;
  525. font-size: 1em;
  526. line-height: 1;
  527. }
  528. .studiou-fpp-card-qty .studiou-fpp-qty-btn:hover {
  529. background: #e8e8e8;
  530. }
  531. .studiou-fpp-card-qty .studiou-fpp-qty-input {
  532. width: 48px;
  533. text-align: center;
  534. border: none;
  535. border-left: 1px solid #ccc;
  536. border-right: 1px solid #ccc;
  537. padding: 4px;
  538. -moz-appearance: textfield;
  539. }
  540. .studiou-fpp-card-qty .studiou-fpp-qty-input::-webkit-outer-spin-button,
  541. .studiou-fpp-card-qty .studiou-fpp-qty-input::-webkit-inner-spin-button {
  542. -webkit-appearance: none;
  543. margin: 0;
  544. }
  545. .studiou-fpp-card-price-row {
  546. display: flex;
  547. gap: 10px;
  548. align-items: center;
  549. flex-wrap: wrap;
  550. margin-top: auto;
  551. }
  552. .studiou-fpp-card-price {
  553. font-size: 1.05em;
  554. font-weight: 600;
  555. min-width: 80px;
  556. }
  557. .studiou-fpp-card-badge {
  558. display: inline-block;
  559. background: #e6f7e8;
  560. color: #1e7e34;
  561. padding: 2px 7px;
  562. border-radius: 3px;
  563. font-size: 0.85em;
  564. font-weight: 700;
  565. }
  566. .studiou-fpp-card-addtocart {
  567. margin-left: auto !important;
  568. }
  569. .studiou-fpp-card-addtocart:disabled {
  570. opacity: 0.55;
  571. cursor: not-allowed;
  572. }
  573. /* ==========================================================================
  574. Order overview panel
  575. ========================================================================== */
  576. .studiou-fpp-overview {
  577. margin-top: 30px;
  578. padding: 18px;
  579. border: 1px solid #e3e3e3;
  580. border-radius: 6px;
  581. background: #fafafa;
  582. }
  583. .studiou-fpp-overview-title {
  584. margin: 0 0 14px;
  585. font-size: 1.15em;
  586. }
  587. .studiou-fpp-overview-lines {
  588. display: flex;
  589. flex-direction: column;
  590. gap: 10px;
  591. }
  592. .studiou-fpp-overview-line {
  593. display: flex;
  594. gap: 12px;
  595. padding: 10px;
  596. background: #fff;
  597. border: 1px solid #e6e6e6;
  598. border-radius: 4px;
  599. align-items: center;
  600. position: relative;
  601. }
  602. .studiou-fpp-overview-thumb {
  603. width: 56px;
  604. height: 56px;
  605. object-fit: cover;
  606. border-radius: 3px;
  607. border: 1px solid #ddd;
  608. flex: 0 0 auto;
  609. cursor: zoom-in;
  610. transition: opacity 0.15s;
  611. }
  612. .studiou-fpp-overview-thumb:hover {
  613. opacity: 0.85;
  614. }
  615. .studiou-fpp-overview-body {
  616. flex: 1;
  617. min-width: 0;
  618. }
  619. .studiou-fpp-overview-name {
  620. font-weight: 600;
  621. word-break: break-all;
  622. }
  623. .studiou-fpp-overview-variant {
  624. color: #666;
  625. font-size: 0.9em;
  626. margin-top: 2px;
  627. }
  628. .studiou-fpp-overview-meta {
  629. display: flex;
  630. gap: 10px;
  631. align-items: center;
  632. flex-wrap: wrap;
  633. margin-top: 4px;
  634. }
  635. .studiou-fpp-overview-qty {
  636. color: #333;
  637. font-size: 0.9em;
  638. }
  639. .studiou-fpp-overview-price {
  640. font-weight: 600;
  641. }
  642. .studiou-fpp-overview-badge {
  643. background: #e6f7e8;
  644. color: #1e7e34;
  645. padding: 1px 6px;
  646. border-radius: 3px;
  647. font-size: 0.8em;
  648. font-weight: 700;
  649. }
  650. .studiou-fpp-overview-remove {
  651. flex: 0 0 28px;
  652. width: 28px;
  653. height: 28px;
  654. line-height: 26px;
  655. text-align: center;
  656. font-size: 20px;
  657. font-weight: 700;
  658. text-decoration: none !important;
  659. color: #999;
  660. border: 1px solid #ccc;
  661. border-radius: 50%;
  662. }
  663. .studiou-fpp-overview-remove:hover {
  664. background: #b32d2e;
  665. color: #fff !important;
  666. border-color: #b32d2e;
  667. }
  668. .studiou-fpp-overview-footer {
  669. display: flex;
  670. justify-content: space-between;
  671. align-items: center;
  672. margin-top: 14px;
  673. padding-top: 14px;
  674. border-top: 1px solid #e3e3e3;
  675. flex-wrap: wrap;
  676. gap: 10px;
  677. }
  678. .studiou-fpp-overview-subtotal-label {
  679. margin-right: 6px;
  680. color: #444;
  681. }
  682. .studiou-fpp-overview-subtotal-value {
  683. font-size: 1.1em;
  684. font-weight: 700;
  685. }
  686. .studiou-fpp-overview-checkout {
  687. font-weight: 600 !important;
  688. }
  689. /* Mobile: below 640px the card + overview tighten and controls may wrap */
  690. @media (max-width: 640px) {
  691. .studiou-fpp-card {
  692. padding: 10px;
  693. gap: 10px;
  694. }
  695. .studiou-fpp-card-thumb {
  696. flex-basis: 70px;
  697. width: 70px;
  698. height: 70px;
  699. }
  700. .studiou-fpp-card-controls {
  701. flex-direction: column;
  702. align-items: stretch;
  703. }
  704. .studiou-fpp-card-variant {
  705. min-width: 0;
  706. width: 100%;
  707. }
  708. .studiou-fpp-card-qty {
  709. align-self: flex-start;
  710. }
  711. .studiou-fpp-card-price-row {
  712. flex-direction: column;
  713. align-items: stretch;
  714. }
  715. .studiou-fpp-card-addtocart {
  716. margin-left: 0 !important;
  717. width: 100%;
  718. }
  719. .studiou-fpp-overview-line {
  720. flex-wrap: wrap;
  721. }
  722. .studiou-fpp-overview-remove {
  723. position: absolute;
  724. top: 6px;
  725. right: 6px;
  726. }
  727. }
  728. /* ==========================================================================
  729. Lightbox — click a card / overview thumb to view the enlarged preview
  730. ========================================================================== */
  731. .studiou-fpp-lightbox {
  732. position: fixed;
  733. inset: 0;
  734. z-index: 100000;
  735. background: rgba(0, 0, 0, 0.85);
  736. display: flex;
  737. align-items: center;
  738. justify-content: center;
  739. padding: 40px 24px;
  740. box-sizing: border-box;
  741. }
  742. body.studiou-fpp-lightbox-open {
  743. overflow: hidden;
  744. }
  745. .studiou-fpp-lightbox-inner {
  746. max-width: 100%;
  747. max-height: 100%;
  748. display: flex;
  749. flex-direction: column;
  750. align-items: center;
  751. gap: 10px;
  752. }
  753. .studiou-fpp-lightbox-img {
  754. max-width: 100%;
  755. max-height: calc(100vh - 120px);
  756. width: auto;
  757. height: auto;
  758. display: block;
  759. border-radius: 4px;
  760. box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
  761. background: #fff;
  762. }
  763. .studiou-fpp-lightbox-caption {
  764. color: #fff;
  765. font-size: 0.95em;
  766. max-width: 90vw;
  767. text-align: center;
  768. word-break: break-all;
  769. text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  770. }
  771. .studiou-fpp-lightbox-close {
  772. position: absolute;
  773. top: 14px;
  774. right: 18px;
  775. width: 40px;
  776. height: 40px;
  777. background: rgba(255, 255, 255, 0.1);
  778. color: #fff;
  779. border: 1px solid rgba(255, 255, 255, 0.4);
  780. border-radius: 50%;
  781. font-size: 26px;
  782. line-height: 1;
  783. font-weight: 700;
  784. cursor: pointer;
  785. transition: background 0.15s;
  786. }
  787. .studiou-fpp-lightbox-close:hover {
  788. background: rgba(255, 255, 255, 0.25);
  789. }