body.cosmo-wc-body {
    margin: 0;
    background: #f4f4f2;
    color: #141414;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.cosmo-wc-body * {
    box-sizing: border-box;
}

body.cosmo-wc-body a {
    color: inherit;
    text-decoration: none;
}

.cosmo-woocommerce {
    min-height: 100vh;
    padding: 48px 24px 72px;
}

.cosmo-wc-stage {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.cosmo-wc-header {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 14px 22px;
    background: #060606;
    border: 1px solid #161616;
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(20, 20, 20, 0.06);
}

.cosmo-wc-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
}

.cosmo-wc-brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    border-radius: 8px;
    background: #151515;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.cosmo-wc-brand-logo {
    width: 174px;
    height: 58px;
    display: block;
    border-radius: 4px;
    object-fit: cover;
    object-position: center;
}

.cosmo-wc-brand-name,
.cosmo-wc-brand-note {
    display: block;
    line-height: 1.15;
}

.cosmo-wc-brand-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    color: #111;
}

.cosmo-wc-brand-note {
    margin-top: 3px;
    color: #77716a;
    font-size: 11px;
    font-weight: 600;
}

.cosmo-wc-brand-note-logo {
    max-width: 112px;
    color: #b8b1a8;
    font-size: 11px;
    text-transform: uppercase;
}

.cosmo-wc-nav,
.cosmo-wc-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #d2cec8;
    font-size: 13px;
    font-weight: 700;
}

.cosmo-wc-nav a,
.cosmo-wc-actions a {
    transition: color 160ms ease;
}

.cosmo-wc-nav a:hover,
.cosmo-wc-actions a:hover {
    color: #9a5b22;
}

.cosmo-wc-actions span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 0 13px;
    background: #fff;
    color: #161616;
}

.cosmo-wc-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding: 38px 4px 26px;
}

.cosmo-wc-steps {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #74706a;
    font-size: 12px;
    font-weight: 800;
}

.cosmo-wc-steps span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cosmo-wc-steps span + span::before {
    content: "";
    width: 5px;
    height: 5px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.65;
}

.cosmo-wc-intro h1 {
    margin: 0;
    color: #111;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.02;
    font-weight: 500;
}

.cosmo-wc-intro p {
    max-width: 560px;
    margin: 12px 0 0;
    color: #625d56;
    font-size: 15px;
    line-height: 1.65;
}

.cosmo-wc-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    max-width: 360px;
}

.cosmo-wc-trust span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    border: 1px solid #e3ded6;
    border-radius: 8px;
    padding: 0 10px;
    background: #fff;
    color: #565049;
    font-size: 12px;
    font-weight: 800;
}

.cosmo-wc-content .woocommerce {
    width: 100%;
}

.cosmo-wc-content .woocommerce-notices-wrapper,
.cosmo-wc-content .woocommerce-NoticeGroup,
.cosmo-wc-content .woocommerce-form-coupon-toggle,
.cosmo-wc-content .woocommerce-message,
.cosmo-wc-content .woocommerce-error,
.cosmo-wc-content .woocommerce-info {
    grid-column: 1 / -1;
}

.cosmo-wc-content .woocommerce-info,
.cosmo-wc-content .woocommerce-message,
.cosmo-wc-content .woocommerce-error {
    margin: 0 0 18px;
    border: 1px solid #e3ded6;
    border-radius: 8px;
    padding: 15px 18px;
    background: #fff;
    color: #3c3731;
    box-shadow: 0 10px 28px rgba(20, 20, 20, 0.05);
}

.cosmo-wc-content .woocommerce-error {
    border-color: #e3b9b0;
    background: #fff8f6;
}

.cosmo-wc-content .woocommerce-info::before,
.cosmo-wc-content .woocommerce-message::before,
.cosmo-wc-content .woocommerce-error::before {
    display: none;
}

