/**
 * simulator.css
 * Clean & minimal redesign overrides for the Craphts styling simulator.
 * Loaded AFTER style.css; uses higher specificity or !important to override.
 */

/* ===== Custom Properties ===== */
:root {
    --sim-bg: #ffffff;
    --sim-surface: #f5f6f7;
    --sim-border: #e5e7eb;
    --sim-text: #1a1a1a;
    --sim-text-muted: #6b7280;
    --sim-accent: #5fa79d;
    --sim-accent-light: #e8f4f2;
    --sim-radius: 14px;
    --sim-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --sim-transition: 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
    --sim-thumb-min: 90px;
}

/* ===== Layout: sticky-section ===== */
.sticky-section {
    background: var(--sim-bg);
    max-width: 1600px;
    margin: 0 auto;
    border: none;
    box-shadow: none;
    padding-bottom: 20px;
}

/* ===== Canvas / Preview ===== */
.result,
#canvasWrapper {
    background: var(--sim-surface);
    border-radius: var(--sim-radius);
    padding: 20px;
    border: 1px solid var(--sim-border);
    box-shadow: none;
}

#myCanvas {
    border-radius: 10px;
}

/* Canvas label */
.sim-canvas-label {
    font-size: 13px;
    color: var(--sim-text-muted);
    padding: 8px 0 0;
    min-height: 1.4em;
    text-align: center;
}

/* ===== Result choice (SIDE / LOWER labels) ===== */
.result-choice {
    padding: 10px 0;
    font-size: 13px;
    color: var(--sim-text-muted);
    border-bottom: 1px solid var(--sim-border);
    margin-bottom: 12px;
}
.result-choice p {
    margin: 2px 0;
}

/* ===== Price Breakdown ===== */
.sim-price-breakdown {
    padding: 16px 0 8px;
    font-size: 14px;
    color: var(--sim-text);
    line-height: 1.6;
}
.sim-price-breakdown .sim-pb-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 3px 0;
}
.sim-price-breakdown .sim-pb-row.is-discount {
    color: #dc2626;
}
.sim-price-breakdown .sim-pb-row.is-total {
    font-weight: 700;
    font-size: 18px;
    padding-top: 8px;
    margin-top: 6px;
    border-top: 1px solid var(--sim-border);
}
.sim-price-breakdown .sim-pb-row.is-tax-note {
    font-size: 12px;
    color: var(--sim-text-muted);
    justify-content: flex-end;
}
.sim-price-breakdown .sim-pb-label {
    flex: 1;
}
.sim-price-breakdown .sim-pb-value {
    text-align: right;
    white-space: nowrap;
    margin-left: 16px;
}

/* ===== Option Panel ===== */
#design-option {
    box-shadow: none;
    background: var(--sim-bg);
}

/* ===== Option Section Card ===== */
.option-section {
    border: 1px solid var(--sim-border);
    border-radius: var(--sim-radius);
    margin-bottom: 12px;
    background: var(--sim-bg);
    overflow: hidden;
}
.option-section + .option-section {
    border-top: 1px solid var(--sim-border);
    padding-top: 0;
}

/* ===== Accordion Header ===== */
.option_section_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sim-text);
    padding: 16px 20px;
    transition:
        background-color var(--sim-transition),
        color var(--sim-transition);
    user-select: none;
    -webkit-user-select: none;
    background: var(--sim-bg);
}
.option_section_header:hover {
    background: var(--sim-surface);
    color: var(--sim-accent);
}
.option-section.open .option_section_header {
    color: var(--sim-accent);
    border-bottom: 1px solid var(--sim-border);
}

/* Chevron icon */
.accordion_icon,
.accordion_icon span {
    display: inline-block;
    transition: transform 0.3s ease;
    box-sizing: border-box;
}
.accordion_icon {
    position: relative;
    width: 24px;
    height: 24px;
    float: none;
    margin: 0;
    flex-shrink: 0;
}
.accordion_icon span {
    position: absolute;
    background-color: var(--sim-text-muted);
    border-radius: 1px;
    height: 2px;
    width: 10px;
}
.accordion_icon span:nth-of-type(1) {
    top: 11px;
    left: 3px;
    transform: rotate(45deg);
}
.accordion_icon span:nth-of-type(2) {
    top: 11px;
    left: 9px;
    transform: rotate(-45deg);
}
.accordion_icon.active span:nth-of-type(1) {
    transform: rotate(-45deg);
}
.accordion_icon.active span:nth-of-type(2) {
    transform: rotate(45deg);
}

