/* The header's nowrap must not reach Porto's full-width cart actions. */
.lt-header-v2 #mini-cart.minicart-offcanvas .cart-popup {
    --lt-cart-ink: #282524;
    --lt-cart-muted: #706661;
    --lt-cart-line: #e8e3df;
    display: flex;
    flex-direction: column;
    width: min(420px, 100vw);
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    padding: 0;
    white-space: normal;
    line-height: 1.5;
    color: var(--lt-cart-ink);
    background: #fff;
    box-shadow: -12px 0 48px rgb(40 37 36 / 12%);
}
/* Porto's hover rule otherwise turns this flex container back into a block. */
.lt-header-v2 #mini-cart.minicart-offcanvas:hover .cart-popup.widget_shopping_cart { display: flex; }
.lt-header-v2 #mini-cart.minicart-offcanvas .lt-minicart-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    padding: 19px 20px 19px 24px;
    padding-top: max(19px, env(safe-area-inset-top));
    background: #f7f5f2;
    border-bottom: 1px solid var(--lt-cart-line);
}
.lt-header-v2 #mini-cart .lt-minicart-heading h2 {
    margin: 0;
    font: 600 23px/1.25 var(--porto-body-ff), sans-serif;
    letter-spacing: -.35px;
    color: var(--lt-cart-ink);
    text-transform: none;
}
.lt-header-v2 #mini-cart .lt-minicart-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    margin: 0;
    border: 1px solid #ded7d1;
    border-radius: 50%;
    background: #fff;
    color: var(--lt-cart-ink);
    font: 400 28px/1 Arial, sans-serif;
    box-shadow: none;
    cursor: pointer;
}
.lt-header-v2 #mini-cart .lt-minicart-close:hover { background: #eee9e4; }
.lt-header-v2 #mini-cart.lt-minicart-ready > .minicart-overlay > svg { display: none; }
.lt-header-v2 #mini-cart.minicart-offcanvas .widget_shopping_cart_content {
    display: flex;
    flex: 1 1 0%;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    height: auto;
    padding: 0 24px max(24px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    font-family: var(--porto-body-ff), sans-serif;
}
.lt-header-v2 #mini-cart.minicart-offcanvas .total-count {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    gap: 12px;
    min-height: 56px;
    padding: 12px 0;
    border-bottom: 1px solid var(--lt-cart-line);
    font-size: 12px;
    font-weight: 600;
    color: var(--lt-cart-muted);
}
.lt-header-v2 #mini-cart.minicart-offcanvas .total-count a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: #9b0000;
    text-transform: none !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}
