/* =====================================================
   CHECKOUT — refined two-column layout
   Additive styles: safe to append to the active theme CSS.
   ===================================================== */
.checkout-page-container {
    width: min(1060px, calc(100% - 40px));
    margin: 0 auto;
    padding: 58px 0 72px;
}

.checkout-page-intro {
    margin: 0 auto 34px;
    max-width: 1060px;
}

.checkout-page-kicker,
.checkout-card-kicker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.checkout-page-title {
    margin: 0;
    font-size: clamp(34px, 5vw, 64px);
    line-height: .98;
    font-weight: 700;
    max-width: 760px;
}

.checkout-page-subtitle {
    margin: 16px 0 0;
    max-width: 640px;
    font-size: 16px;
    line-height: 1.5;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.checkout-order-card,
.checkout-form-column {
    border-radius: 12px;
    box-sizing: border-box;
}

.checkout-order-card {
    padding: 30px;
    background: #fff7df;
}

.checkout-form-column {
    min-width: 0;
}

.checkout-form-column .w-form {
    margin: 0;
}

.checkout-order-item {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0;
    border-top: 1px solid rgba(0,0,0,.1);
}

.checkout-order-name {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.checkout-order-meta {
    margin-top: 6px;
    font-size: 14px;
    opacity: .7;
}

.checkout-order-price {
    white-space: nowrap;
    font-size: 18px;
    font-weight: 600;
}

.checkout-order-price .woocommerce-Price-currencySymbol {
    margin-left: 2px;
}

.checkout-order-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 18px;
    padding-top: 22px;
    border-top: 1px solid rgba(0,0,0,.16);
    font-size: 17px;
}

.checkout-order-total strong {
    font-size: 24px;
    font-weight: 700;
}

.checkout-order-empty {
    padding-top: 14px;
    opacity: .7;
}

/* Keep the existing form visually consistent. */
.checkout-form-wrapper input.checkout-form-field,
.checkout-form-wrapper textarea.checkout-form-field,
.checkout-form-column input.checkout-form-field,
.checkout-form-column textarea.checkout-form-field {
    border-radius: 8px !important;
    box-sizing: border-box;
}

.checkout-form-column textarea.checkout-form-field {
    min-height: 110px !important;
    height: 110px !important;
    padding: 14px 16px !important;
    resize: vertical;
}

.checkout-form-column .checkout-img {
    display: none !important;
}

.checkout-form-column .checkout-btn {
    margin-top: 18px !important;
}

@media screen and (max-width: 820px) {
    .checkout-page-container {
        width: min(100% - 28px, 680px);
        padding: 38px 0 48px;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .checkout-order-card {
        padding: 24px;
    }

    .checkout-page-title {
        font-size: 40px;
    }
}
/* Checkout v2 — добавьте в конец cheese-cracker/css/custom.css */
.checkout-layout{display:grid;grid-template-columns:minmax(280px,380px) minmax(0,1fr);gap:28px;align-items:start;max-width:1060px;margin:0 auto}
.checkout-hero{max-width:1060px;margin:0 auto 28px}
.checkout-kicker{font-size:12px;font-weight:600;letter-spacing:.08em;opacity:.55;margin-bottom:10px}
.checkout-hero h1{margin:0 0 12px;font-size:clamp(42px,5vw,72px);line-height:.98;letter-spacing:-.03em}
.checkout-hero p{margin:0;font-size:15px;opacity:.72}
.checkout-order-card,.checkout-form-card{background:#fffaf0;border-radius:14px;padding:24px;box-sizing:border-box}
.checkout-order-card{position:sticky;top:24px}
.checkout-card-label{font-size:13px;font-weight:700;letter-spacing:.05em;margin-bottom:18px}
.checkout-order-image{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px;margin-bottom:18px;background:#eee6d8}
.checkout-order-image-placeholder{display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box;font-size:22px;font-weight:700;text-align:center;color:#6b6254}
.checkout-order-title-row{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.checkout-order-title{font-size:24px;font-weight:700;line-height:1.1}
.checkout-order-meta{font-size:13px;opacity:.65;margin-top:6px}
.checkout-order-price{font-size:18px;font-weight:700;white-space:nowrap}
.checkout-composition{margin-top:20px;border-top:1px solid rgba(0,0,0,.08);border-bottom:1px solid rgba(0,0,0,.08);padding:14px 0}
.checkout-composition summary{cursor:pointer;display:flex;justify-content:space-between;gap:12px;font-weight:600;list-style:none}
.checkout-composition summary::-webkit-details-marker{display:none}
.checkout-composition ul{padding:12px 0 0;margin:0;list-style:none}
.checkout-composition li{display:flex;justify-content:space-between;gap:12px;padding:5px 0;font-size:13px;line-height:1.35}
.checkout-composition li span:last-child{white-space:nowrap;opacity:.6}
.checkout-order-total{display:flex;justify-content:space-between;gap:16px;align-items:baseline;margin-top:20px}
.checkout-order-total span{font-size:15px}
.checkout-order-total strong{font-size:28px}
.checkout-order-saving{margin-top:10px;font-size:13px;font-weight:700}
.checkout-order-saving span{font-weight:400;opacity:.55}
.checkout-empty{padding:8px 0;opacity:.6}
.checkout-form-card{min-height:0}
.checkout-form-card .checkout-form-wrapper{max-width:none}
.checkout-form-card .checkout-img{display:none!important}
.checkout-form-card input.checkout-form-field,.checkout-form-card textarea.checkout-form-field{border-radius:8px!important;box-sizing:border-box}
.checkout-form-card textarea.checkout-form-field{height:110px!important;min-height:110px!important;resize:vertical;padding:14px 16px!important}
@media screen and (max-width:900px){.checkout-layout{grid-template-columns:1fr;max-width:720px}.checkout-order-card{position:static}.checkout-hero h1{font-size:46px}}
@media screen and (max-width:767px){.checkout-layout{gap:16px}.checkout-hero{margin-bottom:18px}.checkout-hero h1{font-size:38px}.checkout-order-card,.checkout-form-card{padding:18px}.checkout-order-title{font-size:22px}}
/* ================================
   Cheese & Cracker — checkout v0.4
   Scoped styles for the checkout page.
   ================================ */

.cc-checkout-container{
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 68px 0 92px;
}

.cc-checkout-hero{
    margin: 0 0 42px;
}

.cc-checkout-eyebrow,
.cc-card-kicker{
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: .08em;
    font-weight: 700;
    color: rgba(24,24,24,.62);
}

.cc-checkout-hero h1{
    margin: 10px 0 14px;
    font-size: clamp(42px, 5vw, 76px);
    line-height: .95;
    letter-spacing: -.035em;
    font-weight: 800;
}

.cc-checkout-hero p{
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(24,24,24,.68);
}

.cc-checkout-grid{
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.cc-order-card,
.cc-form-card{
    background: #fffaf0;
    border-radius: 18px;
    box-sizing: border-box;
}

.cc-order-card{
    padding: 22px;
}

.cc-form-card{
    padding: 30px 32px 34px;
}

.cc-order-image{
    margin: 16px 0 16px;
    overflow: hidden;
    border-radius: 12px;
    background: #eee7da;
    aspect-ratio: 4 / 3;
}

.cc-order-image img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cc-order-topline{
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.cc-order-topline h2{
    margin: 0;
    font-size: 28px;
    line-height: 1.05;
}

.cc-order-meta{
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.35;
    color: rgba(24,24,24,.62);
}

.cc-order-price{
    font-size: 22px;
    font-weight: 750;
    white-space: nowrap;
}

.cc-order-composition{
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(24,24,24,.10);
}

.cc-composition-head{
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 700;
}

.cc-composition-count{
    color: rgba(24,24,24,.50);
    font-weight: 600;
}

.cc-composition-list{
    display: grid;
    gap: 8px;
}

.cc-composition-list > div{
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 13px;
    line-height: 1.25;
    color: rgba(24,24,24,.76);
}

.cc-composition-list b{
    flex: 0 0 auto;
    font-weight: 700;
    color: rgba(24,24,24,.54);
}

.cc-order-total{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(24,24,24,.10);
}

.cc-order-total strong{
    font-size: 30px;
    line-height: 1;
}

.cc-order-saving{
    margin-top: 8px;
    font-size: 12px;
    color: rgba(24,24,24,.55);
}

.cc-order-saving b{
    color: #1d7b3c;
}

.cc-empty{
    padding: 24px 0;
}

/* Form-side polish. Keep selectors narrow so other theme forms are untouched. */
.cc-form-card .checkout-form-wrapper .checkout-form-field.w-input,
.cc-form-card .checkout-form-wrapper input.checkout-form-field,
.cc-form-card .checkout-form-wrapper textarea.checkout-form-field,
.cc-form-card .checkout-section input,
.cc-form-card .checkout-section textarea{
    border-radius: 8px !important;
    box-sizing: border-box;
}

.cc-form-card .checkout-form-wrapper textarea.checkout-form-field.w-input{
    min-height: 110px !important;
    height: 110px !important;
    padding: 14px 16px !important;
    resize: vertical;
}

.cc-form-card .checkout-event-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cc-form-card .checkout-section,
.cc-form-card .section-container{
    min-height: 0 !important;
    height: auto !important;
}

.cc-form-card .checkout-btn{
    margin-top: 18px !important;
}

@media (max-width: 850px){
    .cc-checkout-container{
        width: min(100% - 28px, 680px);
        padding: 42px 0 64px;
    }

    .cc-checkout-grid{
        grid-template-columns: 1fr;
    }

    .cc-form-card{
        padding: 24px;
    }
}

@media (max-width: 560px){
    .cc-checkout-hero h1{
        font-size: 42px;
    }

    .cc-checkout-grid{
        gap: 16px;
    }

    .cc-order-card,
    .cc-form-card{
        border-radius: 14px;
    }

    .cc-order-card{
        padding: 18px;
    }

    .cc-form-card{
        padding: 20px;
    }

    .cc-form-card .checkout-event-grid{
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cc-order-topline{
        flex-direction: column;
    }

    .cc-order-price{
        font-size: 20px;
    }
}/* ==================================================
   CHECKOUT — КАРТОЧКА ЗАКАЗА
   ================================================== */

.checkout-order-layout {
    width: min(100%, 1180px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

/* Левая карточка */
.checkout-order-summary {
    background: #fff8e8 !important;
    border: 0 !important;
    border-radius: 14px !important;
    padding: 24px !important;
    box-sizing: border-box;
}

/* Заголовок */
.checkout-order-summary h2 {
    margin: 0 0 20px !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    text-transform: uppercase;
}

/* Фото */
.checkout-order-image {
    width: 100%;
    aspect-ratio: 1 / 0.78;
    overflow: hidden;
    border-radius: 10px;
    background: #eee6d6;
    margin-bottom: 18px;
}

.checkout-order-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Заглушка вместо битой картинки */
.checkout-order-image.is-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a8174;
    font-size: 16px;
    font-weight: 600;
}

/* Название товара */
.checkout-order-product-name {
    font-size: 21px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 6px;
}

/* Краткая информация */
.checkout-order-meta {
    color: #777;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 18px;
}

/* Что внутри */
.checkout-order-contents {
    border-top: 1px solid rgba(0,0,0,.08);
    border-bottom: 1px solid rgba(0,0,0,.08);
    padding: 16px 0;
    margin-bottom: 16px;
}

.checkout-order-contents-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.checkout-order-contents-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    font-size: 13px;
    line-height: 1.35;
}

.checkout-order-contents-row span:last-child {
    white-space: nowrap;
    color: #777;
}

/* Итог */
.checkout-order-total {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
}

.checkout-order-total-label {
    font-size: 14px;
}

.checkout-order-total-price {
    font-size: 23px;
    line-height: 1;
    font-weight: 700;
}

/* Выгода */
.checkout-order-saving {
    margin-top: 8px;
    font-size: 13px;
    color: #777;
}

.checkout-order-saving strong {
    color: #e5a900;
}

/* Правая форма */
.checkout-order-form {
    min-width: 0;
}

/* На мобильном */
@media screen and (max-width: 900px) {
    .checkout-order-layout {
        grid-template-columns: 1fr;
    }

    .checkout-order-summary {
        max-width: 100%;
    }
}/* ================================================
   CHEESE & CRACKER �� CHECKOUT v0.5
   ================================================ */

.checkout-section .section-container {
    max-width: 1180px !important;
}

.checkout-page-intro {
    max-width: 860px;
    margin: 0 auto 34px;
}

.checkout-kicker {
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: .08em;
    color: #8f8a80;
    margin-bottom: 10px;
}

.checkout-page-intro h1 {
    margin: 0 0 12px !important;
    font-size: clamp(38px, 5vw, 66px) !important;
    line-height: .98 !important;
    letter-spacing: -.035em;
    font-weight: 700 !important;
}

.checkout-page-intro p {
    margin: 0 !important;
    font-size: 16px;
    color: #77736d;
}

.checkout-layout {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(290px, 340px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.checkout-order-card {
    background: #fff7e7 !important;
    border: 0 !important;
    border-radius: 14px !important;
    padding: 24px !important;
    box-sizing: border-box;
}

.checkout-order-title {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: 18px;
}

.checkout-order-image {
    width: 100%;
    aspect-ratio: 1 / .72;
    overflow: hidden;
    border-radius: 10px;
    background: #e9e2d5;
    margin-bottom: 16px;
}

.checkout-order-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.checkout-order-image.is-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a8277;
    font-size: 18px;
    font-weight: 600;
}

.checkout-order-product-head {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: flex-start;
}

.checkout-order-product-name {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.12;
}

.checkout-order-product-meta {
    margin-top: 5px;
    font-size: 13px;
    color: #77736d;
}

.checkout-order-product-price {
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}

.checkout-order-contents {
    border-top: 1px solid rgba(0,0,0,.08);
    margin-top: 18px;
    padding-top: 15px;
}

.checkout-order-contents-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
}

.checkout-order-contents-title span {
    color: #77736d;
    font-weight: 500;
}

.checkout-order-contents-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 0;
    font-size: 12px;
    line-height: 1.3;
    color: #45413c;
}

.checkout-order-contents-row span:last-child {
    flex: 0 0 auto;
    color: #77736d;
}

.checkout-order-total {
    border-top: 1px solid rgba(0,0,0,.08);
    margin-top: 18px;
    padding-top: 17px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 15px;
}

.checkout-order-total-label {
    font-size: 14px;
    color: #45413c;
}

.checkout-order-total-price {
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
}

.checkout-order-saving {
    margin-top: 6px;
    font-size: 12px;
    color: #8b867e;
}

.checkout-order-saving strong {
    color: #d99d00;
}

.checkout-order-empty {
    color: #77736d;
}

.checkout-order-form {
    min-width: 0;
    background: #fff8e9;
    border-radius: 14px;
    padding: 28px;
    box-sizing: border-box;
}

.checkout-order-form .w-form,
.checkout-order-form form.checkout-form,
.checkout-order-form .checkout-form {
    width: 100% !important;
    max-width: none !important;
}

.checkout-order-form .checkout-form-wrapper {
    width: 100%;
    max-width: none;
}

/* 仄�亞从亳亠 仗仂仍�, 弍亠亰 ���亠从�舒 "从舒仗��仍�" */
.checkout-order-form input,
.checkout-order-form textarea {
    border-radius: 7px !important;
}

.checkout-order-form textarea {
    min-height: 110px !important;
    height: 110px !important;
}

/* 亟舒�舒 + 于�亠仄� */
.checkout-order-form .checkout-event-grid {
    grid-template-columns: 1fr 1fr;
}

/* 仆亠 仗仂亰于仂仍�亠仄 ��舒��仄 仗�舒于亳仍舒仄 �舒���亞亳于舒�� 于仆���亠仆仆亳亠 弍仍仂从亳 */
.checkout-order-form .checkout-section,
.checkout-order-form .section-container {
    min-height: 0 !important;
    height: auto !important;
}

@media (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-order-form {
        padding: 22px;
    }

    .checkout-page-intro {
        margin-bottom: 24px;
    }
}

@media (max-width: 620px) {
    .checkout-page-intro h1 {
        font-size: 40px !important;
    }

    .checkout-order-form .checkout-event-grid {
        grid-template-columns: 1fr;
    }
}/* Checkout v0.6 — финальная косметика. Добавить в конец cheese-cracker/css/custom.css */

/* Общая ширина и вертикальный ритм */
.checkout-section .section-container {
    width: min(1180px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
}

.checkout-hero {
    max-width: 1180px;
    margin: 0 auto 30px;
}

.checkout-hero h1 {
    margin: 0 0 14px !important;
    font-size: clamp(44px, 5vw, 68px) !important;
    line-height: .98 !important;
    letter-spacing: -.035em;
}

.checkout-hero p {
    margin: 0 !important;
    font-size: 15px;
    line-height: 1.45;
    opacity: .7;
}

/* Две колонки */
.checkout-layout {
    display: grid !important;
    grid-template-columns: minmax(350px, 390px) minmax(0, 1fr) !important;
    gap: 28px !important;
    align-items: start !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
}

/* Карточки */
.checkout-order-card,
.checkout-form-card {
    background: #fffbf0 !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
}

.checkout-order-card {
    padding: 24px !important;
    position: sticky;
    top: 24px;
}

.checkout-form-card {
    padding: 28px 30px 24px !important;
    min-width: 0 !important;
    min-height: 0 !important;
}

/* Подпись карточки */
.checkout-card-label {
    margin: 0 0 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: .04em;
}

/* Фото */
.checkout-order-image {
    display: block;
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    margin: 0 0 16px !important;
    background: #eee7da !important;
}

.checkout-order-image-placeholder {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #7e7566 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

/* Название / цена */
.checkout-order-title-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 16px !important;
}

.checkout-order-title {
    font-size: 24px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
}

.checkout-order-meta {
    margin-top: 6px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    opacity: .65 !important;
}

.checkout-order-price {
    font-size: 18px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

/* Состав */
.checkout-composition {
    margin-top: 18px !important;
    padding: 14px 0 !important;
    border-top: 1px solid rgba(0,0,0,.08) !important;
    border-bottom: 1px solid rgba(0,0,0,.08) !important;
}

.checkout-composition summary {
    list-style: none !important;
    cursor: pointer;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.checkout-composition summary::-webkit-details-marker {
    display: none;
}

.checkout-composition summary span {
    font-weight: 400;
    opacity: .6;
}

.checkout-composition ul {
    margin: 10px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.checkout-composition li {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 4px 0 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

.checkout-composition li span:last-child {
    white-space: nowrap !important;
    opacity: .55 !important;
}

/* Итоги */
.checkout-order-total {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    gap: 16px !important;
    margin-top: 18px !important;
}

.checkout-order-total span {
    font-size: 14px !important;
}

.checkout-order-total strong {
    font-size: 26px !important;
    line-height: 1 !important;
}

.checkout-order-saving {
    margin-top: 8px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.checkout-order-saving span {
    font-weight: 400 !important;
    opacity: .55 !important;
}

/* Убираем старые ограничения основной темы */
.checkout-form-card form.checkout-form,
.checkout-form-card .checkout-form {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.checkout-form-card .checkout-form-wrapper {
    display: block !important;
    width: 100% !important;
}

.checkout-form-card .checkout-contacts-wrapper {
    width: 100% !important;
}

.checkout-form-card .checkout-img {
    display: none !important;
}

/* Заголовки формы */
.checkout-form-card .checkout-subheading {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    font-size: 22px !important;
    line-height: 1.15 !important;
    font-weight: 500 !important;
}

.checkout-form-card .checkout-subheading-spaced {
    margin-top: 22px !important;
}

.checkout-form-card .checkout-field-label {
    display: block !important;
    margin: 0 0 5px !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
}

/* Сами поля */
.checkout-form-card .checkout-form-field.w-input {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 0 12px !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
    border: 1px solid #e5dfd2 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #2b2925 !important;
}

.checkout-form-card input[type="date"],
.checkout-form-card input[type="time"] {
    appearance: auto;
    -webkit-appearance: auto;
}

/* Укладываем первые два поля в одну строку через grid у блока мероприятия */
.checkout-form-card #event_date,
.checkout-form-card #event_time {
    width: calc(50% - 8px) !important;
    display: inline-block !important;
    vertical-align: top !important;
}

.checkout-form-card #event_date {
    margin-right: 12px !important;
}

.checkout-form-card #event_address {
    width: 100% !important;
}

/* Комментарий */
.checkout-form-card textarea.checkout-form-field.checkout-textarea {
    height: 108px !important;
    min-height: 108px !important;
    padding: 12px 14px !important;
    resize: vertical !important;
    line-height: 1.4 !important;
}

/* Согласие */
.checkout-form-card .checkout-consent {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin: 6px 0 18px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

.checkout-form-card .checkout-consent input {
    flex: 0 0 auto !important;
    margin: 2px 0 0 !important;
}

/* Кнопка */
.checkout-form-card .checkout-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 190px !important;
    height: 50px !important;
    margin: 0 !important;
    padding: 0 22px !important;
    border-radius: 10px !important;
    border: 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

@media screen and (max-width: 980px) {
    .checkout-section .section-container {
        width: min(100%, calc(100% - 32px));
    }

    .checkout-layout {
        grid-template-columns: minmax(300px, 360px) minmax(0, 1fr) !important;
        gap: 20px !important;
    }
}

@media screen and (max-width: 767px) {
    .checkout-layout {
        grid-template-columns: 1fr !important;
    }

    .checkout-order-card {
        position: static !important;
    }

    .checkout-hero h1 {
        font-size: 40px !important;
    }

    .checkout-form-card {
        padding: 20px !important;
    }

    .checkout-form-card #event_date,
    .checkout-form-card #event_time {
        display: block !important;
        width: 100% !important;
        margin-right: 0 !important;
    }
}/* Checkout v0.7 — динамические карточки заказа. Добавить в конец css/custom.css */

.checkout-section .section-container {
    width: min(1180px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
}

.checkout-page-intro {
    max-width: 760px;
    margin: 0 auto 34px;
}

.checkout-page-intro h1 {
    margin: 0 0 12px !important;
    font-size: clamp(44px, 5vw, 68px) !important;
    line-height: .98 !important;
    letter-spacing: -.035em !important;
}

.checkout-page-intro p {
    margin: 0 !important;
    opacity: .7;
    line-height: 1.45;
}

.checkout-layout {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    display: grid !important;
    grid-template-columns: minmax(350px, 410px) minmax(0, 1fr) !important;
    gap: 28px !important;
    align-items: start !important;
}

.checkout-order-card,
.checkout-order-form {
    min-width: 0;
}

.checkout-order-card {
    background: #fffbf0 !important;
    border-radius: 14px !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    position: sticky;
    top: 24px;
}

.checkout-order-title {
    margin: 0 0 18px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: .045em !important;
}

.checkout-cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checkout-order-product {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    background: rgba(255,255,255,.42);
    padding: 14px;
    box-sizing: border-box;
}

.checkout-order-product-main {
    display: grid;
    grid-template-columns: 88px minmax(0,1fr) auto;
    gap: 12px;
    align-items: center;
}

.checkout-order-image {
    width: 88px !important;
    height: 66px !important;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 9px !important;
    background: #eee7da !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #877d70;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
}

.checkout-order-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.checkout-order-product-name {
    font-size: 17px !important;
    line-height: 1.12 !important;
    font-weight: 700 !important;
}

.checkout-order-product-meta {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.35;
    opacity: .62;
}

.checkout-order-product-price {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

/* Боксы */
.checkout-order-product.is-box .checkout-order-image {
    height: 96px !important;
}

.checkout-order-product.is-box .checkout-order-product-main {
    grid-template-columns: 112px minmax(0,1fr) auto;
}

.checkout-order-product.is-box .checkout-order-image {
    width: 112px !important;
}

.checkout-order-product.is-box .checkout-order-product-name {
    font-size: 20px !important;
}

/* Отдельные закуски — компактно */
.checkout-order-product.is-snack {
    padding: 10px 12px;
}

.checkout-order-product.is-snack .checkout-order-product-main {
    grid-template-columns: 64px minmax(0,1fr) auto;
}

.checkout-order-product.is-snack .checkout-order-image {
    width: 64px !important;
    height: 48px !important;
    border-radius: 8px !important;
}

.checkout-order-product.is-snack .checkout-order-product-name {
    font-size: 15px !important;
}

.checkout-order-product.is-snack .checkout-order-product-meta {
    margin-top: 3px;
}

/* Состав — сворачивается нативно */
.checkout-composition {
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid rgba(0,0,0,.08);
}

.checkout-composition summary {
    list-style: none;
    cursor: pointer;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
}

.checkout-composition summary::-webkit-details-marker {
    display: none;
}

.checkout-composition summary::after {
    content: '⌄';
    font-size: 17px;
    line-height: 1;
    transition: transform .18s ease;
}

.checkout-composition[open] summary::after {
    transform: rotate(180deg);
}

.checkout-composition-count {
    margin-left: auto;
    opacity: .5;
    font-weight: 400;
}

.checkout-composition ul {
    margin: 9px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.checkout-composition li {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px;
    padding: 3px 0 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

.checkout-composition li span:last-child {
    white-space: nowrap;
    opacity: .58;
}

.checkout-product-saving {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #c99500;
}

.checkout-order-total {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    gap: 16px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,.08);
}

.checkout-order-total-label {
    font-size: 14px;
}

.checkout-order-total-price {
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
}

.checkout-order-saving {
    margin-top: 6px;
    font-size: 12px;
    color: #777;
}

.checkout-order-saving strong {
    color: #c99500;
}

/* Правая форма — не даём старым правилам растягивать её */
.checkout-order-form > .w-form,
.checkout-order-form form.checkout-form {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.checkout-order-form .checkout-form-wrapper,
.checkout-order-form .checkout-contacts-wrapper {
    width: 100% !important;
    max-width: none !important;
}

.checkout-order-form .checkout-subheading,
.checkout-order-form .checkout-subheading-contact,
.checkout-order-form .checkout-subheading-extra {
    margin-top: 0 !important;
}

.checkout-order-form .checkout-form-field.w-input {
    border-radius: 8px !important;
    width: 100% !important;
    max-width: none !important;
}

.checkout-order-form textarea.checkout-form-field.w-input {
    min-height: 108px !important;
    height: 108px !important;
    resize: vertical;
    border-radius: 8px !important;
}

/* На широком экране форма и заказ визуально ровнее */
@media screen and (min-width: 901px) {
    .checkout-order-form {
        background: #fffbf0;
        border-radius: 14px;
        padding: 28px 30px 24px;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1fr !important;
    }

    .checkout-order-card {
        position: static;
    }
}

@media screen and (max-width: 600px) {
    .checkout-section .section-container {
        width: min(100% - 28px, 1180px);
    }

    .checkout-page-intro h1 {
        font-size: 42px !important;
    }

    .checkout-layout {
        gap: 16px !important;
    }

    .checkout-order-product.is-box .checkout-order-product-main,
    .checkout-order-product-main {
        grid-template-columns: 84px minmax(0,1fr) auto;
    }

    .checkout-order-product.is-box .checkout-order-image,
    .checkout-order-image {
        width: 84px !important;
        height: 64px !important;
    }
}

/* ==========================================================================
   Cheese & Cracker 2.0.15 — menu card equalizer + reliable built-in fallback
   Loaded from custom.css because style.css is not part of this theme's frontend
   enqueue chain. This makes the fix independent from the temporary equalizer plugin.
   ========================================================================== */

.menu-items-wrapper {
    align-items: stretch !important;
}

.menu-items-wrapper .menu-item {
    box-sizing: border-box !important;
    height: 620px !important;
    min-height: 620px !important;
    max-height: 620px !important;
    align-items: stretch !important;
    overflow: hidden !important;
}

.menu-items-wrapper .menu-item-img-wrapper {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
}

.menu-items-wrapper .menu-item-img-wrapper > .link-block:first-child {
    position: relative !important;
    isolation: isolate !important;
    display: block !important;
    flex: 0 0 217px !important;
    width: 100% !important;
    height: 217px !important;
    min-height: 217px !important;
    max-height: 217px !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    background: #f5f2eb !important;
    text-decoration: none !important;
}

.menu-items-wrapper .cc-menu-photo-placeholder {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 18px !important;
    background:
        linear-gradient(135deg, rgba(247,181,0,.055), rgba(247,181,0,0) 48%),
        #f5f2eb !important;
    border: 1px solid rgba(17,17,17,.10) !important;
    border-radius: 12px !important;
    color: #111 !important;
    text-align: center !important;
    text-decoration: none !important;
    overflow: hidden !important;
}

.menu-items-wrapper .cc-menu-photo-placeholder::before,
.menu-items-wrapper .cc-menu-photo-placeholder::after {
    content: "" !important;
    position: absolute !important;
    width: 92px !important;
    height: 92px !important;
    border: 1px solid rgba(247,181,0,.14) !important;
    border-radius: 50% !important;
}

.menu-items-wrapper .cc-menu-photo-placeholder::before { left: -48px !important; top: -48px !important; }
.menu-items-wrapper .cc-menu-photo-placeholder::after { right: -48px !important; bottom: -48px !important; }

.menu-items-wrapper .cc-menu-photo-placeholder__logo {
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
    width: 54px !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    object-fit: contain !important;
    border-radius: 4px !important;
}

.menu-items-wrapper .cc-menu-photo-placeholder__rule {
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
    width: 34px !important;
    height: 2px !important;
    border-radius: 2px !important;
    background: #f7b500 !important;
}

.menu-items-wrapper .cc-menu-photo-placeholder__text {
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: .16em !important;
    text-transform: uppercase !important;
    color: #2a2926 !important;
    text-decoration: none !important;
}

.menu-items-wrapper .menu-item-image {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 12px !important;
}

.menu-items-wrapper .post__link {
    display: block !important;
    flex: 0 0 64px !important;
    width: 100% !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    overflow: hidden !important;
    text-decoration: none !important;
}

.menu-items-wrapper .menu-item-heading {
    margin: 14px 0 0 !important;
    min-height: 0 !important;
    max-height: 50px !important;
    overflow: hidden !important;
    font-size: 22px !important;
    line-height: 1.14 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
}

.menu-items-wrapper .menu-item-descr {
    box-sizing: border-box !important;
    flex: 0 0 57px !important;
    width: 100% !important;
    min-height: 57px !important;
    max-height: 57px !important;
    margin: 0 0 8px !important;
    overflow: hidden !important;
    line-height: 19px !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
}

.menu-items-wrapper .menu-item-comment {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-height: 0 !important;
    max-height: 38px !important;
    margin: 0 0 6px !important;
    overflow: hidden !important;
    line-height: 19px !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
}

.menu-items-wrapper .cc-menu-output {
    flex: 0 0 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    margin: 3px 0 6px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

.menu-items-wrapper .cc-menu-constructor-btn {
    flex: 0 0 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    margin-top: auto !important;
    margin-bottom: 7px !important;
    box-sizing: border-box !important;
}

.menu-items-wrapper .product__form {
    flex: 0 0 auto !important;
    width: 100% !important;
    margin-top: auto !important;
}

.menu-items-wrapper .cc-menu-constructor-btn + .product__form {
    margin-top: 0 !important;
}

.menu-items-wrapper .menu-price-qty-wrapper {
    flex: 0 0 40px !important;
    min-height: 40px !important;
    margin-top: 5px !important;
    margin-bottom: 7px !important;
}

.menu-items-wrapper .cc-menu-cart-btn,
.menu-items-wrapper .product__form .menu-item-btn-text {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 48px !important;
    height: 48px !important;
    max-height: 48px !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.menu-items-wrapper .product__form .w-form-done,
.menu-items-wrapper .product__form .w-form-fail {
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 991px) {
    .menu-items-wrapper .menu-item {
        height: 620px !important;
        min-height: 620px !important;
        max-height: 620px !important;
    }
}

@media (max-width: 767px) {
    .menu-items-wrapper .menu-item {
        height: 630px !important;
        min-height: 630px !important;
        max-height: 630px !important;
    }

    .menu-items-wrapper .menu-item-img-wrapper > .link-block:first-child {
        flex-basis: 216px !important;
        height: 216px !important;
        min-height: 216px !important;
        max-height: 216px !important;
    }

    .menu-items-wrapper .menu-item-heading {
        font-size: 22px !important;
    }

    .menu-items-wrapper .cc-menu-constructor-btn,
    .menu-items-wrapper .cc-menu-cart-btn,
    .menu-items-wrapper .product__form .menu-item-btn-text {
        min-height: 46px !important;
        height: 46px !important;
        max-height: 46px !important;
    }
}