/* Accordion content */
.option_section_content {
    overflow: hidden;
    transition:
        max-height 0.35s ease,
        opacity 0.3s ease;
}
.option_section_flex {
    padding: 12px 16px !important;
}

/* ===== Tier label (.lower-tag) ===== */
.lower-tag {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sim-text);
    background: var(--sim-surface);
    border: 1px solid var(--sim-border);
    border-radius: 8px;
    padding: 8px 14px;
    margin: 16px 0 8px;
}
.lower-tag.l-tag-first {
    margin-top: 4px;
}

/* ===== Category title (.category-ttl) ===== */
.category-ttl {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--sim-text-muted);
    padding: 10px 0 4px;
    margin: 0;
    border-bottom: 1px solid var(--sim-border);
}

/* ===== Price label ===== */
.option_section_flex > .price {
    font-size: 13px;
    font-weight: 600;
    color: var(--sim-accent);
    background: var(--sim-accent-light);
    border-radius: 8px;
    padding: 8px 14px;
    margin: 4px 0 8px;
    display: inline-block;
}
.option_section_flex > .price p {
    margin: 0;
}
.price-ex {
    font-size: 11px;
    font-weight: 400;
    color: var(--sim-text-muted);
    margin-top: 2px;
}

/* ===== Thumbnail Grid (auto-fill dynamic columns) ===== */
#LImg,
#underImg,
#tyImg,
.subImg {
    display: grid !important;
    grid-template-columns: repeat(
        auto-fill,
        minmax(var(--sim-thumb-min), 1fr)
    ) !important;
    gap: 8px !important;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: visible !important;
    white-space: normal !important;
}

/* .category spans full width and itself uses auto-fill grid */
#LImg > .category,
#underImg > .category {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--sim-thumb-min), 1fr));
    gap: 8px;
}

/* Full-width elements span all columns */
#LImg > .category > .category-ttl,
#underImg > .category > .category-ttl,
#LImg > .lower-tag,
#underImg > .lower-tag,
#LImg > .category > .lower-tag,
#underImg > .category > .lower-tag,
#LImg > .price,
#underImg > .price {
    grid-column: 1 / -1;
}

/* Thumbnail items */
#LImg li,
#underImg li,
#tyImg li,
.subImg li {
    display: flex;
    gap: 4px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 9px;
    line-height: 1.3;
    color: var(--sim-text-muted);
    padding: 6px;
    border-radius: 10px;
    border: 2px solid transparent;
    background: var(--sim-surface);
    cursor: pointer;
    transition:
        border-color var(--sim-transition),
        background-color var(--sim-transition),
        box-shadow var(--sim-transition),
        transform 0.15s ease;
    overflow: hidden;
    word-break: break-word;
    white-space: normal;
}
#LImg li img,
#underImg li img,
#tyImg li img,
.subImg li img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin-bottom: 2px;
    transition: transform 0.2s ease;
    box-shadow: none !important;
}

/* Hover */
#LImg li:hover,
#underImg li:hover,
#tyImg li:hover,
.subImg li:hover {
    border-color: var(--sim-border);
    background: var(--sim-bg);
}
#LImg li:hover img,
#underImg li:hover img,
#tyImg li:hover img,
.subImg li:hover img {
    transform: none !important;
}

/* Selected state */
#LImg li.current,
#underImg li.current,
#tyImg li.current,
.subImg li.current {
    border-color: var(--sim-accent);
    background: var(--sim-accent-light);
    box-shadow: 0 0 0 1px var(--sim-accent);
}
#LImg li.current img,
#underImg li.current img,
#tyImg li.current img,
.subImg li.current img {
    transform: none !important;
}

/* Override wizard.css checkmark overlay */
#LImg .current::before,
#underImg .current::before,
#tyImg .current::before,
.subImg .current::before {
    display: none !important;
}

/* Hide the old checkmark SVGs */
#LImg li .check-icon,
#underImg li .check-icon,
#tyImg li .check-icon,
.subImg li .check-icon {
    display: none !important;
}

/* .category block */
.category {
    margin-bottom: 4px !important;
}

