.pc-mini-cart-launcher,
.pc-mini-cart-launcher *,
.pc-mini-cart-drawer,
.pc-mini-cart-drawer *,
.pc-mini-cart-overlay {
    box-sizing: border-box;
}

.pc-mini-cart-launcher {
    position: fixed;
    right: 22px;
    bottom: 238px; /* A1F6R2: separado del botón de avisos y del chat */
    z-index: 97990;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #289d99;
    color: #fff;
    box-shadow: 0 10px 30px rgba(26, 70, 74, .22);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.pc-mini-cart-launcher:hover,
.pc-mini-cart-launcher:focus-visible {
    background: #207f7c;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(26, 70, 74, .28);
    outline: none;
}

.pc-mini-cart-launcher svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pc-mini-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    border-radius: 999px;
    background: #f4a300;
    color: #172529;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.pc-mini-cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 97995;
    background: rgba(17, 36, 42, .38);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.pc-mini-cart-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.pc-mini-cart-drawer {
    --pc-drawer-teal: #289d99;
    --pc-drawer-teal-dark: #207f7c;
    --pc-drawer-ink: #25343a;
    --pc-drawer-muted: #6b797e;
    --pc-drawer-line: #e4eaec;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 98000;
    width: min(420px, 94vw);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: var(--pc-drawer-ink);
    box-shadow: -18px 0 50px rgba(22, 47, 54, .18);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .24s ease, visibility .24s ease;
}

.pc-mini-cart-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

html.pc-drawer-open,
html.pc-drawer-open body {
    overflow: hidden !important;
}

.pc-drawer-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--pc-drawer-line);
    background: linear-gradient(135deg, #fff 0%, #f0f9f8 100%);
}

.pc-drawer-header-copy span {
    display: block;
    margin-bottom: 2px;
    color: var(--pc-drawer-teal-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.pc-drawer-header-copy strong {
    display: block;
    font-size: 22px;
    line-height: 1.2;
}

.pc-drawer-close {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border: 1px solid #d9e2e4;
    border-radius: 50%;
    background: #fff;
    color: #54656b;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.pc-drawer-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 16px 18px 24px;
    background: #f7f9fa;
}

.pc-drawer-state {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
    color: var(--pc-drawer-muted);
}

.pc-drawer-state strong {
    color: var(--pc-drawer-ink);
    font-size: 17px;
}

.pc-drawer-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #dce7e7;
    border-top-color: var(--pc-drawer-teal);
    border-radius: 50%;
    animation: pcDrawerSpin .75s linear infinite;
}

@keyframes pcDrawerSpin {
    to { transform: rotate(360deg); }
}

.pc-drawer-items {
    display: grid;
    gap: 11px;
}

.pc-drawer-item {
    padding: 14px;
    border: 1px solid var(--pc-drawer-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(30, 56, 62, .045);
}

.pc-drawer-item-top {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.pc-drawer-thumb {
    width: 58px;
    height: 58px;
    overflow: hidden;
    border-radius: 10px;
    background: #eef3f4;
}

.pc-drawer-thumb img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: cover;
}

.pc-drawer-title {
    margin: 0;
    color: var(--pc-drawer-ink);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
}

.pc-drawer-schedule {
    display: block;
    margin-top: 6px;
    color: #587078;
    font-size: 12px;
    line-height: 1.35;
}

.pc-drawer-remove {
    border: 0;
    background: transparent;
    color: #a05757;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 2px 4px;
}

.pc-drawer-remove.is-loading {
    opacity: .4;
    pointer-events: none;
}

.pc-drawer-resources {
    display: grid;
    gap: 6px;
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid #edf1f2;
}

.pc-drawer-resource,
.pc-drawer-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
}

.pc-drawer-resource span:first-child,
.pc-drawer-item-bottom span:first-child {
    min-width: 0;
    color: var(--pc-drawer-muted);
}

.pc-drawer-resource strong,
.pc-drawer-item-bottom strong {
    flex: 0 0 auto;
    color: var(--pc-drawer-ink);
}

.pc-drawer-summary {
    margin-top: 15px;
    padding: 16px;
    border: 1px solid #dce6e7;
    border-radius: 14px;
    background: #fff;
}

.pc-drawer-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.pc-drawer-total span {
    color: var(--pc-drawer-muted);
    font-size: 13px;
}

.pc-drawer-total strong {
    font-size: 20px;
}

.pc-drawer-actions {
    display: grid;
    gap: 8px;
}

.pc-drawer-actions a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 10px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 750;
}

.pc-drawer-view {
    border: 1px solid #cfdcde;
    background: #fff;
    color: var(--pc-drawer-teal-dark) !important;
}

.pc-drawer-checkout {
    background: var(--pc-drawer-teal);
    color: #fff !important;
}

.pc-drawer-empty-icon {
    font-size: 36px;
}

html.pcaw-assistant-open .pc-mini-cart-launcher,
body.pcaw-assistant-open .pc-mini-cart-launcher {
    opacity: .28;
    pointer-events: none;
}

@media (max-width: 600px) {
    .pc-mini-cart-launcher {
        right: 18px;
        bottom: 230px; /* A1F6R2 mobile */
        width: 54px;
        height: 54px;
    }

    .pc-mini-cart-drawer {
        width: min(390px, 100vw);
    }

    .pc-drawer-header {
        padding: 17px 18px;
    }

    .pc-drawer-body {
        padding: 13px 13px calc(20px + env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .pc-mini-cart-launcher,
    .pc-mini-cart-overlay,
    .pc-mini-cart-drawer {
        transition: none !important;
    }

    .pc-drawer-spinner {
        animation: none;
    }
}
