frontend.css 19 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025
  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. }
  790. /* ==========================================================================
  791. Read-only variant price table (rendered above the upload dropzone, 1.5.12+)
  792. ========================================================================== */
  793. .studiou-fpp-price-table-wrap {
  794. margin: 18px 0 24px;
  795. }
  796. .studiou-fpp-price-table-title {
  797. margin: 0 0 10px;
  798. font-size: 1.15em;
  799. }
  800. .studiou-fpp-price-table {
  801. width: 100%;
  802. border-collapse: collapse;
  803. border: 1px solid #e3e3e3;
  804. background: #fff;
  805. font-size: 0.95em;
  806. }
  807. .studiou-fpp-price-table thead th {
  808. background: #f7f7f7;
  809. text-align: left;
  810. padding: 8px 12px;
  811. font-weight: 600;
  812. border-bottom: 2px solid #ddd;
  813. color: #444;
  814. }
  815. .studiou-fpp-price-table tbody td {
  816. padding: 10px 12px;
  817. border-bottom: 1px solid #eee;
  818. vertical-align: top;
  819. }
  820. .studiou-fpp-price-table tbody tr:last-child td {
  821. border-bottom: none;
  822. }
  823. .studiou-fpp-price-table-variant {
  824. font-weight: 600;
  825. }
  826. .studiou-fpp-price-table-price {
  827. white-space: nowrap;
  828. font-weight: 600;
  829. }
  830. .studiou-fpp-price-table-row-oos {
  831. opacity: 0.5;
  832. }
  833. .studiou-fpp-price-table-tiers {
  834. list-style: none;
  835. margin: 0;
  836. padding: 0;
  837. display: flex;
  838. flex-wrap: wrap;
  839. gap: 6px;
  840. }
  841. .studiou-fpp-price-table-tier {
  842. display: inline-flex;
  843. align-items: center;
  844. gap: 4px;
  845. background: #fff7e6;
  846. border: 1px solid #f0c36d;
  847. border-radius: 3px;
  848. padding: 1px 7px;
  849. font-size: 0.9em;
  850. white-space: nowrap;
  851. }
  852. .studiou-fpp-price-table-tier-qty {
  853. color: #6a4b00;
  854. font-weight: 600;
  855. }
  856. .studiou-fpp-price-table-tier-pct {
  857. color: #1e7e34;
  858. font-weight: 700;
  859. }
  860. .studiou-fpp-price-table-no-discount {
  861. color: #999;
  862. }
  863. @media (max-width: 640px) {
  864. .studiou-fpp-price-table thead th,
  865. .studiou-fpp-price-table tbody td {
  866. padding: 7px 8px;
  867. }
  868. .studiou-fpp-price-table-discount {
  869. font-size: 0.9em;
  870. }
  871. }