.elshop-cart-control{--elshop-accent:var(--theme-button-background-initial-color,#2872fa);--elshop-accent-hover:var(--theme-button-background-hover-color,#1f5ed2);display:inline-flex;align-items:stretch;justify-content:center;min-width:138px;min-height:40px;vertical-align:middle;border-radius:4px;overflow:hidden}.elshop-cart-control button{font:inherit;font-weight:600;line-height:1;border:0;border-radius:0;cursor:pointer;transition:background-color .15s ease,opacity .15s ease}.elshop-cart-control button:disabled{cursor:wait;opacity:.65}.elshop-cart-control__add{width:100%;min-height:40px;padding:.75em 1.25em;color:var(--theme-button-text-initial-color,#fff);background:var(--elshop-accent)}.elshop-cart-control__add:hover:not(:disabled){color:var(--theme-button-text-hover-color,#fff);background:var(--elshop-accent-hover)}.elshop-cart-control__step{width:42px;min-height:40px;padding:0;font-size:21px!important;color:#fff;background:var(--elshop-accent)}.elshop-cart-control__step:hover:not(:disabled){background:var(--elshop-accent-hover)}.elshop-cart-control__cart{display:inline-flex;align-items:center;justify-content:center;width:42px;min-height:40px;color:#fff;background:var(--elshop-accent);border-left:1px solid rgba(255,255,255,.28);text-decoration:none}.elshop-cart-control__cart:hover{color:#fff;background:var(--elshop-accent-hover)}.elshop-cart-control__cart svg{width:19px;height:19px;fill:currentColor}.elshop-cart-control.is-busy .elshop-cart-control__cart{pointer-events:none;opacity:.65}.elshop-cart-control__value{display:inline-flex;align-items:center;justify-content:center;min-width:46px;padding:0 .4rem;font-weight:700;color:var(--theme-text-color,#1e293b);background:#f5f8ff;border-block:1px solid #dbe7ff}.elshop-cart-control--block{margin-inline:auto}.elshop-header-cart{--elshop-cart-color:var(--theme-text-color,#1e293b);position:relative;display:inline-flex;align-items:center;gap:9px;min-height:34px;color:var(--elshop-cart-color);text-decoration:none}.elshop-header-cart:hover{color:var(--theme-link-hover-color,var(--theme-palette-color-2,#2872fa))}.elshop-header-cart__icon{position:relative;display:inline-flex;width:24px;height:24px}.elshop-header-cart__icon svg{width:24px;height:24px;fill:currentColor}.elshop-header-cart__badge{position:absolute;top:-8px;right:-10px;display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;font-size:11px;font-weight:700;line-height:1;color:#fff;background:var(--theme-palette-color-1,#2872fa)}.elshop-header-cart__text{display:inline-flex;flex-direction:column;line-height:1.05}.elshop-header-cart__label{font-size:13px;font-weight:600}.elshop-header-cart__total{min-height:12px;margin-top:3px;font-size:11px;opacity:.72}#header [data-device="desktop"] .elshop-header-cart{margin-inline-start:6px}#header [data-device="mobile"] .elshop-header-cart{margin-inline-end:18px}#header [data-device="mobile"] .elshop-header-cart__text{display:none}@media(max-width:689px){.elshop-cart-control{min-width:132px}.elshop-cart-control__step{width:40px}.elshop-cart-control__value{min-width:44px}}

/* Shop archive polish */
body.woocommerce-shop .hero-section {
    min-height: 0 !important;
    height: auto !important;
    padding: 34px 0 12px !important;
    background: transparent !important;
}

body.woocommerce-shop .hero-section .entry-header {
    width: min(1290px, calc(100% - 60px));
    max-width: 1290px !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin-inline: auto;
    display: block !important;
    text-align: left;
}

body.woocommerce-shop .hero-section .page-title {
    margin: 0;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.15;
}

body.woocommerce-shop .woo-listing-top:empty {
    display: none;
}

body.woocommerce-shop .ct-container[data-vertical-spacing] {
    padding-top: 28px;
}

body.woocommerce-shop ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 30px !important;
}

body.woocommerce-shop ul.products > li.product {
    height: 100%;
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, .09);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 22px rgba(15, 23, 42, .045);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

body.woocommerce-shop ul.products > li.product:hover {
    transform: translateY(-2px);
    border-color: rgba(40, 114, 250, .22);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .075);
}

body.woocommerce-shop ul.products > li.product figure {
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 8px;
}

