/* Final brand and layout polish. Loaded last so the storefront keeps the
 * same measured product composition as KOCHURO while retaining Kochuro tokens. */
@media (min-width: 1200px) {
    .kochuro-header__inner {
        grid-template-columns: 220px minmax(0, 1fr) auto;
        gap: 24px;
        min-height: 96px;
    }

    .kochuro-header {
        min-height: 97px;
    }

    .kochuro-brand__image {
        max-width: 200px;
        max-height: 50px;
    }

    .kochuro-nav__list,
    .kochuro-nav__list > li {
        min-height: 96px;
    }

    .kochuro-nav__list {
        gap: clamp(9px, 1vw, 16px);
    }

    .kochuro-nav a {
        font-size: 12px;
        letter-spacing: 0.01em;
    }

    .kochuro-header__actions {
        justify-self: end;
        white-space: nowrap;
    }
}

/* WooCommerce does not provide the standalone theme's content rail. Keep
 * archives and product pages on the same 1120px rail as KOCHURO. */
.kochuro-standalone.woocommerce #primary,
.kochuro-standalone.woocommerce-page #primary {
    width: min(calc(100% - (var(--kochuro-gutter) * 2)), var(--kochuro-content));
    margin: 0 auto;
    padding: 48px 0 76px;
}

.kochuro-standalone.single-product #primary {
    padding-top: 0;
    padding-bottom: 0;
}

.kochuro-product-detail {
    width: 100%;
}

/* The purchase flow is one grid child. Keeping it intact is what places the
 * summary and its tabs in the right column instead of stacking the gallery
 * above a full-width card. */
.kochuro-product-flow {
    display: block;
    min-width: 0;
}

/* Match KOCHURO's measured purchase panel while retaining Kochuro's teal
 * interior palette. */
.kochuro-product-summary {
    min-width: 0;
    padding: 32px;
    border: 1px solid #d5e5e7;
    border-radius: 18px;
    background: #f2f7f8;
}

.kochuro-product-summary > *:first-child {
    margin-top: 0;
}

.kochuro-product-summary form.cart {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0 18px;
}

.kochuro-product-summary .kochuro-quantity {
    display: block !important;
    width: 152px !important;
    min-width: 152px !important;
    height: auto !important;
    border: 0 !important;
    background: transparent !important;
}

.kochuro-quantity__label {
    display: block;
    margin: 0 0 7px;
    color: var(--kochuro-ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.kochuro-quantity__controls {
    display: grid;
    width: 152px;
    height: 50px;
    grid-template-columns: 46px 60px 46px;
    overflow: hidden;
    border: 1px solid #c9dadd;
    border-radius: 7px;
    background: #fff;
}

.kochuro-quantity__button {
    display: grid;
    width: 46px;
    height: 48px;
    margin: 0;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    color: var(--kochuro-ink);
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}

.kochuro-quantity__button:hover,
.kochuro-quantity__button:focus-visible {
    background: #e6f3f4;
    color: var(--kochuro-green);
}

.kochuro-quantity__button:disabled {
    color: #a9b9bd;
    cursor: not-allowed;
}

.kochuro-standalone .kochuro-quantity input.qty {
    width: 60px !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 4px !important;
    border: 0 !important;
    border-right: 1px solid #dce8ea !important;
    border-left: 1px solid #dce8ea !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--kochuro-ink);
    text-align: center;
    appearance: textfield;
}

.kochuro-standalone .kochuro-quantity input.qty::-webkit-outer-spin-button,
.kochuro-standalone .kochuro-quantity input.qty::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.kochuro-product-summary .single_add_to_cart_button {
    width: auto;
    max-width: none;
    min-height: 54px;
    flex: 1 1 230px;
    border-radius: 10px;
}

.kochuro-product-main__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr);
    gap: clamp(26px, 3.6vw, 46px);
    align-items: start;
}

.kochuro-gallery {
    min-width: 0;
}

