/* ===========================
   CHECKOUT PAGE
   =========================== */

.checkout-page {
    min-height: calc(100vh - 140px);
    padding: 40px 0 60px;
}

.checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    border-bottom: 1px solid #e8e8e8;
}

.checkout-header__logo img {
    height: 36px;
    width: auto;
}

.checkout-header__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: #303030;
    border-radius: 50%;
    transition: background 0.2s;
}

.checkout-header__close:hover {
    background: #f0f0f0;
}

/* Layout */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 40px 0;
}

.checkout-title {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    color: #303030;
}

/* Form */
.checkout-form__group {
    margin-bottom: 28px;
}

.checkout-form__label {
    display: block;
    font-size: 14px;
    color: #303030;
    margin-bottom: 8px;
}

.checkout-form__label span {
    color: #303030;
}

.checkout-form__input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #c8c8c8;
    background: transparent;
    padding: 10px 0;
    font-size: 16px;
    color: #303030;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.checkout-form__input::placeholder {
    color: #a9a9a9;
}

.checkout-form__input:focus {
    border-bottom-color: #303030;
}

/* Payment block */
.checkout-payment-title {
    font-size: 20px;
    font-weight: 600;
    margin: 40px 0 16px;
    color: #303030;
}

.checkout-payment-card {
    border: 1.5px solid #303030;
    border-radius: 16px;
    padding: 20px 24px;
}

.checkout-payment-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.checkout-payment-card__name {
    font-size: 16px;
    font-weight: 600;
    color: #303030;
}

.checkout-payment-card__brands {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-payment-card__brands img {
    height: 20px;
    width: auto;
}

.checkout-payment-card__brands-text {
    font-size: 12px;
    color: #a9a9a9;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Toggle */
.checkout-toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.checkout-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.checkout-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.checkout-toggle__slider {
    position: absolute;
    inset: 0;
    background: #D9B648;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.checkout-toggle__slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.checkout-toggle input:checked + .checkout-toggle__slider::before {
    transform: translateX(20px);
}

.checkout-toggle input:not(:checked) + .checkout-toggle__slider {
    background: #c8c8c8;
}

.checkout-toggle-label {
    font-size: 14px;
    color: #303030;
}

.checkout-payment-card__note {
    font-size: 12px;
    color: #a9a9a9;
    line-height: 1.5;
    margin-bottom: 16px;
}

.checkout-payment-card__security {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #a9a9a9;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
}

/* Consent */
.checkout-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 28px 0;
    cursor: pointer;
}

.checkout-consent__checkbox {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 1.5px solid #c8c8c8;
    border-radius: 3px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    margin-top: 1px;
    background: #fff;
    transition: all 0.2s;
    position: relative;
}

.checkout-consent__checkbox:checked {
    background: #303030;
    border-color: #303030;
}

.checkout-consent__checkbox:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.checkout-consent__text {
    font-size: 14px;
    color: #303030;
    line-height: 1.5;
}

.checkout-consent__text a {
    text-decoration: underline;
    color: inherit;
}

/* CTA Button */
.checkout-submit {
    width: 100%;
    background: #303030;
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 20px 32px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    font-family: inherit;
}

.checkout-submit:hover:not(:disabled) {
    background: #111;
}

.checkout-submit:disabled {
    opacity: 0.4;
    cursor: default;
}

.checkout-submit-note {
    margin-top: 16px;
    font-size: 12px;
    color: #a9a9a9;
    line-height: 1.6;
}

.checkout-submit-note a {
    color: inherit;
    text-decoration: underline;
}

/* Summary panel */
.checkout-summary {
    position: sticky;
    top: 40px;
    align-self: start;
}

.checkout-summary__panel {
    background: #f5f4ef;
    border-radius: 20px;
    padding: 28px;
}

.checkout-summary__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.checkout-summary__title {
    font-size: 18px;
    font-weight: 600;
    color: #303030;
}

.checkout-promo-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #303030;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0;
}

.checkout-promo-toggle svg {
    transition: transform 0.2s;
}

