.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; } }