.kochuro-gallery__stage {
    position: relative;
    overflow: hidden;
    border: 1px solid #e6e9e4;
    border-radius: 14px;
    background: #f3f5ef;
    cursor: grab;
    touch-action: pan-y pinch-zoom;
    user-select: none;
}

.kochuro-gallery__stage.is-dragging {
    cursor: grabbing;
}

.kochuro-gallery__stage .woocommerce-product-gallery__wrapper,
.kochuro-gallery__stage .woocommerce-product-gallery__image {
    width: 100%;
    margin: 0;
}

.kochuro-gallery__main {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center;
    image-rendering: auto;
}

.kochuro-gallery__nav {
    position: absolute;
    z-index: 4;
    top: 50%;
    display: grid;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(58, 58, 58, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
    color: var(--kochuro-ink);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.kochuro-gallery__nav:hover,
.kochuro-gallery__nav:focus-visible {
    background: var(--kochuro-green);
    color: #fff !important;
    transform: translateY(-50%) scale(1.04);
}

.kochuro-gallery__nav--previous { left: 14px; }
.kochuro-gallery__nav--next { right: 14px; }

.kochuro-gallery__nav svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.kochuro-gallery__counter {
    position: absolute;
    z-index: 3;
    right: 14px;
    bottom: 14px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--kochuro-ink);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.kochuro-gallery__thumbs {
    display: grid;
    grid-auto-columns: 78px;
    grid-auto-flow: column;
    gap: 10px;
    margin-top: 13px;
    padding: 2px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}

.kochuro-gallery__thumb {
    width: 78px;
    height: 78px;
    margin: 0;
    padding: 2px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #f5f6f3;
    box-shadow: none;
    cursor: pointer;
}

.kochuro-gallery__thumb:hover,
.kochuro-gallery__thumb.is-active {
    border-color: var(--kochuro-green);
}

.kochuro-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 3px;
    object-fit: contain;
}

.kochuro-product-after {
    width: auto;
    margin: 0;
    padding: 20px 0 0;
}

.kochuro-standalone.single-product .kochuro-product-summary .single_add_to_cart_button,
.kochuro-standalone.single-product .kochuro-sticky-cart__button {
    border-color: var(--kochuro-green) !important;
    background: var(--kochuro-green) !important;
    color: #fff !important;
}

.kochuro-standalone.single-product .kochuro-product-summary .single_add_to_cart_button:hover,
.kochuro-standalone.single-product .kochuro-product-summary .single_add_to_cart_button:focus-visible,
.kochuro-standalone.single-product .kochuro-sticky-cart__button:hover,
.kochuro-standalone.single-product .kochuro-sticky-cart__button:focus-visible {
    border-color: var(--kochuro-green-dark) !important;
    background: var(--kochuro-green-dark) !important;
}

@media (min-width: 901px) {
    .kochuro-product-main__grid > .kochuro-gallery {
        position: sticky;
        z-index: 2;
        top: 120px;
        align-self: start;
    }
}

@media (max-width: 900px) {
    .kochuro-product-main__grid {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr);
        gap: 28px;
    }
}

@media (max-width: 767px) {
    .kochuro-standalone.woocommerce #primary,
    .kochuro-standalone.woocommerce-page #primary {
        width: 100%;
        padding: 28px var(--kochuro-gutter) 60px;
    }

    .kochuro-standalone.single-product #primary {
        padding: 0 22px;
    }

    .kochuro-product-summary {
        padding: 25px 22px 28px;
        border-color: #d5e5e7;
        border-radius: 18px;
        background: #f2f7f8;
    }

    .kochuro-product-main__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .kochuro-gallery__stage {
        border-radius: 11px;
    }

    .kochuro-gallery__thumbs {
        grid-auto-columns: 66px;
        gap: 8px;
        margin-top: 10px;
    }

    .kochuro-gallery__thumb {
        width: 66px;
        height: 66px;
    }

    .kochuro-product-summary .kochuro-quantity {
        width: 144px !important;
        min-width: 144px !important;
    }

    .kochuro-quantity__controls {
        width: 144px;
        grid-template-columns: 44px 56px 44px;
    }

    .kochuro-quantity__button {
        width: 44px;
    }

    .kochuro-standalone .kochuro-quantity input.qty {
        width: 56px !important;
    }

    .kochuro-product-summary .single_add_to_cart_button {
        width: 100%;
        min-height: 64px;
        flex-basis: 100%;
        border-radius: 8px;
    }
}