body.woocommerce-shop ul.products .woocommerce-loop-product__title {
    min-height: 3.25em;
    margin-bottom: 9px;
    line-height: 1.42;
}

body.woocommerce-shop ul.products .price {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
}

body.woocommerce-shop ul.products .entry-meta {
    display: none !important;
}

body.woocommerce-shop ul.products .ct-woo-card-actions {
    margin-top: auto;
}

@media (max-width: 999px) {
    body.woocommerce-shop ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 689px) {
    body.woocommerce-shop .hero-section {
        padding: 24px 0 4px !important;
    }

    body.woocommerce-shop .hero-section .entry-header {
        width: min(100% - 30px, 1290px);
    }

    body.woocommerce-shop .ct-container[data-vertical-spacing] {
        padding-top: 20px;
    }

    body.woocommerce-shop ul.products {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    body.woocommerce-shop ul.products > li.product {
        padding: 14px;
    }

    body.woocommerce-shop ul.products .woocommerce-loop-product__title {
        min-height: 0;
    }
}

/* Single product polish */
body.single-product .hero-section .ct-breadcrumbs .last-item,
body.single-product .hero-section .ct-breadcrumbs .item-0 .ct-separator {
    display: none !important;
}

body.single-product .summary.entry-summary .product_title {
    margin-bottom: 12px;
    font-size: clamp(28px, 2.5vw, 38px);
    line-height: 1.18;
    letter-spacing: -0.02em;
}

body.single-product .summary.entry-summary > .price {
    margin-bottom: 20px;
    font-size: clamp(25px, 2.1vw, 32px);
    font-weight: 750;
    line-height: 1.1;
    color: var(--theme-text-color, #1e293b);
}

body.single-product .woocommerce-product-details__short-description {
    margin-bottom: 22px;
}

body.single-product .woocommerce-product-details__short-description ul {
    margin: 0;
    padding-left: 1.2em;
}

body.single-product .woocommerce-product-details__short-description li {
    margin-bottom: 7px;
    line-height: 1.55;
}

body.single-product .ct-product-add-to-cart {
    margin-top: 0;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, .09);
    border-radius: 12px;
    background: #f8fafc;
}

body.single-product .ct-product-add-to-cart .stock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 12px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
}

body.single-product .ct-product-add-to-cart .stock.in-stock {
    color: #166534;
    background: #dcfce7;
}

body.single-product .ct-product-add-to-cart .stock.in-stock::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
}

body.single-product .ct-product-add-to-cart .ct-cart-actions {
    align-items: stretch;
    gap: 10px;
}

body.single-product .ct-product-add-to-cart .quantity,
body.single-product .ct-product-add-to-cart .single_add_to_cart_button {
    min-height: 44px;
}

body.single-product .ct-product-add-to-cart .single_add_to_cart_button {
    min-width: 150px;
}