/* ===== Body type buttons ===== */
.bodytype {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.type-btn {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    border: 1px solid var(--sim-border);
    border-radius: 10px;
    cursor: pointer;
    transition:
        background-color var(--sim-transition),
        border-color var(--sim-transition),
        color var(--sim-transition);
    color: var(--sim-text-muted);
    background: var(--sim-bg);
}
.type-btn.active,
.type-btn:hover {
    border-color: var(--sim-accent);
    color: var(--sim-accent);
    background: var(--sim-accent-light);
}

/* ===== CTA Buttons ===== */
.cow-next,
.first-btn,
#to-confirm {
    display: inline-block;
    background: var(--sim-accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color var(--sim-transition),
        transform 0.1s ease,
        box-shadow var(--sim-transition);
    text-align: center;
    box-shadow: 0 4px 14px rgba(95, 167, 157, 0.3);
}
.cow-next:hover,
.first-btn:hover,
#to-confirm:hover {
    background: #4e9189;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(95, 167, 157, 0.4);
}
.cow-next:active,
.first-btn:active,
#to-confirm:active {
    transform: translateY(0);
}
.cow-next:disabled,
.first-btn:disabled,
#to-confirm:disabled {
    background: #c8d1d0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Desktop: option-info-btn layout */
.option-info-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    flex-wrap: wrap;
}
.option-info-btn #to-confirm {
    flex: 1;
    min-width: 200px;
}

/* ===== Checkbox styling ===== */
.checkboxItem,
.checkboxItem2,
.option-add {
    font-size: 13px;
    color: var(--sim-text);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

/* ===== Discount row ===== */
#discount {
    transition: opacity var(--sim-transition);
}
#discount.is-hidden {
    opacity: 0;
    pointer-events: none;
}

/* ===== Construction / sekou ===== */
.sekou {
    padding: 8px 0;
}

/* ===== Save / utility buttons ===== */
#save-image-btn {
    background: var(--sim-surface);
    border: 1px solid var(--sim-border);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color var(--sim-transition);
}
#save-image-btn:hover {
    background: var(--sim-border);
}

/* ===== Zoom canvas ===== */
#zoomCanvas {
    border-radius: 50%;
    border: 3px solid var(--sim-bg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ===== Loading spinner ===== */
#loading-spinner {
    border-radius: var(--sim-radius);
}

/* ===== Expand button ===== */
.expand {
    display: none;
}

/* ===== sim-attentions ===== */
.sim-attentions .btn-ghost {
    font-size: 12px;
    color: var(--sim-text-muted);
    background: none;
    border: 1px solid var(--sim-border);
    border-radius: 8px;
    padding: 6px 14px;
    cursor: pointer;
    transition:
        border-color var(--sim-transition),
        color var(--sim-transition);
}
.sim-attentions .btn-ghost:hover {
    border-color: var(--sim-accent);
    color: var(--sim-accent);
}

/* ==========================================================
   MOBILE (max-width: 899px)
   ========================================================== */
@media (max-width: 899px) {
    :root {
        --sim-thumb-min: 72px;
    }

    /* --- Sticky section: single column --- */
    .sticky-section {
        display: flex !important;
        flex-direction: column !important;
        min-width: 100% !important;
        min-height: auto !important;
    }

    /* --- Canvas: sticky at top, compact --- */
    .result,
    #canvasWrapper {
        position: sticky !important;
        top: 0 !important;
        z-index: 150;
        padding: 8px 12px 0 !important;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        background: var(--sim-bg);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        max-height: none;
        overflow: visible;
    }

    /* Canvas itself: constrained height */
    #myCanvas {
        max-height: 32vh;
        width: 100% !important;
        object-fit: contain;
    }

    /* Hide info inside canvas area on mobile — bottom bar shows this */
    .result-choice,
    .sim-price-breakdown,
    #save-image-btn {
        display: none !important;
    }

    /* Hide the original confirm button on mobile — bottom bar replaces it */
    .option-info-btn {
        display: none !important;
    }

    /* --- Options panel --- */
    #design-option {
        border-left: none;
        padding-top: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }

    .option-wrap {
        padding: 0 10px;
    }

    /* Accordion header compact */
    .option_section_header {
        padding: 12px 14px;
        font-size: 12px;
    }
    .option_section_flex {
        padding: 10px 12px !important;
    }

    /* Tier label compact */
    .lower-tag {
        font-size: 10px;
        padding: 6px 10px;
        margin: 10px 0 6px;
    }
    .category-ttl {
        font-size: 11px;
        padding: 8px 0 4px;
    }

    /* Thumbnail items: ensure touch targets */
    #LImg li,
    #underImg li,
    #tyImg li,
    .subImg li {
        min-height: 48px;
        padding: 4px;
        font-size: 8px;
    }

    /* Body bottom padding for fixed bar */
    body.page-order {
        padding-bottom: 80px;
    }

    /* Hide design info on canvas */
    .design-info {
        display: none;
    }
}

