.menu-wrap .ed-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-wrap .main-navigation {
    flex: 1 1 auto;
    min-width: 0;
}

.optstory-currency-switch.optstory-currency-switch--nav {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 2;
    flex: 0 0 auto;
    margin-left: auto;
    padding: 4px;
    max-width: 190px;
    flex-wrap: wrap;
    background: #fff;
    border-color: #f6a225;
    box-shadow: none;
}

.optstory-currency-switch.optstory-currency-switch--nav .optstory-currency-switch__label {
    color: #4b5563;
}

.optstory-currency-switch.optstory-currency-switch--nav .optstory-currency-switch__rate {
    padding-top: 1px;
    color: #4b5563;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.header-cart .widget.woocommerce.widget_shopping_cart {
    display: none !important;
}

body.optstory-mini-cart-preview .header-cart .widget.woocommerce.widget_shopping_cart {
    display: block !important;
    width: min(360px, calc(100vw - 28px));
    min-width: 320px;
    padding: 14px 16px 16px !important;
    background: #fff !important;
    border: 1px solid #e7e2da;
    border-radius: 6px;
    color: #222831;
    text-align: left;
    box-shadow: 0 18px 38px rgba(17, 24, 39, 0.16);
}

.header-cart .widget.woocommerce.widget_shopping_cart .widgettitle {
    margin: 0 0 10px;
    padding: 0 0 9px;
    border-bottom: 1px solid #eee8df;
    color: #222831;
    font-size: 18px;
    line-height: 1.2;
    text-align: center;
}

.header-cart .widget_shopping_cart_content {
    width: 100%;
}

.header-cart .woocommerce-mini-cart,
.header-cart .woocommerce ul.cart_list,
.header-cart .woocommerce ul.product_list_widget {
    max-height: 360px !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    overflow-y: auto;
    overflow-x: hidden;
}

.header-cart .woocommerce-mini-cart li,
.header-cart .woocommerce ul.cart_list li,
.header-cart .woocommerce ul.product_list_widget li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 4px 10px;
    min-height: 88px;
    margin: 0 !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #eee8df;
}

.header-cart .woocommerce-mini-cart li:last-child,
.header-cart .woocommerce ul.cart_list li:last-child,
.header-cart .woocommerce ul.product_list_widget li:last-child {
    border-bottom: 0;
}

.woocommerce .header-cart .widget_shopping_cart .cart_list li a.remove,
.header-cart .woocommerce.widget_shopping_cart .cart_list li a.remove {
    position: static !important;
    grid-column: 1;
    grid-row: 1 / span 2;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 20px !important;
    height: 20px !important;
    margin-top: 2px;
    border-radius: 50%;
    line-height: 1 !important;
}

.header-cart .woocommerce-mini-cart li > a:not(.remove),
.header-cart .woocommerce ul.cart_list li > a:not(.remove),
.header-cart .woocommerce ul.product_list_widget li > a:not(.remove) {
    grid-column: 2;
    display: flex !important;
    flex-direction: row-reverse;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    padding: 0 !important;
    color: #222831;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.header-cart .woocommerce-mini-cart li > a:not(.remove) img,
.header-cart .woocommerce ul.cart_list li > a:not(.remove) img,
.header-cart .woocommerce ul.product_list_widget li > a:not(.remove) img {
    flex: 0 0 58px;
    width: 58px !important;
    height: 72px !important;
    margin: 0 !important;
    padding: 3px !important;
    float: none !important;
    object-fit: contain;
    background: #f7f5f1;
    border: 1px solid #e7e2da;
    border-radius: 4px;
    box-shadow: none !important;
}

.header-cart .woocommerce-mini-cart .quantity,
.header-cart .woocommerce ul.cart_list .quantity,
.header-cart .woocommerce ul.product_list_widget .quantity {
    grid-column: 2;
    margin: 2px 68px 0 0 !important;
    padding: 0 !important;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.35;
}

.header-cart .woocommerce-mini-cart__total,
.header-cart .widget_shopping_cart .total {
    margin: 10px 0 !important;
    padding: 12px 0 0 !important;
    border-top: 1px solid #e7e2da !important;
    color: #222831;
    font-size: 14px !important;
    text-align: right;
}

.header-cart .woocommerce-mini-cart__buttons,
.header-cart .widget_shopping_cart .buttons {
    display: flex;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
}

.header-cart .woocommerce-mini-cart__buttons .button,
.header-cart .widget_shopping_cart .buttons .button {
    flex: 1 1 0;
    width: auto !important;
    min-height: 38px;
    margin: 0 !important;
    padding: 9px 10px !important;
    border: 1px solid #222831 !important;
    border-radius: 5px;
    color: #222831 !important;
    font-size: 12px !important;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
}

.header-cart .woocommerce-mini-cart__buttons .checkout,
.header-cart .widget_shopping_cart .buttons .checkout {
    background: #f6a225 !important;
    border-color: #f6a225 !important;
}

body.woocommerce-cart .left-sidebar-right,
body.woocommerce-checkout .left-sidebar-right {
    float: none !important;
    width: 100% !important;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 16px;
}

body.woocommerce-cart #primary.content-area,
body.woocommerce-cart #primary,
body.woocommerce-checkout #primary.content-area,
body.woocommerce-checkout #primary {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin-top: 28px;
}