.kochuro-product-after .woocommerce-Tabs-panel--description > p {
    max-width: 820px;
    font-size: 16px;
    line-height: 1.75;
}

.kochuro-product-after .woocommerce-Tabs-panel--description > ul {
    border-radius: 14px;
}

/* KOCHURO product parity: neutralise WooCommerce's percentage-width loop
 * rule before laying out related products as four equal, image-led cards. */
.kochuro-standalone ul.products {
    clear: both;
}

.kochuro-standalone .kochuro-product-card .star-rating {
    float: none;
    margin: 0;
}

.kochuro-standalone ul.products li.product.kochuro-product-card {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

/* KOCHURO keeps the description, review form and FAQ in the purchase column;
 * the visible tab strip is redundant when every panel is presented in order. */
.kochuro-product-after .woocommerce-tabs {
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid var(--kochuro-line);
}

.kochuro-product-after .woocommerce-tabs ul.tabs,
.kochuro-product-after .woocommerce-tabs ul.tabs::before,
.kochuro-product-after .woocommerce-tabs ul.tabs li::before,
.kochuro-product-after .woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

.kochuro-product-after .woocommerce-tabs .panel {
    display: block !important;
    margin: 0;
    padding: 54px 0;
    border-bottom: 1px solid var(--kochuro-line);
    color: #4d524d;
    line-height: 1.75;
}

.kochuro-product-after .woocommerce-Tabs-panel--description,
.kochuro-product-after .woocommerce-Tabs-panel--additional_information {
    max-width: 880px;
    margin-inline: auto;
}

.kochuro-product-after .woocommerce-Tabs-panel--description > h2:first-child {
    display: none;
}

.kochuro-product-after .woocommerce-tabs .panel > h2:first-child {
    margin-top: 0;
}

@media (min-width: 901px) {
    .kochuro-product-after .woocommerce-tabs {
        width: min(100%, 510px);
        margin-left: auto;
    }
}

/* Empty reviews remain useful trust infrastructure without inventing social
 * proof: customers see a clear first-review prompt and a real form. */
.kochuro-reviews {
    max-width: 980px;
    margin: 0 auto;
}

.kochuro-reviews__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 30px 32px;
    border: 1px solid #dce4da;
    border-radius: 14px;
    background: #f4f7f2;
}

.kochuro-reviews__header h2 {
    margin: 0;
    color: var(--kochuro-ink);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    letter-spacing: -0.025em;
}

.kochuro-review-cta {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid var(--kochuro-green);
    border-radius: 7px;
    background: var(--kochuro-green);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.kochuro-review-cta:hover,
.kochuro-review-cta:focus-visible {
    background: var(--kochuro-green-dark);
    color: #fff !important;
}

.kochuro-reviews__disclosure {
    margin: 16px 0 24px;
    color: #626862;
    font-size: 13px;
    line-height: 1.65;
}

.kochuro-review-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.kochuro-review-card {
    padding: 22px;
    border: 1px solid #dfe3de;
    border-radius: 12px;
    background: #fff;
}

.kochuro-review-card > strong {
    color: var(--kochuro-ink);
    font-size: 13px;
}

.kochuro-review-card__copy {
    margin-top: 15px;
    color: #555b55;
    font-size: 13px;
    line-height: 1.68;
}

.kochuro-review-form .form-submit .submit {
    border: 1px solid var(--kochuro-green) !important;
    background: var(--kochuro-green) !important;
    color: #fff !important;
}

.kochuro-review-form .form-submit .submit:hover,
.kochuro-review-form .form-submit .submit:focus-visible {
    border-color: var(--kochuro-green-dark) !important;
    background: var(--kochuro-green-dark) !important;
    color: #fff !important;
}

/* Related-product dimensions copied from the measured KOCHURO rail. */
.kochuro-related-products {
    margin: 0;
    padding-top: 44px;
    border-top: 1px solid var(--kochuro-line);
}

.kochuro-related-products > h2 {
    margin: 0 0 28px;
    color: var(--kochuro-ink);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.035em;
    line-height: 1.2;
    text-transform: uppercase;
}

.kochuro-standalone .kochuro-related-products ul.products,
.kochuro-standalone .kochuro-related-products__grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px 24px;
    margin: 0;
    overflow: visible;
}

