/* =========================
   CHECK ORDER BODY OVERRIDES
========================= */

.check-order-body {
    --check-order-header-height: 96px;
}

.check-order-body .site-main {
    position: relative;
    padding: 0;
}

.check-order-body .site-main > .site-container {
    width: 100%;
    max-width: none;
    margin: 0;
}

.check-order-body .site-footer {
    margin-top: 0;
}

.check-order-body .messages-stack {
    position: absolute;
    top: 18px;
    left: 50%;
    z-index: 30;
    width: min(520px, calc(100% - 32px));
    margin: 0;
    transform: translateX(-50%);
}

/* =========================
   CHECK ORDER PAGE
========================= */

.check-order-page {
    width: 100%;
    min-height: auto;
    margin: 0;
    padding: 0;
    background: #f3f2ee;
    color: #050505;
}

.check-order-wrap {
    width: min(100%, 1360px);
    margin: 0 auto;
    padding:
        clamp(92px, 7vw, 118px)
        clamp(42px, 5vw, 76px)
        clamp(40px, 4vw, 56px);
}

/* =========================
   HEADING
========================= */

.check-order-heading {
    max-width: 760px;
    margin-bottom: clamp(22px, 2vw, 30px);
}

.check-order-heading h1 {
    display: inline-block;
    margin: 0;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(54px, 5vw, 82px);
    font-weight: 400;
    line-height: 0.78;
    letter-spacing: -0.085em;
    text-transform: uppercase;
    transform: scaleX(0.96) scaleY(1.16);
    transform-origin: left bottom;
}

.check-order-heading p {
    margin: clamp(18px, 1.4vw, 22px) 0 0;
    color: rgba(5, 5, 5, 0.58);
    font-size: clamp(13px, 0.95vw, 16px);
    font-weight: 800;
    line-height: 1.35;
}

/* =========================
   CARD / FORM
========================= */

.check-order-card {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: transparent;
}

.check-order-form {
    width: 100%;
    margin: 0;
    padding: clamp(22px, 2.2vw, 30px);
}

.check-order-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    background: rgba(255, 33, 24, 0.08);
    border: 1px solid rgba(255, 33, 24, 0.18);
    color: #b71c1c;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.check-order-alert ul {
    margin: 0;
    padding-left: 17px;
}

.check-order-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(220px, 300px);
    align-items: start;
    gap: clamp(20px, 2vw, 30px);
}

.check-order-field {
    min-width: 0;
}