body.woocommerce-cart .left-sidebar,
body.woocommerce-cart .right-sidebar,
body.woocommerce-cart #secondary,
body.woocommerce-cart aside.widget-area,
body.woocommerce-checkout .left-sidebar,
body.woocommerce-checkout .right-sidebar,
body.woocommerce-checkout #secondary,
body.woocommerce-checkout #secondary-left,
body.woocommerce-checkout #secondary-right,
body.woocommerce-checkout aside.widget-area {
    display: none !important;
}

body.woocommerce-cart .optstory-currency-switch:not(.optstory-currency-switch--nav),
body.woocommerce-checkout .optstory-currency-switch:not(.optstory-currency-switch--nav) {
    display: none !important;
}

body.optstory-nav-currency-mounted .optstory-currency-switch:not(.optstory-currency-switch--nav) {
    display: none !important;
}

body.woocommerce-cart .woocommerce {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 28px;
    align-items: start;
    width: 100% !important;
    max-width: 1120px;
    margin: 0 auto;
}

body.woocommerce-cart .woocommerce:before,
body.woocommerce-cart .woocommerce:after {
    display: none !important;
}

body.woocommerce-cart .woocommerce-notices-wrapper,
body.woocommerce-cart .wc-empty-cart-message,
body.woocommerce-cart .return-to-shop {
    grid-column: 1 / -1;
}

body.woocommerce-cart .woocommerce-cart-form {
    min-width: 0;
}

body.woocommerce-cart table.shop_table {
    width: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e7e2da;
    border-radius: 6px;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.05);
}

body.woocommerce-cart table.shop_table th {
    padding: 14px 12px;
    color: #222831;
    font-size: 13px;
    line-height: 1.25;
    text-align: left;
    background: #f7f5f1;
    border-bottom: 1px solid #e7e2da;
}

body.woocommerce-cart table.shop_table td {
    padding: 14px 12px;
    vertical-align: middle;
    border-top: 1px solid #eee8df;
}

body.woocommerce-cart table.shop_table tr:first-child td {
    border-top: 0;
}

body.woocommerce-cart table.shop_table .product-remove {
    width: 42px;
    text-align: center;
}

body.woocommerce-cart table.shop_table .product-thumbnail {
    width: 88px;
}

body.woocommerce-cart table.shop_table .product-thumbnail img {
    width: 72px !important;
    height: 90px !important;
    object-fit: contain;
    background: #f7f5f1;
    border-radius: 4px;
}

body.woocommerce-cart table.shop_table .product-name {
    min-width: 220px;
}

body.woocommerce-cart table.shop_table .product-name a {
    color: #222831;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

body.woocommerce-cart .optstory-cart-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
}

body.woocommerce-cart .optstory-cart-product-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 7px;
    background: #f7f5f1;
    border: 1px solid #e7e2da;
    border-radius: 4px;
    color: #5d6673;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
}

body.woocommerce-cart table.shop_table .product-price,
body.woocommerce-cart table.shop_table .product-subtotal {
    white-space: nowrap;
    color: #222831;
    font-weight: 700;
}

body.woocommerce-cart table.shop_table input.qty {
    width: 58px;
    height: 36px;
    padding: 0 6px;
    text-align: center;
    border: 1px solid #9ca3af;
    border-radius: 3px;
}