.kochuro-related-products .kochuro-product-card__title {
    min-height: 38px;
    font-size: 15px;
    line-height: 1.28;
}

.kochuro-related-products .kochuro-product-card__media {
    margin-bottom: 14px;
    border-radius: 6px;
}

/* Header/cart controls stay on the active brand token even when a plugin or
 * WooCommerce adds a later generic rule. */
.kochuro-standalone .kochuro-cart-link {
    color: var(--kochuro-ink) !important;
}

.kochuro-standalone .kochuro-cart-link svg {
    fill: none;
    stroke: currentColor;
}

.kochuro-standalone .kochuro-cart-count {
    background: var(--kochuro-green) !important;
    color: #fff !important;
}

.kochuro-standalone.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
.kochuro-standalone.woocommerce-cart .cart_totals .button {
    border-color: var(--kochuro-green) !important;
    background: var(--kochuro-green) !important;
    color: #fff !important;
}

.kochuro-standalone.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover,
.kochuro-standalone.woocommerce-cart .cart_totals .button:hover {
    border-color: var(--kochuro-green-dark) !important;
    background: var(--kochuro-green-dark) !important;
}

/* Checkout field sizing follows KOCHURO's readable 58px control rhythm. */
.kochuro-standalone.woocommerce-checkout form .form-row label {
    font-size: 13px;
    line-height: 1.45;
}

.kochuro-standalone.woocommerce-checkout form .form-row :where(.input-text, select, .select2-selection) {
    box-sizing: border-box;
    min-height: 58px;
    height: 58px;
    font-size: 16px;
}

.kochuro-standalone.woocommerce-checkout form .form-row .select2-selection {
    display: flex;
    align-items: center;
}

.kochuro-standalone.woocommerce-checkout form .form-row .select2-selection__rendered {
    line-height: 1.35;
}

/* A single permitted destination should still read as a full checkout field,
 * not a shrunken text chip. The native control keeps the country explicit and
 * accessible while the storefront filter limits it to Deutschland. */
.kochuro-standalone.woocommerce-checkout #billing_country_field .woocommerce-input-wrapper,
.kochuro-standalone.woocommerce-checkout #shipping_country_field .woocommerce-input-wrapper,
.kochuro-standalone.woocommerce-checkout #billing_country_field select,
.kochuro-standalone.woocommerce-checkout #shipping_country_field select {
    display: block;
    width: 100% !important;
    min-width: 0;
}

.kochuro-standalone.woocommerce-checkout #billing_country_field select,
.kochuro-standalone.woocommerce-checkout #shipping_country_field select {
    padding-right: 38px;
    appearance: auto;
}

/* Replace WooCommerce's lavender payment panel with Kochuro's own cool
 * blue-green checkout surface. */
.kochuro-standalone.woocommerce-checkout #payment,
.kochuro-standalone.woocommerce-checkout .woocommerce-checkout-payment {
    border: 1px solid #cfe3e7 !important;
    border-top: 3px solid var(--kochuro-green) !important;
    border-radius: 12px !important;
    background: #eff8fa !important;
}

.kochuro-standalone.woocommerce-checkout #payment ul.payment_methods {
    background: transparent !important;
}

.kochuro-standalone.woocommerce-checkout #place_order {
    border-color: var(--kochuro-green) !important;
    background: var(--kochuro-green) !important;
    color: #fff !important;
}

