frontend.css 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804
  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-thumb-placeholder {
  425. width: 100%;
  426. height: 100%;
  427. background: repeating-linear-gradient(45deg, #eee, #eee 6px, #f6f6f6 6px, #f6f6f6 12px);
  428. }
  429. .studiou-fpp-card-progress {
  430. position: absolute;
  431. bottom: 0; left: 0; right: 0;
  432. height: 18px;
  433. background: rgba(0,0,0,0.55);
  434. color: #fff;
  435. font-size: 0.75em;
  436. text-align: center;
  437. line-height: 18px;
  438. }
  439. .studiou-fpp-card-progress-fill {
  440. position: absolute;
  441. top: 0; left: 0; bottom: 0;
  442. width: 0%;
  443. background: #4caf50;
  444. transition: width 0.2s ease;
  445. }
  446. .studiou-fpp-card-progress-text {
  447. position: relative;
  448. z-index: 1;
  449. }
  450. .studiou-fpp-card-body {
  451. flex: 1;
  452. display: flex;
  453. flex-direction: column;
  454. gap: 8px;
  455. min-width: 0;
  456. }
  457. .studiou-fpp-card-name {
  458. font-weight: 600;
  459. word-break: break-all;
  460. padding-right: 30px;
  461. }
  462. .studiou-fpp-card-controls {
  463. display: flex;
  464. gap: 10px;
  465. flex-wrap: wrap;
  466. align-items: center;
  467. }
  468. .studiou-fpp-card-variant {
  469. flex: 1 1 auto;
  470. min-width: 160px;
  471. padding: 6px 8px;
  472. }
  473. .studiou-fpp-card-qty {
  474. display: inline-flex;
  475. align-items: stretch;
  476. border: 1px solid #ccc;
  477. border-radius: 4px;
  478. overflow: hidden;
  479. }
  480. .studiou-fpp-card-qty .studiou-fpp-qty-btn {
  481. width: 28px;
  482. border: none;
  483. background: #f6f6f6;
  484. cursor: pointer;
  485. font-size: 1em;
  486. line-height: 1;
  487. }
  488. .studiou-fpp-card-qty .studiou-fpp-qty-btn:hover {
  489. background: #e8e8e8;
  490. }
  491. .studiou-fpp-card-qty .studiou-fpp-qty-input {
  492. width: 48px;
  493. text-align: center;
  494. border: none;
  495. border-left: 1px solid #ccc;
  496. border-right: 1px solid #ccc;
  497. padding: 4px;
  498. -moz-appearance: textfield;
  499. }
  500. .studiou-fpp-card-qty .studiou-fpp-qty-input::-webkit-outer-spin-button,
  501. .studiou-fpp-card-qty .studiou-fpp-qty-input::-webkit-inner-spin-button {
  502. -webkit-appearance: none;
  503. margin: 0;
  504. }
  505. .studiou-fpp-card-price-row {
  506. display: flex;
  507. gap: 10px;
  508. align-items: center;
  509. flex-wrap: wrap;
  510. margin-top: auto;
  511. }
  512. .studiou-fpp-card-price {
  513. font-size: 1.05em;
  514. font-weight: 600;
  515. min-width: 80px;
  516. }
  517. .studiou-fpp-card-badge {
  518. display: inline-block;
  519. background: #e6f7e8;
  520. color: #1e7e34;
  521. padding: 2px 7px;
  522. border-radius: 3px;
  523. font-size: 0.85em;
  524. font-weight: 700;
  525. }
  526. .studiou-fpp-card-addtocart {
  527. margin-left: auto !important;
  528. }
  529. .studiou-fpp-card-addtocart:disabled {
  530. opacity: 0.55;
  531. cursor: not-allowed;
  532. }
  533. /* ==========================================================================
  534. Order overview panel
  535. ========================================================================== */
  536. .studiou-fpp-overview {
  537. margin-top: 30px;
  538. padding: 18px;
  539. border: 1px solid #e3e3e3;
  540. border-radius: 6px;
  541. background: #fafafa;
  542. }
  543. .studiou-fpp-overview-title {
  544. margin: 0 0 14px;
  545. font-size: 1.15em;
  546. }
  547. .studiou-fpp-overview-lines {
  548. display: flex;
  549. flex-direction: column;
  550. gap: 10px;
  551. }
  552. .studiou-fpp-overview-line {
  553. display: flex;
  554. gap: 12px;
  555. padding: 10px;
  556. background: #fff;
  557. border: 1px solid #e6e6e6;
  558. border-radius: 4px;
  559. align-items: center;
  560. position: relative;
  561. }
  562. .studiou-fpp-overview-thumb {
  563. width: 56px;
  564. height: 56px;
  565. object-fit: cover;
  566. border-radius: 3px;
  567. border: 1px solid #ddd;
  568. flex: 0 0 auto;
  569. }
  570. .studiou-fpp-overview-body {
  571. flex: 1;
  572. min-width: 0;
  573. }
  574. .studiou-fpp-overview-name {
  575. font-weight: 600;
  576. word-break: break-all;
  577. }
  578. .studiou-fpp-overview-variant {
  579. color: #666;
  580. font-size: 0.9em;
  581. margin-top: 2px;
  582. }
  583. .studiou-fpp-overview-meta {
  584. display: flex;
  585. gap: 10px;
  586. align-items: center;
  587. flex-wrap: wrap;
  588. margin-top: 4px;
  589. }
  590. .studiou-fpp-overview-qty {
  591. color: #333;
  592. font-size: 0.9em;
  593. }
  594. .studiou-fpp-overview-price {
  595. font-weight: 600;
  596. }
  597. .studiou-fpp-overview-badge {
  598. background: #e6f7e8;
  599. color: #1e7e34;
  600. padding: 1px 6px;
  601. border-radius: 3px;
  602. font-size: 0.8em;
  603. font-weight: 700;
  604. }
  605. .studiou-fpp-overview-remove {
  606. flex: 0 0 28px;
  607. width: 28px;
  608. height: 28px;
  609. line-height: 26px;
  610. text-align: center;
  611. font-size: 20px;
  612. font-weight: 700;
  613. text-decoration: none !important;
  614. color: #999;
  615. border: 1px solid #ccc;
  616. border-radius: 50%;
  617. }
  618. .studiou-fpp-overview-remove:hover {
  619. background: #b32d2e;
  620. color: #fff !important;
  621. border-color: #b32d2e;
  622. }
  623. .studiou-fpp-overview-footer {
  624. display: flex;
  625. justify-content: space-between;
  626. align-items: center;
  627. margin-top: 14px;
  628. padding-top: 14px;
  629. border-top: 1px solid #e3e3e3;
  630. flex-wrap: wrap;
  631. gap: 10px;
  632. }
  633. .studiou-fpp-overview-subtotal-label {
  634. margin-right: 6px;
  635. color: #444;
  636. }
  637. .studiou-fpp-overview-subtotal-value {
  638. font-size: 1.1em;
  639. font-weight: 700;
  640. }
  641. .studiou-fpp-overview-checkout {
  642. font-weight: 600 !important;
  643. }
  644. /* Mobile: below 640px the card + overview tighten and controls may wrap */
  645. @media (max-width: 640px) {
  646. .studiou-fpp-card {
  647. padding: 10px;
  648. gap: 10px;
  649. }
  650. .studiou-fpp-card-thumb {
  651. flex-basis: 70px;
  652. width: 70px;
  653. height: 70px;
  654. }
  655. .studiou-fpp-card-controls {
  656. flex-direction: column;
  657. align-items: stretch;
  658. }
  659. .studiou-fpp-card-variant {
  660. min-width: 0;
  661. width: 100%;
  662. }
  663. .studiou-fpp-card-qty {
  664. align-self: flex-start;
  665. }
  666. .studiou-fpp-card-price-row {
  667. flex-direction: column;
  668. align-items: stretch;
  669. }
  670. .studiou-fpp-card-addtocart {
  671. margin-left: 0 !important;
  672. width: 100%;
  673. }
  674. .studiou-fpp-overview-line {
  675. flex-wrap: wrap;
  676. }
  677. .studiou-fpp-overview-remove {
  678. position: absolute;
  679. top: 6px;
  680. right: 6px;
  681. }
  682. }