/* Cart drawer styles */

body.lpg-cart-open {
    overflow: hidden;
}

.lpg-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 20, 16, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, visibility 220ms ease;
    z-index: 2500;
}

.lpg-cart-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.lpg-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(360px, 92vw);
    background: #fff;
    box-shadow: 0 18px 40px rgba(4, 60, 45, 0.16);
    transform: translateX(100%);
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
    opacity: 0;
    will-change: transform;
    z-index: 2600;
    display: flex;
    flex-direction: column;
    padding: 6px 0;
}

.lpg-cart-drawer.is-open {
    transform: translateX(0);
    opacity: 1;
}

.lpg-cart-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #eef0f2;
}

.lpg-cart-drawer__header h2 {
    margin: 0;
    font-size: 18px;
}

.lpg-cart-drawer__close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 999px;
    background: #f1f4f2;
    color: #16212b;
    cursor: pointer;
    font-weight: 700;
}

.lpg-cart-drawer__body {
    padding: 16px 22px 22px;
    overflow-y: auto;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lpg-cart-drawer__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.lpg-cart-drawer__item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
    align-items: center;
}

.lpg-cart-drawer__thumb img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

.lpg-cart-drawer__meta {
    display: grid;
    gap: 4px;
    font-size: 13px;
    color: #66707a;
}

.lpg-cart-drawer__meta a {
    text-decoration: none;
    color: #16212b;
    font-weight: 600;
    font-size: 13px;
}

.lpg-cart-drawer__price {
    font-weight: 700;
    font-size: 13px;
    color: #0b6a49;
}

.lpg-cart-drawer__price .woocommerce-Price-amount,
.lpg-cart-drawer__price .woocommerce-Price-currencySymbol,
.lpg-cart-drawer__subtotal .woocommerce-Price-amount,
.lpg-cart-drawer__subtotal .woocommerce-Price-currencySymbol {
    font-size: 13px;
    font-weight: 700;
    color: #0b6a49;
}

.lpg-cart-drawer__actions-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lpg-cart-drawer__remove {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #9b1c1c;
    background: #fdeaea;
}

.lpg-cart-drawer__remove:hover {
    background: #f9d4d4;
}

.lpg-cart-drawer__subtotal {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 14px;
    border-top: 1px solid #eef0f2;
    padding: 12px 4px 0;
}

.lpg-cart-drawer__actions {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding: 0 4px 4px;
}

.lpg-cart-drawer__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    background: #f1f4f2;
    color: #16212b;
}

.lpg-cart-drawer__btn--primary {
    background: #1fa55a;
    color: #fff;
}

.lpg-cart-drawer__empty {
    margin: 0;
    color: #66707a;
    font-size: 14px;
}
