/**
 * PepperLabz Conversion Event — Build Your Pepper Pack styling.
 * Loads sitewide (harmless when the shortcode isn't placed on a page, or
 * when bundle_builder flag is false and the shortcode renders nothing).
 *
 * Chrome ring loading spinner: this is the one place in the conversion
 * event system that uses an actual brand asset for motion, per owner
 * direction — "loading states: chrome-based motion where it fits
 * naturally." The ring is a closed circular liquid-chrome splash, a
 * natural spinner shape; rotated via CSS transform only, no JS animation
 * loop, GPU-friendly.
 */

.plz-builder-inner {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px;
}

.plz-builder-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.plz-builder-card {
    background: #FFFFFF;
    border: 1px solid #F1F3F5;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.plz-builder-card-img {
    max-width: 100%;
    height: auto;
    max-height: 140px;
    object-fit: contain;
}

.plz-builder-card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.plz-builder-card-title {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 15px;
    color: #1C1F23;
    margin: 0;
}

.plz-builder-card-price {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #79818A;
    font-size: 14px;
}

.plz-builder-card-stepper {
    display: flex;
    align-items: center;
    gap: 14px;
}

.plz-builder-step-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #C4CAD1;
    background: #FFFFFF;
    color: #1C1F23;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.plz-builder-step-btn:hover {
    background: #F1F3F5;
}

.plz-builder-step-value {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 800;
    font-size: 16px;
    min-width: 20px;
}

.plz-builder-summary {
    position: sticky;
    top: 24px;
    align-self: start;
    background: #1C1F23;
    color: #F1F3F5;
    border-radius: 12px;
    padding: 24px;
    height: fit-content;
}

.plz-builder-summary-title {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #FFFFFF;
    margin: 0 0 16px;
}

.plz-builder-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(196, 202, 209, 0.2);
    font-size: 14px;
}

.plz-builder-summary-total {
    font-size: 16px;
    border-bottom: none;
    padding-top: 12px;
}

.plz-builder-summary-total strong {
    color: #FFFFFF;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 800;
}

.plz-builder-summary-savings strong {
    color: #C4CAD1;
}

.plz-builder-unlock-msg {
    font-size: 12px;
    color: #C4CAD1;
    margin: 10px 0 0;
}

.plz-builder-add-btn {
    width: 100%;
    margin-top: 16px;
    padding: 14px;
    border-radius: 8px;
    border: none;
    background: #FFFFFF;
    color: #1C1F23;
    font-weight: 800;
    font-family: 'Inter Tight', sans-serif;
    cursor: pointer;
    position: relative;
}

.plz-builder-add-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Chrome ring loading spinner — real brand asset, rotated via CSS only. */
.plz-builder-add-btn-loading {
    color: transparent;
}

.plz-builder-add-btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    background-image: url('https://pepperlabz.com/wp-content/uploads/2026/04/ChatGPT-Image-Apr-18-2026-09_57_40-PM-1.png');
    background-size: contain;
    background-repeat: no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
    .plz-builder-add-btn-loading::after {
        animation: plzBuilderSpin 1.1s linear infinite;
    }
}

@keyframes plzBuilderSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.plz-builder-error {
    color: #ff6b6b;
    font-size: 13px;
    margin: 10px 0 0;
    text-align: center;
}

@media (max-width: 860px) {
    .plz-builder-inner {
        grid-template-columns: 1fr;
    }

    .plz-builder-summary {
        position: static;
    }

    .plz-builder-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .plz-builder-cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .plz-builder-card {
        padding: 10px;
    }
}