/* --- Mobile Bottom Bar (enhanced) --- */
.sim-mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--sim-bg);
    border-top: 1px solid var(--sim-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 0;
    display: none;
}
@media (max-width: 899px) {
    .sim-mobile-bar {
        display: flex;
        flex-direction: column;
    }
}

/* Top row: selected info */
.sim-mb-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    font-size: 11px;
    color: var(--sim-text-muted);
    border-bottom: 1px solid var(--sim-border);
    background: var(--sim-surface);
    gap: 8px;
}
.sim-mb-info span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Bottom row: price + CTA */
.sim-mb-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    gap: 12px;
}
.sim-mb-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--sim-text);
    line-height: 1.2;
    letter-spacing: -0.5px;
}
.sim-mb-price small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--sim-text-muted);
    letter-spacing: 0;
}
.sim-mb-cta {
    background: var(--sim-accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition:
        background-color var(--sim-transition),
        transform 0.1s ease;
    min-height: 50px;
    box-shadow: 0 4px 14px rgba(95, 167, 157, 0.3);
    flex-shrink: 0;
}
.sim-mb-cta:hover {
    background: #4e9189;
}
.sim-mb-cta:active {
    transform: scale(0.97);
}
.sim-mb-cta:disabled {
    background: #c8d1d0;
    cursor: not-allowed;
    box-shadow: none;
}

/* Safe area for iPhones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .sim-mobile-bar {
        padding-bottom: env(safe-area-inset-bottom);
    }
    @media (max-width: 899px) {
        body.page-order {
            padding-bottom: calc(80px + env(safe-area-inset-bottom));
        }
    }
}

/* ==========================================================
   CONSTRUCTION OPTION CARD
   ========================================================== */
.sim-construction-card {
    position: relative;
    border-radius: var(--sim-radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--sim-border);
    transition:
        border-color 0.3s,
        box-shadow 0.3s;
    margin-top: 8px;
}
.sim-construction-card:hover {
    border-color: var(--sim-accent);
    box-shadow: 0 4px 16px rgba(95, 167, 157, 0.18);
}
.sim-construction-card.is-selected {
    border-color: var(--sim-accent);
    box-shadow: 0 0 0 3px rgba(95, 167, 157, 0.25);
}

/* background image */
.sim-construction-card__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.sim-construction-card__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sim-construction-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.25) 55%,
        rgba(0, 0, 0, 0.1) 100%
    );
    transition: background 0.3s;
}
.sim-construction-card.is-selected .sim-construction-card__overlay {
    background: linear-gradient(
        to top,
        rgba(14, 100, 90, 0.82) 0%,
        rgba(14, 100, 90, 0.3) 55%,
        rgba(14, 100, 90, 0.1) 100%
    );
}

/* check icon */
.sim-construction-card__check {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.25s;
}
.sim-construction-card.is-selected .sim-construction-card__check {
    background: var(--sim-accent);
    border-color: var(--sim-accent);
    color: #fff;
}

/* body */
.sim-construction-card__body {
    position: relative;
    z-index: 2;
    padding: 70px 20px 30px;
    color: #fff;
}
.sim-construction-card__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}
.sim-construction-card__title {
    font-size: 18px;
    font-weight: 800;
}
.sim-construction-card__price {
    font-size: 18px;
    font-weight: 800;
}
.sim-construction-card__price small {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
}
.sim-construction-card__desc {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.85;
    margin: 0 0 8px;
}
.sim-construction-card__link {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    text-align: right;
    float: right;
    transition: color 0.2s;
}
.sim-construction-card__link:hover {
    color: #fff;
    text-decoration: underline;
}