body.single-product .elshop-declaration {
    position: relative;
    margin-top: 18px;
    padding: 14px 16px 14px 18px;
    border: 1px solid rgba(40, 114, 250, .14);
    border-left: 3px solid var(--theme-palette-color-1, #2872fa);
    border-radius: 9px;
    background: #f8fbff;
    font-size: 13px;
    line-height: 1.55;
    color: #475569;
}

body.single-product .elshop-declaration strong {
    color: var(--theme-text-color, #1e293b);
}

body.single-product .elshop-declaration a {
    display: inline-block;
    margin-left: 4px;
    font-weight: 600;
}

body.single-product .product_meta {
    gap: 6px;
    font-size: 13px;
    color: #64748b;
}

@media (max-width: 689px) {
    body.single-product .summary.entry-summary .product_title {
        font-size: 28px;
    }

    body.single-product .summary.entry-summary > .price {
        font-size: 26px;
    }

    body.single-product .ct-product-add-to-cart {
        padding: 14px;
    }

    body.single-product .ct-product-add-to-cart .ct-cart-actions {
        gap: 8px;
    }

    body.single-product .ct-product-add-to-cart .single_add_to_cart_button {
        min-width: 0;
        flex: 1;
    }

    body.single-product .elshop-declaration {
        padding: 13px 14px;
        font-size: 12.5px;
    }
}

/* Single product cart state: use the same absolute quantity as the real cart. */
body.single-product .ct-product-add-to-cart .elshop-cart-control--single {
    display: flex;
    width: 100%;
    min-height: 52px;
    border-radius: 6px;
    overflow: visible;
}

body.single-product .ct-product-add-to-cart .elshop-cart-control--single .elshop-cart-control__add {
    min-height: 52px;
    font-size: 15px;
}

body.single-product .ct-product-add-to-cart .elshop-cart-control--single .elshop-cart-control__step {
    width: 54px;
    min-height: 52px;
}

body.single-product .ct-product-add-to-cart .elshop-cart-control--single .elshop-cart-control__value {
    min-width: 62px;
    font-size: 16px;
}

body.single-product .ct-product-add-to-cart .elshop-cart-control--single .elshop-cart-control__cart {
    width: auto;
    min-width: 150px;
    min-height: 52px;
    margin-inline-start: 12px;
    padding: 0 22px;
    gap: 8px;
    border-left: 0;
    border-radius: 6px;
    font-weight: 650;
}

body.single-product .ct-product-add-to-cart .elshop-cart-control--single .elshop-cart-control__cart span {
    display: inline-block;
}

@media (max-width: 689px) {
    body.single-product .ct-product-add-to-cart .elshop-cart-control--single .elshop-cart-control__step {
        width: 48px;
    }

    body.single-product .ct-product-add-to-cart .elshop-cart-control--single .elshop-cart-control__value {
        min-width: 52px;
    }

    body.single-product .ct-product-add-to-cart .elshop-cart-control--single .elshop-cart-control__cart {
        flex: 1;
        min-width: 0;
        margin-inline-start: 8px;
        padding-inline: 14px;
    }
}

/* Single product: readable description/details and consistent related-product cards. */
body.single-product .woocommerce-tabs.wc-tabs-wrapper {
    margin-top: 52px;
}

body.single-product .woocommerce-tabs .tabs.wc-tabs {
    display: flex;
    width: fit-content;
    max-width: calc(100% - 32px);
    margin: 0 auto 22px;
    padding: 4px;
    gap: 4px;
    border: 1px solid rgba(31, 41, 55, .10);
    border-radius: 10px;
    background: rgba(248, 250, 252, .95);
}

body.single-product .woocommerce-tabs .tabs.wc-tabs li {
    margin: 0;
}

body.single-product .woocommerce-tabs .tabs.wc-tabs li a {
    display: block;
    padding: 9px 18px;
    border: 1px solid rgba(31, 41, 55, .14);
    border-radius: 7px;
    color: var(--theme-text-color, #17324d) !important;
    background: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

body.single-product .woocommerce-tabs .tabs.wc-tabs li:not(.active) a:hover {
    border-color: rgba(40, 114, 250, .45);
    color: var(--theme-palette-color-1, #2872fa) !important;
    background: #f8fbff;
}

body.single-product .woocommerce-tabs .tabs.wc-tabs li.active > a {
    border-color: #174f9b;
    color: #fff !important;
    background: #174f9b;
    box-shadow: 0 2px 5px rgba(23, 79, 155, .22);
}

body.single-product .woocommerce-tabs > article {
    max-width: 980px;
    margin-inline: auto;
}

body.single-product .woocommerce-Tabs-panel {
    padding: 28px 30px;
    border: 1px solid rgba(31, 41, 55, .09);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(15, 23, 42, .045);
}

body.single-product .woocommerce-Tabs-panel p,
body.single-product .woocommerce-Tabs-panel li,
body.single-product .woocommerce-Tabs-panel td,
body.single-product .woocommerce-Tabs-panel th {
    line-height: 1.65;
}

body.single-product .woocommerce-Tabs-panel ul {
    padding-left: 1.25em;
}

body.single-product .woocommerce-Tabs-panel img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 24px auto 0;
    border: 1px solid rgba(31, 41, 55, .08);
    border-radius: 10px;
}

body.single-product .woocommerce-product-attributes {
    margin-bottom: 0;
}

body.single-product .woocommerce-product-attributes th,
body.single-product .woocommerce-product-attributes td {
    padding: 12px 14px;
}

body.single-product .related.products {
    display: block !important;
    margin-top: 54px;
}

body.single-product .related.products .ct-module-title {
    margin-bottom: 22px;
    font-size: clamp(24px, 2.2vw, 32px);
}

body.single-product .related.products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px !important;
    max-width: 900px;
    margin-inline: auto;
}

body.single-product .related.products li.product {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px;
    border: 1px solid rgba(31, 41, 55, .10);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

body.single-product .related.products li.product .entry-meta {
    display: none;
}

body.single-product .related.products li.product .ct-woo-card-actions {
    margin-top: auto;
}

body.single-product .related.products li.product figure img {
    border-radius: 8px;
}

@media (max-width: 689px) {
    body.single-product .woocommerce-tabs.wc-tabs-wrapper {
        margin-top: 34px;
    }

    body.single-product .woocommerce-tabs .tabs.wc-tabs {
        max-width: calc(100% - 24px);
        margin-bottom: 16px;
    }

    body.single-product .woocommerce-tabs .tabs.wc-tabs li a {
        padding: 8px 14px;
    }

    body.single-product .woocommerce-Tabs-panel {
        padding: 20px 18px;
        border-radius: 10px;
    }

    body.single-product .related.products {
        margin-top: 38px;
    }

    body.single-product .related.products ul.products {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
}

/* Home storefront cards */
body.home .wc-block-product {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px;
    border: 1px solid rgba(31, 41, 55, .10);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

body.home .wc-block-product .wp-block-woocommerce-product-image {
    margin-bottom: 16px;
}

body.home .wc-block-product .wp-block-woocommerce-product-image img {
    border-radius: 8px;
}

body.home .wc-block-product .wp-block-post-title,
body.home .wc-block-product .wp-block-post-title a {
    text-align: left !important;
}

body.home .wc-block-product .wp-block-woocommerce-product-price,
body.home .wc-block-product .wc-block-components-product-price {
    text-align: left !important;
}

body.home .wc-block-product .wc-block-components-product-price {
    font-weight: 700;
}

body.home .wc-block-product .wp-block-woocommerce-product-button {
    margin-top: auto;
    text-align: left !important;
}

body.home .wc-block-product .elshop-cart-control--block {
    margin-inline: 0;
}

/* Home comparison table */
body.home .wp-block-table table {
    overflow: hidden;
    border: 1px solid rgba(31, 41, 55, .10);
    border-radius: 10px;
    background: #fff;
}

body.home .wp-block-table td {
    padding: 12px 14px;
    vertical-align: middle;
}

body.home .wp-block-table tr:first-child td {
    background: #f7f9fc;
}

body.home .wp-block-table td:first-child {
    background: #fafbfc;
}

.elshop-mobile-comparison {
    display: none;
}

@media (max-width: 689px) {
    body.home figure.wp-block-table[data-elshop-comparison="1"] {
        display: none !important;
    }

    body.home .elshop-mobile-comparison {
        display: grid;
        gap: 14px;
        margin-block: 18px 26px;
    }

    body.home .elshop-mobile-comparison__card {
        overflow: hidden;
        border: 1px solid rgba(31, 41, 55, .10);
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 6px 18px rgba(15, 23, 42, .04);
    }

    body.home .elshop-mobile-comparison__title {
        margin: 0;
        padding: 14px 16px;
        font-size: 18px;
        line-height: 1.3;
        background: #f5f8fc;
    }

    body.home .elshop-mobile-comparison__list {
        margin: 0;
    }

    body.home .elshop-mobile-comparison__row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
        gap: 12px;
        padding: 10px 16px;
        border-top: 1px solid rgba(31, 41, 55, .08);
    }

    body.home .elshop-mobile-comparison__row dt,
    body.home .elshop-mobile-comparison__row dd {
        margin: 0;
    }

    body.home .elshop-mobile-comparison__row dt {
        font-weight: 600;
        color: #526071;
    }

    body.home .elshop-mobile-comparison__row dd {
        text-align: right;
        color: var(--theme-text-color, #1e293b);
    }

    body.home .elshop-mobile-comparison__row:last-child dd {
        font-weight: 700;
    }

    body.home .wc-block-product {
        padding: 14px;
    }
}

/* Home storefront desktop sizing/alignment */
@media (min-width: 1000px) {
    body.home .wp-block-woocommerce-product-collection .wc-block-product-template,
    body.home .wp-block-woocommerce-product-collection ul.wc-block-product-template {
        width: min(1120px, 100%) !important;
        max-width: 1120px !important;
        margin-inline: auto !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 28px !important;
    }

    body.home .wc-block-product {
        padding: 18px;
    }
}

/* Elshop custom footer */
.ct-footer {
    display: none !important;
}

.elshop-site-footer {
    margin-top: 64px;
    background: #f5f7fa;
    border-top: 1px solid #dfe5ec;
    color: #314158;
}

.elshop-site-footer__inner {
    width: min(1290px, calc(100% - 48px));
    margin: 0 auto;
    padding: 42px 0 34px;
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1.1fr;
    gap: 42px;
}

.elshop-site-footer__brand,
.elshop-site-footer__group {
    min-width: 0;
}

.elshop-site-footer__logo {
    display: inline-block;
    margin-bottom: 12px;
    color: #10233e;
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
}

.elshop-site-footer__brand p {
    max-width: 290px;
    margin: 0;
    color: #66758a;
    line-height: 1.55;
}

.elshop-site-footer__group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.elshop-site-footer__group strong {
    margin-bottom: 3px;
    color: #10233e;
    font-size: 14px;
}

.elshop-site-footer__group a {
    color: #52647b;
    text-decoration: none;
    line-height: 1.45;
}

.elshop-site-footer__group a:hover {
    color: var(--theme-palette-color-1, #2872fa);
}

.elshop-site-footer__bottom {
    width: min(1290px, calc(100% - 48px));
    margin: 0 auto;
    padding: 18px 0 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    border-top: 1px solid #dfe5ec;
    color: #77869a;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 999px) {
    .elshop-site-footer__inner {
        grid-template-columns: 1.2fr 1fr 1fr;
    }

    .elshop-site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 689px) {
    .elshop-site-footer {
        margin-top: 44px;
    }

    .elshop-site-footer__inner,
    .elshop-site-footer__bottom {
        width: min(100% - 32px, 1290px);
    }

    .elshop-site-footer__inner {
        padding: 32px 0 26px;
        grid-template-columns: 1fr 1fr;
        gap: 28px 22px;
    }

    .elshop-site-footer__brand {
        grid-column: 1 / -1;
    }

    .elshop-site-footer__group:last-child {
        grid-column: 1 / -1;
    }

    .elshop-site-footer__bottom {
        padding: 16px 0 20px;
        flex-direction: column;
        gap: 4px;
    }
}

/* Cart page polish */
.woocommerce-cart .ct-woocommerce-cart-form {
    gap: 32px;
    align-items: start;
}

.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .cart_totals {
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16, 35, 62, .06);
    overflow: hidden;
}

.woocommerce-cart .woocommerce-cart-form table,
.woocommerce-cart .cart_totals table {
    margin: 0;
    border: 0;
}

.woocommerce-cart .woocommerce-cart-form thead th {
    padding: 15px 18px;
    background: #f6f8fb;
    border-bottom: 1px solid #e2e7ee;
    color: #5d6d82;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.woocommerce-cart .woocommerce-cart-form__cart-item > td {
    padding: 20px 18px;
    vertical-align: middle;
}

.woocommerce-cart .product-thumbnail .ct-media-container {
    width: 92px;
    border-radius: 8px;
    overflow: hidden;
    background: #fafbfc;
}

.woocommerce-cart td.product-name > a {
    color: #10233e;
    font-weight: 700;
    line-height: 1.4;
}

.woocommerce-cart td.product-name > a:hover {
    color: var(--theme-palette-color-1, #2872fa);
}

.woocommerce-cart td.product-name .price {
    margin: 7px 0 0;
    color: #52647b;
    font-weight: 700;
}

.woocommerce-cart .product-subtotal {
    color: #10233e;
    font-weight: 700;
}

.woocommerce-cart .product-remove .remove {
    color: #8794a5;
}

.woocommerce-cart .product-remove .remove:hover {
    color: #d43d3d;
}

.woocommerce-cart td.actions {
    padding: 15px 18px !important;
    background: #fafbfc;
    border-top: 1px solid #e5e9ef;
}

.woocommerce-cart td.actions .coupon {
    display: inline-flex;
    gap: 8px;
    align-items: stretch;
}

.woocommerce-cart td.actions .coupon #coupon_code {
    width: 160px;
    min-height: 40px;
    border-radius: 6px;
}

.woocommerce-cart td.actions .coupon .button,
.woocommerce-cart td.actions button[name="update_cart"] {
    min-height: 40px;
    border-radius: 6px;
}

.woocommerce-cart .cart_totals h2 {
    margin: 0;
    padding: 20px 22px 15px;
    color: #10233e;
    font-size: 21px;
}

.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td {
    padding: 14px 22px;
    border-color: #e5e9ef;
}

.woocommerce-cart .cart_totals .ct-shipping-heading {
    color: #10233e;
    font-weight: 700;
}

.woocommerce-cart .cart_totals .shipping-calculator-button {
    display: inline-block;
    margin-top: 7px;
    font-size: 13px;
}

.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td {
    padding-top: 18px;
    padding-bottom: 18px;
    color: #10233e;
    font-size: 18px;
}

.woocommerce-cart .wc-proceed-to-checkout {
    padding: 18px 22px 22px;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    width: 100%;
    min-height: 52px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 700;
}

@media (max-width: 999px) {
    .woocommerce-cart .ct-woocommerce-cart-form {
        gap: 24px;
    }
}

@media (max-width: 689px) {
    .woocommerce-cart .woocommerce-cart-form,
    .woocommerce-cart .cart_totals {
        border-radius: 10px;
        box-shadow: 0 5px 18px rgba(16, 35, 62, .05);
    }

    .woocommerce-cart .woocommerce-cart-form__cart-item > td {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .woocommerce-cart td.actions {
        padding: 14px !important;
    }

    .woocommerce-cart td.actions .coupon {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        width: 100%;
        margin-bottom: 10px;
    }

    .woocommerce-cart td.actions .coupon #coupon_code {
        width: 100%;
        min-width: 0;
    }

    .woocommerce-cart td.actions button[name="update_cart"] {
        width: 100%;
    }

    .woocommerce-cart .cart_totals h2 {
        padding: 18px 18px 12px;
        font-size: 20px;
    }

    .woocommerce-cart .cart_totals table th,
    .woocommerce-cart .cart_totals table td {
        padding-left: 18px;
        padding-right: 18px;
    }

    .woocommerce-cart .wc-proceed-to-checkout {
        padding: 16px 18px 18px;
    }
}


/* Cart page edge spacing tweaks */
.woocommerce-cart .woocommerce-cart-form__cart-item > td.product-thumbnail {
    padding-left: 26px;
}

.woocommerce-cart .woocommerce-cart-form__cart-item > td.product-remove {
    padding-right: 24px;
    text-align: center;
}

.woocommerce-cart .product-remove .remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
}

.woocommerce-cart .product-remove .remove:hover {
    background: rgba(212, 61, 61, .08);
}

@media (max-width: 689px) {
    .woocommerce-cart .woocommerce-cart-form__cart-item > td.product-thumbnail {
        padding-left: 16px;
    }

    .woocommerce-cart .woocommerce-cart-form__cart-item > td.product-remove {
        padding-right: 16px;
    }
}


/* Cart automatic recalculation */
.woocommerce-cart td.actions button[name="update_cart"] {
    display: none !important;
}

.woocommerce-cart .ct-woocommerce-cart-form {
    position: relative;
}

.woocommerce-cart .ct-woocommerce-cart-form.elshop-cart-is-updating::after {
    content: "Пересчитываем…";
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 9999;
    transform: translateX(-50%);
    padding: 8px 14px;
    border-radius: 999px;
    background: #10233e;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(16,35,62,.18);
    pointer-events: none;
}

.woocommerce-cart .ct-woocommerce-cart-form.elshop-cart-is-updating .woocommerce-cart-form,
.woocommerce-cart .ct-woocommerce-cart-form.elshop-cart-is-updating .cart_totals {
    transition: opacity .15s ease;
    opacity: .72;
}

/* Checkout page polish */
.woocommerce-checkout .ct-customer-details,
.woocommerce-checkout .ct-order-review {
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16, 35, 62, .06);
}

.woocommerce-checkout .ct-customer-details {
    padding: 30px;
}

.woocommerce-checkout .ct-order-review {
    padding: 30px;
}

.woocommerce-checkout .woocommerce-billing-fields > h3,
.woocommerce-checkout #order_review_heading {
    margin: 0 0 24px;
    color: #10233e;
    font-size: 22px;
    line-height: 1.3;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0 18px;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row {
    margin-bottom: 17px;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-first,
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-last {
    width: calc(50% - 9px);
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-wide {
    width: 100%;
}

.woocommerce-checkout .woocommerce-billing-fields label,
.woocommerce-checkout .woocommerce-additional-fields label {
    display: block;
    margin-bottom: 6px;
    color: #40516a;
    font-size: 13px;
    font-weight: 650;
}

.woocommerce-checkout .woocommerce-billing-fields input.input-text,
.woocommerce-checkout .woocommerce-billing-fields select,
.woocommerce-checkout .woocommerce-additional-fields textarea {
    min-height: 44px;
    border: 1px solid #d5dce5;
    border-radius: 7px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.woocommerce-checkout .woocommerce-additional-fields textarea {
    min-height: 112px;
    padding: 12px 14px;
    resize: vertical;
}

.woocommerce-checkout .woocommerce-billing-fields input.input-text:focus,
.woocommerce-checkout .woocommerce-billing-fields select:focus,
.woocommerce-checkout .woocommerce-additional-fields textarea:focus {
    border-color: var(--theme-palette-color-1, #2872fa);
    box-shadow: 0 0 0 3px rgba(40, 114, 250, .10);
    outline: 0;
}

.woocommerce-checkout .woocommerce-additional-fields {
    margin-top: 8px;
    padding-top: 22px;
    border-top: 1px solid #e5e9ef;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table {
    margin: 0;
    border: 0;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table thead th {
    padding: 13px 14px;
    background: #f6f8fb;
    border-color: #e3e8ef;
    color: #5d6d82;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tbody td,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td {
    padding: 14px;
    border-color: #e5e9ef;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name {
    color: #263a55;
    line-height: 1.45;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .product-quantity {
    white-space: nowrap;
    color: #708096;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total td {
    padding-top: 18px;
    padding-bottom: 18px;
    color: #10233e;
    font-size: 18px;
}

.woocommerce-checkout #payment {
    margin-top: 20px;
    border-top: 1px solid #e4e9ef;
    padding-top: 20px;
}

.woocommerce-checkout #payment .wc_payment_methods {
    margin: 0 0 18px;
    padding: 0;
    border: 1px solid #dfe5ec;
    border-radius: 9px;
    overflow: hidden;
    background: #f8fafc;
}

.woocommerce-checkout #payment .wc_payment_method {
    padding: 16px 18px;
}

.woocommerce-checkout #payment .wc_payment_method > label {
    color: #10233e;
    font-weight: 700;
}

.woocommerce-checkout #payment .payment_box {
    margin: 10px 0 0;
    padding: 0;
    color: #64758b;
    font-size: 13px;
}

.woocommerce-checkout #payment .payment_box p {
    margin: 0;
}

.woocommerce-checkout .elshop-consents {
    display: grid;
    gap: 9px;
    margin: 16px 0 18px;
}

.woocommerce-checkout .elshop-consent {
    margin: 0 !important;
    padding: 11px 12px;
    border: 1px solid #e2e7ee;
    border-radius: 7px;
    background: #fafbfc;
}

.woocommerce-checkout .elshop-consent label {
    margin: 0;
    color: #52647b;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.45;
}

.woocommerce-checkout .elshop-consent input[type="checkbox"] {
    margin-right: 7px;
}

.woocommerce-checkout .elshop-consent--optional {
    background: #fff;
}

.woocommerce-checkout #place_order {
    width: 100%;
    min-height: 52px;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 700;
}

@media (max-width: 999px) {
    .woocommerce-checkout .ct-customer-details,
    .woocommerce-checkout .ct-order-review {
        padding: 24px;
    }
}

@media (max-width: 689px) {
    .woocommerce-checkout .ct-customer-details,
    .woocommerce-checkout .ct-order-review {
        width: 100%;
        padding: 18px;
        border-radius: 10px;
        box-shadow: 0 5px 18px rgba(16, 35, 62, .05);
    }

    .woocommerce-checkout .woocommerce-billing-fields > h3,
    .woocommerce-checkout #order_review_heading {
        margin-bottom: 20px;
        font-size: 20px;
    }

    .woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
        display: block;
    }

    .woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-first,
    .woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-last,
    .woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-wide {
        width: 100%;
    }

    .woocommerce-checkout .woocommerce-checkout-review-order-table thead th,
    .woocommerce-checkout .woocommerce-checkout-review-order-table tbody td,
    .woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th,
    .woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td {
        padding-left: 10px;
        padding-right: 10px;
    }

    .woocommerce-checkout #payment .wc_payment_method {
        padding: 14px;
    }

    .woocommerce-checkout .elshop-consent {
        padding: 10px;
    }
}

