/* ─── Print Configurator Styles ───────────────────────────────────────── */

:root {
    --pc-primary:    #e07b39;
    --pc-primary-light: #fdf3ec;
    --pc-primary-dark:  #c4642a;
    --pc-text:       #2d2d2d;
    --pc-muted:      #888;
    --pc-border:     #e0e0e0;
    --pc-radius:     8px;
    --pc-shadow:     0 2px 12px rgba(0,0,0,.08);
}

/* Breadcrumb */
.pc-breadcrumb {
    font-size: 13px;
    color: var(--pc-muted);
    margin-bottom: 16px;
    padding: 0;
}
.pc-breadcrumb a {
    color: var(--pc-primary);
    text-decoration: none;
}
.pc-breadcrumb a:hover { text-decoration: underline; }
.pc-bc-sep { margin: 0 6px; }
.pc-bc-current { color: var(--pc-text); font-weight: 500; }

/* Configurator Wrapper */
.pc-configurator {
    background: #fff;
    padding: 0;
    max-width: 560px;
}

/* Field */
.pc-field {
    margin-bottom: 20px;
}

.pc-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--pc-text);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* Select */
.pc-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--pc-border);
    border-radius: var(--pc-radius);
    font-size: 15px;
    color: var(--pc-text);
    background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    transition: border-color .2s;
}
.pc-select:focus {
    outline: none;
    border-color: var(--pc-primary);
    box-shadow: 0 0 0 3px rgba(224,123,57,.12);
}

/* Button Group */
.pc-button-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* v2.13.55: Reverted the v2.13.53 mobile-stack rule. Stacking made short
 * labels like "Matte"/"Gloss" take unnecessary full-row space — looked
 * sparse and made the form feel longer than it needed to. Keep the
 * horizontal flex layout on mobile too. Long labels wrap to 2 lines
 * within each button (handled by white-space: normal + overflow-wrap
 * in .pc-option-btn), short labels stay tight side-by-side. */

.pc-option-btn {
    flex: 1;
    min-width: 80px;
    padding: 10px 16px;
    border: 1.5px solid var(--pc-border);
    border-radius: var(--pc-radius);
    background: #fff;
    color: var(--pc-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
    /* v2.13.50/51: Long option labels (e.g. "Transparent Vinyl Sticker")
     * were overflowing horizontally. Allow them to wrap to 2 lines.
     *
     * v2.13.52: Even with overflow-wrap set, text was still clipping
     * because <button> elements inherit `white-space: nowrap` from
     * Hello Elementor's theme defaults. Force `white-space: normal` and
     * add `!important` for defensive specificity. Now text actually
     * wraps at word boundaries (overflow-wrap: break-word handles the
     * how — break at spaces first, only mid-word as last resort).
     *
     * Result: "Non-Tearable Vinyl Sticker" wraps as
     *   Non-Tearable
     *   Vinyl Sticker
     * — clean 2-line layout, never overlaps the info icon. */
    line-height: 1.3;
    white-space: normal !important;
    overflow-wrap: break-word;
}
.pc-option-btn:hover {
    border-color: var(--pc-primary);
    color: var(--pc-primary);
    background: var(--pc-primary-light);
}
.pc-option-btn.active {
    border-color: var(--pc-primary);
    background: var(--pc-primary-light);
    color: var(--pc-primary);
    font-weight: 600;
}

/* Price Section */
.pc-price-section {
    margin: 24px 0 16px;
    padding: 20px;
    background: #fafafa;
    border-radius: var(--pc-radius);
    border: 1.5px solid var(--pc-border);
    position: relative;
}

.pc-price-total {
    display: flex;
    align-items: baseline;
    gap: 2px;
}
.pc-currency {
    font-size: 22px;
    font-weight: 700;
    color: var(--pc-text);
}
.pc-amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--pc-text);
    line-height: 1;
}