/* mobile */
@media (max-width: 899px) {
    .sim-construction-card__body {
        padding: 80px 16px 14px;
    }
    .sim-construction-card__title {
        font-size: 15px;
    }
    .sim-construction-card__price {
        font-size: 15px;
    }
    .sim-construction-card__desc {
        font-size: 12px;
    }
    .sim-lettering-card__require {
        font-size: 10px;
    }
}

/* ==========================================================
   LETTERING OPTION CARD
   ========================================================== */
.sim-lettering-card {
    margin-top: 10px;
}
.sim-lettering-card__bg {
    background: url("../img/front/lettering.png") center/cover no-repeat;
}
.sim-lettering-card__overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.15) 55%,
        rgba(0, 0, 0, 0.05) 100%
    ) !important;
}
.sim-lettering-card.is-selected .sim-lettering-card__overlay {
    background: linear-gradient(
        to top,
        rgba(14, 100, 90, 0.82) 0%,
        rgba(14, 100, 90, 0.3) 55%,
        rgba(14, 100, 90, 0.1) 100%
    ) !important;
}
.sim-lettering-card__require {
    display: inline-block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
    transition: opacity 0.25s;
}
.sim-lettering-card:not(.is-disabled) .sim-lettering-card__require {
    display: none;
}

/* Disabled state */
.sim-lettering-card.is-disabled {
    cursor: not-allowed;
    opacity: 0.45;
    filter: grayscale(0.4);
    pointer-events: none;
}
.sim-lettering-card.is-disabled .sim-construction-card__link {
    pointer-events: auto;
}

/* ==========================================================
   LARGE DESKTOP (min-width: 1200px)
   ========================================================== */
@media (min-width: 1200px) {
    :root {
        --sim-thumb-min: 100px;
    }
}

/* ==========================================================
   ORDER FLOW — STEP 2 (Confirmation) & STEP 3 (Form)
   ========================================================== */

/* --- Progress bar refinement --- */
#cow-progress.cow-progress {
    max-width: 560px;
    margin: 24px auto 36px;
}
#cow-progress .step-dot .label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
#cow-progress .step-dot::before {
    height: 3px;
    border-radius: 3px;
    width: 80%;
}
#cow-progress .step-dot.active::before {
    background: var(--sim-accent);
}
#cow-progress .step-dot.done::before {
    background: var(--sim-accent);
}
#cow-progress .step-dot.active .label {
    color: var(--sim-text);
}
#cow-progress .step-dot.done .label {
    color: var(--sim-accent);
}

/* --- Section headings --- */
.confirm-heading,
.form-heading {
    font-size: 18px;
    font-weight: 800;
    color: var(--sim-text);
    letter-spacing: 0.02em;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--sim-text);
}

/* --- STEP 2: Confirmation layout --- */
.cow-confirm {
    max-width: 880px;
    margin: 0 auto;
    gap: 32px;
    align-items: start;
}

/* Preview image: full left column */
.cow-confirm #confirm-preview {
    width: 100%;
    height: auto;
    border-radius: var(--sim-radius);
    background: var(--sim-surface);
    border: 1px solid var(--sim-border);
    object-fit: contain;
}

/* Right column: confirm-list + confirm-result */
.cow-confirm .confirm-list {
    grid-column: 2;
}
.cow-confirm .confirm-result {
    grid-column: 2;
}

/* Design confirm cards */
.design-confirm {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    margin: 0 0 12px;
    border: 1px solid var(--sim-border);
    border-radius: 12px;
    background: var(--sim-bg);
    transition: border-color var(--sim-transition);
}
.design-confirm:hover {
    border-color: #d1d5db;
}
.design-confirm p {
    margin: 0;
}

/* Confirm text styling */
.confirm-text p:first-child {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sim-text-muted);
    margin-bottom: 4px;
}
.confirm-text div {
    font-size: 14px;
    font-weight: 600;
    color: var(--sim-text);
}

/* Confirm thumbnail */
.confirm-thumb {
    max-width: 80px;
    border-radius: 8px;
    margin-top: 8px;
}

/* Price line */
.price-line {
    text-align: right;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 700;
    color: var(--sim-text);
}
.price-line span {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--sim-text-muted);
}

/* Discount card */
#discount {
    border-color: #fecaca;
    background: #fef2f2;
    color: #dc2626;
}
#discount .confirm-text p {
    color: #dc2626;
    font-size: 13px;
}