.kochuro-standalone.woocommerce-checkout #place_order:hover,
.kochuro-standalone.woocommerce-checkout #place_order:focus-visible {
    border-color: var(--kochuro-green-dark) !important;
    background: var(--kochuro-green-dark) !important;
}

/* Flatsome's default coupon notice uses an icon-font glyph that is not loaded
 * by the standalone storefront. Remove that empty square and keep the copy
 * aligned with the rest of the checkout card. */
.kochuro-standalone.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before,
.kochuro-standalone.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::after {
    display: none !important;
    content: none !important;
}

@media (max-width: 600px) {
    .kochuro-standalone.woocommerce-checkout .kochuro-checkout-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .kochuro-standalone.woocommerce-checkout .kochuro-checkout-steps li {
        min-width: 0;
        flex-direction: column;
        gap: 6px;
        text-align: center;
        line-height: 1.2;
        white-space: normal;
    }

    .kochuro-standalone.woocommerce-checkout .kochuro-checkout-steps li:not(:last-child)::after {
        top: 13px;
        right: auto;
        left: calc(50% + 18px);
        width: calc(100% - 36px);
    }

    .kochuro-standalone.woocommerce-checkout .kochuro-checkout-steps i {
        flex: 0 0 25px;
    }
}

@media (max-width: 900px) {
    .kochuro-standalone .kochuro-related-products ul.products,
    .kochuro-standalone .kochuro-related-products__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 901px) and (max-width: 1100px) {
    .kochuro-standalone.woocommerce-checkout form.checkout {
        grid-template-columns: minmax(0, 1fr) minmax(360px, .96fr);
        gap: 0 32px;
    }

    .kochuro-standalone.woocommerce-checkout #order_review {
        padding: 22px;
    }
}

/* Cart coupon controls: keep the code field readable instead of letting
 * WooCommerce shrink it to a tiny inline input beside the action button. */
.kochuro-standalone.woocommerce-cart .woocommerce-cart-form__contents td.actions {
    display: table-cell !important;
    width: 100% !important;
    box-sizing: border-box;
    text-align: left !important;
    vertical-align: middle;
}

.kochuro-standalone.woocommerce-cart .woocommerce-cart-form__contents td.actions .coupon {
    display: flex;
    width: min(100%, 620px) !important;
    flex: 0 1 620px;
    align-items: center;
    max-width: none !important;
    min-width: 0;
    gap: 12px;
}

.kochuro-standalone.woocommerce-cart .woocommerce-cart-form__contents td.actions .coupon #coupon_code {
    flex: 1 1 260px;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--kochuro-line);
    border-radius: 10px;
    background: #fff;
    color: var(--kochuro-ink);
    font-size: 15px;
    line-height: 1.3;
}

.kochuro-standalone.woocommerce-cart .woocommerce-cart-form__contents td.actions .coupon #coupon_code::placeholder {
    color: #65747b;
    opacity: 1;
}

.kochuro-standalone.woocommerce-cart .woocommerce-cart-form__contents td.actions .coupon .button,
.kochuro-standalone.woocommerce-cart .woocommerce-cart-form__contents td.actions > .button[name="update_cart"] {
    min-height: 52px;
    padding: 12px 22px;
    border: 2px solid var(--kochuro-green);
    border-radius: 10px;
    background: var(--kochuro-green);
    color: #fff;
    font-weight: 700;
}

.kochuro-standalone.woocommerce-cart .woocommerce-cart-form__contents td.actions > .button[name="update_cart"] {
    margin-left: auto;
}

/* Legal pages use the same measured, card-led rhythm as the storefront while
 * keeping long policy copy easy to scan. */
.kochuro-standalone .kochuro-legal-page {
    background: var(--kochuro-paper);
}

.kochuro-standalone .kochuro-legal-page__layout {
    max-width: 1120px;
}

.kochuro-standalone .kochuro-legal-page__header {
    max-width: 960px;
    margin-inline: auto;
    margin-bottom: 28px;
    padding: clamp(26px, 4vw, 42px);
    border: 1px solid #d8e5e7;
    border-radius: 18px;
    background: #eff8fa;
}

