.wcmoc-calculator {
    --wcmoc-ink: #111827;
    --wcmoc-muted: #64748b;
    --wcmoc-line: #d7dde7;
    --wcmoc-soft: #f6f8fb;
    --wcmoc-soft-2: #eef8f5;
    --wcmoc-brand: #b91c1c;
    --wcmoc-brand-dark: #7f1d1d;
    --wcmoc-accent: #0f766e;
    --wcmoc-warm: #f59e0b;
    --wcmoc-radius: 8px;
    color: var(--wcmoc-ink);
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    font-family: inherit;
}

.wcmoc-calculator * {
    box-sizing: border-box;
}

.wcmoc-shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
    gap: 18px;
    align-items: start;
}

.wcmoc-showcase,
.wcmoc-panel {
    border: 1px solid var(--wcmoc-line);
    border-radius: var(--wcmoc-radius);
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.wcmoc-showcase {
    position: sticky;
    top: 18px;
}

.wcmoc-image-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 310px;
    padding: 24px;
    background:
        radial-gradient(circle at 72% 18%, rgba(245, 158, 11, 0.16), transparent 30%),
        linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
}

.wcmoc-image-stage::after {
    content: "";
    position: absolute;
    left: 14%;
    right: 14%;
    bottom: 24px;
    height: 22px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.13);
    filter: blur(10px);
}

.wcmoc-image-stage img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 420px;
    max-height: 320px;
    object-fit: contain;
    transform: translateY(0);
    transition: transform 280ms ease, opacity 220ms ease;
}

.wcmoc-image-stage img.is-loading {
    opacity: 0.25;
    transform: translateY(8px) scale(0.985);
}

.wcmoc-product-summary {
    padding: 20px 22px 24px;
    background: #fff;
}

.wcmoc-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.wcmoc-product-summary h3 {
    margin: 12px 0 10px;
    color: var(--wcmoc-ink);
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.16;
    font-weight: 900;
}

.wcmoc-hero-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 10px;
    color: var(--wcmoc-brand);
    font-weight: 900;
}

.wcmoc-hero-price span {
    font-size: clamp(30px, 4.2vw, 44px);
    line-height: 1;
}

.wcmoc-hero-price small {
    color: var(--wcmoc-muted);
    font-size: 13px;
    font-weight: 800;
}

.wcmoc-product-summary p {
    margin: 0;
    color: var(--wcmoc-muted);
    font-size: 14px;
    line-height: 1.55;
}

.wcmoc-panel {
    padding: 18px;
}

.wcmoc-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 14px;
}

.wcmoc-field {
    display: grid;
    gap: 7px;
    font-size: 14px;
    font-weight: 800;
    color: var(--wcmoc-ink);
}

.wcmoc-product-picker {
    grid-column: 1 / -1;
}

.wcmoc-field select,
.wcmoc-field input,
.wcmoc-lead-form input,
.wcmoc-lead-form select,
.wcmoc-lead-form textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--wcmoc-line);
    border-radius: 7px;
    background: #fff;
    color: var(--wcmoc-ink);
    font: inherit;
    font-size: 15px;
    padding: 10px 12px;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.wcmoc-field select:focus,
.wcmoc-field input:focus,
.wcmoc-lead-form input:focus,
.wcmoc-lead-form select:focus,
.wcmoc-lead-form textarea:focus {
    border-color: var(--wcmoc-accent);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.wcmoc-empty-message {
    grid-column: 1 / -1;
    margin: 0;
    padding: 10px 12px;
    border-left: 4px solid var(--wcmoc-warm);
    background: #fffbeb;
    color: #78350f;
    font-size: 14px;
    font-weight: 700;
}

.wcmoc-product-select-hidden {
    display: none;
}

.wcmoc-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--wcmoc-line);
    border-radius: var(--wcmoc-radius);
}

.wcmoc-price-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
}

.wcmoc-price-table th,
.wcmoc-price-table td {
    border-bottom: 1px solid var(--wcmoc-line);
    padding: 13px 14px;
    color: var(--wcmoc-ink);
    font-size: 16px;
    line-height: 1.38;
    vertical-align: middle;
}

.wcmoc-price-table thead th {
    background: #111827;
    color: #fff;
    font-weight: 900;
    text-align: left;
}