.pc-price-meta {
    margin-top: 4px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.pc-per-unit {
    font-size: 13px;
    color: var(--pc-muted);
}
.pc-gst-note {
    font-size: 12px;
    color: var(--pc-muted);
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 20px;
}

/* v2.13.26: Smaller GST-inclusive total below the big ex-GST price */
.pc-price-incl {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--pc-muted);
}
.pc-price-incl-label {
    font-weight: 500;
}
.pc-price-incl-value {
    font-weight: 600;
    color: var(--pc-text);
}

/* Breakdown — high specificity to override theme button styles */
.pc-configurator button.pc-breakdown-toggle,
.pc-configurator button.pc-breakdown-toggle:hover,
.pc-configurator button.pc-breakdown-toggle:focus,
.pc-configurator button.pc-breakdown-toggle:active,
.pc-configurator button[type="button"].pc-breakdown-toggle {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--pc-primary, #e07b39) !important;
    cursor: pointer !important;
    display: inline !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: normal !important;
    line-height: 1.4 !important;
    margin: 6px 0 0 !important;
    min-height: auto !important;
    padding: 0 !important;
    text-decoration: underline !important;
    text-transform: none !important;
    width: auto !important;
    height: auto !important;
    outline: none !important;
}
.pc-configurator button.pc-breakdown-toggle:hover {
    color: #c0700f !important;
    text-decoration: none !important;
}
.pc-price-breakdown {
    margin-top: 12px;
    border-top: 1px solid var(--pc-border);
    padding-top: 12px;
}
.pc-breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--pc-muted);
    padding: 3px 0;
}
.pc-gst-row { color: #e07b39; }
.pc-total-row {
    font-weight: 700;
    color: var(--pc-text);
    font-size: 14px;
    border-top: 1px dashed var(--pc-border);
    margin-top: 4px;
    padding-top: 6px;
}

/* Spinner */
.pc-price-loading {
    position: absolute;
    top: 8px;
    right: 12px;
}
.pc-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--pc-border);
    border-top-color: var(--pc-primary);
    border-radius: 50%;
    animation: pc-spin .7s linear infinite;
}
@keyframes pc-spin { to { transform: rotate(360deg); } }

/* Proceed Button */
.pc-proceed-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--pc-primary);
    color: #fff;
    border: none;
    border-radius: var(--pc-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s, transform .1s;
    margin-top: 8px;
}
.pc-proceed-btn:hover { background: var(--pc-primary-dark); }
.pc-proceed-btn:active { transform: scale(.98); }

/* Delivery Tiers */
.pc-delivery-tiers {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pc-delivery-tier-card {
    border: 1.5px solid var(--pc-border);
    border-radius: var(--pc-radius);
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all .2s;
}
.pc-delivery-tier-card:hover,
.pc-delivery-tier-card.active {
    border-color: var(--pc-primary);
    background: var(--pc-primary-light);
}
.pc-delivery-tier-name {
    font-weight: 600;
    font-size: 14px;
}
.pc-delivery-tier-date {
    font-size: 12px;
    color: var(--pc-muted);
    margin-top: 2px;
}
.pc-delivery-tier-price {
    font-weight: 700;
    color: var(--pc-primary);
}

/* ─── Upload Page Styles ─────────────────────────────────────────────────── */

.pc-upload-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
    align-items: start;
}

@media (max-width: 768px) {
    .pc-upload-page {
        grid-template-columns: 1fr;
    }
}

.pc-upload-main {}

.pc-upload-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--pc-text);
    margin-bottom: 6px;
}
.pc-upload-subtitle {
    font-size: 14px;
    color: var(--pc-muted);
    margin-bottom: 24px;
}