.kochuro-standalone .kochuro-legal-page__content {
    max-width: 960px;
    margin-inline: auto;
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid #dce6e8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(22, 77, 88, .06);
}

.kochuro-standalone .kochuro-legal-page__content--contact,
.kochuro-standalone .kochuro-legal-page__content--payment-information {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.kochuro-standalone .kochuro-legal-page__content--contact > .kochuro-policy-updated,
.kochuro-standalone .kochuro-legal-page__content--payment-information > .kochuro-policy-updated,
.kochuro-standalone .kochuro-legal-page__content--contact > .kochuro-contact-overview,
.kochuro-standalone .kochuro-legal-page__content--payment-information > .kochuro-policy-summary,
.kochuro-standalone .kochuro-legal-page__content--contact > p:nth-of-type(2),
.kochuro-standalone .kochuro-legal-page__content--payment-information > p:nth-of-type(2) {
    grid-column: 1 / -1;
}

.kochuro-standalone .kochuro-legal-page__content--contact > .kochuro-policy-updated,
.kochuro-standalone .kochuro-legal-page__content--payment-information > .kochuro-policy-updated {
    margin: 0 0 18px;
}

.kochuro-standalone .kochuro-contact-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0 0 28px;
    overflow: hidden;
    border: 1px solid #d8e5e7;
    border-radius: 12px;
    background: #d8e5e7;
}

.kochuro-standalone .kochuro-contact-overview > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    background: #f2f9fa;
}

.kochuro-standalone .kochuro-contact-overview strong,
.kochuro-standalone .kochuro-payment-summary strong {
    color: var(--kochuro-ink);
}

.kochuro-standalone .kochuro-contact-overview a,
.kochuro-standalone .kochuro-contact-overview span {
    overflow-wrap: anywhere;
    color: #536a73;
    font-size: 14px;
    line-height: 1.45;
}

.kochuro-standalone .kochuro-payment-summary {
    margin: 0 0 28px;
}

.kochuro-standalone .kochuro-legal-page__content--contact > h2,
.kochuro-standalone .kochuro-legal-page__content--payment-information > h2 {
    margin: 0;
    padding: 24px 20px 8px;
    border-top: 1px solid #dce6e8;
    font-size: 18px;
    line-height: 1.3;
}

.kochuro-standalone .kochuro-legal-page__content--contact > h2 + p,
.kochuro-standalone .kochuro-legal-page__content--payment-information > h2 + p {
    margin: 0;
    padding: 24px 20px;
    border-top: 1px solid #dce6e8;
    line-height: 1.65;
}

@media (max-width: 700px) {
    .kochuro-standalone.woocommerce-cart .woocommerce-cart-form__contents td.actions {
        display: block !important;
        width: 100% !important;
    }

    .kochuro-standalone.woocommerce-cart .woocommerce-cart-form__contents td.actions {
        align-items: stretch;
    }

    .kochuro-standalone.woocommerce-cart .woocommerce-cart-form__contents td.actions .coupon {
        flex-basis: 100%;
        width: 100% !important;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .kochuro-standalone.woocommerce-cart .woocommerce-cart-form__contents td.actions .coupon .button,
    .kochuro-standalone.woocommerce-cart .woocommerce-cart-form__contents td.actions > .button[name="update_cart"] {
        width: 100%;
        margin-left: 0;
    }

    .kochuro-standalone .kochuro-legal-page__content--contact,
    .kochuro-standalone .kochuro-legal-page__content--payment-information {
        display: block;
    }

    .kochuro-standalone .kochuro-contact-overview {
        grid-template-columns: 1fr;
    }

    .kochuro-standalone .kochuro-legal-page__content--contact > h2,
    .kochuro-standalone .kochuro-legal-page__content--payment-information > h2,
    .kochuro-standalone .kochuro-legal-page__content--contact > h2 + p,
    .kochuro-standalone .kochuro-legal-page__content--payment-information > h2 + p {
        padding-inline: 0;
    }
}

@media (max-width: 767px) {
    .kochuro-product-after .woocommerce-tabs .panel {
        padding: 30px 0 44px;
        font-size: 14px;
    }

    .kochuro-reviews__header {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px 20px;
    }

    .kochuro-review-cta {
        width: 100%;
    }

    .kochuro-review-cards {
        grid-template-columns: 1fr;
    }

    .kochuro-related-products {
        padding-top: 34px;
    }

    .kochuro-related-products > h2 {
        margin-bottom: 22px;
        font-size: 18px;
        letter-spacing: 0.025em;
    }

    .kochuro-standalone .kochuro-related-products ul.products,
    .kochuro-standalone .kochuro-related-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 16px;
    }

    .kochuro-related-products .kochuro-product-card__title {
        min-height: 0;
        font-size: 14px;
        line-height: 1.32;
    }

    .kochuro-standalone.woocommerce-checkout form .form-row label {
        margin-bottom: 8px;
        font-size: 14px;
    }

    .kochuro-standalone.woocommerce-checkout form .form-row :where(.input-text, select, .select2-selection) {
        min-height: 58px;
        height: 58px;
        font-size: 16px;
    }
}