.check-order-field label {
    display: block;
    margin-bottom: 12px;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(10px, 0.76vw, 12px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.015em;
    text-transform: uppercase;
}

.check-order-input-wrap {
    width: 100%;
}

.check-order-input-wrap input,
.check-order-input-wrap select,
.check-order-input-wrap textarea {
    width: 100% !important;
    height: clamp(54px, 4.2vw, 64px) !important;
    padding: 0 22px !important;
    border: 1px solid rgba(0, 0, 0, 0.16) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #050505 !important;
    font-size: clamp(15px, 1.05vw, 18px) !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    outline: none !important;
    box-shadow: none !important;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.check-order-input-wrap input::placeholder,
.check-order-input-wrap textarea::placeholder {
    color: #9d9d9d;
    font-size: clamp(15px, 1.05vw, 18px);
    font-weight: 700;
    opacity: 1;
}

.check-order-input-wrap input:focus,
.check-order-input-wrap select:focus,
.check-order-input-wrap textarea:focus {
    border-color: #050505 !important;
    background: rgba(255, 255, 255, 0.22) !important;
    box-shadow: none !important;
}

.check-order-input-wrap input:-webkit-autofill,
.check-order-input-wrap input:-webkit-autofill:hover,
.check-order-input-wrap input:-webkit-autofill:focus,
.check-order-input-wrap input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #f3f2ee inset !important;
    -webkit-text-fill-color: #050505 !important;
    transition: background-color 5000s ease-in-out 0s;
}

.check-order-help {
    margin-top: 8px;
    color: rgba(5, 5, 5, 0.52);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

.check-order-error {
    margin-top: 7px;
    color: #d50000;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.check-order-error ul {
    margin: 0;
    padding-left: 17px;
}

/* =========================
   BUTTON
========================= */

.check-order-action {
    min-width: 0;
    align-self: end;
}

.check-order-submit {
    width: 100%;
    height: clamp(54px, 4.2vw, 64px);
    min-height: clamp(54px, 4.2vw, 64px);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 22px;
    border: 1px solid #ff2118;
    border-radius: 0;
    background: #ff2118;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: clamp(11px, 0.82vw, 14px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.check-order-submit::after {
    content: "→";
    flex: 0 0 auto;
    font-family: Arial, sans-serif;
    font-size: clamp(19px, 1.25vw, 24px);
    font-weight: 900;
    line-height: 1;
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

.check-order-submit:hover {
    border-color: #050505;
    background: #050505;
    color: #ffffff;
}

.check-order-submit:hover::after {
    transform: translate(4px, -1px);
}

.check-order-submit:active {
    transform: translateY(1px);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1400px) {
    .check-order-wrap {
        padding:
            86px
            56px
            52px;
    }

    .check-order-heading h1 {
        font-size: clamp(52px, 5vw, 76px);
    }
}

@media (max-width: 1180px) {
    .check-order-wrap {
        padding:
            56px
            28px
            48px;
    }

    .check-order-heading {
        max-width: 680px;
    }

    .check-order-heading h1 {
        font-size: clamp(48px, 8vw, 70px);
        transform: scaleX(0.96) scaleY(1.1);
    }

    .check-order-form-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .check-order-action {
        grid-column: 1 / -1;
        max-width: 320px;
        align-self: start;
    }
}

@media (max-width: 992px) {
    .check-order-body {
        --check-order-header-height: 84px;
    }

    .check-order-wrap {
        padding:
            48px
            24px
            46px;
    }
}

@media (max-width: 768px) {
    .check-order-body {
        --check-order-header-height: 78px;
    }

    .check-order-wrap {
        padding:
            40px
            18px
            42px;
    }

    .check-order-heading {
        margin-bottom: 24px;
    }

    .check-order-heading h1 {
        font-size: clamp(42px, 10vw, 60px);
        transform: scaleX(0.98) scaleY(1.06);
    }

    .check-order-heading p {
        font-size: 14px;
    }

    .check-order-heading p br {
        display: none;
    }

    .check-order-form {
        padding: 20px 18px;
    }

    .check-order-form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .check-order-action {
        max-width: none;
    }

    .check-order-input-wrap input,
    .check-order-input-wrap select,
    .check-order-input-wrap textarea,
    .check-order-submit {
        min-height: 52px;
        height: 52px !important;
    }
}

@media (max-width: 576px) {
    .check-order-body {
        --check-order-header-height: 72px;
    }

    .check-order-wrap {
        padding:
            34px
            14px
            38px;
    }

    .check-order-heading h1 {
        font-size: clamp(34px, 12vw, 48px);
        transform: none;
        letter-spacing: -0.07em;
    }

    .check-order-heading p {
        font-size: 13px;
    }

    .check-order-form {
        padding: 18px 14px;
    }

    .check-order-field label {
        font-size: 10px;
    }

    .check-order-input-wrap input,
    .check-order-input-wrap select,
    .check-order-input-wrap textarea {
        height: 48px !important;
        padding: 0 16px !important;
        font-size: 14px !important;
    }

    .check-order-help {
        font-size: 10px;
    }

    .check-order-submit {
        min-height: 48px;
        height: 48px !important;
        padding: 0 16px;
        font-size: 11px;
    }
}

@media (max-width: 420px) {
    .check-order-wrap {
        padding:
            30px
            12px
            34px;
    }

    .check-order-heading {
        margin-bottom: 20px;
    }

    .check-order-heading h1 {
        font-size: clamp(30px, 11vw, 40px);
    }

    .check-order-heading p {
        font-size: 12px;
    }

    .check-order-form {
        padding: 16px 12px;
    }

    .check-order-form-grid {
        gap: 16px;
    }

    .check-order-input-wrap input,
    .check-order-input-wrap select,
    .check-order-input-wrap textarea,
    .check-order-submit {
        height: 46px !important;
        min-height: 46px;
    }
}

@media (max-width: 380px) {
    .check-order-wrap {
        padding:
            28px
            12px
            32px;
    }

    .check-order-heading h1 {
        font-size: 30px;
    }

    .check-order-submit {
        font-size: 10px;
    }
}