.lt-header-v2 #mini-cart.minicart-offcanvas .widget_shopping_cart_content .cart_list {
    flex: 1 1 0%;
    min-height: 64px;
    min-width: 0;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cfc5bd transparent;
}
.lt-header-v2 #mini-cart.minicart-offcanvas .cart_list li:not(.empty) {
    position: relative;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    width: 100%;
    padding: 22px 0;
    border-bottom: 1px solid var(--lt-cart-line);
}
.lt-header-v2 #mini-cart.minicart-offcanvas .cart_list .product-image {
    order: 0;
    float: none;
    position: static;
    width: 88px;
    max-width: 100%;
    margin: 0 !important;
    border: 0;
    border-radius: 8px;
    background: #f7f5f2;
}
.lt-header-v2 #mini-cart.minicart-offcanvas .product-image .inner { position: static; }
.lt-header-v2 #mini-cart.minicart-offcanvas .product-image img {
    display: block;
    width: 88px;
    height: 100px;
    margin: 0;
    padding: 5px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #f0ece8;
}
.lt-header-v2 #mini-cart.minicart-offcanvas .product-details {
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 0 32px 0 0;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 400;
    overflow-wrap: anywhere;
}
.lt-header-v2 #mini-cart.minicart-offcanvas .product-details > a {
    display: block;
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
    color: var(--lt-cart-ink);
    white-space: normal;
    overflow-wrap: anywhere;
}
.lt-header-v2 #mini-cart.minicart-offcanvas .product-details > a:hover { color: #9b0000; }
.lt-header-v2 #mini-cart.minicart-offcanvas .quantity,
.lt-header-v2 #mini-cart.minicart-offcanvas .quantity .amount {
    font-size: 14px;
    line-height: 1.5;
    color: var(--lt-cart-muted);
}
.lt-header-v2 #mini-cart.minicart-offcanvas .remove-product {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 13px;
    right: -6px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
    background: transparent;
    color: var(--lt-cart-muted);
    font-size: 16px;
}
.lt-header-v2 #mini-cart.minicart-offcanvas .remove-product:hover {
    background: #f7f5f2;
    color: #9b0000;
}
.lt-header-v2 #mini-cart.minicart-offcanvas .remove-product::before { content: "×"; font: 400 22px/1 Arial, sans-serif; }
.lt-header-v2 #mini-cart.minicart-offcanvas .total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex: 0 0 auto;
    gap: 16px;
    margin: 0;
    padding: 20px 0 16px;
    border-top: 1px solid var(--lt-cart-line);
    font-size: 15px;
    line-height: 1.5;
    text-transform: none;
    color: var(--lt-cart-ink);
}
.lt-header-v2 #mini-cart.minicart-offcanvas .total .amount {
    float: none;
    font-size: 23px;
    font-weight: 600;
    white-space: nowrap;
}
.lt-header-v2 #mini-cart.minicart-offcanvas .buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    flex: 0 0 auto;
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    white-space: normal;
}
.lt-header-v2 #mini-cart.minicart-offcanvas .buttons::before,
.lt-header-v2 #mini-cart.minicart-offcanvas .buttons::after { content: none; }
.lt-header-v2 #mini-cart.minicart-offcanvas .buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    float: none;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 12px 18px;
    border: 1px solid #d8cec6;
    border-radius: 7px;
    background: #f7f5f2;
    color: var(--lt-cart-ink);
    font: 600 14px/1.5 var(--porto-body-ff), sans-serif;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
}
.lt-header-v2 #mini-cart.minicart-offcanvas .buttons a:hover { background: #eee8e2; }
.lt-header-v2 #mini-cart.minicart-offcanvas .buttons a.checkout {
    background: #9b0000;
    border-color: #9b0000;
    color: #fff;
}
.lt-header-v2 #mini-cart.minicart-offcanvas .buttons a.checkout:hover { background: #790000; border-color: #790000; }
.lt-header-v2 #mini-cart.minicart-offcanvas .cart-popup :is(a, button, input):focus-visible {
    outline: 2px solid #9b0000;
    outline-offset: 2px;
}
.lt-header-v2 #mini-cart.minicart-offcanvas .cart_list li.empty {
    display: flex;
    align-items: center;
    min-height: 160px;
    padding: 32px 16px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--lt-cart-muted);
    white-space: normal;
}
@media (max-width: 374px), (max-height: 500px) {
    .lt-header-v2 #mini-cart.minicart-offcanvas .lt-minicart-heading { padding: 10px 12px 10px 16px; }
    .lt-header-v2 #mini-cart.minicart-offcanvas .widget_shopping_cart_content { padding: 0 16px max(12px, env(safe-area-inset-bottom)); }
    .lt-header-v2 #mini-cart.minicart-offcanvas .cart_list li:not(.empty) { grid-template-columns: 68px minmax(0, 1fr); gap: 12px; padding-top: 16px; padding-bottom: 16px; }
    .lt-header-v2 #mini-cart.minicart-offcanvas .product-image,
    .lt-header-v2 #mini-cart.minicart-offcanvas .product-image img { width: 68px; }
    .lt-header-v2 #mini-cart.minicart-offcanvas .product-image img { height: 80px; }
    .lt-header-v2 #mini-cart.minicart-offcanvas .total-count { min-height: 44px; padding: 6px 0; }
    .lt-header-v2 #mini-cart.minicart-offcanvas .total { padding: 12px 0; }
}
@media (prefers-reduced-motion: reduce) {
    .lt-header-v2 #mini-cart.minicart-offcanvas .cart-popup { transition: none; }
}
/* The WordPress toolbar is visible only to signed-in staff. */
.admin-bar:has(.lt-header-v2 .minicart-opened) #wpadminbar { z-index: 29; }
.admin-bar .lt-header-v2 #mini-cart.minicart-offcanvas .cart-popup { top: 32px; height: calc(100vh - 32px); height: calc(100dvh - 32px); }
@media (max-width: 782px) {
    .admin-bar .lt-header-v2 #mini-cart.minicart-offcanvas .cart-popup { top: 46px; height: calc(100vh - 46px); height: calc(100dvh - 46px); }
}