.cosmo-wc-content form.checkout_coupon,
.cosmo-wc-content form.woocommerce-form-login {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin: 0 0 22px;
    border: 1px solid #e6e1da;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}

.cosmo-wc-content form.checkout_coupon p,
.cosmo-wc-content form.woocommerce-form-login p {
    margin: 0;
}

.cosmo-wc-content form.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 390px);
    gap: 34px;
    align-items: start;
}

.cosmo-wc-content #customer_details,
.cosmo-wc-content #order_review,
.cosmo-wc-content .woocommerce-cart-form,
.cosmo-wc-content .cart_totals,
.cosmo-wc-content .woocommerce-MyAccount-navigation,
.cosmo-wc-content .woocommerce-MyAccount-content {
    border: 1px solid #e6e1da;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(20, 20, 20, 0.06);
}

.cosmo-wc-content #customer_details {
    grid-column: 1;
    grid-row: 1 / span 3;
    padding: 28px;
}

.cosmo-wc-content #customer_details .col-1,
.cosmo-wc-content #customer_details .col-2,
.woocommerce-page .cosmo-wc-content #customer_details .col-1,
.woocommerce-page .cosmo-wc-content #customer_details .col-2 {
    float: none;
    width: 100%;
}

.cosmo-wc-content #customer_details .col-2 {
    margin-top: 28px;
}

.cosmo-wc-content h3,
.cosmo-wc-content .woocommerce-billing-fields h3,
.cosmo-wc-content .woocommerce-shipping-fields h3 {
    margin: 0 0 22px;
    color: #121212;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 850;
}

.cosmo-wc-content #order_review_heading {
    grid-column: 2;
    margin: 0;
    border: 1px solid #e6e1da;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    padding: 22px 24px 4px;
    background: #fff;
    color: transparent;
    font-size: 0;
    box-shadow: 0 18px 50px rgba(20, 20, 20, 0.06);
}

.cosmo-wc-content #order_review_heading::after {
    content: "Your Cart";
    color: #121212;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 850;
}

.cosmo-wc-content #order_review {
    grid-column: 2;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    padding: 8px 24px 24px;
    position: sticky;
    top: 28px;
}

.cosmo-wc-content .woocommerce-billing-fields__field-wrapper,
.cosmo-wc-content .woocommerce-shipping-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 16px;
}

.cosmo-wc-content form .form-row,
.woocommerce-page .cosmo-wc-content form .form-row {
    width: 100%;
    float: none;
    margin: 0;
    padding: 0;
}

.cosmo-wc-content form .form-row-wide,
.cosmo-wc-content #billing_company_field,
.cosmo-wc-content #billing_country_field,
.cosmo-wc-content #billing_address_1_field,
.cosmo-wc-content #billing_address_2_field,
.cosmo-wc-content #billing_email_field,
.cosmo-wc-content #shipping_company_field,
.cosmo-wc-content #shipping_country_field,
.cosmo-wc-content #shipping_address_1_field,
.cosmo-wc-content #shipping_address_2_field,
.cosmo-wc-content .woocommerce-additional-fields {
    grid-column: 1 / -1;
}

.cosmo-wc-content form .form-row label {
    display: block;
    margin: 0 0 7px;
    color: #2f2b27;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 800;
}

.cosmo-wc-content form .required {
    color: #9a5b22;
    text-decoration: none;
}

.cosmo-wc-content input.input-text,
.cosmo-wc-content textarea,
.cosmo-wc-content select,
.cosmo-wc-content .select2-container .select2-selection--single {
    width: 100%;
    min-height: 46px;
    border: 1px solid #dcd7cf;
    border-radius: 8px;
    background: #fff;
    color: #171717;
    font: inherit;
    font-size: 14px;
    line-height: 1.3;
    box-shadow: 0 1px 2px rgba(20, 20, 20, 0.04);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.cosmo-wc-content input.input-text,
.cosmo-wc-content textarea {
    padding: 12px 13px;
}

.cosmo-wc-content textarea {
    min-height: 108px;
    resize: vertical;
}

.cosmo-wc-content input.input-text:focus,
.cosmo-wc-content textarea:focus,
.cosmo-wc-content select:focus,
.cosmo-wc-content .select2-container--focus .select2-selection--single {
    outline: 0;
    border-color: #9a5b22;
    box-shadow: 0 0 0 3px rgba(154, 91, 34, 0.14);
}

.cosmo-wc-content .select2-container .select2-selection--single {
    display: flex;
    align-items: center;
}

.cosmo-wc-content .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 13px;
    padding-right: 34px;
    color: #171717;
    line-height: 44px;
}