body.woocommerce-cart table.shop_table .optstory-cart-qty-static {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 36px;
    padding: 0 6px;
    color: #222831;
    background: #fff;
    border: 1px solid #9ca3af;
    border-radius: 3px;
    font-weight: 500;
    line-height: 1;
}

body.woocommerce-cart table.shop_table td.actions {
    background: #fbfaf8;
}

body.woocommerce-cart table.shop_table td.actions .button {
    height: 40px;
    padding: 0 16px;
}

body.woocommerce-cart table.shop_table td.actions .button:not(:disabled) {
    background: #f6a225;
    color: #111827;
    border-color: #111827;
    cursor: pointer;
}

body.woocommerce-cart table.shop_table td.actions .button:disabled {
    opacity: 0.58;
}

body.woocommerce-cart .cart-collaterals {
    min-width: 0;
}

body.woocommerce-cart .cart-collaterals .cart_totals {
    float: none !important;
    width: 100% !important;
    background: #fff;
    border: 1px solid #e7e2da;
    border-radius: 6px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.05);
}

body.woocommerce-cart .cart-collaterals h2 {
    margin: 0 0 14px;
    color: #222831;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: 0;
}

body.woocommerce-cart .cart-collaterals table.shop_table {
    box-shadow: none;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    width: 100%;
    margin-bottom: 0;
    padding: 12px 14px;
    background: #f6a225;
    color: #111827;
    border-radius: 5px;
    text-align: center;
}

body.woocommerce-checkout .woocommerce {
    width: 100% !important;
    max-width: 1120px;
    margin: 0 auto;
}

body.woocommerce-checkout #payment #place_order,
body.woocommerce-checkout button#place_order,
body.woocommerce-checkout .woocommerce-checkout-payment button#place_order {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 50px;
    margin-top: 18px !important;
    padding: 14px 18px !important;
    background: #f6a225 !important;
    border: 1px solid #d89322 !important;
    border-radius: 5px !important;
    color: #111827 !important;
    box-shadow: 0 10px 20px rgba(246, 162, 37, 0.22);
    cursor: pointer;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    opacity: 1 !important;
    text-align: center;
    text-transform: uppercase;
}

body.woocommerce-checkout #payment #place_order:hover,
body.woocommerce-checkout #payment #place_order:focus {
    background: #e89016 !important;
    border-color: #c77b0f !important;
    color: #111827 !important;
}

body.woocommerce-checkout #payment #place_order:disabled,
body.woocommerce-checkout #payment #place_order.disabled {
    background: #e5e7eb !important;
    border-color: #cbd5e1 !important;
    box-shadow: none;
    color: #6b7280 !important;
    cursor: not-allowed;
}

body.woocommerce-order-received .woocommerce {
    max-width: 880px;
}

body.woocommerce-order-received .woocommerce-order {
    width: 100%;
}

body.woocommerce-order-received .woocommerce-order-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin: 18px 0 30px;
    padding: 0;
}

body.woocommerce-order-received .woocommerce-order-overview li {
    margin: 0 !important;
    padding: 0 18px 0 0 !important;
    line-height: 1.35;
}