/* Checkout consent text flow fix */
.woocommerce-checkout .elshop-consent label {
    display: block !important;
    position: relative;
    padding-left: 27px !important;
    margin: 0 !important;
}

.woocommerce-checkout .elshop-consent label input[type="checkbox"] {
    position: absolute !important;
    left: 0;
    top: 2px;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
}

.woocommerce-checkout .elshop-consent--optional .optional {
    display: none !important;
}

/* Order received / thank-you page */
.woocommerce-order-received .woocommerce-order {
    max-width: 980px;
    margin-inline: auto;
}

.woocommerce-order-received .woocommerce-thankyou-order-received,
.woocommerce-order-received .woocommerce-notice--success {
    margin: 0 0 24px;
    padding: 20px 22px 20px 56px;
    position: relative;
    border: 1px solid #bfe7ce;
    border-radius: 12px;
    background: #f2fbf5;
    color: #185b33;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
}

.woocommerce-order-received .woocommerce-thankyou-order-received::before,
.woocommerce-order-received .woocommerce-notice--success::before {
    content: "✓";
    position: absolute;
    left: 20px;
    top: 18px;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #1e9e55;
    color: #fff;
    font-size: 15px;
    line-height: 1;
}

.woocommerce-order-received .woocommerce-order-overview {
    margin: 0 0 26px !important;
    padding: 0 !important;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid #dfe5ec;
    border-radius: 12px;
    background: #dfe5ec;
    list-style: none;
}