/* Lettering confirm section */
#confirm-lettering-section {
    flex-wrap: wrap;
}
.confirm-lettering-input {
    margin-top: 10px;
    width: 100%;
}
.confirm-lettering-input label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--sim-text-muted);
    margin-bottom: 6px;
}
.confirm-lettering-input input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--sim-border);
    border-radius: 10px;
    font-size: 15px;
    color: var(--sim-text);
    background: var(--sim-surface);
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
    box-sizing: border-box;
}
.confirm-lettering-input input[type="text"]:focus {
    background: var(--sim-bg);
    border-color: var(--sim-accent);
    box-shadow: 0 0 0 3px rgba(95, 167, 157, 0.15);
}
.confirm-lettering-input input[type="text"]::placeholder {
    color: #a9b7bf;
}

/* Construction section */
#confirm-construction-section {
    flex-wrap: wrap;
    background: var(--sim-surface);
}
#confirm-construction-section .note {
    font-size: 12px;
    color: var(--sim-text-muted);
    margin-top: 8px;
    line-height: 1.6;
}
#option-w100 {
    width: 100%;
    margin-top: 12px;
}
#option-w100 iframe {
    border-radius: 10px;
    margin-top: 8px;
}

/* Shipping row */
#confirm-construction-off {
    background: var(--sim-surface);
}

/* Total result */
.confirm-result {
    border-top: 2px solid var(--sim-text);
    padding: 20px 0 8px;
    margin-top: 8px;
}
.confirm-result #confirm-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--sim-text);
    text-align: right;
    margin: 0;
}
.confirm-result #confirm-price .ex {
    display: block;
}
.confirm-result #confirm-price .inc-note {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--sim-text-muted);
}

/* --- Navigation buttons --- */
.cow-nav {
    max-width: 880px;
    margin: 32px auto 48px;
    display: flex;
    gap: 12px;
    justify-content: center;
}
.cow-nav button {
    padding: 14px 0;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 280px;
    transition:
        background-color var(--sim-transition),
        transform var(--sim-transition),
        box-shadow var(--sim-transition);
}
.cow-nav .cow-next {
    background: var(--sim-accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(95, 167, 157, 0.3);
}
.cow-nav .cow-next:hover {
    background: #4e9189;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(95, 167, 157, 0.4);
}
.cow-nav .cow-prev {
    background: var(--sim-bg) !important;
    border: 1px solid var(--sim-border) !important;
    color: var(--sim-text-muted) !important;
}
.cow-nav .cow-prev:hover {
    border-color: #d1d5db !important;
    color: var(--sim-text) !important;
    background: var(--sim-surface) !important;
}

/* --- STEP 3: Order form --- */
.order-summary-mini {
    max-width: 760px;
    margin: 0 auto 32px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px 28px;
    padding: 24px;
    border: 1px solid var(--sim-border);
    border-radius: var(--sim-radius);
    background: var(--sim-bg);
}
.order-summary-mini__preview img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    background: var(--sim-surface);
}
.order-summary-mini__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--sim-border);
    font-size: 14px;
}
.order-summary-mini__row:last-child {
    border-bottom: none;
}
.order-summary-mini__label {
    font-weight: 600;
    color: var(--sim-text);
}
.order-summary-mini__sub {
    font-size: 12px;
    color: var(--sim-text-muted);
    margin-left: 0.4em;
}
.order-summary-mini__price {
    font-weight: 600;
    white-space: nowrap;
    font-feature-settings: "tnum";
}
.order-summary-mini__row.is-discount .order-summary-mini__price {
    color: #dc2626;
}
.order-summary-mini__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid var(--sim-text);
    font-size: 20px;
    font-weight: 800;
}

/* Form container */
.cow-forms {
    max-width: 760px;
    margin: 0 auto;
}
.cow-form {
    background: var(--sim-bg);
    border: 1px solid var(--sim-border);
    border-radius: var(--sim-radius);
    padding: 32px;
}

/* Form groups */
.cow-form .form-group {
    margin-bottom: 20px;
}
.cow-form .form-group > label:first-child {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--sim-text);
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}
.cow-form .form-group .require {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    color: #fff;
    background: var(--sim-accent);
    vertical-align: middle;
}