.cosmo-wc-content .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
    right: 8px;
}

.cosmo-wc-content .shop_table {
    margin: 0;
    border: 0;
    border-collapse: collapse;
    background: transparent;
}

.cosmo-wc-content .shop_table th,
.cosmo-wc-content .shop_table td {
    border: 0;
    padding: 11px 0;
    color: #2d2925;
    font-size: 14px;
    line-height: 1.45;
    vertical-align: top;
}

.cosmo-wc-content .shop_table th {
    color: #625d56;
    font-weight: 750;
}

.cosmo-wc-content .shop_table .product-name {
    color: #141414;
    font-weight: 800;
}

.cosmo-wc-content .shop_table .product-total,
.cosmo-wc-content .shop_table tfoot td {
    text-align: right;
    color: #111;
    font-weight: 800;
}

.cosmo-wc-content .shop_table tfoot tr:first-child th,
.cosmo-wc-content .shop_table tfoot tr:first-child td {
    padding-top: 18px;
    border-top: 1px solid #ebe6df;
}

.cosmo-wc-content .shop_table .order-total th,
.cosmo-wc-content .shop_table .order-total td {
    padding-top: 18px;
    color: #111;
    font-size: 18px;
    font-weight: 900;
}

.cosmo-wc-content #payment {
    margin-top: 20px;
    border-top: 1px solid #ebe6df;
    background: transparent;
}

.cosmo-wc-content #payment ul.payment_methods {
    border: 0;
    padding: 18px 0 8px;
}

.cosmo-wc-content #payment ul.payment_methods li {
    margin: 0 0 12px;
    color: #2d2925;
    line-height: 1.5;
}

.cosmo-wc-content #payment div.payment_box {
    width: 100%;
    margin: 12px 0 0;
    border-radius: 8px;
    background: #f6f4f0;
    color: #4f4942;
}

.cosmo-wc-content #payment div.payment_box::before {
    border-bottom-color: #f6f4f0;
}

.cosmo-wc-content #payment .place-order {
    margin: 0;
    padding: 14px 0 0;
}

.cosmo-wc-content .button,
.cosmo-wc-content button.button,
.cosmo-wc-content input.button,
.cosmo-wc-content a.button,
.cosmo-wc-content #place_order,
.cosmo-wc-content .wc-forward,
.cosmo-wc-content .checkout-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    background: #101010;
    color: #fff;
    font-size: 14px;
    font-weight: 850;
    line-height: 1;
    box-shadow: none;
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease;
}

.cosmo-wc-content .button:hover,
.cosmo-wc-content button.button:hover,
.cosmo-wc-content input.button:hover,
.cosmo-wc-content a.button:hover,
.cosmo-wc-content #place_order:hover,
.cosmo-wc-content .wc-forward:hover,
.cosmo-wc-content .checkout-button:hover {
    background: #2a241f;
    color: #fff;
    transform: translateY(-1px);
}

.cosmo-wc-content #place_order,
.cosmo-wc-content .checkout-button {
    width: 100%;
}

.cosmo-wc-content .woocommerce-privacy-policy-text {
    color: #68625b;
    font-size: 12px;
    line-height: 1.55;
}

.cosmo-wc-content .woocommerce-terms-and-conditions-wrapper {
    margin-top: 12px;
}