.woocommerce-order-received .woocommerce-order-overview li {
    min-width: 0;
    margin: 0 !important;
    padding: 16px 18px !important;
    float: none !important;
    border: 0 !important;
    background: #fff;
    color: #6b7b8f;
    font-size: 11px;
    line-height: 1.35;
    text-transform: uppercase;
}

.woocommerce-order-received .woocommerce-order-overview li strong {
    display: block;
    margin-top: 5px;
    color: #10233e;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: none;
    overflow-wrap: anywhere;
}

.woocommerce-order-received .elshop-order-next,
.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-customer-details {
    margin: 0 0 26px;
    padding: 24px;
    border: 1px solid #dfe5ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 35, 62, .05);
}

.woocommerce-order-received .elshop-order-next h2,
.woocommerce-order-received .woocommerce-order-details__title,
.woocommerce-order-received .woocommerce-column__title {
    margin: 0 0 16px;
    color: #10233e;
    font-size: 21px;
    line-height: 1.3;
}

.woocommerce-order-received .elshop-order-next p {
    margin: 0 0 12px;
    color: #52647b;
    line-height: 1.65;
}

.woocommerce-order-received .elshop-order-next__actions {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.woocommerce-order-received .elshop-order-next__actions .button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    border-radius: 7px;
}

.woocommerce-order-received .elshop-order-next__link {
    font-weight: 600;
}