/* Upload Zone */
.pc-upload-zone {
    border: 2.5px dashed var(--pc-border);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    background: #fafafa;
    position: relative;
}
.pc-upload-zone.drag-over {
    border-color: var(--pc-primary);
    background: var(--pc-primary-light);
}
.pc-upload-zone-icon {
    width: 56px;
    height: 56px;
    background: var(--pc-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--pc-primary);
}
.pc-upload-zone h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--pc-text);
}
.pc-upload-zone p {
    font-size: 13px;
    color: var(--pc-muted);
    margin: 0;
}
.pc-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* Uploaded Files List */
.pc-uploaded-files {
    margin-top: 20px;
}
.pc-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius);
    margin-bottom: 8px;
}
.pc-file-icon {
    width: 36px;
    height: 36px;
    background: var(--pc-primary-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pc-primary);
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.pc-file-info { flex: 1; }
.pc-file-name { font-size: 14px; font-weight: 500; color: var(--pc-text); }
.pc-file-size { font-size: 12px; color: var(--pc-muted); }
.pc-file-status-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}
.pc-file-status-badge.uploading { background: #fff3cd; color: #856404; }
.pc-file-status-badge.success   { background: #d1e7dd; color: #0f5132; }
.pc-file-status-badge.error     { background: #f8d7da; color: #842029; }
.pc-file-delete {
    background: none;
    border: none;
    color: var(--pc-muted);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 4px;
}
.pc-file-delete:hover { color: #e74c3c; }

/* External Link */
.pc-external-link {
    margin-top: 20px;
}
.pc-external-link label {
    font-size: 13px;
    font-weight: 600;
    color: var(--pc-text);
    display: block;
    margin-bottom: 8px;
}
.pc-external-link input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--pc-border);
    border-radius: var(--pc-radius);
    font-size: 14px;
    box-sizing: border-box;
}
.pc-external-link input:focus {
    outline: none;
    border-color: var(--pc-primary);
}

/* Design Instructions */
.pc-instructions {
    margin-top: 20px;
}
.pc-instructions label {
    font-size: 13px;
    font-weight: 600;
    color: var(--pc-text);
    display: block;
    margin-bottom: 8px;
}
.pc-instructions textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--pc-border);
    border-radius: var(--pc-radius);
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    box-sizing: border-box;
    font-family: inherit;
}
.pc-instructions textarea:focus {
    outline: none;
    border-color: var(--pc-primary);
}

/* Upload Page Sidebar / Guidelines */
.pc-upload-sidebar {
    background: #fff;
    border: 1.5px solid var(--pc-border);
    border-radius: 12px;
    padding: 24px;
}
.pc-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--pc-text);
}
.pc-guideline-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    align-items: flex-start;
}
.pc-guideline-icon {
    color: var(--pc-primary);
    flex-shrink: 0;
    margin-top: 1px;
}
.pc-guideline-text {
    font-size: 13px;
    color: var(--pc-text);
    line-height: 1.5;
}
.pc-guideline-dynamic {
    color: var(--pc-primary);
    font-weight: 600;
}

/* Config Summary in Upload Page */
.pc-config-summary {
    background: #ffffff;
    border-radius: var(--pc-radius);
    padding: 14px 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(224,123,57,.2);
}
/* v2.13.39: Header row with Edit link inline */
.pc-config-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.pc-config-summary h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--pc-primary);
    margin: 0;
}
.pc-config-summary-edit {
    font-size: 12px;
    font-weight: 500;
    color: var(--pc-primary);
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
    padding-bottom: 1px;
    transition: opacity 0.15s ease;
}
.pc-config-summary-edit:hover {
    opacity: 0.7;
}

/* v2.13.39: Edit-mode banner at top of upload page */
.pc-edit-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    margin-bottom: 18px;
    color: #7c2d12;
    font-size: 13px;
}
.pc-edit-banner-icon {
    font-size: 16px;
}
.pc-edit-banner-text {
    flex: 1;
    line-height: 1.4;
}
.pc-config-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 3px 0;
    color: var(--pc-text);
}
.pc-config-item span:last-child { font-weight: 600; }

