/**
 * PrintingPeach Product Form Styles
 *
 * Shared between the Designer plugin and form site plugin.
 * Covers: browse cards, size picker, custom size modal, config screen,
 * dropdowns, pricing grid, CTA buttons, breadcrumbs, toolbar,
 * country picker, and dark mode overrides for all form elements.
 */

/* ── Base Orientation / Card Styles ── */
/* These must be in product-form.css so embedded form sites get them too */
.pp-orientation-selector {
    padding: 48px;
    max-width: 700px;
    margin: 0 auto;
}
.pp-orientation-header {
    text-align: center;
    margin-bottom: 20px;
}
.pp-orientation-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}
.pp-orientation-header p {
    color: #6c757d;
    margin: 0;
    font-size: 16px;
}
.pp-orientation-options {
    display: flex;
    justify-content: center;
    gap: 32px;
}
.pp-orientation-card {
    background: #fff;
    border: 3px solid #e9ecef;
    border-radius: 16px;
    padding: 15px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.pp-orientation-card:hover {
    border-color: #f37028;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(243, 112, 40, 0.15);
}
.pp-orientation-card:active {
    transform: translateY(-2px);
}
.pp-orientation-preview {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    border-radius: 8px;
}
.pp-orientation-preview img {
    max-width: 300px;
    object-fit: contain;
    border-radius: 8px;
}
.pp-orientation-shape {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #ced4da;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}
.pp-orientation-card:hover .pp-orientation-shape {
    border-color: #f37028;
    background: linear-gradient(135deg, #fff9f5 0%, #ffe8db 100%);
}
.pp-orientation-shape::before,
.pp-orientation-shape::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: #dee2e6;
    border-radius: 2px;
    width: 60%;
    transition: all 0.2s ease;
}
.pp-orientation-shape::before {
    top: 25%;
    height: 4px;
}
.pp-orientation-shape::after {
    top: 50%;
    height: 6px;
    background: #ced4da;
}
.pp-orientation-card:hover .pp-orientation-shape::before {
    background: #f9a56c;
}
.pp-orientation-card:hover .pp-orientation-shape::after {
    background: #f37028;
}
.pp-orientation-label {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
    transition: color 0.2s ease;
}
.pp-orientation-card:hover .pp-orientation-label {
    color: #f37028;
}
.pp-orientation-dims {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* ── Product Browser ── */
#pp-browse-content {
    position: relative;
    overflow-y: auto !important;
    height: 100%;
}
#pp-browse-content .pp-orientation-selector {
    max-width: 100%;
    padding: 48px 40px;
}
#pp-browse-content .pp-orientation-options {
    max-width: none;
}
.pp-browse-loading {
    display: flex;
    justify-content: center;
    padding: 40px;
}
.pp-browse-selector {
    padding-top: 0 !important;
}
.pp-browse-shipping-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 -40px 24px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.01em;
}
.pp-browse-shipping-banner svg {
    flex-shrink: 0;
    stroke: #fff;
}
.pp-browse-shipping-banner strong {
    font-weight: 800;
    letter-spacing: 0.04em;
}
.pp-browse-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.pp-browse-toolbar h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #212529;
    white-space: nowrap;
}
.pp-browse-toolbar-right {
    flex: 0 0 260px;
}

