/* The cart remains a real WooCommerce cart; this is its print-shopping view. */
.oganka-cart-arrival { pointer-events: none; }
.oganka-is-adding { cursor: progress; opacity: .65; }
.oganka-catalog-actions.oganka-is-leaving a.added_to_cart { display: none !important; }
.oganka-cart-error { margin: 8px 0 0; color: #555; font-size: 12px; line-height: 1.5; letter-spacing: .2px; }

body.oganka-keep-shopping { padding-bottom: 116px; }
.oganka-keep-shopping .anka-mobile-bottom { display: none; }
.oganka-keep-heading { padding: 52px var(--anka-gutter, 80px) 0; }
.oganka-keep-heading .oganka-keep-confirmation {
    margin: 0 0 22px;
    color: #333;
    font-size: 13px;
    line-height: 1.6;
    letter-spacing: .4px;
}
.oganka-keep-heading h1 { margin: 0 0 12px; font-size: 46px; font-weight: 300; line-height: 1.25; letter-spacing: 1.3px; }
.oganka-keep-heading > p:not(.oganka-keep-confirmation) { margin: 0; color: #666; font-size: 14px; line-height: 1.7; letter-spacing: .5px; }
.oganka-keep-shopping .anka-product-grid { padding-top: 38px; }
.oganka-keep-empty { padding: 35px var(--anka-gutter, 80px) 70px; font-size: 16px; line-height: 1.7; }
.oganka-keep-empty a { text-decoration: underline; text-underline-offset: 4px; }

.oganka-keep-shopping .anka-product-grid .anka-product-card {
    display: grid;
    grid-template-rows: auto minmax(2.8em, 1fr) auto auto;
    align-content: start;
    min-width: 0;
}
.oganka-keep-shopping .anka-product-grid .anka-product-card > .wp-block-group__inner-container { display: contents; }
.oganka-keep-shopping .anka-product-grid .oganka-catalog-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-top: 14px;
}
.oganka-keep-shopping .oganka-catalog-actions a.button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 12px 18px;
    border: 1px solid #222;
    border-radius: 0;
    background: #222;
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: .6px;
    text-align: center;
}
.oganka-keep-shopping .oganka-catalog-actions a.button:hover { background: #444; color: #fff; }
.oganka-keep-shopping .oganka-catalog-actions a.added_to_cart { min-height: 44px; padding: 10px 0; font-size: 12px; text-align: center; text-decoration: underline; text-underline-offset: 4px; }

.oganka-keep-cart {
    position: fixed;
    z-index: 35;
    right: max(24px, calc((100vw - 840px) / 2));
    bottom: 20px;
    left: max(24px, calc((100vw - 840px) / 2));
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid #deddda;
    background: #fff;
    color: #222;
    box-shadow: 0 5px 26px rgba(29, 29, 29, .1);
}
.oganka-keep-bag { display: flex; position: relative; align-items: center; justify-content: center; width: 48px; height: 48px; color: #222; }
.oganka-keep-bag svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.1; }
.oganka-keep-count { position: absolute; top: 0; right: 0; min-width: 19px; padding: 1px 4px; border-radius: 50%; background: #222; color: #fff; font-size: 10px; font-weight: 400; line-height: 17px; letter-spacing: 0; text-align: center; }
.oganka-keep-total { margin: 0; font-size: 17px; font-weight: 400; line-height: 1.4; letter-spacing: .3px; }
.oganka-keep-note { margin: 4px 0 0; color: #777; font-size: 11px; line-height: 1.4; letter-spacing: .35px; }
.oganka-keep-checkout { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border: 1px solid #222; background: #222; color: #fff; font-size: 12px; font-weight: 400; line-height: 1.5; letter-spacing: .5px; white-space: nowrap; }
.oganka-keep-checkout:hover { background: #444; color: #fff; }
.anka-menu-open .oganka-keep-cart { display: none; }

.oganka-cart-arrival {
    position: fixed;
    z-index: 60;
    inset: 0;
    overflow: hidden;
    contain: layout style;
    isolation: isolate;
    text-align: center;
}
.oganka-arrival-veil { position: absolute; inset: 0; background: rgba(250, 249, 246, .82); opacity: 0; }
.oganka-arrival-rig {
    position: absolute;
    left: calc(50% - 100px);
    width: 200px;
    height: 320px;
    transform-origin: 100px 226px;
    will-change: transform, opacity;
}
.oganka-arrival-cart {
    position: absolute;
    top: 142px;
    left: 4px;
    width: 192px;
    height: 168px;
    opacity: 0;
    will-change: transform, opacity;
}
.oganka-arrival-cart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.oganka-arrival-cart-rear { z-index: 0; }
.oganka-arrival-cart-front { z-index: 2; }
.oganka-arrival-handle { fill: none; stroke: #55534e; stroke-width: .42; stroke-linecap: round; }
.oganka-arrival-interior { fill: #e8e5de; stroke: none; }
.oganka-arrival-bag-face { fill: url(#oganka-bag-paper); stroke: #77736c; stroke-width: .28; stroke-linejoin: round; }
.oganka-arrival-bag-rim { fill: none; stroke: #494740; stroke-width: .35; }
.oganka-arrival-bag-seam { fill: none; stroke: #dedbd3; stroke-width: .18; }
.oganka-arrival-paper {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 50%;
    width: max-content;
    opacity: 0;
    transform: translate3d(-50%,0,0);
    will-change: transform, opacity;
}
.oganka-arrival-paper img {
    display: block;
    width: auto;
    height: auto;
    max-width: 112px;
    max-height: 136px;
    margin: 0;
    object-fit: contain;
    padding: 6px;
    border: 1px solid #deddda;
    background: #fff;
    box-shadow: 0 3px 6px rgba(29, 29, 29, .04), 0 12px 24px rgba(29, 29, 29, .12);
}
.oganka-arrival-caption {
    position: absolute;
    left: calc(50% - 120px);
    width: 240px;
    color: #4b4944;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: .9px;
    opacity: 0;
}

@media (max-width: 640px) {
    body.oganka-keep-shopping { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
    .oganka-keep-heading { padding: 26px 20px 0; }
    .oganka-keep-heading .oganka-keep-confirmation { margin-bottom: 16px; font-size: 12px; line-height: 1.5; }
    .oganka-keep-heading h1 { margin-bottom: 10px; font-size: 32px; line-height: 1.2; letter-spacing: .7px; }
    .oganka-keep-heading > p:not(.oganka-keep-confirmation) { font-size: 12px; line-height: 1.6; }
    .oganka-keep-shopping .anka-product-grid { padding-top: 24px; }
    .oganka-keep-shopping .oganka-catalog-actions a.button { padding: 11px 7px; letter-spacing: .25px; }
    .oganka-keep-empty { padding: 25px 20px 45px; font-size: 14px; }
    .oganka-keep-cart {
        right: 0;
        bottom: 0;
        left: 0;
        grid-template-columns: 42px minmax(0, 1fr) auto;
        gap: 9px;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
        border: 0;
        border-top: 1px solid #deddda;
        box-shadow: 0 -4px 18px rgba(29, 29, 29, .04);
    }
    .oganka-keep-bag { width: 42px; height: 48px; }
    .oganka-keep-total { font-size: 13px; line-height: 1.4; letter-spacing: .15px; }
    .oganka-keep-note { font-size: 10px; letter-spacing: .1px; }
    .oganka-keep-checkout { min-height: 48px; padding: 12px 14px; font-size: 11px; letter-spacing: .25px; }
}
@media (prefers-reduced-motion: reduce) {
    .oganka-cart-arrival { display: none !important; }
}