.wcmoc-price-table thead th:last-child,
.wcmoc-price-table td:last-child,
.wcmoc-price-table tfoot th:last-child {
    width: 170px;
    text-align: right;
    white-space: nowrap;
}

.wcmoc-price-table tbody tr:nth-child(even) td {
    background: var(--wcmoc-soft-2);
}

.wcmoc-price-table tbody tr:last-child td {
    border-bottom: 0;
}

.wcmoc-price-table tfoot th {
    border-top: 1px solid var(--wcmoc-line);
    padding: 14px;
    background: #fff7ed;
    color: #111827;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
    text-align: left;
}

.wcmoc-price-table tfoot th:last-child {
    color: var(--wcmoc-brand);
    font-size: 19px;
}

.wcmoc-lead-form {
    margin: 16px 0 0;
    padding: 16px;
    border: 1px solid #f0d6d6;
    border-radius: var(--wcmoc-radius);
    background: linear-gradient(180deg, #fff 0%, #fff7f7 100%);
}

.wcmoc-form-head {
    display: grid;
    gap: 4px;
    margin: 0 0 12px;
}

.wcmoc-form-head span {
    color: var(--wcmoc-brand);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.wcmoc-form-head strong {
    color: var(--wcmoc-ink);
    font-size: 18px;
    line-height: 1.3;
}

.wcmoc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wcmoc-form-grid label {
    display: grid;
    gap: 7px;
    color: var(--wcmoc-ink);
    font-size: 14px;
    font-weight: 800;
}

.wcmoc-form-grid label:last-child {
    grid-column: 1 / -1;
}

.wcmoc-lead-form textarea {
    min-height: 86px;
    resize: vertical;
}

.wcmoc-hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.wcmoc-lead-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin-top: 13px;
    border: 0;
    border-radius: 7px;
    background: var(--wcmoc-brand);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 900;
    transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.wcmoc-lead-form button:hover {
    background: var(--wcmoc-brand-dark);
    box-shadow: 0 10px 24px rgba(185, 28, 28, 0.24);
    transform: translateY(-1px);
}

.wcmoc-lead-form button:disabled {
    cursor: wait;
    opacity: 0.74;
    transform: none;
    box-shadow: none;
}

.wcmoc-form-message {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 800;
}

.wcmoc-form-message.is-pending {
    background: #f8fafc;
    color: var(--wcmoc-muted);
}

.wcmoc-form-message.is-success {
    background: #ecfdf5;
    color: #047857;
}

.wcmoc-form-message.is-error {
    background: #fef2f2;
    color: #b91c1c;
}

.wcmoc-message {
    padding: 12px 14px;
    border-left: 4px solid var(--wcmoc-warm);
    background: #fff8e5;
}

.wcmoc-is-updating .wcmoc-hero-price,
.wcmoc-is-updating .wcmoc-price-table,
.wcmoc-is-updating .wcmoc-product-summary h3 {
    animation: wcmoc-soft-pop 360ms ease;
}

@keyframes wcmoc-soft-pop {
    0% {
        opacity: 0.45;
        transform: translateY(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .wcmoc-shell {
        grid-template-columns: 1fr;
    }

    .wcmoc-showcase {
        position: static;
    }

    .wcmoc-image-stage {
        min-height: 250px;
    }
}

@media (max-width: 640px) {
    .wcmoc-calculator {
        max-width: 100%;
    }

    .wcmoc-shell {
        gap: 12px;
    }

    .wcmoc-panel,
    .wcmoc-product-summary,
    .wcmoc-lead-form {
        padding: 14px;
    }

    .wcmoc-image-stage {
        min-height: 210px;
        padding: 16px;
    }

    .wcmoc-controls,
    .wcmoc-form-grid {
        grid-template-columns: 1fr;
    }

    .wcmoc-price-table {
        min-width: 0;
    }

    .wcmoc-price-table th,
    .wcmoc-price-table td,
    .wcmoc-price-table tfoot th {
        padding: 10px;
        font-size: 14px;
    }

    .wcmoc-price-table thead th:last-child,
    .wcmoc-price-table td:last-child,
    .wcmoc-price-table tfoot th:last-child {
        width: 112px;
    }

    .wcmoc-price-table tfoot th:last-child {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wcmoc-calculator *,
    .wcmoc-calculator *::before,
    .wcmoc-calculator *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