/* ── Currency Swap Button (admin only) ── */
.pp-browse-currency-float {
    position: fixed;
    bottom: 72px;
    right: 20px;
    z-index: 100002;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 21px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: all 0.15s;
    font-family: inherit;
}
.pp-browse-currency-float:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    transform: scale(1.05);
}
.pp-browse-currency-float .pp-currency-label {
    font-size: 13px;
    font-weight: 700;
    color: #f37028;
    letter-spacing: 0.5px;
}
body.pp-dark-mode .pp-browse-currency-float {
    background: #3a3a3a;
    border-color: #555;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
body.pp-dark-mode .pp-browse-currency-float:hover {
    background: #4a4a4a;
}
body.pp-dark-mode .pp-browse-currency-float .pp-currency-label {
    color: #f37028;
}

/* ── Search ── */
.pp-browse-search {
    width: 100%;
    padding: 9px 14px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.pp-browse-search:focus {
    border-color: #f37028;
    box-shadow: 0 0 0 2px rgba(243, 112, 40, 0.15);
}

/* ── Mobile Browse ── */
@media (max-width: 640px) {
    #pp-browse-content .pp-orientation-selector {
        padding: 16px 16px;
    }
    .pp-browse-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .pp-browse-toolbar-right {
        flex: none;
    }
    .pp-browse-shipping-banner {
        margin: 0 -16px 20px;
        font-size: 13px;
    }
    #pp-browse-content .pp-orientation-options {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 12px !important;
        flex-wrap: nowrap;
    }
    .pp-browse-card {
        min-width: 0 !important;
    }
    .pp-orientation-card {
        padding: 12px 10px;
    }
    .pp-orientation-preview {
        min-height: 80px;
        margin-bottom: 10px;
    }
    .pp-orientation-preview img {
        max-width: 100%;
    }
    .pp-orientation-label {
        font-size: 14px;
    }
    .pp-orientation-dims {
        font-size: 12px;
    }
}
.pp-browse-price {
    color: #f37028 !important;
    font-weight: 500;
}
.pp-browse-card {
    min-width: 180px;
}
.pp-size-dims {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-top: 2px;
}
.pp-size-alt {
    display: block;
    font-size: 14px;
    color: #999;
    font-weight: 400;
    margin-top: 2px;
}
body.pp-dark-mode .pp-size-alt {
    color: #777;
}

/* ── Custom Size Inline (inside config form) ── */
.pp-custom-size-inline {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 6px;
    background: #fafafa;
    text-align: center;
}
body.pp-dark-mode .pp-custom-size-inline {
    border-color: #444;
    background: #2a2a2a;
}
.pp-custom-size-inline .pp-custom-size-inputs {
    justify-content: center;
}
.pp-custom-size-inline .pp-custom-size-match {
    text-align: center;
    margin-top: 6px;
}
.pp-custom-size-inline .pp-custom-size-btn {
    margin-top: 10px;
}

/* ── Quantity Cards ── */
.pp-config-row-qty {
    align-items: flex-start;
}
.pp-config-row-qty > label {
    padding-top: 14px;
}
.pp-qty-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pp-qty-placeholder {
    padding: 10px 12px;
    color: #999;
    font-size: 14px;
}
.pp-qty-card {
    display: grid;
    grid-template-columns: minmax(100px, auto) 1fr auto;
    align-items: center;
    gap: 0 10px;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    background: #fff;
}
.pp-qty-card:hover {
    border-color: #f37028;
    background: #fff8f4;
}
.pp-qty-card-selected {
    border-color: #f37028;
    background: #fff8f4;
    box-shadow: 0 0 0 1px #f37028;
}
.pp-qty-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pp-qty-card-qty {
    font-weight: 600;
    font-size: 15px;
    color: #222;
}
.pp-qty-card-badge {
    font-size: 11px;
    font-weight: 600;
    color: #555;
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 1px 8px;
    border-radius: 10px;
    line-height: 1.4;
}
.pp-qty-card-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
.pp-qty-card-price {
    font-weight: 600;
    font-size: 15px;
    color: #222;
}
.pp-qty-card-perunit {
    font-size: 13px;
    color: #888;
}
.pp-qty-card-savings {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #2e7d32;
    padding: 2px 7px;
    border-radius: 4px;
    text-align: right;
    white-space: nowrap;
}
.pp-qty-card-more {
    text-align: center;
    padding: 6px 0;
}
/* qty card more link - no label offset needed with stacked layout */
.pp-qty-card-more a {
    color: #f37028;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}
.pp-qty-card-more a:hover {
    text-decoration: underline;
}
.pp-qty-card-contact {
    text-align: center;
    font-size: 13px;
    color: #777;
    padding: 4px 0 0;
}
.pp-qty-card-contact a {
    color: #f37028;
    text-decoration: none;
    font-weight: 500;
}
.pp-qty-card-contact a:hover {
    text-decoration: underline;
}
/* Dark mode qty cards */
body.pp-dark-mode .pp-qty-card {
    background: #2a2a2a;
    border-color: #444;
}
body.pp-dark-mode .pp-qty-card:hover,
body.pp-dark-mode .pp-qty-card-selected {
    border-color: #f37028;
    background: #3a2a1a;
    box-shadow: 0 0 0 1px #f37028;
}
body.pp-dark-mode .pp-qty-card-qty,
body.pp-dark-mode .pp-qty-card-price {
    color: #e0e0e0;
}
body.pp-dark-mode .pp-qty-card-perunit {
    color: #999;
}
body.pp-dark-mode .pp-qty-card-savings {
    background: #2e7d32;
    color: #fff;
}
body.pp-dark-mode .pp-qty-card-badge {
    background: #3a3a3a;
    border-color: #555;
    color: #bbb;
}
body.pp-dark-mode .pp-qty-card-contact {
    color: #999;
}
body.pp-dark-mode .pp-qty-placeholder {
    color: #777;
}

/* ── Custom Size Section (legacy size picker page) ── */
.pp-custom-size-section {
    width: 100%;
    max-width: 500px;
    margin: 24px auto 0;
    text-align: center;
}
.pp-custom-size-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #f37028;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s;
}
.pp-custom-size-toggle:hover {
    background: rgba(243, 112, 40, 0.08);
}
.pp-custom-size-toggle svg {
    opacity: 0.7;
    stroke: #f37028;
}