.checkout-promo-toggle.open svg {
    transform: rotate(180deg);
}

.checkout-promo-field {
    display: none;
    margin-bottom: 16px;
}

.checkout-promo-field.visible {
    display: flex;
    gap: 8px;
}

.checkout-promo-field input {
    flex: 1;
    border: 1px solid #c8c8c8;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    background: #fff;
}

.checkout-promo-field button {
    background: #303030;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.checkout-summary__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.checkout-summary__plan-name {
    font-size: 15px;
    color: #303030;
}

.checkout-summary__plan-price {
    font-size: 15px;
    font-weight: 600;
    color: #303030;
    white-space: nowrap;
}

.checkout-summary__tax {
    font-size: 12px;
    color: #a9a9a9;
    line-height: 1.5;
    margin-top: 8px;
    margin-bottom: 16px;
}

.checkout-summary__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 16px;
    border-top: 1px solid #e0dfd8;
}

.checkout-summary__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #a9a9a9;
}

/* Footer */
footer .footer__checkout_content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 13px;
    color: #a9a9a9;
    border-top: 1px solid #e8e8e8;
}

footer .footer__checkout_content a {
    color: inherit;
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
    .checkout-header {
        padding: 16px 20px;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
        padding: 24px 20px 0;
        gap: 0;
    }

    .checkout-summary {
        position: static;
        order: -1;
        margin-bottom: 32px;
    }

    .checkout-title {
        font-size: 28px;
        margin-bottom: 28px;
    }

    .checkout-payment-title {
        font-size: 18px;
    }

    footer .footer__checkout_content {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
}


/* ===========================
   GRO Woo Checkout prototype — real fields, design-system-ish shell
   =========================== */
body.woocommerce-checkout {
    background: #f7f5ef;
    color: #303030;
}
.checkout-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}
.checkout-page__eyebrow {
    display: inline-flex;
    margin: 28px 0 14px;
    padding: 7px 12px;
    border: 1px solid rgba(48,48,48,.12);
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    color: #6c685f;
    background: rgba(255,255,255,.6);
}
.checkout-page__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 28px;
}
.checkout-page__lead {
    max-width: 640px;
    margin: -24px 0 0;
    font-size: 16px;
    line-height: 1.55;
    color: #6c685f;
}
.checkout-page__back {
    flex: none;
    margin-top: 10px;
    color: #303030;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid rgba(48,48,48,.25);
}
.woocommerce form.checkout.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 28px;
    align-items: start;
    max-width: 1180px;
    margin: 0 auto 64px;
    padding: 0;
}
.checkout-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.checkout-card,
.checkout-summary__panel {
    background: #fff;
    border: 1px solid rgba(48,48,48,.10);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(48,48,48,.06);
}
.checkout-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 18px;
    padding: 28px;
}
.checkout-card__step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #303030;
    color: #fff;
    font-weight: 700;
}
.checkout-card__title,
.woocommerce-checkout h3 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 650;
    color: #303030;
}
.checkout-card__text {
    margin: 0 0 22px;
    max-width: 560px;
    color: #6c685f;
    font-size: 14px;
    line-height: 1.5;
}
.woocommerce-billing-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
}
.woocommerce-billing-fields__field-wrapper .form-row-wide,
.woocommerce-additional-fields__field-wrapper .form-row-wide,
#billing_email_field,
#billing_phone_field,
#billing_first_name_field,
#billing_last_name_field {
    grid-column: span 1;
}
#billing_country_field,
#order_comments_field {
    grid-column: 1 / -1;
}
.woocommerce form .form-row {
    margin: 0;
    padding: 0;
}
.woocommerce form .form-row label {
    display: block;
    margin: 0 0 7px;
    font-size: 13px;
    font-weight: 600;
    color: #6c685f;
}
.woocommerce form .form-row .required {
    color: #b89a34;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(48,48,48,.16);
    border-radius: 14px;
    background: #fbfaf7;
    color: #303030;
    font-size: 15px;
    line-height: 1.2;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 22px; padding: 0; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; }
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    outline: none;
    border-color: #303030;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(48,48,48,.06);
}
.checkout-card_payment-info {
    background: #303030;
    color: #fff;
}
.checkout-card_payment-info .checkout-card__step {
    background: #d9b648;
    color: #303030;
}
.checkout-card_payment-info .checkout-card__title { color: #fff; }
.checkout-bullets {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    color: rgba(255,255,255,.78);
    font-size: 14px;
    line-height: 1.5;
}
.checkout-bullets li { position: relative; padding-left: 24px; }
.checkout-bullets li:before { content: '✓'; position: absolute; left: 0; color: #d9b648; font-weight: 700; }
.checkout-summary {
    position: sticky;
    top: 24px;
}
.checkout-summary__panel {
    padding: 24px;
}
.checkout-summary__header {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(48,48,48,.10);
}
.checkout-summary__title { margin: 0; font-size: 22px; }
.checkout-summary__badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1ead0;
    color: #6b5720;
    font-size: 12px;
    font-weight: 700;
}
.checkout-review table.shop_table {
    border: 0;
    margin: 0;
    border-collapse: collapse;
    font-size: 14px;
}
.checkout-review table.shop_table th,
.checkout-review table.shop_table td {
    border: 0;
    padding: 11px 0;
    vertical-align: top;
}
.checkout-review table.shop_table thead { display: none; }
.checkout-review .cart_item td { border-bottom: 1px solid rgba(48,48,48,.08); }
.checkout-review table.shop_table tfoot tr.order-total th,
.checkout-review table.shop_table tfoot tr.order-total td {
    padding-top: 16px;
    font-size: 20px;
    color: #303030;
}
.checkout-review table.shop_table tfoot tr:not(.order-total) th,
.checkout-review table.shop_table tfoot tr:not(.order-total) td { color: #6c685f; }
.checkout-review .product-name { font-weight: 650; color: #303030; }
.checkout-review .product-total { text-align: right; white-space: nowrap; }
.woocommerce-checkout-payment {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(48,48,48,.10);
}
.woocommerce-checkout-payment ul.payment_methods {
    margin: 0;
    padding: 0;
    border: 0 !important;
}
.woocommerce-checkout-payment .payment_methods li {
    list-style: none;
    padding: 14px 0;
    border-bottom: 1px solid rgba(48,48,48,.08);
}
.woocommerce-checkout-payment .payment_box {
    margin: 10px 0 0 !important;
    padding: 14px !important;
    border-radius: 14px;
    background: #fbfaf7 !important;
    color: #6c685f !important;
    font-size: 13px;
    line-height: 1.5;
}
.gro-checkout-summary,
.gro-checkout-consents {
    margin: 18px 0;
    padding: 16px;
    border-radius: 18px;
    background: #fbfaf7;
    border: 1px solid rgba(48,48,48,.10);
    font-size: 14px;
    line-height: 1.5;
}
.gro-checkout-summary__title,
.gro-checkout-consents__title {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #303030;
}
.gro-checkout-summary__text { color: #6c685f; }
.gro-checkout-summary a,
.gro-checkout-consents a { color: #303030; text-decoration: underline; }
.gro-checkout-consent {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    padding: 13px 0;
    border-top: 1px solid rgba(48,48,48,.08);
    cursor: pointer;
}
.gro-checkout-consent:first-of-type { border-top: 0; padding-top: 2px; }
.gro-checkout-consent__input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #303030;
}
.gro-checkout-consent__text { display: block; color: #303030; }
.gro-checkout-consent__text strong { color: #b89a34; }
.gro-checkout-consent__details {
    margin-top: 6px;
    color: #6c685f;
    font-size: 13px;
}
.gro-checkout-consent__details summary { width: max-content; color: #6b5720; cursor: pointer; }
.gro-checkout-consent__details p { margin: 8px 0 0; }
.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order {
    width: 100%;
    margin-top: 16px;
    padding: 17px 22px;
    border: 0;
    border-radius: 999px;
    background: #303030;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}
.woocommerce #payment #place_order:hover { background: #111; }
.woocommerce #payment #place_order.is-disabled-by-consent,
.woocommerce #payment #place_order:disabled { opacity: .45; cursor: not-allowed; }
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    max-width: 1180px;
    margin: 0 auto 18px !important;
    border: 1px solid rgba(48,48,48,.12);
    border-radius: 16px;
    background: #fff;
    color: #303030;
    box-shadow: 0 12px 30px rgba(48,48,48,.05);
}
.woocommerce-form-login,
.checkout_coupon {
    max-width: 720px;
    margin: 0 auto 18px !important;
    padding: 20px !important;
    border: 1px solid rgba(48,48,48,.10) !important;
    border-radius: 20px !important;
    background: #fff;
}
@media (max-width: 980px) {
    .woocommerce form.checkout.checkout-layout { grid-template-columns: 1fr; }
    .checkout-summary { position: static; order: -1; }
}
@media (max-width: 640px) {
    .checkout-shell { width: min(100% - 28px, 1180px); }
    .checkout-page__header { display: block; }
    .checkout-page__back { display: inline-block; margin: 14px 0 0; }
    .checkout-page__lead { margin-top: -12px; }
    .checkout-card { grid-template-columns: 1fr; padding: 20px; border-radius: 20px; }
    .woocommerce-billing-fields__field-wrapper,
    .woocommerce-additional-fields__field-wrapper { grid-template-columns: 1fr; }
    .checkout-summary__panel { padding: 20px; border-radius: 20px; }
}

.checkout-auth-helper {
    max-width: 1180px;
    margin: 0 auto 18px;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(48,48,48,.12);
    border-radius: 18px;
    background: #fff8df;
    color: #303030;
    box-shadow: 0 12px 30px rgba(48,48,48,.04);
}
.checkout-auth-helper strong { display: block; margin-bottom: 3px; }
.checkout-auth-helper span { color: #6c685f; font-size: 14px; line-height: 1.45; }
.checkout-auth-helper__button {
    flex: none;
    padding: 11px 15px;
    border-radius: 999px;
    background: #303030;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}
@media (max-width: 640px) {
    .checkout-auth-helper { display: block; }
    .checkout-auth-helper__button { display: inline-block; margin-top: 12px; }
}

/* Checkout UX pass: fewer fields and clearer returning-user path */
.woocommerce-checkout .woocommerce-form-login-toggle { display: none; }
.checkout-fields-grid .woocommerce-billing-fields h3 { display: none; }
#billing_email_field { grid-column: 1 / -1; }
#billing_phone_field .description {
    display: block;
    margin-top: 7px;
    color: #8a857a;
    font-size: 12px;
    line-height: 1.4;
}
.checkout-auth-helper {
    border-color: rgba(217,182,72,.38);
}
.checkout-auth-helper__button:hover { background: #111; color: #fff; }

.checkout-auth-helper__copy { min-width: 0; }
.checkout-auth-helper__details { flex: 0 0 360px; max-width: 100%; }
.checkout-auth-helper__details > summary { list-style: none; text-align: center; cursor: pointer; }
.checkout-auth-helper__details > summary::-webkit-details-marker { display: none; }
.checkout-auth-helper__form {
    margin-top: 14px;
    padding: 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(48,48,48,.10);
}
.checkout-auth-helper__form #magic-login-shortcode,
.checkout-auth-helper__form #magicloginform { margin: 0; }
.checkout-auth-helper__form label { display: block; margin: 0 0 7px; font-size: 13px; font-weight: 700; color: #6c685f; }
.checkout-auth-helper__form .input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(48,48,48,.16);
    background: #fbfaf7;
}
.checkout-auth-helper__form .magic-login-submit {
    width: 100%;
    margin-top: 10px;
    padding: 13px 16px;
    border: 0;
    border-radius: 999px;
    background: #303030;
    color: #fff;
    font-weight: 700;
}
.checkout-auth-helper__form .magic-login-form-header { margin-bottom: 10px; color: #6c685f; font-size: 13px; line-height: 1.4; }
.checkout-auth-helper__fallback { display: inline-block; margin-top: 10px; color: #6c685f; font-size: 12px; }
@media (max-width: 760px) {
    .checkout-auth-helper__details { margin-top: 12px; }
}


/* ===========================
   Figma alignment pass — “Оформление заказа”
   Source: Figma page > Оформление заказа, 1440 frame
   =========================== */
body.woocommerce-checkout {
    background: #cacaca;
    color: #303030;
}
body.woocommerce-checkout .wrapper {
    min-height: 100vh;
    background: #cacaca;
}
.checkout-page {
    min-height: calc(100vh - 72px);
    padding: 72px 0 34px;
}
.checkout-shell {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
}
.checkout-page__eyebrow,
.checkout-page__header,
.checkout-page__lead,
.checkout-page__back { display: none !important; }
.checkout-auth-helper {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto 28px;
    background: rgba(255,255,255,.38);
    border: 0;
    border-radius: 20px;
    box-shadow: none;
}
.woocommerce form.checkout.checkout-layout,
.checkout-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 470px) 360px !important;
    gap: 72px !important;
    align-items: start;
    max-width: 980px !important;
    margin: 0 auto 42px !important;
    padding: 0 !important;
}
.checkout-main,
.checkout-form-col {
    display: block;
    min-width: 0;
}
.checkout-title {
    margin: 0 0 36px;
    color: #303030;
    font-size: clamp(40px, 5vw, 64px);
    line-height: .94;
    letter-spacing: -.055em;
    font-weight: 600;
}
.checkout-fields-card,
.checkout-card,
.checkout-summary__panel,
.gro-checkout-summary,
.gro-checkout-consents,
.woocommerce-checkout-payment .payment_box {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}
.checkout-card__step,
.checkout-card__header,
.checkout-card_payment-info { display: none !important; }
.woocommerce-billing-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
    display: block;
}
.checkout-fields-grid .woocommerce-billing-fields h3,
.woocommerce-additional-fields h3,
#billing_country_field,
#billing_address_1_field,
#billing_address_2_field,
#billing_city_field,
#billing_state_field,
#billing_postcode_field,
#billing_company_field,
#billing_phone_field,
#order_comments_field { display: none !important; }
#billing_first_name_field,
#billing_last_name_field,
#billing_email_field {
    display: block !important;
    margin: 0 0 28px !important;
}
#billing_last_name_field { display: none !important; }
.woocommerce form .form-row label {
    margin: 0 0 12px;
    color: #303030;
    font-size: 14px;
    line-height: 1.1;
    font-weight: 500;
}
.woocommerce form .form-row .required { color: #303030; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single {
    min-height: 58px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(48,48,48,.38);
    border-radius: 0;
    background: transparent;
    color: #303030;
    font-size: 18px;
    line-height: 1.2;
    box-shadow: none;
}
.woocommerce form .form-row input.input-text::placeholder { color: rgba(48,48,48,.42); }
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: #303030;
    background: transparent;
    box-shadow: none;
}
.woocommerce-checkout-payment {
    margin: 56px 0 0;
    padding: 0;
    border: 0;
}
.woocommerce-checkout-payment:before {
    content: 'Способ оплаты';
    display: block;
    margin: 0 0 18px;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -.035em;
    font-weight: 600;
    color: #303030;
}
.woocommerce-checkout-payment ul.payment_methods {
    margin: 0;
    padding: 0;
    border: 0 !important;
}
.woocommerce-checkout-payment .payment_methods li {
    margin: 0;
    padding: 24px 28px;
    border: 1.5px solid #303030;
    border-radius: 24px;
    background: transparent;
}
.woocommerce-checkout-payment .payment_methods li > label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    color: #303030;
    font-size: 17px;
    font-weight: 600;
}
.woocommerce-checkout-payment .payment_methods li > label:after {
    content: 'VISA   ○   МИР';
    color: rgba(48,48,48,.62);
    font-size: 13px;
    letter-spacing: .06em;
    white-space: nowrap;
}
.woocommerce-checkout-payment .payment_methods input.input-radio { margin-right: 10px; accent-color: #303030; }
.woocommerce-checkout-payment .payment_box {
    margin: 18px 0 0 !important;
    padding: 0 !important;
    color: rgba(48,48,48,.68) !important;
    font-size: 13px;
    line-height: 1.45;
}
.woocommerce-checkout-payment .payment_box:after {
    content: 'Безопасность платежей гарантирована CloudPayments 256-бит';
    display: block;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(48,48,48,.16);
}
.gro-checkout-summary {
    display: none;
}
.gro-checkout-consents {
    margin: 28px 0 0;
    font-size: 14px;
}
.gro-checkout-consents__title { display: none; }
.gro-checkout-consent {
    grid-template-columns: 22px 1fr;
    gap: 12px;
    padding: 12px 0;
    border: 0;
}
.gro-checkout-consent__input {
    width: 18px;
    height: 18px;
    margin-top: 0;
    accent-color: #303030;
}
.gro-checkout-consent__text {
    color: #303030;
    font-size: 14px;
    line-height: 1.35;
}
.gro-checkout-consent__details { display: none; }
.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order {
    margin-top: 28px;
    padding: 20px 28px;
    min-height: 60px;
    border-radius: 999px;
    background: #303030;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -.015em;
}
.woocommerce #payment #place_order:before { content: 'Подтвердить подписку — '; }
.woocommerce #payment #place_order:hover { background: #161616; }
.woocommerce-terms-and-conditions-wrapper,
.woocommerce-privacy-policy-text {
    margin-top: 18px;
    color: rgba(48,48,48,.72);
    font-size: 13px;
    line-height: 1.45;
}
.checkout-summary {
    position: sticky;
    top: 44px;
}
.checkout-summary__panel {
    padding: 0;
}
.checkout-summary__header {
    margin: 0 0 34px;
    padding: 0;
    border: 0;
}
.checkout-summary__title {
    margin: 0;
    color: #303030;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -.035em;
    font-weight: 600;
}
.checkout-summary__badge { display: none; }
.checkout-promo-toggle {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 34px;
    padding: 0 0 14px;
    border: 0;
    border-bottom: 1px solid rgba(48,48,48,.28);
    background: transparent;
    color: #303030;
    font-size: 14px;
    text-align: left;
}
.checkout-review table.shop_table {
    width: 100%;
    border: 0;
    margin: 0;
    border-collapse: collapse;
    color: #303030;
    font-size: 14px;
}
.checkout-review table.shop_table thead,
.checkout-review .cart-subtotal,
.checkout-review .recurring-totals,
.checkout-review .cart-discount,
.checkout-review .woocommerce-shipping-totals { display: none !important; }
.checkout-review table.shop_table th,
.checkout-review table.shop_table td {
    border: 0;
    padding: 0;
}
.checkout-review .cart_item td {
    border: 0;
    padding: 0 0 20px;
}
.checkout-review .product-name {
    color: #303030;
    font-size: 17px;
    font-weight: 500;
}
.checkout-review .product-name .product-quantity { display: none; }
.checkout-review .product-total {
    text-align: right;
    white-space: nowrap;
    font-size: 17px;
    font-weight: 600;
}
.checkout-review table.shop_table tfoot tr:not(.order-total) th,
.checkout-review table.shop_table tfoot tr:not(.order-total) td {
    padding-top: 7px;
    color: rgba(48,48,48,.68);
    font-size: 13px;
    line-height: 1.35;
}
.checkout-review table.shop_table tfoot tr.order-total th,
.checkout-review table.shop_table tfoot tr.order-total td {
    padding-top: 22px;
    color: #303030;
    font-size: 18px;
    line-height: 1.15;
}
.checkout-review table.shop_table tfoot tr.order-total td {
    text-align: right;
    font-size: 22px;
    font-weight: 600;
}
.checkout-review table.shop_table tfoot tr.order-total td .woocommerce-Price-amount:after {
    content: ' / месяц';
    font-size: 14px;
    font-weight: 500;
}
.checkout-review table.shop_table:after {
    content: 'Включая все применимые налоги.\A Следующее списание: через месяц после оплаты.';
    white-space: pre-line;
    display: block;
    margin-top: 10px;
    color: rgba(48,48,48,.68);
    font-size: 13px;
    line-height: 1.45;
}
footer .footer__checkout_content {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0;
    border: 0;
    color: rgba(48,48,48,.72);
    font-size: 13px;
}
footer .container { width: auto; max-width: none; padding: 0; }
@media (max-width: 900px) {
    .checkout-page { padding-top: 36px; }
    .woocommerce form.checkout.checkout-layout,
    .checkout-layout {
        grid-template-columns: 1fr !important;
        gap: 42px !important;
    }
    .checkout-summary { position: static; order: 0; }
}
@media (max-width: 640px) {
    .checkout-shell,
    .checkout-auth-helper,
    footer .footer__checkout_content { width: min(100% - 28px, 980px); }
    .checkout-title { font-size: 42px; margin-bottom: 28px; }
    .woocommerce-checkout-payment .payment_methods li { padding: 20px; border-radius: 20px; }
    .woocommerce-checkout-payment .payment_methods li > label { align-items: flex-start; flex-direction: column; }
    footer .footer__checkout_content { display: block; }
}


/* Figma alignment refinements */
.woocommerce form .form-row-first,
.woocommerce form .form-row-last { float: none !important; width: 100% !important; }
.woocommerce-checkout-payment { clear: both; width: 100%; }
.checkout-review table.shop_table tr.recurring-totals,
.checkout-review table.shop_table tr.recurring-total { display: none !important; }
.woocommerce #payment #place_order:before,
.woocommerce-page #payment #place_order:before { content: none !important; }


/* GRO checkout width stabilization — 2026-05-06 */
html { scrollbar-gutter: stable; }
body.woocommerce-checkout .wrapper,
.checkout-page { max-width: 100vw; overflow-x: hidden; }
.checkout-shell,
.checkout-auth-helper,
footer .footer__checkout_content { box-sizing: border-box; }
.woocommerce form.checkout.checkout-layout,
.checkout-layout { box-sizing: border-box; width: min(980px, calc(100vw - 40px)) !important; }
.checkout-main,
.checkout-form-col,
.checkout-summary,
.checkout-review,
.checkout-review table.shop_table,
.woocommerce-checkout-payment,
.gro-checkout-consents { min-width: 0; max-width: 100%; }
.checkout-review .product-name,
.gro-checkout-consent__text,
.woocommerce-terms-and-conditions-wrapper,
.woocommerce-privacy-policy-text { overflow-wrap: anywhere; }
.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order { width: 100%; box-sizing: border-box; white-space: normal; }
@media (max-width: 900px) {
    html { scrollbar-gutter: auto; }
    .woocommerce form.checkout.checkout-layout,
    .checkout-layout { width: min(100% - 28px, 980px) !important; }
    .checkout-shell,
    .checkout-auth-helper,
    footer .footer__checkout_content { width: min(100% - 28px, 980px); }
}


/* GRO checkout visual width pass — 2026-05-06
   Goal: remove the squeezed 980px layout and restore a Figma-like 1440 desktop composition. */
body.woocommerce-checkout {
    margin: 0 !important;
    padding: 0 !important;
}
body.woocommerce-checkout .wrapper {
    overflow-x: hidden;
}
.checkout-page {
    padding-top: clamp(56px, 5.6vw, 84px) !important;
}
.checkout-shell,
.checkout-auth-helper,
footer .footer__checkout_content {
    width: min(1140px, calc(100vw - 80px)) !important;
}
.woocommerce form.checkout.checkout-layout,
.checkout-layout {
    width: min(1140px, calc(100vw - 80px)) !important;
    max-width: 1140px !important;
    grid-template-columns: minmax(0, 640px) minmax(360px, 420px) !important;
    gap: 80px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.checkout-main,
.checkout-form-col {
    width: 100% !important;
}
.checkout-summary,
.checkout-summary__panel {
    width: 100% !important;
}
.checkout-title {
    max-width: 720px;
    margin-bottom: 44px !important;
    font-size: clamp(56px, 4.7vw, 72px) !important;
    line-height: .92 !important;
    letter-spacing: -.06em !important;
    text-wrap: balance;
}
#billing_first_name_field,
#billing_email_field {
    margin-bottom: 34px !important;
}
.woocommerce form .form-row label {
    margin-bottom: 14px !important;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single {
    min-height: 64px !important;
    font-size: 20px !important;
}
.woocommerce-checkout-payment {
    margin-top: 64px !important;
}
.woocommerce-checkout-payment:before,
.checkout-summary__title {
    font-size: 32px !important;
    line-height: .98 !important;
}
.woocommerce-checkout-payment .payment_methods li {
    padding: 28px 32px !important;
    border-radius: 28px !important;
}
.gro-checkout-consents {
    margin-top: 34px !important;
}
.gro-checkout-consent {
    padding: 14px 0 !important;
}
.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order {
    min-height: 66px !important;
    margin-top: 34px !important;
    font-size: 19px !important;
}
.checkout-summary__header,
.checkout-promo-toggle {
    margin-bottom: 40px !important;
}
.checkout-review .product-name,
.checkout-review .product-total {
    font-size: 18px !important;
}
.checkout-review table.shop_table tfoot tr.order-total th,
.checkout-review table.shop_table tfoot tr.order-total td {
    font-size: 20px !important;
}
.checkout-review table.shop_table tfoot tr.order-total td {
    font-size: 24px !important;
}

@media (max-width: 1180px) {
    .checkout-shell,
    .checkout-auth-helper,
    footer .footer__checkout_content,
    .woocommerce form.checkout.checkout-layout,
    .checkout-layout {
        width: min(100vw - 56px, 1040px) !important;
    }
    .woocommerce form.checkout.checkout-layout,
    .checkout-layout {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 380px) !important;
        gap: 56px !important;
    }
    .checkout-title { font-size: clamp(50px, 5.5vw, 64px) !important; }
}

@media (max-width: 980px) {
    .checkout-page { padding-top: 42px !important; }
    .checkout-shell,
    .checkout-auth-helper,
    footer .footer__checkout_content,
    .woocommerce form.checkout.checkout-layout,
    .checkout-layout {
        width: min(100vw - 40px, 720px) !important;
    }
    .woocommerce form.checkout.checkout-layout,
    .checkout-layout {
        grid-template-columns: 1fr !important;
        gap: 52px !important;
    }
    .checkout-summary { position: static !important; }
    .checkout-title {
        max-width: 100%;
        margin-bottom: 36px !important;
        font-size: clamp(44px, 9vw, 62px) !important;
    }
}

@media (max-width: 640px) {
    .checkout-page { padding-top: 32px !important; }
    .checkout-shell,
    .checkout-auth-helper,
    footer .footer__checkout_content,
    .woocommerce form.checkout.checkout-layout,
    .checkout-layout {
        width: calc(100vw - 28px) !important;
    }
    .woocommerce form.checkout.checkout-layout,
    .checkout-layout { gap: 44px !important; }
    .checkout-title {
        margin-bottom: 32px !important;
        font-size: clamp(42px, 12.8vw, 52px) !important;
        line-height: .94 !important;
    }
    #billing_first_name_field,
    #billing_email_field { margin-bottom: 28px !important; }
    .woocommerce form .form-row input.input-text,
    .woocommerce form .form-row textarea,
    .woocommerce form .form-row select,
    .select2-container--default .select2-selection--single {
        min-height: 58px !important;
        font-size: 18px !important;
    }
    .woocommerce-checkout-payment { margin-top: 52px !important; }
    .woocommerce-checkout-payment:before,
    .checkout-summary__title { font-size: 28px !important; }
    .woocommerce-checkout-payment .payment_methods li {
        padding: 22px !important;
        border-radius: 24px !important;
    }
    .woocommerce #payment #place_order,
    .woocommerce-page #payment #place_order {
        min-height: 64px !important;
        font-size: 18px !important;
    }
}
