.wp-block-headless-product-configurator-v2 {
    display: block;
    box-sizing: border-box;
    padding: 0;
    width: 100%;
    max-width: none;
    -webkit-font-smoothing: antialiased;
}

/* ── Outer gradient wrapper ────────────────────────────── */
.pcv2-outer {
    background: transparent;
    padding: 0;
    position: relative;
    overflow: clip;
}

.pcv2-blur-bg {
    position: absolute;
    width: 1535px;
    height: 1278px;
    top: -220px;
    left: 26px;
    pointer-events: none;
    z-index: 0;
}

.pcv2-blur-bg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ── Nav bar (already exists as separate block, this is for spacing) ── */
.pcv2-nav-spacer {
    height: 0;
}

/* ── Hero card ─────────────────────────────────────────── */
.pcv2-hero {
    background: var(--surface-light, white);
    border-radius: 32px;
    padding: 64px;
    position: relative;
    overflow: clip;
    min-height: 830px;
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: center;
    z-index: 1;
}

/* ── Giant watermark text ──────────────────────────────── */
.pcv2-watermark {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 754px;
    line-height: 1.1;
    background: linear-gradient(180deg, rgba(158, 188, 202, 0.5) 0%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    opacity: 0.3;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* ── Product image/3D viewer (centered) ────────────────── */
.pcv2-product-center {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 467px;
    height: 830px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    z-index: 1;
}

.pcv2-product-shadow {
    position: absolute;
    bottom: 28px;
    left: 0;
    width: 100%;
    height: 94px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.pcv2-viewer {
    position: relative;
    width: 451px;
    height: 802px;
    z-index: 1;
    cursor: grab;
}

.pcv2-viewer:active {
    cursor: grabbing;
}

.pcv2-viewer canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* ── Loading overlay ───────────────────────────────────── */
.pcv2-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 5;
    border-radius: 16px;
    transition: opacity 0.4s ease;
}

.pcv2-loading--done {
    opacity: 0;
    pointer-events: none;
}

.pcv2-loading-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(22, 30, 35, 0.75);
    margin-bottom: 16px;
}

.pcv2-loading-track {
    width: 180px;
    height: 2px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 1px;
    overflow: hidden;
}

.pcv2-loading-bar {
    width: 0;
    height: 100%;
    background: #fa700d;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Main content row ──────────────────────────────────── */
.pcv2-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 1368px;
    max-width: 100%;
    flex: 1;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

/* ── Left column: title + style selector ───────────────── */
.pcv2-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 702px;
    flex-shrink: 0;
    pointer-events: auto;
}

.pcv2-title-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wp-block-headless-product-configurator-v2 .pcv2-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 88px;
    line-height: 1.1;
    color: #365072;
    margin: 0;
    white-space: nowrap;
}

.pcv2-description {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(22, 30, 35, 0.75);
    max-width: 413px;
    margin: 0;
}

/* ── Style selector ────────────────────────────────────── */
.pcv2-styles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pcv2-styles-label {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.4;
    color: #7a9dc0;
    margin: 0;
}

.pcv2-styles-row {
    display: flex;
    gap: 8px;
    align-items: center;
    max-width: 340px;
    overflow-x: auto;
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
    padding: 8px 0;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.pcv2-styles-row::-webkit-scrollbar {
    display: none;
}

.pcv2-style-thumb {
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.pcv2-style-thumb:hover {
    opacity: 0.8;
}

.pcv2-style-thumb img {
    width: 46px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    border: 1.5px solid transparent;
    display: block;
    transition: all 0.2s ease;
}

.pcv2-style-thumb--active img {
    width: 56px;
    height: 84px;
    border-color: rgba(22, 30, 35, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* ── Right column: stats + CTAs ────────────────────────── */
.pcv2-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    height: 702px;
    flex-shrink: 0;
    pointer-events: auto;
}

.pcv2-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pcv2-stats-heading {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.4;
    color: #7a9dc0;
    text-align: right;
    margin: 0;
    white-space: nowrap;
}

.pcv2-stats-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.pcv2-stat-card {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 16px;
    width: 300px;
    background: #f0f4f7;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-sizing: border-box;
}

.pcv2-stat-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcv2-stat-icon--green { background: rgba(108, 173, 103, 0.1); }
.pcv2-stat-icon--blue { background: rgba(104, 146, 254, 0.1); }
.pcv2-stat-icon--yellow { background: rgba(217, 189, 43, 0.16); }

.pcv2-stat-icon img {
    width: 24px;
    height: 24px;
    display: block;
}

.pcv2-stat-icon i {
    font-size: 20px;
    line-height: 1;
}

.pcv2-stat-icon span {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcv2-stat-icon span svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.pcv2-stat-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.pcv2-stat-value-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.pcv2-stat-value {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.4;
    color: #161e23;
    margin: 0;
}

.pcv2-stat-suffix {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(22, 30, 35, 0.75);
}

.pcv2-stat-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(22, 30, 35, 0.75);
    margin: 0;
}

/* ── CTA buttons ───────────────────────────────────────── */
.pcv2-ctas {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.pcv2-cta-divider {
    width: 300px;
    height: 1px;
    background: rgba(22, 30, 35, 0.1);
}

.pcv2-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pcv2-cta-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    width: 300px;
    background: #fa700d;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.6;
    border: none;
    border-radius: 99px;
    cursor: pointer;
    text-decoration: none;
    box-shadow:
        44px 92px 29px 0px rgba(250, 112, 13, 0),
        28px 59px 26px 0px rgba(250, 112, 13, 0.01),
        16px 33px 22px 0px rgba(250, 112, 13, 0.05),
        7px 15px 16px 0px rgba(250, 112, 13, 0.09),
        2px 4px 9px 0px rgba(250, 112, 13, 0.1);
    overflow: clip;
    transition: transform 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.pcv2-cta-primary:hover {
    background: #e5650b;
    transform: scale(1.02);
}

.pcv2-cta-primary img {
    width: 24px;
    height: 24px;
}

.pcv2-cta-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    width: 300px;
    height: 58px;
    background: white;
    color: #fa700d;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.6;
    border: none;
    border-radius: 99px;
    cursor: pointer;
    text-decoration: none;
    box-shadow:
        44px 92px 29px 0px rgba(250, 112, 13, 0),
        28px 59px 26px 0px rgba(250, 112, 13, 0.01),
        16px 33px 22px 0px rgba(250, 112, 13, 0.05),
        7px 15px 16px 0px rgba(250, 112, 13, 0.09),
        2px 4px 9px 0px rgba(250, 112, 13, 0.1);
    overflow: clip;
    transition: transform 0.2s ease;
    box-sizing: border-box;
}

.pcv2-cta-secondary:hover {
    transform: scale(1.02);
}

/* ── Modal ─────────────────────────────────────────────── */
.pcv2-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 9999;
}

.pcv2-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    width: 90%;
    max-width: 900px;
    height: 85%;
    padding: 60px 40px 40px;
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
    box-sizing: border-box;
    overflow: hidden;
    z-index: 10000;
}

.pcv2-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
}