/* Custom size modal overlay */
.pp-custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    animation: pp-fade-in 0.15s ease;
}
@keyframes pp-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.pp-custom-modal {
    background: #fff;
    border-radius: 14px;
    width: 420px;
    max-width: 92vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}
body.pp-dark-mode .pp-custom-modal {
    background: #2a2a2a;
}
.pp-custom-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}
body.pp-dark-mode .pp-custom-modal-header {
    border-color: #444;
}
.pp-custom-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}
.pp-custom-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0 4px;
    line-height: 1;
}
.pp-custom-modal-close:hover {
    color: #333;
}
body.pp-dark-mode .pp-custom-modal-close:hover {
    color: #eee;
}
.pp-custom-modal-body {
    padding: 24px 20px;
    text-align: center;
}
.pp-custom-modal-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px;
    line-height: 1.5;
}
body.pp-dark-mode .pp-custom-modal-desc {
    color: #aaa;
}
.pp-custom-size-inputs {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
}
.pp-custom-size-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.pp-custom-size-field label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
}
body.pp-dark-mode .pp-custom-size-field label {
    color: #aaa;
}
.pp-custom-size-stepper {
    display: flex;
    align-items: center;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
body.pp-dark-mode .pp-custom-size-stepper {
    background: #333;
    border-color: #555;
}
.pp-stepper-btn {
    width: 36px;
    height: 40px;
    border: none;
    background: #f0f0f0;
    font-size: 18px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.pp-stepper-btn:hover {
    background: #e0e0e0;
}
body.pp-dark-mode .pp-stepper-btn {
    background: #444;
    color: #ccc;
}
body.pp-dark-mode .pp-stepper-btn:hover {
    background: #555;
}
.pp-custom-size-stepper input[type="number"] {
    width: 72px;
    height: 40px;
    border: none;
    border-left: 1px solid #d0d0d0;
    border-right: 1px solid #d0d0d0;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    -moz-appearance: textfield;
    appearance: textfield;
    background: #fff;
    color: #333;
}
body.pp-dark-mode .pp-custom-size-stepper input[type="number"] {
    background: #333;
    color: #eee;
    border-color: #555;
}
.pp-custom-size-stepper input[type="number"]::-webkit-outer-spin-button,
.pp-custom-size-stepper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.pp-custom-size-x {
    font-size: 20px;
    font-weight: 300;
    color: #999;
    padding-bottom: 8px;
}
.pp-custom-size-unit {
    font-size: 11px;
    color: #999;
    margin-top: -2px;
}
.pp-custom-size-match {
    margin-top: 12px;
    font-size: 13px;
    min-height: 20px;
}
.pp-match-info {
    color: #666;
}
body.pp-dark-mode .pp-match-info {
    color: #aaa;
}
.pp-match-error {
    color: #e53e3e;
}
.pp-custom-size-btn {
    margin-top: 14px;
    padding: 10px 32px;
    background: #f37028;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}
.pp-custom-size-btn:hover:not(:disabled) {
    background: #e0601a;
}
.pp-custom-size-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.pp-config-stock-note {
    font-size: 13px;
    color: #888;
    font-weight: 400;
}
body.pp-dark-mode .pp-config-stock-note {
    color: #777;
}
@media (max-width: 480px) {
    .pp-custom-size-inputs {
        gap: 8px;
    }
    .pp-custom-size-stepper input[type="number"] {
        width: 56px;
    }
    .pp-stepper-btn {
        width: 32px;
    }
}

/* ── Back Button ── */
.pp-browse-back {
    position: absolute;
    top: 16px;
    left: 16px;
}

/* ── Breadcrumb Navigation ── */
.pp-breadcrumb-bar {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    padding: 10px 0 16px;
    font-size: 14px;
    line-height: 1.4;
}
.pp-breadcrumb-site {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #999;
    text-decoration: none;
    font-weight: 400;
    font-size: 9px;
    transition: color 0.15s;
}
.pp-breadcrumb-site:hover {
    color: #f37028;
}
.pp-breadcrumb-site svg {
    stroke: currentColor;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}
.pp-breadcrumb-sep {
    margin: 0 8px;
    color: #adb5bd;
    font-weight: 300;
}
.pp-breadcrumb-link {
    color: #f37028;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}
.pp-breadcrumb-link:hover {
    color: #e0601a;
    text-decoration: underline;
}
.pp-breadcrumb-current {
    color: #6c757d;
    font-weight: 500;
}
@media (max-width: 640px) {
    .pp-breadcrumb-bar {
        font-size: 12px;
        padding: 6px 0 10px;
    }
    .pp-breadcrumb-sep {
        margin: 0 5px;
    }
}

/* ── Product Error ── */
.pp-product-error {
    text-align: center;
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
}

/* ── Product Configuration Form ── */
.pp-config-screen {
    max-width: 1400px !important;
    margin: 0 auto;
}
.pp-config-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    width: 100%;
    margin: 0 auto;
}
.pp-config-image {
    flex: 1 1 0;
    position: sticky;
    top: 20px;
}
.pp-config-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.pp-config-form {
    flex: 1 1 0;
    min-width: 0;
}
.pp-config-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-bottom: 12px;
}
.pp-config-row > label {
    padding-top: 0;
}
.pp-corner-diagonal-picker {
    flex-basis: 100%;
}
.pp-config-row label {
    flex: none;
    font-weight: 500;
    font-size: 13px;
    color: #495057;
    text-align: left;
}
.pp-config-row select,
.pp-config-row .pp-config-info {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #212529;
    appearance: auto;
}
.pp-config-row select:disabled {
    background: #e9ecef;
    color: #6c757d;
}
.pp-config-row .pp-config-info {
    background: #f8f9fa;
    border-color: #e9ecef;
    color: #6c757d;
}
.pp-config-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    font-size: 11px;
    text-decoration: none;
    margin-left: 4px;
    line-height: 1;
}
.pp-config-help:hover {
    background: #f37028;
    color: #fff;
}
.pp-config-divider {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #868e96;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 6px;
    margin: 20px 0 12px;
}

/* ── Pricing Grid ── */
.pp-config-pricing-grid {
    font-size: 14px;
    margin-top: 20px;
    text-align: center;
}
.pp-pricing-main {
    padding: 8px 0 4px;
}
.pp-pricing-amount {
    font-size: 36px;
    font-weight: 700;
    color: #212529;
    letter-spacing: -0.02em;
}
.pp-pricing-sale {
    color: #dc3545;
}
.pp-pricing-strike {
    font-size: 22px;
    color: #999;
    font-weight: 400;
    margin-right: 8px;
}
.pp-pricing-special-label {
    font-size: 13px;
    font-weight: 700;
    color: #dc3545;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 4px;
}
.pp-pricing-row {
    padding: 2px 0;
    color: #495057;
    font-size: 14px;
}
.pp-pricing-per-set {
    color: #6c757d;
    font-size: 13px;
}
.pp-pricing-per-unit {
    color: #f37028;
    font-weight: 600;
    font-size: 15px;
}
.pp-pricing-shipping {
    color: #28a745;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.03em;
}
.pp-free-shipping-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 6px 16px;
    background: #e6f4ea;
    color: #1a7431;
    font-size: 14px;
    font-weight: 700;
    border-radius: 20px;
    letter-spacing: 0.02em;
}
.pp-free-shipping-badge svg {
    stroke: #1a7431;
    flex-shrink: 0;
}
.pp-pricing-weight {
    font-size: 13px;
    color: #868e96;
    margin-top: 4px;
}