.woocommerce-order-received .woocommerce-order-details table {
    margin: 0;
    border: 0;
}

.woocommerce-order-received .woocommerce-order-details table th {
    padding: 13px 14px;
    background: #f6f8fb;
    color: #5d6d82;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.woocommerce-order-received .woocommerce-order-details table td,
.woocommerce-order-received .woocommerce-order-details table tfoot th {
    padding: 14px;
    border-color: #e5e9ef;
}

.woocommerce-order-received .woocommerce-order-details .order_item .product-name a {
    color: #10233e;
    font-weight: 700;
}

.woocommerce-order-received .woocommerce-order-details tfoot tr:last-child th,
.woocommerce-order-received .woocommerce-order-details tfoot tr:last-child td {
    color: #10233e;
    font-size: 17px;
    font-weight: 700;
}

.woocommerce-order-received .woocommerce-customer-details address {
    padding: 0;
    border: 0;
    color: #52647b;
    line-height: 1.7;
}

.woocommerce-order-received .woocommerce-columns--addresses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 689px) {
    .woocommerce-order-received .woocommerce-order {
        width: 100%;
    }

    .woocommerce-order-received .woocommerce-thankyou-order-received,
    .woocommerce-order-received .woocommerce-notice--success {
        padding: 17px 16px 17px 49px;
        font-size: 15px;
    }

    .woocommerce-order-received .woocommerce-thankyou-order-received::before,
    .woocommerce-order-received .woocommerce-notice--success::before {
        left: 15px;
        top: 15px;
    }

    .woocommerce-order-received .woocommerce-order-overview {
        grid-template-columns: 1fr 1fr;
    }

    .woocommerce-order-received .woocommerce-order-overview li {
        padding: 14px !important;
    }

    .woocommerce-order-received .elshop-order-next,
    .woocommerce-order-received .woocommerce-order-details,
    .woocommerce-order-received .woocommerce-customer-details {
        padding: 18px;
        border-radius: 10px;
    }

    .woocommerce-order-received .woocommerce-columns--addresses {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .woocommerce-order-received .elshop-order-next__actions {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .woocommerce-order-received .elshop-order-next__actions .button {
        justify-content: center;
        width: 100%;
    }
}

/* Phone required label: Blocksy keeps the optional marker even for required fields. */
.woocommerce-checkout #billing_phone_field label .optional {
    display: none !important;
}

.woocommerce-checkout #billing_phone_field label::after {
    content: " *";
    color: #e42d3b;
    font-weight: 700;
}

/* Checkout address confirmation helper */
.woocommerce-checkout .elshop-address-confirm-hint {
    margin-top: 7px;
    color: #9a6700;
    font-size: 12px;
    line-height: 1.45;
}

.woocommerce-checkout .elshop-address-confirm-hint[hidden] {
    display: none !important;
}
