.wfi-mc-cart__overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 30, 54, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 9998;
}

.wfi-mc-cart.is-open .wfi-mc-cart__overlay {
    opacity: 1;
    visibility: visible;
}

.wfi-mc-cart__drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 100%);
    height: 100vh;
    background: #ffffff;
    box-shadow: -8px 0 32px rgba(15, 30, 54, 0.12);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.wfi-mc-cart.is-open .wfi-mc-cart__drawer {
    transform: translateX(0);
}

.wfi-mc-cart__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 24px 20px;
    border-bottom: 1px solid #EEF2F7;
}

.wfi-mc-cart__title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wfi-mc-cart__title-wrap svg {
    width: 22px;
    height: 22px;
    color: #0F1E36;
}

.wfi-mc-cart__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #0F1E36;
}

.wfi-mc-cart__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    background: #D3642C;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.wfi-mc-cart__badge[hidden] {
    display: none !important;
}

.wfi-mc-cart__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #5E6B7D;
    cursor: pointer;
    border-radius: 6px;
}

.wfi-mc-cart__close:hover {
    background: #F4F7FB;
    color: #0F1E36;
}

.wfi-mc-cart__body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.wfi-mc-cart__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    text-align: center;
    color: #5E6B7D;
}

.wfi-mc-cart__empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
    background: #F4F7FB;
    border-radius: 50%;
    color: #9AA6B2;
}

.wfi-mc-cart__empty-icon svg {
    width: 32px;
    height: 32px;
}

.wfi-mc-cart__empty-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: #0F1E36;
}

.wfi-mc-cart__empty-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.wfi-mc-cart__items {
    display: none;
    flex-direction: column;
    gap: 0;
}

.wfi-mc-cart.has-items .wfi-mc-cart__empty {
    display: none;
}

.wfi-mc-cart.has-items .wfi-mc-cart__items {
    display: flex;
}

.wfi-mc-cart__item {
    display: grid;
    grid-template-columns: 12px 1fr auto auto;
    gap: 12px;
    align-items: start;
    padding: 18px 0;
    border-bottom: 1px solid #EEF2F7;
}

.wfi-mc-cart__item-dot {
    width: 8px;
    height: 8px;
    margin-top: 8px;
    background: #2563EB;
    border-radius: 50%;
}

.wfi-mc-cart__item-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #0F1E36;
}

.wfi-mc-cart__item-category {
    margin: 0;
    font-size: 13px;
    color: #7A8798;
}

.wfi-mc-cart__item-price {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0F1E36;
    white-space: nowrap;
}

.wfi-mc-cart__item-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #9AA6B2;
    cursor: pointer;
    border-radius: 4px;
}

.wfi-mc-cart__item-remove:hover {
    background: #F4F7FB;
    color: #0F1E36;
}

.wfi-mc-cart__footer {
    display: none;
    padding: 20px 24px 24px;
    border-top: 1px solid #EEF2F7;
    background: #ffffff;
}

.wfi-mc-cart.has-items .wfi-mc-cart__footer {
    display: block;
}

.wfi-mc-cart__summary {
    padding: 18px;
    margin-bottom: 16px;
    background: #F8FAFC;
    border: 1px solid #EEF2F7;
    border-radius: 10px;
}

.wfi-mc-cart__summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #5E6B7D;
}

.wfi-mc-cart__summary-row:last-child {
    margin-bottom: 0;
    padding-top: 10px;
    border-top: 1px solid #E2E8F0;
    font-size: 16px;
    font-weight: 700;
    color: #0F1E36;
}

.wfi-mc-cart__summary-total {
    font-size: 24px;
    font-weight: 700;
    color: #D3642C;
}

.wfi-mc-cart__actions {
    display: grid;
    gap: 12px;
}

.wfi-mc-cart__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    box-sizing: border-box;
}

.wfi-mc-cart__btn--outline {
    background: #ffffff;
    border: 2px solid #D3642C;
    color: #D3642C !important;
}

.wfi-mc-cart__btn--outline:hover {
    background: #FFF7F3;
    color: #D3642C !important;
}

.wfi-mc-cart__btn--solid {
    background: #D3642C;
    border: 2px solid #D3642C;
    color: #ffffff !important;
}

.wfi-mc-cart__btn--solid:hover {
    background: #b85424;
    border-color: #b85424;
    color: #ffffff !important;
}

.wfi-mc-listing__cart.is-added {
    background: #0F1E36;
    border-color: #0F1E36;
}

body.wfi-mc-cart-open {
    overflow: hidden;
}