@media (max-width: 374px) {
    .kochuro-standalone .kochuro-related-products ul.products,
    .kochuro-standalone .kochuro-related-products__grid {
        gap: 26px 12px;
    }
}

/* KOCHURO checkout composition, carried into the Kochuro brand layer. */
@media (min-width: 901px) {
    .kochuro-standalone.woocommerce-checkout .kochuro-content-page__inner,
    .kochuro-standalone.woocommerce-checkout .kochuro-entry,
    .kochuro-standalone.woocommerce-checkout .elementor,
    .kochuro-standalone.woocommerce-checkout .elementor-section,
    .kochuro-standalone.woocommerce-checkout .elementor-container,
    .kochuro-standalone.woocommerce-checkout .elementor-column,
    .kochuro-standalone.woocommerce-checkout .elementor-widget-wrap,
    .kochuro-standalone.woocommerce-checkout .elementor-widget,
    .kochuro-standalone.woocommerce-checkout .elementor-widget-container,
    .kochuro-standalone.woocommerce-checkout .elementor-shortcode {
        width: 100%;
        max-width: none;
    }

    .kochuro-standalone.woocommerce-checkout .kochuro-content-page__inner {
        width: min(calc(100% - (var(--kochuro-gutter) * 2)), 1120px);
    }

    .kochuro-standalone.woocommerce-checkout .woocommerce {
        width: 100%;
        max-width: none;
    }

    .kochuro-standalone.woocommerce-checkout form.checkout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(420px, .96fr);
        gap: 0 64px;
        align-items: start;
    }

    .kochuro-standalone.woocommerce-checkout form.checkout > .col2-set {
        grid-column: 1;
        grid-row: 1 / span 3;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: #fff;
        box-shadow: none;
    }

    .kochuro-standalone.woocommerce-checkout form.checkout > .col2-set :where(.col-1, .col-2) {
        float: none;
        width: 100%;
    }

    .kochuro-standalone.woocommerce-checkout #order_review_heading {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        padding: 0 0 18px;
        color: var(--kochuro-ink);
        font-size: 22px;
        font-weight: 750;
        letter-spacing: -.02em;
    }

    .kochuro-standalone.woocommerce-checkout #order_review {
        position: sticky;
        top: 20px;
        grid-column: 2;
        grid-row: 2;
        overflow: hidden;
        padding: 28px;
        border: 1px solid #d8e0d7;
        border-top: 4px solid var(--kochuro-green);
        border-radius: 14px;
        background: #eff8fa;
        box-shadow: 0 12px 34px rgba(29, 55, 31, .06);
    }

    .kochuro-standalone.woocommerce-checkout .woocommerce-additional-fields {
        display: none;
    }
}

.kochuro-checkout-footer {
    border-top: 1px solid var(--kochuro-line);
    background: #fff;
}

.kochuro-checkout-footer__inner {
    display: flex;
    min-height: 116px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.kochuro-checkout-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
}