/* ── CTA Buttons & Actions ── */
.pp-config-submit {
    display: block;
    width: 100%;
    padding: 14px 24px;
    margin-top: 24px;
    border: none;
    border-radius: 8px;
    background: #f37028;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.pp-config-submit:hover:not(:disabled) {
    background: #e0601a;
    transform: translateY(-1px);
}
.pp-config-submit:disabled {
    background: #ced4da;
    cursor: not-allowed;
}
.pp-config-cta-area {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}
.pp-config-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.pp-config-btn-primary svg {
    flex-shrink: 0;
}
.pp-config-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, border-color 0.2s;
    background: #fff;
    color: #f37028;
    border: 2px solid #f37028;
}
.pp-config-btn-secondary:hover:not(:disabled) {
    background: #fff5f0;
    transform: translateY(-1px);
}
.pp-config-btn-secondary:disabled {
    border-color: #ced4da;
    color: #ced4da;
    cursor: not-allowed;
}
.pp-config-btn-secondary svg {
    flex-shrink: 0;
}
.pp-config-skip-designer {
    display: block;
    text-align: center;
    margin-top: 2px;
    font-size: 13px;
    color: #6c757d;
    text-decoration: none;
    transition: color 0.15s;
}
.pp-config-skip-designer:hover {
    color: #f37028;
    text-decoration: underline;
}
.pp-config-cta-hint {
    text-align: center;
    font-size: 12px;
    color: #333;
    margin: -1px 0 8px;
    padding-top: 3px;
    line-height: 1.4;
}
.pp-config-cta-hint strong {
    color: #f37028;
    font-weight: 700;
}
.pp-config-share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 6px;
    font-size: 12px;
    color: #6c757d;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s;
}
.pp-config-share-link:hover {
    color: #f37028;
}
.pp-config-share-link svg {
    flex-shrink: 0;
}
.pp-config-share-copied {
    color: #28a745 !important;
}