.pcv2-modal iframe {
    width: 100%;
    height: calc(100% - 40px);
    border: none;
}

/* ── Responsive: tablet ────────────────────────────────── */
@media (max-width: 1200px) {
    .pcv2-hero {
        padding: 40px 32px;
        min-height: auto;
    }

    .pcv2-watermark {
        font-size: 400px;
    }

    .pcv2-content {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        width: 100%;
    }

    .pcv2-left {
        height: auto;
        width: 100%;
        min-width: 0;
        gap: 32px;
        align-items: center;
        text-align: center;
    }

    .pcv2-title {
        font-size: 56px;
    }

    .pcv2-description {
        max-width: 100%;
    }

    .pcv2-product-center {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 400px;
        height: auto;
    }

    .pcv2-viewer {
        width: 100%;
        height: 500px;
    }

    .pcv2-right {
        height: auto;
        width: 100%;
        gap: 32px;
        align-items: center;
    }

    .pcv2-stats {
        align-items: center;
    }

    .pcv2-stats-heading {
        text-align: center;
    }

    .pcv2-styles {
        width: 100%;
        min-width: 0;
    }

    .pcv2-styles-row {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ── Responsive: mobile ────────────────────────────────── */
@media (max-width: 768px) {
    .pcv2-outer {
        padding: 0;
    }

    .pcv2-hero {
        border-radius: 24px;
        padding: 32px 20px;
        gap: 28px;
        align-items: stretch;
    }

    .pcv2-watermark {
        display: none;
    }

    .pcv2-content {
        display: contents;
    }

    .pcv2-left {
        display: contents;
    }

    .pcv2-title-group { order: 1; }
    .pcv2-product-center { order: 2; align-self: center; max-width: none; }
    .pcv2-styles { order: 3; }
    .pcv2-right { order: 4; }

    .pcv2-title-group {
        text-align: left;
    }

    .pcv2-title {
        font-size: 36px;
    }

    .pcv2-description {
        font-size: 14px;
        max-width: 100%;
    }

    .pcv2-viewer {
        height: 380px;
    }

    .pcv2-styles {
        width: 100%;
        min-width: 0;
        gap: 12px;
    }

    .pcv2-styles-label {
        font-size: 16px;
        text-align: left;
    }

    .pcv2-styles-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        gap: 6px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .pcv2-styles-row::-webkit-scrollbar {
        display: none;
    }

    .pcv2-style-thumb img {
        width: 52px;
        height: 78px;
    }

    .pcv2-style-thumb--active img {
        width: 62px;
        height: 93px;
        border-color: rgba(22, 30, 35, 0.12);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

    .pcv2-right {
        width: 100%;
        height: auto;
        gap: 28px;
        align-items: stretch;
    }

    .pcv2-stats {
        gap: 16px;
    }

    .pcv2-stats-heading {
        text-align: left;
        font-size: 20px;
    }

    .pcv2-stat-card {
        width: 100%;
        padding: 14px;
        border-radius: 20px;
    }

    .pcv2-stat-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .pcv2-stat-value {
        font-size: 20px;
    }

    .pcv2-ctas {
        width: 100%;
        gap: 20px;
    }

    .pcv2-cta-divider {
        width: 100%;
        max-width: none;
    }

    .pcv2-cta-buttons {
        width: 100%;
    }

    .pcv2-cta-primary,
    .pcv2-cta-secondary {
        width: 100%;
        max-width: none;
    }

    .pcv2-modal-content {
        width: 95%;
        height: 90%;
        padding: 40px 20px 20px;
        border-radius: 20px;
    }
}