.kochuro-checkout-footer__links a {
    color: #4f554f;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.kochuro-checkout-footer .kochuro-footer__payments {
    flex: 0 0 auto;
}

@media (max-width: 900px) {
    .kochuro-standalone.woocommerce-checkout form.checkout {
        display: block;
    }

    .kochuro-standalone.woocommerce-checkout #order_review {
        position: static;
    }
}

@media (max-width: 767px) {
    .kochuro-checkout-footer__inner {
        min-height: 0;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .kochuro-checkout-footer__links {
        gap: 10px 18px;
    }
}

/* Preserve two-column checkout on compact desktop/tablet widths without
 * squeezing the address fields against the payment rail. */
@media (min-width: 901px) and (max-width: 1100px) {
    .kochuro-standalone.woocommerce-checkout form.checkout {
        grid-template-columns: minmax(0, 1fr) minmax(360px, .96fr);
        gap: 0 32px;
    }

    .kochuro-standalone.woocommerce-checkout #order_review {
        padding: 22px;
    }
}


/* Codex checkout layout refinement */
.kochuro-standalone.woocommerce-checkout .woocommerce-checkout-review-order-table :where(th.product-name, td.product-name) {
    padding-inline: 14px !important;
    overflow-wrap: anywhere;
}

.kochuro-checkout-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, .9fr) auto;
    align-items: center;
    gap: 18px 28px;
}

.kochuro-checkout-footer__links {
    min-width: 0;
    align-items: center;
}

.kochuro-checkout-footer__operator {
    min-width: 0;
    max-width: 34rem;
    margin: 0;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.55;
}

.kochuro-checkout-footer .kochuro-footer__payments {
    min-width: 0;
    justify-self: end;
    flex-wrap: wrap;
    justify-content: flex-end;
}
@media (max-width: 900px) {
    .kochuro-checkout-footer__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }
    .kochuro-checkout-footer__operator {
        grid-column: 1 / -1;
        max-width: none;
    }
}
@media (max-width: 767px) {
    .kochuro-standalone.woocommerce-checkout form.checkout .form-row#billing_first_name_field,
    .kochuro-standalone.woocommerce-checkout form.checkout .form-row#billing_last_name_field,
    .kochuro-standalone.woocommerce-checkout form.checkout .form-row#shipping_first_name_field,
    .kochuro-standalone.woocommerce-checkout form.checkout .form-row#shipping_last_name_field {
        width: 100% !important;
        float: none !important;
        clear: both !important;
        margin-right: 0 !important;
    }
    .kochuro-checkout-footer__inner {
        grid-template-columns: 1fr;
        gap: 16px;
        min-height: 0;
        padding-top: 24px;
        padding-bottom: 24px;
    }
    .kochuro-checkout-footer__operator {
        grid-column: auto;
        width: 100%;
        text-align: left;
    }
    .kochuro-checkout-footer .kochuro-footer__payments {
        justify-self: start;
        justify-content: flex-start;
    }
}


/* Codex mobile spacing refinement */
.kochuro-standalone.woocommerce-checkout .woocommerce-checkout-review-order-table th,
.kochuro-standalone.woocommerce-checkout .woocommerce-checkout-review-order-table td {
    padding-left: 14px !important;
    padding-right: 14px !important;
}

.kochuro-standalone.woocommerce-checkout .woocommerce-checkout-review-order-table th.product-name,
.kochuro-standalone.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name {
    padding-left: 18px !important;
    padding-right: 18px !important;
}
@media (max-width: 900px) {
    .kochuro-standalone.woocommerce-checkout form.checkout .form-row#billing_first_name_field,
    .kochuro-standalone.woocommerce-checkout form.checkout .form-row#billing_last_name_field,
    .kochuro-standalone.woocommerce-checkout form.checkout .form-row#shipping_first_name_field,
    .kochuro-standalone.woocommerce-checkout form.checkout .form-row#shipping_last_name_field {
        width: 100% !important;
        float: none !important;
        clear: both !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}