/* ── Design Notes ── */
.pp-config-design-notes {
    margin-bottom: 4px;
}
.pp-config-design-notes label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}
.pp-config-design-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 70px;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.pp-config-design-textarea:focus {
    outline: none;
    border-color: #f37028;
    box-shadow: 0 0 0 3px rgba(243, 112, 40, 0.1);
}

/* ── Form Loading State ── */
.pp-config-form {
    position: relative;
}
.pp-config-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.6);
    z-index: 10;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
    pointer-events: all;
    animation: pp-fade-in 0.1s ease;
}
body.pp-dark-mode .pp-config-loading-overlay {
    background: rgba(30,30,30,0.6);
}
.pp-config-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e0e0e0;
    border-top-color: #f37028;
    border-radius: 50%;
    animation: pp-spin 0.6s linear infinite;
}
@keyframes pp-spin {
    to { transform: rotate(360deg); }
}

/* ── Customize Options Toggle ── */
.pp-options-collapsible {
    margin: 4px 0;
}
.pp-options-toggle {
    display: block;
    text-align: center;
    padding: 4px 0;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    color: #f37028;
    transition: color 0.15s;
}
.pp-options-toggle:hover {
    color: #d45a10;
    text-decoration: underline;
}
.pp-options-toggle-label {
    font-weight: 500;
}
.pp-options-toggle-arrow {
    font-size: 11px;
    margin-left: 2px;
}
.pp-options-body {
    padding: 8px 0 0;
}

/* ── Inline Per-Unit on Price Line ── */
.pp-pricing-perunit-inline {
    font-size: 13px;
    font-weight: 400;
    color: #777;
    margin-left: 6px;
}