.cosmo-wc-content .cart-empty,
.cosmo-wc-content .return-to-shop {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.cosmo-wc-content .cart-empty {
    border: 1px solid #e6e1da;
    border-radius: 8px;
    padding: 32px;
    background: #fff;
}

.cosmo-wc-surface-cart .cosmo-wc-content .woocommerce {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    gap: 30px;
    align-items: start;
}

.cosmo-wc-surface-cart .cosmo-wc-content .woocommerce-cart-form {
    padding: 24px;
}

.cosmo-wc-surface-cart .cosmo-wc-content .cart-collaterals {
    width: auto;
}

.cosmo-wc-surface-cart .cosmo-wc-content .cart_totals {
    float: none;
    width: 100%;
    padding: 24px;
}

.cosmo-wc-surface-cart .cosmo-wc-content .cart_totals h2 {
    margin: 0 0 18px;
    font-size: 22px;
}

.cosmo-wc-surface-cart .cosmo-wc-content .cart_totals table {
    margin-bottom: 20px;
}

.cosmo-wc-surface-cart .cosmo-wc-content .cart-collaterals,
.cosmo-wc-surface-cart .cosmo-wc-content .woocommerce-cart-form {
    grid-column: auto;
}

.cosmo-wc-content .woocommerce-MyAccount-navigation,
.cosmo-wc-content .woocommerce-MyAccount-content {
    padding: 24px;
}

.cosmo-wc-content .woocommerce-MyAccount-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cosmo-wc-content .woocommerce-MyAccount-navigation li a {
    display: block;
    border-bottom: 1px solid #eee8df;
    padding: 12px 0;
    font-weight: 800;
}

@media (max-width: 900px) {
    .cosmo-woocommerce {
        padding: 18px 14px 48px;
    }

    .cosmo-wc-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .cosmo-wc-brand {
        min-width: 0;
    }

    .cosmo-wc-nav,
    .cosmo-wc-actions {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
    }

    .cosmo-wc-intro {
        display: block;
        padding: 28px 2px 20px;
    }

    .cosmo-wc-trust {
        justify-content: flex-start;
        max-width: none;
        margin-top: 18px;
    }

    .cosmo-wc-content form.checkout,
    .cosmo-wc-surface-cart .cosmo-wc-content .woocommerce {
        display: block;
    }

    .cosmo-wc-content #customer_details,
    .cosmo-wc-content #order_review,
    .cosmo-wc-content #order_review_heading,
    .cosmo-wc-surface-cart .cosmo-wc-content .woocommerce-cart-form,
    .cosmo-wc-surface-cart .cosmo-wc-content .cart_totals {
        width: 100%;
        margin: 0;
    }

    .cosmo-wc-content #customer_details,
    .cosmo-wc-surface-cart .cosmo-wc-content .woocommerce-cart-form {
        padding: 20px;
    }

    .cosmo-wc-content #order_review_heading {
        margin-top: 22px;
        padding: 20px 20px 4px;
    }

    .cosmo-wc-content #order_review {
        position: static;
        padding: 8px 20px 20px;
    }

    .cosmo-wc-content .woocommerce-billing-fields__field-wrapper,
    .cosmo-wc-content .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: 1fr;
    }

    .cosmo-wc-content form.checkout_coupon,
    .cosmo-wc-content form.woocommerce-form-login {
        grid-template-columns: 1fr;
    }

    .cosmo-wc-surface-cart .cosmo-wc-content .cart_totals {
        margin-top: 22px;
    }
}

@media (max-width: 540px) {
    .cosmo-wc-nav {
        display: none;
    }

    .cosmo-wc-actions a {
        display: none;
    }

    .cosmo-wc-intro h1 {
        font-size: 34px;
    }

    .cosmo-wc-trust span {
        width: 100%;
        justify-content: center;
    }

    .cosmo-wc-content .shop_table th,
    .cosmo-wc-content .shop_table td {
        font-size: 13px;
    }
}