/* Text inputs */
.cow-form input[type="text"],
.cow-form input[type="email"],
.cow-form input[type="tel"],
.cow-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--sim-border);
    border-radius: 10px;
    font-size: 15px;
    color: var(--sim-text);
    background: var(--sim-surface);
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
    box-sizing: border-box;
}
.cow-form input::placeholder,
.cow-form textarea::placeholder {
    color: #a9b7bf;
}
.cow-form input:focus,
.cow-form textarea:focus {
    background: var(--sim-bg);
    border-color: var(--sim-accent);
    box-shadow: 0 0 0 3px rgba(95, 167, 157, 0.15);
}
.cow-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Radio buttons */
.cow-form .form-group label:has(input[type="radio"]) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    margin-right: 8px;
    margin-bottom: 4px;
    border: 1px solid var(--sim-border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--sim-text-muted);
    cursor: pointer;
    transition:
        border-color var(--sim-transition),
        color var(--sim-transition),
        background-color var(--sim-transition);
}
.cow-form .form-group label:has(input[type="radio"]:checked) {
    border-color: var(--sim-accent);
    color: var(--sim-accent);
    background: var(--sim-accent-light);
}
.cow-form .form-group label:has(input[type="radio"]):hover {
    border-color: var(--sim-accent);
}
.cow-form input[type="radio"] {
    accent-color: var(--sim-accent);
}

/* Agree section */
.agree-section {
    margin-top: 28px;
    border: 1px solid var(--sim-border);
    border-radius: var(--sim-radius);
    overflow: hidden;
}
.agree-heading {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    padding: 14px 18px;
    background: var(--sim-surface);
    border-bottom: 1px solid var(--sim-border);
}
.agree-scroll {
    max-height: 280px;
    overflow-y: auto;
    padding: 18px 20px;
    font-size: 12px;
    line-height: 1.8;
    color: var(--sim-text-muted);
    -webkit-overflow-scrolling: touch;
}
.agree-scroll h2 {
    font-size: 13px;
    font-weight: 700;
    color: var(--sim-text);
    margin: 20px 0 8px;
    padding: 0;
    border: none;
}
.agree-scroll h2:first-child {
    margin-top: 0;
}
.agree-scroll ol {
    padding-left: 1.4em;
    margin: 6px 0 0;
    list-style-type: decimal;
}
.agree-scroll ol li {
    margin-bottom: 4px;
}
.agree-scroll p {
    margin: 6px 0;
}
.agree-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--sim-surface);
    border-top: 1px solid var(--sim-border);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--sim-text);
    transition: background 0.2s;
}
.agree-check:hover {
    background: var(--sim-accent-light);
}
.agree-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--sim-accent);
    cursor: pointer;
    flex-shrink: 0;
}

/* Submit button */
.cow-submit:disabled,
.submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.cow-submit,
.submit-btn {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 28px auto 0;
    padding: 16px;
    background: var(--sim-accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition:
        background-color var(--sim-transition),
        transform 0.1s ease,
        box-shadow var(--sim-transition);
    box-shadow: 0 6px 20px rgba(95, 167, 157, 0.3);
}
.cow-submit:hover,
.submit-btn:hover {
    background: #4e9189;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(95, 167, 157, 0.4);
}
.cow-submit:active,
.submit-btn:active {
    transform: translateY(0);
}

/* --- Order flow mobile --- */
@media (max-width: 899px) {
    .cow-confirm {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 12px;
    }
    .cow-confirm .confirm-list {
        grid-column: 1;
    }
    .cow-confirm .confirm-result {
        grid-column: 1;
    }
    .confirm-result #confirm-price {
        font-size: 22px;
    }
    .design-confirm {
        padding: 14px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .confirm-thumb {
        max-width: 60px;
    }
    .cow-nav {
        flex-direction: column-reverse;
        padding: 0 12px;
        gap: 10px;
    }
    .cow-nav button {
        width: 100%;
        font-size: 16px;
        min-height: 52px;
    }
    .order-summary-mini {
        grid-template-columns: 1fr;
        padding: 16px;
        margin-left: 12px;
        margin-right: 12px;
    }
    .cow-form {
        padding: 20px 16px;
        margin: 0 12px;
        border-radius: 12px;
    }
    .cow-form .form-group label:has(input[type="radio"]) {
        display: flex;
        margin-right: 0;
        margin-bottom: 8px;
    }
}
.lower-tag img {
    box-shadow: none !important;
    pointer-events: none;
}
