.ircc-cart-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
}

.ircc-cart-toggle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: var(--btn-bg-color, #2563eb);
    color: #fff;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45), 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ircc-cart-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.5), 0 4px 12px rgba(0, 0, 0, 0.18);
}

.ircc-cart-toggle__icon {
    font-size: 1.9rem;
    line-height: 1;
    display: block;
}

.ircc-cart-toggle__count {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #e53e3e;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.ircc-cart-panel {
    position: fixed;
    right: 0;
    top: 0;
    width: min(420px, 100vw);
    height: 100vh;
    background: #fff;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 10001;
    display: flex;
    flex-direction: column;
}

.ircc-cart-panel.is-open {
    transform: translateX(0);
}

.ircc-cart-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #edf2f7;
}

.ircc-cart-panel__close {
    border: none;
    background: none;
    font-size: 1.6rem;
    cursor: pointer;
}

.ircc-cart-panel__items {
    flex: 1;
    overflow: auto;
    padding: 16px 20px;
}

.ircc-cart-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
}

.ircc-cart-item__info {
    display: grid;
    gap: 4px;
    font-size: 0.9rem;
}

.ircc-cart-item__remove {
    border: none;
    background: #edf2f7;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
}

.ircc-cart-panel__footer {
    padding: 20px;
    border-top: 1px solid #edf2f7;
    display: grid;
    gap: 12px;
}

.ircc-cart-panel__total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
}

.ircc-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s;
    z-index: 10000;
}

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

.ircc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
}

.ircc-btn--primary {
    background: var(--btn-bg-color, #2563eb);
    color: var(--btn-text-color, #fff);
}

.ircc-btn--block {
    width: 100%;
}

.ircc-cart-empty {
    color: #718096;
    text-align: center;
    padding: 20px 0;
}

@media (max-width: 768px) {
    .ircc-cart-widget {
        right: 16px;
        bottom: 16px;
    }
}