/* Proceed to Cart Button */
.pc-upload-submit {
    width: 100%;
    padding: 14px 24px;
    background: var(--pc-primary);
    color: #fff;
    border: none;
    border-radius: var(--pc-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s;
}
.pc-upload-submit:hover { background: var(--pc-primary-dark); }
.pc-upload-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Button price tag */
.pc-btn-price {
    display: block;
    font-size: 11px;
    font-weight: 400;
    opacity: .75;
    margin-top: 2px;
}

/* Upload notice */
.pc-notice-error   { background:#fdf3f3; border:1px solid #f5c6c6; border-radius:6px; padding:12px 16px; color:#842029; font-size:13px; margin-top:12px; }
.pc-notice-success { background:#d1e7dd; border:1px solid #a3cfbb; border-radius:6px; padding:12px 16px; color:#0f5132; font-size:13px; margin-top:12px; }


/* ────────────────────────────────────────────────────────────────
   Phase B: Flex Configurator Styles
   Integrates with .pc-field / .pc-label / .pc-button-group styles
   ──────────────────────────────────────────────────────────────── */

.pc-flex-configurator .pc-flex-dim-row {
    display: flex;
    gap: 10px;
}
.pc-flex-configurator .pc-flex-dim-input {
    flex: 1;
    position: relative;
}
.pc-flex-configurator .pc-flex-dim-input input.pc-input {
    padding-right: 36px;
}
.pc-flex-configurator .pc-flex-unit {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #888;
    pointer-events: none;
}

/* Number input — match .pc-select look */
.pc-flex-configurator .pc-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid var(--pc-border, #e5e5e5);
    border-radius: 8px;
    background: #fff;
    color: #1a1a1a;
    box-sizing: border-box;
    transition: border-color .15s;
    -moz-appearance: textfield;
}
.pc-flex-configurator .pc-input::-webkit-outer-spin-button,
.pc-flex-configurator .pc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.pc-flex-configurator .pc-input:focus {
    outline: none;
    border-color: var(--pc-primary, #e07b39);
}

/* Subtle hint text inside labels */
.pc-flex-configurator .pc-label-hint {
    font-weight: 400;
    color: #888;
    font-size: 12px;
    margin-left: 6px;
    text-transform: none;
}

/* Inline error box */
.pc-flex-configurator .pc-flex-error {
    background: #fdf3f3;
    border: 1px solid #f5c6c6;
    border-radius: 6px;
    padding: 10px 14px;
    color: #842029;
    font-size: 13px;
    margin-top: 10px;
}

/* Validation error (block proceed) */
.pc-validation-error {
    background: #fdf3f3;
    border: 1px solid #f5c6c6;
    border-left: 4px solid #c0392b;
    border-radius: 6px;
    padding: 12px 16px;
    color: #842029;
    font-size: 14px;
    font-weight: 500;
    margin: 14px 0;
    display: none;
    animation: pc-shake .35s;
}
@keyframes pc-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* ────────────────────────────────────────────────────────────────
   Phase C-3: Tooltips
   Hover desktop / Tap mobile. Pure CSS show/hide via .is-open class.
   ──────────────────────────────────────────────────────────────── */

.pc-tooltip-wrap {
    position: relative;
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
    line-height: 1;
}

.pc-tooltip-trigger {
    background: none;
    border: none;
    padding: 0;
    cursor: help;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: #aaa;
    transition: color 0.15s, transform 0.15s;
    vertical-align: middle;
}
.pc-tooltip-trigger:hover,
.pc-tooltip-trigger:focus {
    color: var(--pc-primary, #e07b39);
    transform: scale(1.1);
    outline: none;
}
.pc-tooltip-icon-svg {
    display: block;
    width: 16px;
    height: 16px;
}

/* Tooltip bubble - hidden by default */
.pc-tooltip-bubble {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 200px;
    max-width: 280px;
    padding: 10px 14px;
    background: #2d2d2d;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s, transform 0.18s;
    z-index: 9999;
    text-align: left;
    white-space: normal;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}

/* v2.13.49 mobile tooltip rules removed — superseded by v2.13.53's
 * fixed-position approach above (near top of file). The "anchor right"
 * strategy worked for icons on the right side but failed for icons on
 * the left side (e.g. "Matte" lamination button), pushing the tooltip
 * off the left edge of viewport. Fixed-position keeps the bubble pinned
 * to the viewport with equal margins regardless of trigger location. */

/* Show on hover (desktop) or when tapped (mobile, via .is-open) */
.pc-tooltip-wrap:hover .pc-tooltip-bubble,
.pc-tooltip-wrap.is-open .pc-tooltip-bubble {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.pc-tooltip-text {
    display: block;
    color: #fff;
}

.pc-tooltip-link {
    display: inline-block;
    margin-top: 8px;
    color: #f5b87a !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
}
.pc-tooltip-link:hover {
    color: #ffd9b3 !important;
}

/* Down-pointing arrow */
.pc-tooltip-arrow {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #2d2d2d;
}

/* Buttons with tooltip wrapper — preserve original full-width button layout */
.pc-button-with-tooltip {
    flex: 1;
    min-width: 80px;
    position: relative;
    display: block;
}
.pc-button-with-tooltip .pc-option-btn {
    width: 100%;
    min-width: 0;
    /* v2.13.50: Reserve right padding for the info icon so long option
     * labels (e.g. "Non-Tearable Vinyl Sticker", "Transparent Vinyl
     * Sticker") don't slide under the absolute-positioned tooltip
     * trigger. The icon is at right:8px + width:16px = ~24px, plus a
     * small breathing gap. We keep the left padding equal so the
     * visual center of the text stays near the optical center of the
     * button, avoiding a lopsided look. */
    padding-left: 32px;
    padding-right: 32px;
}
.pc-button-with-tooltip .pc-tooltip-wrap {
    position: absolute;
    top: 6px;
    right: 8px;
    margin-left: 0;
    z-index: 2;
}
.pc-button-with-tooltip .pc-tooltip-trigger {
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.85);
    color: #777;
    border-radius: 50%;
}
.pc-button-with-tooltip .pc-tooltip-trigger:hover {
    background: #fff;
    color: var(--pc-primary, #e07b39);
}
.pc-button-with-tooltip .pc-tooltip-icon-svg {
    width: 12px;
    height: 12px;
}

/* Mobile: ensure tooltip doesn't get clipped at viewport edges */
@media (max-width: 480px) {
    .pc-tooltip-bubble {
        max-width: 90vw;
    }
}

/* ────────────────────────────────────────────────────────────────
   Phase D: Pincode Check + Notify-Me Modal
   ──────────────────────────────────────────────────────────────── */

.pc-pincode-check {
    margin: 0 0 18px;
    padding: 14px 16px;
    background: #fafafa;
    border: 1px solid var(--pc-border, #e5e5e5);
    border-radius: 10px;
}
.pc-pincode-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.pc-pincode-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--pc-primary, #e07b39);
    line-height: 1;
    flex-shrink: 0;
}
.pc-pincode-icon svg {
    display: block;
    width: 32px;
    height: 24px;
}
.pc-pincode-input {
    flex: 1;
    min-width: 140px;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid var(--pc-border, #e5e5e5);
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
    -moz-appearance: textfield;
}
.pc-pincode-input::-webkit-outer-spin-button,
.pc-pincode-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.pc-pincode-input:focus {
    outline: none;
    border-color: var(--pc-primary, #e07b39);
}
.pc-pincode-btn {
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: var(--pc-primary, #e07b39);
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}
.pc-pincode-btn:hover {
    background: var(--pc-primary-dark, #c66a2c);
}
.pc-pincode-result {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
    display: none;
}
.pc-pincode-result.pc-pincode-ok {
    color: #0a6d2a;
    font-weight: 500;
}
.pc-pincode-result.pc-pincode-fail {
    color: #842029;
}
.pc-notify-link {
    color: var(--pc-primary, #e07b39);
    font-weight: 600;
    text-decoration: underline;
    margin-left: 4px;
}
.pc-notify-link:hover {
    color: var(--pc-primary-dark, #c66a2c);
}

/* Disabled CTA button */
.pc-proceed-btn.pc-btn-disabled,
.pc-proceed-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* Notify-Me Modal */
.pc-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 16px;
}
.pc-modal {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px 24px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.pc-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 4px 8px;
}
.pc-modal-close:hover { color: #333; }
.pc-modal-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}
.pc-modal-text {
    margin: 0 0 16px;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}
.pc-modal-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.pc-modal-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid var(--pc-border, #e5e5e5);
    border-radius: 8px;
}
.pc-modal-input:focus {
    outline: none;
    border-color: var(--pc-primary, #e07b39);
}
.pc-modal-submit {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: var(--pc-primary, #e07b39);
    color: #fff;
    cursor: pointer;
}
.pc-modal-submit:hover {
    background: var(--pc-primary-dark, #c66a2c);
}
.pc-modal-message {
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    display: none;
}
.pc-modal-msg-ok {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #a3cfbb;
}
.pc-modal-msg-fail {
    background: #fdf3f3;
    color: #842029;
    border: 1px solid #f5c6c6;
}

/* Artwork Declaration on Upload Page */
.pc-artwork-declaration {
    margin: 24px 0;
    padding: 18px 20px;
    background: #fafafa;
    border: 1px solid #f1d9b8;
    border-left: 4px solid var(--pc-primary, #e07b39);
    border-radius: 8px;
}
.pc-artwork-declaration-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: #6b3a0c;
}
.pc-artwork-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pc-artwork-checklist li {
    margin: 0 0 8px;
    padding: 0;
}
.pc-artwork-checklist label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}
.pc-artwork-checklist input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--pc-primary, #e07b39);
    cursor: pointer;
    flex-shrink: 0;
}

/* v2.13.25: Single-paragraph + single-tick declaration */
.pc-artwork-declaration-text {
    margin: 0 0 14px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #f1d9b8;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
    color: #475467;
    max-height: 180px;
    overflow-y: auto;
}
.pc-artwork-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #333;
    padding: 8px 0;
}
.pc-artwork-agree input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: var(--pc-primary, #e07b39);
    cursor: pointer;
    flex-shrink: 0;
}

/* ─── v2.13.2: WhatsApp Help Button ──────────────────────────────────── */

.pc-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #fff !important;
    padding: 11px 20px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
    transition: all 0.18s ease;
    margin-top: 12px;
    border: none;
    line-height: 1;
}
.pc-whatsapp-btn:hover {
    background: #1ebe5a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
    color: #fff !important;
}
.pc-whatsapp-btn:active {
    transform: translateY(0);
}
.pc-whatsapp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    flex-shrink: 0;
}
.pc-whatsapp-icon svg {
    display: block;
    width: 22px;
    height: 22px;
}
.pc-whatsapp-text {
    line-height: 1.2;
}

/* ─────────────────────────────────────────────────────────────────────
   Inline placement on product page — render as a subtle text link
   (NOT a full slab, so it doesn't compete with the main orange CTA).
   ───────────────────────────────────────────────────────────────────── */
.pc-actions + .pc-whatsapp-btn,
.pc-configurator > .pc-whatsapp-btn {
    /* Reset slab styles back to plain link */
    background: transparent !important;
    box-shadow: none !important;
    color: #1ebe5a !important;
    width: auto;
    padding: 8px 4px;
    margin: 8px auto 0;
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    /* Center it under the CTA */
    text-align: center;
}
.pc-actions + .pc-whatsapp-btn {
    display: flex;
    margin: 10px auto 0;
}
.pc-actions + .pc-whatsapp-btn:hover,
.pc-configurator > .pc-whatsapp-btn:hover {
    background: transparent !important;
    color: #18a64a !important;
    transform: none;
    box-shadow: none !important;
    text-decoration: underline;
}

/* Smaller circular icon for inline variant — matches text size */
.pc-actions + .pc-whatsapp-btn .pc-whatsapp-icon,
.pc-configurator > .pc-whatsapp-btn .pc-whatsapp-icon {
    background: #25d366;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
.pc-actions + .pc-whatsapp-btn .pc-whatsapp-icon svg,
.pc-configurator > .pc-whatsapp-btn .pc-whatsapp-icon svg {
    width: 14px;
    height: 14px;
}
.pc-actions + .pc-whatsapp-btn .pc-whatsapp-text::after,
.pc-configurator > .pc-whatsapp-btn .pc-whatsapp-text::after {
    content: ' →';
    color: #1ebe5a;
}

/* Sidebar placement on upload page — keep as compact full-width button */
.pc-upload-sidebar .pc-whatsapp-btn {
    width: 100%;
    justify-content: flex-start;
    box-sizing: border-box;
    padding: 10px 14px;
    font-size: 13px;
}
.pc-upload-sidebar .pc-whatsapp-icon {
    width: 28px;
    height: 28px;
}
.pc-upload-sidebar .pc-whatsapp-icon svg {
    width: 18px;
    height: 18px;
}

/* Promo box base — admin-supplied CSS overrides this */
.pc-promo-box {
    margin: 16px 0;
}

/* ============================================================
 * Single product page gallery — CUSTOM CSS REMOVED in v2.13.61
 * ----------------------------------------------------------------
 * The prior 'gallery polish' block (introduced v2.13.47; patched in
 * v2.13.48/.59/.60) styled the WooCommerce product gallery on the
 * single product page: 4:3 main-image frame, absolute-positioned
 * slides, normalized thumbnails, and flexslider overrides.
 *
 * It caused a chain of issues — frame collapse, the 2nd image showing
 * by default, and thumbnail clicks not switching the main image —
 * because absolutely-positioning the slides and hiding siblings fought
 * flexslider's own slide handling. Per decision, ALL of that CSS is
 * removed so the gallery renders natively (WooCommerce + Hello
 * Elementor defaults): correct default image, working thumbnail
 * switching, and working zoom/lightbox, with no custom overrides.
 *
 * Nothing replaces it intentionally — native behaviour is the goal.
 * ============================================================ */

/* ============================================================
 * v2.13.55 — Mobile tooltip: inline disclosure panel
 * ----------------------------------------------------------------
 * Replaces the floating-bubble approach for mobile (≤600px). Now a
 * full-column-width hint panel slides down right below the field
 * containing the tapped (i) icon. Lives in document flow — no
 * positioning math, no viewport overflow risk. JS injects the panel
 * as a sibling AFTER the .pc-field; see toggleInlineHint() in
 * configurator.js.
 *
 * Three rules:
 *   1. Hide the floating .pc-tooltip-bubble entirely on mobile so it
 *      doesn't double-render. Desktop hover behavior is untouched.
 *   2. Style .pc-mobile-hint as a soft-bordered card with a left
 *      accent stripe (visually connects to the field above).
 *   3. Slide-down animation via max-height transition.
 * ============================================================ */
@media (max-width: 600px) {
    /* Suppress the desktop floating tooltip on mobile — we use inline
     * hints instead. Without this, the desktop bubble would still pop
     * up over the icon when tapped (since .is-open is no longer added
     * on mobile, this is mostly defensive). */
    .pc-tooltip-bubble {
        display: none !important;
    }
}

/* Inline hint panel — sits as a sibling AFTER the .pc-field it explains.
 * Full configurator-column width (whatever the parent grants), always
 * fits the screen. Default state is collapsed (max-height: 0). */
.pc-mobile-hint {
    display: block;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
    background: #2d2d2d;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
    font-size: 14px;
    line-height: 1.5;
    transition: max-height 0.25s ease, opacity 0.2s ease, margin 0.25s ease, padding 0.25s ease;
    padding: 0 14px;
    position: relative;
}
.pc-mobile-hint.is-open {
    max-height: 280px; /* generous cap — longer text scrolls if absurdly long */
    opacity: 1;
    margin-top: 16px; /* extra space to accommodate the arrow above the panel */
    margin-bottom: 8px;
    padding: 12px 14px 14px;
}

/* v2.13.56: Arrow pointing up at the tapped (i) icon. Position is set
 * inline by JS based on the trigger's X position; default sits 16px from
 * the left as a fallback. Uses CSS border trick to draw a triangle that
 * matches the panel's background (#2d2d2d) so it visually attaches. */
.pc-mobile-hint-arrow {
    position: absolute;
    top: -8px;
    left: 16px; /* default; JS overrides per-open */
    margin-left: -8px; /* center the 16px-wide triangle on the `left` x */
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #2d2d2d;
    opacity: 0;
    transition: opacity 0.2s ease 0.05s; /* fade in slightly after panel */
}
.pc-mobile-hint.is-open .pc-mobile-hint-arrow {
    opacity: 1;
}
.pc-mobile-hint-text {
    display: block;
    color: #fff;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.pc-mobile-hint-link {
    display: inline-block;
    margin-top: 8px;
    color: #f5b87a !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
}
.pc-mobile-hint-link:hover {
    color: #ffd9b3 !important;
}

/* Active state on the (i) icon while its hint panel is open — a subtle
 * highlight so user can see which one they tapped. */
.pc-tooltip-wrap.is-mobile-open .pc-tooltip-trigger {
    background: var(--pc-primary-light, #fff1e6) !important;
    color: var(--pc-primary, #e07b39) !important;
}

/* ============================================================
 * v2.13.67 — Simple-product UI: quantity field + cart form layout
 * ----------------------------------------------------------------
 * The [pc_simple_product_ui] block uses WooCommerce's native quantity
 * input, which is unstyled by default (the plain box in the report).
 * Style it to match the polished configurator look: a rounded quantity
 * field on its own row, with the existing full-width orange
 * .pc-proceed-btn (.pc-simple-add-btn) beneath it.
 * ============================================================ */
.pc-simple-ui .pc-simple-cart-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pc-simple-ui .pc-simple-cart-form .quantity {
    display: inline-flex;
    align-items: stretch;
    width: auto;
}
/* v2.13.68: Prefixed with .woocommerce + !important on visual properties so
   the styling wins over Hello Elementor / WooCommerce core input.qty rules
   (which were overriding the v2.13.67 version, leaving the box looking plain).
   The `.woocommerce` prefix raises specificity to match the theme's own
   selectors; !important guarantees the rounded look regardless of load order. */
.woocommerce .pc-simple-ui .pc-simple-cart-form .quantity input.qty,
.pc-simple-ui .pc-simple-cart-form .quantity input.qty {
    width: 96px !important;
    height: 50px !important;
    padding: 0 12px !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--pc-ink, #1f2937) !important;
    border: 1px solid #e2e5ea !important;
    border-radius: var(--pc-radius, 12px) !important;
    background: #fff !important;
    -moz-appearance: textfield;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.woocommerce .pc-simple-ui .pc-simple-cart-form .quantity input.qty:focus,
.pc-simple-ui .pc-simple-cart-form .quantity input.qty:focus {
    outline: none !important;
    border-color: var(--pc-primary, #e07b39) !important;
    box-shadow: 0 0 0 3px rgba(224, 123, 57, 0.15) !important;
}
/* v2.13.68: removed the ::before "Quantity" label — the Elementor template
   already renders a "QUANTITY" label above the box, so the pseudo-element was
   creating a duplicate. */
/* The Add to Cart button already uses .pc-proceed-btn (full-width orange);
   ensure it doesn't shrink when inside the flex form. */
.pc-simple-ui .pc-simple-cart-form .pc-simple-add-btn {
    width: 100%;
    margin-top: 0;
}
.pc-simple-ui .pc-simple-unavailable {
    color: #b91c1c;
    font-weight: 600;
    font-size: 14px;
}