/* ── Trust Signals ── */
.pp-config-trust {
    margin: 12px 0 4px;
    text-align: center;
}
.pp-trust-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.pp-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
}
.pp-trust-item svg {
    color: #2e7d32;
    flex-shrink: 0;
}
.pp-trust-free {
    color: #2e7d32;
    font-weight: 700;
}
.pp-trust-asterisk {
    color: #999;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}
.pp-trust-asterisk:hover {
    color: #f37028;
}

/* ── Mobile / Tablet Config Form ── */
@media (max-width: 900px) {
    .pp-config-screen {
        padding: 12px 12px !important;
        max-width: 100% !important;
    }
    .pp-config-layout {
        flex-direction: column;
        gap: 16px;
    }
    .pp-config-image {
        flex: none;
        max-width: 200px;
        margin: 0 auto;
        position: static;
    }
    .pp-config-form {
        width: 100%;
    }
    .pp-config-row select,
    .pp-config-row .pp-config-info {
        min-width: 0;
        font-size: 14px;
        padding: 10px 12px;
    }
    /* Stacked layout on mobile */
    .pp-qty-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 10px 12px;
    }
    .pp-qty-card-bottom {
        justify-content: flex-start;
    }
    .pp-qty-card-qty {
        font-size: 15px;
        font-weight: 700;
    }
    .pp-qty-card-price {
        font-size: 14px;
    }
    .pp-qty-card-perunit {
        font-size: 12px;
    }
    .pp-qty-card-savings {
        font-size: 11px;
        background: none;
        color: #2e7d32;
        padding: 0;
        font-weight: 500;
    }
    .pp-qty-card-badge {
        font-size: 10px;
        padding: 1px 6px;
    }
    .pp-free-shipping-badge {
        font-size: 12px;
        padding: 5px 12px;
    }
    .pp-orientation-header h3 {
        font-size: 20px;
    }
    .pp-orientation-header p {
        font-size: 14px;
    }
}

