| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804 |
- .studiou-fpp-product {
- max-width: 800px;
- margin: 20px 0;
- font-family: inherit;
- }
- .studiou-fpp-product-header {
- display: flex;
- gap: 20px;
- margin-bottom: 30px;
- align-items: flex-start;
- }
- .studiou-fpp-product-image {
- flex: 0 0 200px;
- }
- .studiou-fpp-product-image img {
- max-width: 100%;
- height: auto;
- border-radius: 4px;
- }
- .studiou-fpp-product-info {
- flex: 1;
- }
- .studiou-fpp-product-title {
- margin: 0 0 10px;
- font-size: 1.6em;
- }
- .studiou-fpp-product-description {
- color: #555;
- line-height: 1.6;
- }
- .studiou-fpp-section {
- margin-bottom: 25px;
- }
- .studiou-fpp-section h3 {
- margin: 0 0 12px;
- font-size: 1.2em;
- border-bottom: 2px solid #eee;
- padding-bottom: 8px;
- }
- /* Variants table */
- .studiou-fpp-variants-table-wrap {
- overflow-x: auto;
- }
- .studiou-fpp-variants-table {
- width: 100%;
- border-collapse: collapse;
- border: 1px solid #ddd;
- }
- .studiou-fpp-variants-table th,
- .studiou-fpp-variants-table td {
- padding: 10px 14px;
- text-align: left;
- border-bottom: 1px solid #eee;
- }
- .studiou-fpp-variants-table thead th {
- background: #f7f7f7;
- font-weight: 600;
- border-bottom: 2px solid #ddd;
- }
- .studiou-fpp-variants-table .studiou-fpp-col-select {
- width: 40px;
- text-align: center;
- }
- .studiou-fpp-variants-table .studiou-fpp-col-price {
- white-space: nowrap;
- font-weight: 600;
- }
- .studiou-fpp-variant-row {
- cursor: pointer;
- transition: background 0.15s;
- }
- .studiou-fpp-variant-row:hover {
- background: #f5f9ff;
- }
- .studiou-fpp-variant-row.studiou-fpp-variant-selected {
- background: #e8f4fd;
- }
- .studiou-fpp-variant-row input[type="radio"] {
- margin: 0;
- cursor: pointer;
- }
- /* Upload area */
- .studiou-fpp-upload-info {
- color: #777;
- font-size: 0.9em;
- margin-bottom: 12px;
- }
- .studiou-fpp-upload-area {
- border: 2px dashed #ccc;
- border-radius: 8px;
- padding: 40px 20px;
- text-align: center;
- cursor: pointer;
- transition: border-color 0.2s, background 0.2s;
- position: relative;
- }
- .studiou-fpp-upload-area:hover,
- .studiou-fpp-upload-area.studiou-fpp-dragover {
- border-color: #2271b1;
- background: #f0f7ff;
- }
- .studiou-fpp-upload-icon {
- font-size: 48px;
- width: 48px;
- height: 48px;
- color: #999;
- display: block;
- margin: 0 auto 10px;
- }
- .studiou-fpp-upload-area:hover .studiou-fpp-upload-icon {
- color: #2271b1;
- }
- .studiou-fpp-upload-prompt p {
- margin: 0;
- color: #777;
- }
- .studiou-fpp-file-input {
- display: none;
- }
- /* Progress bar */
- .studiou-fpp-progress {
- margin-top: 15px;
- display: flex;
- align-items: center;
- gap: 12px;
- }
- .studiou-fpp-progress-bar {
- flex: 1;
- height: 20px;
- background: #eee;
- border-radius: 10px;
- overflow: hidden;
- }
- .studiou-fpp-progress-fill {
- height: 100%;
- background: #2271b1;
- border-radius: 10px;
- transition: width 0.3s;
- }
- .studiou-fpp-progress-text {
- font-weight: 600;
- min-width: 40px;
- text-align: right;
- }
- /* Preview */
- .studiou-fpp-preview {
- display: flex;
- align-items: center;
- gap: 15px;
- padding: 15px;
- background: #f9f9f9;
- border: 1px solid #ddd;
- border-radius: 6px;
- margin-top: 15px;
- }
- .studiou-fpp-preview-image {
- flex: 0 0 80px;
- }
- .studiou-fpp-preview-image img {
- max-width: 80px;
- max-height: 80px;
- border-radius: 4px;
- display: block;
- }
- .studiou-fpp-preview-info {
- flex: 1;
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 10px;
- }
- .studiou-fpp-preview-name {
- font-weight: 500;
- word-break: break-all;
- }
- .studiou-fpp-remove-file {
- flex-shrink: 0;
- color: #b32d2e !important;
- border-color: #b32d2e !important;
- }
- .studiou-fpp-remove-file:hover {
- background: #b32d2e !important;
- color: #fff !important;
- }
- /* Actions / Add to cart */
- .studiou-fpp-actions {
- padding-top: 15px;
- border-top: 2px solid #eee;
- }
- .studiou-fpp-add-to-cart-btn {
- padding: 12px 30px !important;
- font-size: 1.1em !important;
- font-weight: 600;
- }
- .studiou-fpp-add-to-cart-btn:disabled {
- opacity: 0.5;
- cursor: not-allowed;
- }
- /* Cart uploaded photo preview */
- .studiou-fpp-cart-preview {
- margin-top: 8px;
- }
- .studiou-fpp-cart-preview img {
- max-width: 70px;
- max-height: 70px;
- object-fit: cover;
- border-radius: 4px;
- border: 1px solid #ddd;
- }
- /* Messages */
- .studiou-fpp-msg {
- padding: 10px 15px;
- border-radius: 4px;
- margin-bottom: 12px;
- font-size: 0.95em;
- }
- .studiou-fpp-msg-error {
- background: #fef1f1;
- color: #b32d2e;
- border: 1px solid #f5c6c6;
- }
- .studiou-fpp-msg-success {
- background: #ecf7ed;
- color: #1e7e34;
- border: 1px solid #c3e6c3;
- }
- .studiou-fpp-error {
- color: #b32d2e;
- font-style: italic;
- }
- /* Quantity discount pre-selection notice (above variations form) */
- .studiou-fpp-qty-tiers-notice {
- display: flex;
- align-items: center;
- gap: 8px;
- padding: 10px 14px;
- margin: 0 0 15px;
- background: #fff7e6;
- border: 1px solid #f0c36d;
- border-left: 4px solid #dba617;
- border-radius: 4px;
- color: #6a4b00;
- font-size: 0.95em;
- }
- .studiou-fpp-qty-tiers-notice .dashicons {
- color: #dba617;
- font-size: 20px;
- width: 20px;
- height: 20px;
- }
- /* Quantity discount tier display */
- .studiou-fpp-qty-tiers-display {
- margin: 15px 0;
- }
- .studiou-fpp-qty-tiers-box {
- border: 2px solid #2271b1;
- border-radius: 6px;
- padding: 14px 18px;
- background: #f0f7ff;
- }
- .studiou-fpp-qty-tiers-box h4 {
- margin: 0 0 12px;
- font-size: 1.05em;
- font-weight: 600;
- color: #2271b1;
- display: flex;
- align-items: center;
- gap: 6px;
- }
- .studiou-fpp-qty-tiers-box h4 .dashicons {
- font-size: 20px;
- width: 20px;
- height: 20px;
- }
- .studiou-fpp-qty-tiers-table-display {
- width: 100%;
- border-collapse: collapse;
- font-size: 0.9em;
- }
- .studiou-fpp-qty-tiers-table-display th,
- .studiou-fpp-qty-tiers-table-display td {
- padding: 6px 10px;
- text-align: left;
- border-bottom: 1px solid #eee;
- }
- .studiou-fpp-qty-tiers-table-display thead th {
- font-weight: 600;
- color: #666;
- border-bottom: 2px solid #ddd;
- }
- .studiou-fpp-qty-tiers-table-display tbody tr:last-child td {
- border-bottom: none;
- }
- .studiou-fpp-qty-tiers-table-display tbody tr.studiou-fpp-qty-tier-active {
- background: #e8f4fd;
- font-weight: 600;
- }
- .studiou-fpp-qty-tiers-table-display tbody tr.studiou-fpp-qty-tier-active td {
- color: #2271b1;
- }
- /* Per-row tier display for custom variant-table plugins (pvtfw) */
- .studiou-fpp-row-tiers {
- display: flex;
- align-items: center;
- gap: 6px;
- margin-top: 6px;
- font-size: 0.8em;
- color: #555;
- flex-wrap: wrap;
- }
- .studiou-fpp-row-tiers .dashicons {
- font-size: 14px;
- width: 14px;
- height: 14px;
- color: #dba617;
- }
- .studiou-fpp-row-tiers-list {
- display: inline-flex;
- gap: 6px;
- flex-wrap: wrap;
- }
- .studiou-fpp-row-tier {
- background: #fff7e6;
- border: 1px solid #f0c36d;
- border-radius: 3px;
- padding: 1px 6px;
- white-space: nowrap;
- }
- .studiou-fpp-row-save-badge {
- display: inline-block;
- margin-left: 6px;
- padding: 2px 7px;
- background: #00a32a;
- color: #fff;
- border-radius: 3px;
- font-size: 0.75em;
- font-weight: 700;
- vertical-align: middle;
- }
- /* Responsive */
- @media (max-width: 600px) {
- .studiou-fpp-product-header {
- flex-direction: column;
- }
- .studiou-fpp-product-image {
- flex: none;
- text-align: center;
- }
- .studiou-fpp-preview {
- flex-direction: column;
- text-align: center;
- }
- .studiou-fpp-preview-info {
- flex-direction: column;
- }
- }
- /* ==========================================================================
- Upload cards stack — 1.5.0 multi-upload layout
- ========================================================================== */
- .studiou-fpp-upload-wrap .studiou-fpp-heading {
- margin: 20px 0 8px;
- font-size: 1.2em;
- }
- .studiou-fpp-dropzone-disabled {
- opacity: 0.5;
- cursor: not-allowed;
- pointer-events: none;
- }
- .studiou-fpp-cards {
- display: flex;
- flex-direction: column;
- gap: 12px;
- margin-top: 20px;
- }
- .studiou-fpp-card {
- position: relative;
- display: flex;
- gap: 14px;
- padding: 14px;
- border: 1px solid #ddd;
- border-radius: 6px;
- background: #fff;
- box-shadow: 0 1px 2px rgba(0,0,0,0.03);
- }
- .studiou-fpp-card.studiou-fpp-card-uploading {
- opacity: 0.85;
- }
- .studiou-fpp-card-remove {
- position: absolute;
- top: 6px;
- right: 8px;
- width: 26px;
- height: 26px;
- line-height: 1;
- padding: 0;
- border: 1px solid #d4d4d4;
- background: #fff;
- color: #b32d2e;
- border-radius: 50%;
- cursor: pointer;
- font-size: 18px;
- font-weight: 700;
- }
- .studiou-fpp-card-remove:hover {
- background: #b32d2e;
- color: #fff;
- border-color: #b32d2e;
- }
- .studiou-fpp-card-thumb {
- position: relative;
- flex: 0 0 100px;
- width: 100px;
- height: 100px;
- border-radius: 4px;
- overflow: hidden;
- background: #f4f4f4;
- }
- .studiou-fpp-card-thumb img {
- width: 100%;
- height: 100%;
- object-fit: cover;
- display: block;
- }
- .studiou-fpp-card-thumb-placeholder {
- width: 100%;
- height: 100%;
- background: repeating-linear-gradient(45deg, #eee, #eee 6px, #f6f6f6 6px, #f6f6f6 12px);
- }
- .studiou-fpp-card-progress {
- position: absolute;
- bottom: 0; left: 0; right: 0;
- height: 18px;
- background: rgba(0,0,0,0.55);
- color: #fff;
- font-size: 0.75em;
- text-align: center;
- line-height: 18px;
- }
- .studiou-fpp-card-progress-fill {
- position: absolute;
- top: 0; left: 0; bottom: 0;
- width: 0%;
- background: #4caf50;
- transition: width 0.2s ease;
- }
- .studiou-fpp-card-progress-text {
- position: relative;
- z-index: 1;
- }
- .studiou-fpp-card-body {
- flex: 1;
- display: flex;
- flex-direction: column;
- gap: 8px;
- min-width: 0;
- }
- .studiou-fpp-card-name {
- font-weight: 600;
- word-break: break-all;
- padding-right: 30px;
- }
- .studiou-fpp-card-controls {
- display: flex;
- gap: 10px;
- flex-wrap: wrap;
- align-items: center;
- }
- .studiou-fpp-card-variant {
- flex: 1 1 auto;
- min-width: 160px;
- padding: 6px 8px;
- }
- .studiou-fpp-card-qty {
- display: inline-flex;
- align-items: stretch;
- border: 1px solid #ccc;
- border-radius: 4px;
- overflow: hidden;
- }
- .studiou-fpp-card-qty .studiou-fpp-qty-btn {
- width: 28px;
- border: none;
- background: #f6f6f6;
- cursor: pointer;
- font-size: 1em;
- line-height: 1;
- }
- .studiou-fpp-card-qty .studiou-fpp-qty-btn:hover {
- background: #e8e8e8;
- }
- .studiou-fpp-card-qty .studiou-fpp-qty-input {
- width: 48px;
- text-align: center;
- border: none;
- border-left: 1px solid #ccc;
- border-right: 1px solid #ccc;
- padding: 4px;
- -moz-appearance: textfield;
- }
- .studiou-fpp-card-qty .studiou-fpp-qty-input::-webkit-outer-spin-button,
- .studiou-fpp-card-qty .studiou-fpp-qty-input::-webkit-inner-spin-button {
- -webkit-appearance: none;
- margin: 0;
- }
- .studiou-fpp-card-price-row {
- display: flex;
- gap: 10px;
- align-items: center;
- flex-wrap: wrap;
- margin-top: auto;
- }
- .studiou-fpp-card-price {
- font-size: 1.05em;
- font-weight: 600;
- min-width: 80px;
- }
- .studiou-fpp-card-badge {
- display: inline-block;
- background: #e6f7e8;
- color: #1e7e34;
- padding: 2px 7px;
- border-radius: 3px;
- font-size: 0.85em;
- font-weight: 700;
- }
- .studiou-fpp-card-addtocart {
- margin-left: auto !important;
- }
- .studiou-fpp-card-addtocart:disabled {
- opacity: 0.55;
- cursor: not-allowed;
- }
- /* ==========================================================================
- Order overview panel
- ========================================================================== */
- .studiou-fpp-overview {
- margin-top: 30px;
- padding: 18px;
- border: 1px solid #e3e3e3;
- border-radius: 6px;
- background: #fafafa;
- }
- .studiou-fpp-overview-title {
- margin: 0 0 14px;
- font-size: 1.15em;
- }
- .studiou-fpp-overview-lines {
- display: flex;
- flex-direction: column;
- gap: 10px;
- }
- .studiou-fpp-overview-line {
- display: flex;
- gap: 12px;
- padding: 10px;
- background: #fff;
- border: 1px solid #e6e6e6;
- border-radius: 4px;
- align-items: center;
- position: relative;
- }
- .studiou-fpp-overview-thumb {
- width: 56px;
- height: 56px;
- object-fit: cover;
- border-radius: 3px;
- border: 1px solid #ddd;
- flex: 0 0 auto;
- }
- .studiou-fpp-overview-body {
- flex: 1;
- min-width: 0;
- }
- .studiou-fpp-overview-name {
- font-weight: 600;
- word-break: break-all;
- }
- .studiou-fpp-overview-variant {
- color: #666;
- font-size: 0.9em;
- margin-top: 2px;
- }
- .studiou-fpp-overview-meta {
- display: flex;
- gap: 10px;
- align-items: center;
- flex-wrap: wrap;
- margin-top: 4px;
- }
- .studiou-fpp-overview-qty {
- color: #333;
- font-size: 0.9em;
- }
- .studiou-fpp-overview-price {
- font-weight: 600;
- }
- .studiou-fpp-overview-badge {
- background: #e6f7e8;
- color: #1e7e34;
- padding: 1px 6px;
- border-radius: 3px;
- font-size: 0.8em;
- font-weight: 700;
- }
- .studiou-fpp-overview-remove {
- flex: 0 0 28px;
- width: 28px;
- height: 28px;
- line-height: 26px;
- text-align: center;
- font-size: 20px;
- font-weight: 700;
- text-decoration: none !important;
- color: #999;
- border: 1px solid #ccc;
- border-radius: 50%;
- }
- .studiou-fpp-overview-remove:hover {
- background: #b32d2e;
- color: #fff !important;
- border-color: #b32d2e;
- }
- .studiou-fpp-overview-footer {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-top: 14px;
- padding-top: 14px;
- border-top: 1px solid #e3e3e3;
- flex-wrap: wrap;
- gap: 10px;
- }
- .studiou-fpp-overview-subtotal-label {
- margin-right: 6px;
- color: #444;
- }
- .studiou-fpp-overview-subtotal-value {
- font-size: 1.1em;
- font-weight: 700;
- }
- .studiou-fpp-overview-checkout {
- font-weight: 600 !important;
- }
- /* Mobile: below 640px the card + overview tighten and controls may wrap */
- @media (max-width: 640px) {
- .studiou-fpp-card {
- padding: 10px;
- gap: 10px;
- }
- .studiou-fpp-card-thumb {
- flex-basis: 70px;
- width: 70px;
- height: 70px;
- }
- .studiou-fpp-card-controls {
- flex-direction: column;
- align-items: stretch;
- }
- .studiou-fpp-card-variant {
- min-width: 0;
- width: 100%;
- }
- .studiou-fpp-card-qty {
- align-self: flex-start;
- }
- .studiou-fpp-card-price-row {
- flex-direction: column;
- align-items: stretch;
- }
- .studiou-fpp-card-addtocart {
- margin-left: 0 !important;
- width: 100%;
- }
- .studiou-fpp-overview-line {
- flex-wrap: wrap;
- }
- .studiou-fpp-overview-remove {
- position: absolute;
- top: 6px;
- right: 6px;
- }
- }
|