body.woocommerce-order-received table.shop_table {
    width: 100%;
    background: #fff;
    border: 1px solid #e7e2da;
    border-radius: 6px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

body.woocommerce-order-received table.shop_table th,
body.woocommerce-order-received table.shop_table td {
    padding: 12px 14px;
    border-top: 1px solid #eee8df;
}

body.woocommerce-order-received table.shop_table tr:first-child th,
body.woocommerce-order-received table.shop_table tr:first-child td {
    border-top: 0;
}

@media (max-width: 920px) {
    body.woocommerce-cart .woocommerce {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-wrap .ed-container {
        padding: 8px 10px;
        gap: 8px;
    }

    .optstory-currency-switch:not(.optstory-currency-switch--nav) {
        bottom: 72px;
    }

    .optstory-currency-switch.optstory-currency-switch--nav {
        gap: 3px;
        margin-left: 0;
        max-width: 156px;
        padding: 4px;
    }

    .optstory-currency-switch.optstory-currency-switch--nav .optstory-currency-switch__label {
        display: none;
    }

    .optstory-currency-switch.optstory-currency-switch--nav .optstory-currency-switch__rate {
        font-size: 9px;
    }

    .header-cart .widget.woocommerce.widget_shopping_cart {
        right: -8px;
        min-width: 300px;
    }

    body.woocommerce-cart .left-sidebar-right,
    body.woocommerce-checkout .left-sidebar-right {
        padding: 0 8px;
    }

    body.woocommerce-cart #primary,
    body.woocommerce-cart #primary.content-area,
    body.woocommerce-checkout #primary,
    body.woocommerce-checkout #primary.content-area {
        margin-top: 18px;
    }

    body.woocommerce-cart .entry-title,
    body.woocommerce-cart .page-title {
        margin-bottom: 18px;
        font-size: 30px;
        line-height: 1.12;
    }

    body.woocommerce-cart table.shop_table {
        overflow: visible;
        border-radius: 5px;
    }

    body.woocommerce-cart table.shop_table thead {
        display: none;
    }

    body.woocommerce-cart table.shop_table,
    body.woocommerce-cart table.shop_table tbody,
    body.woocommerce-cart table.shop_table tr,
    body.woocommerce-cart table.shop_table td {
        display: block !important;
    }

    body.woocommerce-cart table.shop_table tr.cart_item {
        position: relative;
        display: grid !important;
        grid-template-columns: 92px minmax(0, 1fr) !important;
        grid-template-areas:
            "thumb name"
            "thumb price"
            "thumb qty"
            "thumb subtotal" !important;
        gap: 7px 11px !important;
        padding: 13px 34px 13px 10px;
        border-top: 1px solid #eee8df;
        background: #fff;
    }

    body.woocommerce-cart table.shop_table tr.cart_item:first-child {
        border-top: 0;
    }

    body.woocommerce-cart table.shop_table td {
        padding: 0;
        border: 0;
        text-align: left !important;
    }

    body.woocommerce-cart table.shop_table td:before {
        float: none !important;
        width: auto;
        padding: 0;
        color: #6b7280;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.2;
        text-align: left;
    }

    body.woocommerce-cart table.shop_table .product-remove {
        position: absolute;
        top: 9px;
        right: 10px;
        left: auto !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 26px !important;
        height: 26px !important;
        padding: 0 !important;
        z-index: 2;
    }

    body.woocommerce-cart table.shop_table .product-remove a.remove {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 24px !important;
        height: 24px !important;
        margin: 0;
        color: #b40000 !important;
        font-size: 22px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
    }

    body.woocommerce-cart table.shop_table .product-thumbnail {
        grid-area: thumb !important;
        grid-column: auto !important;
        grid-row: auto !important;
        width: 92px !important;
        max-width: 92px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        display: flex !important;
        align-items: flex-start;
        justify-content: flex-start !important;
        min-height: 108px;
    }

    body.woocommerce-cart table.shop_table .product-thumbnail img {
        width: 88px !important;
        min-width: 88px !important;
        max-width: 88px !important;
        height: 108px !important;
        min-height: 108px !important;
        max-height: 108px !important;
        display: block !important;
        object-fit: cover !important;
        object-position: center center;
        border: 1px solid #eee8df;
    }

    body.woocommerce-cart table.shop_table .product-name,
    body.woocommerce-cart table.shop_table .product-price,
    body.woocommerce-cart table.shop_table .product-quantity,
    body.woocommerce-cart table.shop_table .product-subtotal {
        min-width: 0 !important;
        width: auto !important;
        max-width: none !important;
    }

    body.woocommerce-cart table.shop_table .product-name {
        grid-area: name !important;
    }

    body.woocommerce-cart table.shop_table .product-price {
        grid-area: price !important;
    }

    body.woocommerce-cart table.shop_table .product-quantity {
        grid-area: qty !important;
    }

    body.woocommerce-cart table.shop_table .product-subtotal {
        grid-area: subtotal !important;
    }

    body.woocommerce-cart table.shop_table .product-name {
        padding-left: 0 !important;
        padding-right: 6px !important;
    }

    body.woocommerce-cart table.shop_table .product-name:before,
    body.woocommerce-cart table.shop_table .product-thumbnail:before,
    body.woocommerce-cart table.shop_table .product-remove:before {
        display: none !important;
        content: none !important;
    }

    body.woocommerce-cart table.shop_table .product-name a {
        display: block;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
        color: #222831;
        font-size: 14px !important;
        font-weight: 800;
        line-height: 1.22;
        text-align: left !important;
    }

    body.woocommerce-cart .optstory-cart-product-meta {
        gap: 4px;
        margin-top: 6px;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
        justify-content: flex-start;
    }

    body.woocommerce-cart .optstory-cart-product-meta span {
        min-height: 20px;
        padding: 3px 6px;
        font-size: 10px;
    }

    body.woocommerce-cart table.shop_table .product-price,
    body.woocommerce-cart table.shop_table .product-quantity,
    body.woocommerce-cart table.shop_table .product-subtotal {
        display: grid !important;
        grid-template-columns: 68px minmax(0, 1fr);
        align-items: center;
        column-gap: 8px;
        min-height: 32px;
        padding-top: 6px;
        border-top: 1px solid #f1eee8;
        font-size: 14px;
        text-align: left !important;
    }

    body.woocommerce-cart table.shop_table .product-price:before {
        content: "Ціна: ";
    }

    body.woocommerce-cart table.shop_table .product-quantity:before {
        content: "Кількість: ";
    }

    body.woocommerce-cart table.shop_table .product-subtotal:before {
        content: "Разом: ";
    }

    body.woocommerce-cart table.shop_table .product-price .amount,
    body.woocommerce-cart table.shop_table .product-subtotal .amount {
        justify-self: end;
        font-weight: 800;
        white-space: nowrap;
    }

    body.woocommerce-cart table.shop_table .product-quantity .quantity {
        justify-self: end;
    }

    body.woocommerce-cart table.shop_table .product-quantity .optstory-cart-qty-static {
        justify-self: end;
    }

    body.woocommerce-cart table.shop_table input.qty {
        width: 54px;
        height: 34px;
    }

    body.woocommerce-cart table.shop_table .optstory-cart-qty-static {
        width: 54px;
        height: 34px;
    }

    body.woocommerce-cart table.shop_table td.actions {
        padding: 12px;
        border-top: 1px solid #eee8df;
    }

    body.woocommerce-cart table.shop_table td.actions .button {
        width: 100%;
        margin-top: 8px;
    }

    body.woocommerce-cart .cart-collaterals .cart_totals {
        margin-top: 22px;
        padding: 14px;
    }

    body.woocommerce-cart .cart-collaterals h2 {
        font-size: 26px;
    }

    body.woocommerce-cart .cart-collaterals table.shop_table {
        overflow: hidden;
    }

    body.woocommerce-cart .cart-collaterals table.shop_table tr,
    body.woocommerce-cart .cart-collaterals table.shop_table th,
    body.woocommerce-cart .cart-collaterals table.shop_table td {
        display: block !important;
        width: 100% !important;
        padding: 10px 12px !important;
        text-align: left !important;
    }

    body.woocommerce-cart .cart-collaterals table.shop_table th {
        padding-bottom: 2px !important;
        border-bottom: 0;
        background: #fff;
        font-size: 15px;
    }

    body.woocommerce-cart .cart-collaterals table.shop_table td {
        padding-top: 2px !important;
        font-size: 15px;
    }

    body.woocommerce-cart .cart-collaterals table.shop_table td:before {
        display: none !important;
        content: none !important;
    }

    body.woocommerce-cart .cart-collaterals table.shop_table .cart-subtotal,
    body.woocommerce-cart .cart-collaterals table.shop_table .order-total {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
    }

    body.woocommerce-cart .cart-collaterals table.shop_table .cart-subtotal th,
    body.woocommerce-cart .cart-collaterals table.shop_table .order-total th,
    body.woocommerce-cart .cart-collaterals table.shop_table .cart-subtotal td,
    body.woocommerce-cart .cart-collaterals table.shop_table .order-total td {
        width: auto !important;
        padding: 10px 12px !important;
    }

    body.woocommerce-cart .cart-collaterals .woocommerce-shipping-methods,
    body.woocommerce-cart .cart-collaterals .woocommerce-shipping-destination,
    body.woocommerce-cart .cart-collaterals .shipping-calculator-button {
        display: block;
        margin: 4px 0;
        text-align: left !important;
        line-height: 1.35;
    }

    body.woocommerce-cart .wc-proceed-to-checkout {
        padding-bottom: 0;
    }

    body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
        min-height: 48px;
        padding: 14px 12px;
        font-size: 15px;
        line-height: 1.15;
    }

    body.woocommerce-cart #back-to-top {
        display: none !important;
    }
}