/* ── Dark Mode Overrides (Browse/Config) ── */
body.pp-dark-mode .pp-orientation-selector {
    color: #e0e0e0;
}
body.pp-dark-mode .pp-orientation-header h3 {
    color: #e0e0e0;
}
body.pp-dark-mode .pp-orientation-header p {
    color: #999;
}
body.pp-dark-mode .pp-orientation-card {
    background: #3a3a3a;
    border-color: #555555;
}
body.pp-dark-mode .pp-orientation-card:hover {
    border-color: #f37028;
    box-shadow: 0 12px 32px rgba(243, 112, 40, 0.2);
}
body.pp-dark-mode .pp-orientation-label {
    color: #e0e0e0;
}
body.pp-dark-mode .pp-orientation-dims {
    color: #999999;
}
body.pp-dark-mode .pp-orientation-shape {
    background: linear-gradient(135deg, #484848 0%, #3a3a3a 100%);
    border-color: #666666;
}
body.pp-dark-mode .pp-orientation-card:hover .pp-orientation-shape {
    background: linear-gradient(135deg, #4a3520 0%, #3d2d1a 100%);
    border-color: #f37028;
}
body.pp-dark-mode .pp-orientation-shape::before {
    background: #666666;
}
body.pp-dark-mode .pp-orientation-shape::after {
    background: #555555;
}
body.pp-dark-mode .pp-browse-toolbar h3 {
    color: #e0e0e0;
}
body.pp-dark-mode .pp-browse-search {
    background: #3a3a3a;
    border-color: #555;
    color: #e0e0e0;
}
body.pp-dark-mode .pp-browse-search:focus {
    border-color: #f37028;
}
body.pp-dark-mode .pp-breadcrumb-sep {
    color: #777;
}
body.pp-dark-mode .pp-breadcrumb-current {
    color: #999;
}
body.pp-dark-mode .pp-config-row label {
    color: #cccccc;
}
body.pp-dark-mode .pp-config-row select,
body.pp-dark-mode .pp-config-row .pp-config-info {
    background: #3a3a3a;
    border-color: #555;
    color: #e0e0e0;
}
body.pp-dark-mode .pp-config-row select:disabled {
    background: #333;
    color: #888;
}
body.pp-dark-mode .pp-config-row .pp-config-info {
    background: #333;
    border-color: #555;
    color: #999;
}
body.pp-dark-mode .pp-config-divider {
    color: #999;
    border-bottom-color: #555;
}
body.pp-dark-mode .pp-config-help {
    background: #555;
    color: #ccc;
}
body.pp-dark-mode .pp-pricing-amount {
    color: #e0e0e0;
}
body.pp-dark-mode .pp-pricing-row {
    color: #cccccc;
}
body.pp-dark-mode .pp-pricing-per-set {
    color: #999;
}
body.pp-dark-mode .pp-pricing-strike {
    color: #777;
}
body.pp-dark-mode .pp-pricing-special-label {
    color: #ff6b6b;
}
body.pp-dark-mode .pp-config-submit:disabled {
    background: #555;
}
body.pp-dark-mode .pp-config-btn-secondary {
    background: transparent;
    color: #f37028;
    border-color: #f37028;
}
body.pp-dark-mode .pp-config-btn-secondary:hover:not(:disabled) {
    background: rgba(243, 112, 40, 0.1);
}
body.pp-dark-mode .pp-config-btn-secondary:disabled {
    border-color: #555;
    color: #555;
}
body.pp-dark-mode .pp-config-skip-designer {
    color: #999;
}
body.pp-dark-mode .pp-config-cta-hint {
    color: #777;
}
body.pp-dark-mode .pp-config-design-notes label {
    color: #ccc;
}
body.pp-dark-mode .pp-config-design-textarea {
    background: #3a3a3a;
    border-color: #555;
    color: #e0e0e0;
}
body.pp-dark-mode .pp-options-toggle {
    color: #f37028;
}
body.pp-dark-mode .pp-options-toggle:hover {
    color: #ff8c42;
}
body.pp-dark-mode .pp-trust-item {
    color: #999;
}
body.pp-dark-mode .pp-trust-item svg {
    color: #4caf50;
}
body.pp-dark-mode .pp-trust-free {
    color: #4caf50;
}
body.pp-dark-mode .pp-trust-asterisk {
    color: #777;
}
body.pp-dark-mode .pp-pricing-perunit-inline {
    color: #999;
}
body.pp-dark-mode .pp-config-design-textarea:focus {
    border-color: #f37028;
    box-shadow: 0 0 0 3px rgba(243, 112, 40, 0.15);
}
body.pp-dark-mode .pp-product-error {
    color: #ccc;
}
body.pp-dark-mode .pp-product-error a {
    color: #f37028;
}

/* ── Country / Currency Picker ── */
.pp-country-picker-overlay {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.55);
}
.pp-country-picker {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px 32px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.pp-country-picker h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #222;
}
.pp-country-picker p {
    margin: 0 0 28px;
    font-size: 14px;
    color: #666;
}
.pp-country-picker-options {
    display: flex;
    gap: 16px;
    justify-content: center;
}
.pp-country-btn {
    flex: 1;
    max-width: 170px;
    padding: 20px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    text-align: center;
}
.pp-country-btn:hover {
    border-color: #f37028;
    box-shadow: 0 4px 16px rgba(243,112,40,0.15);
    transform: translateY(-2px);
}
.pp-country-btn .pp-country-flag {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 10px;
}
.pp-country-btn .pp-country-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}
.pp-country-btn .pp-country-cur {
    display: block;
    font-size: 12px;
    color: #888;
}
body.pp-dark-mode .pp-country-picker {
    background: #2a2a2a;
}
body.pp-dark-mode .pp-country-picker h2 {
    color: #e0e0e0;
}
body.pp-dark-mode .pp-country-picker p {
    color: #999;
}
body.pp-dark-mode .pp-country-btn {
    background: #333;
    border-color: #444;
}
body.pp-dark-mode .pp-country-btn:hover {
    border-color: #f37028;
}
body.pp-dark-mode .pp-country-btn .pp-country-name {
    color: #e0e0e0;
}
body.pp-dark-mode .pp-country-btn .pp-country-cur {
    color: #888;
}

/* ── Embedded Mode ── */
/* Stripped-down form for embedding in external sites (WPBakery columns, etc.) */
.pp-browse-embedded {
    width: 100%;
}
.pp-browse-embedded #pp-browse-content {
    position: relative;
    overflow-y: visible !important;
    height: auto;
}
.pp-browse-embedded #pp-browse-content .pp-orientation-selector {
    padding: 16px 0;
}
/* Config form takes full width when no image column */
.pp-config-embedded .pp-config-layout {
    display: block;
}
.pp-config-embedded .pp-config-form {
    width: 100%;
}
.pp-config-embedded .pp-config-image {
    display: none;
}
/* Embedded config header: size label + change link */
.pp-embedded-config-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}
.pp-embedded-size-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}
.pp-embedded-change-size {
    font-size: 14px;
    color: #f37028;
    text-decoration: none;
    font-weight: 500;
}
.pp-embedded-change-size:hover {
    text-decoration: underline;
}
