/* ==========================================================================
   BRILED - Silný potvrzovací panel po přidání do košíku (V1)
   Liquid-glass efekt (19.8.2026) - stejné hodnoty jako .aem-card v
   ask-expert-modal-v1.css (blur 22px/saturate 160%, rgba(255,255,255,.86),
   border rgba(255,255,255,.7)), aby byl vizuální jazyk plovoucích panelů
   napříč webem konzistentní. Fallback na plné pozadí přes
   prefers-reduced-transparency a @supports (bez podpory backdrop-filter).
   ========================================================================== */
.kpn-panel {
    position: fixed;
    z-index: 100000;
    top: 20px;
    right: 20px;
    width: 340px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border: 1px solid #e6e6e6;
    border-top: 4px solid #D61118;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
    padding: 18px 20px 20px;
    font-family: "DM Sans", sans-serif;
    color: #1D1D1B;
    transform: translateX(calc(100% + 24px));
    opacity: 0;
    transition: transform .28s cubic-bezier(.22, 1, .36, 1), opacity .28s ease;
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    @media (prefers-reduced-transparency: no-preference) {
        .kpn-panel {
            background: rgba(255, 255, 255, .86);
            backdrop-filter: blur(22px) saturate(160%);
            -webkit-backdrop-filter: blur(22px) saturate(160%);
            border-color: rgba(255, 255, 255, .7);
            box-shadow: 0 24px 60px rgba(29, 29, 27, .28), 0 2px 8px rgba(29, 29, 27, .12);
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    /* Guidance z liquid-glass-design-guide.md: u redukovaného pohybu nahradit
       x/y/z transitions fadingem - transform se pak jen "přeskočí" na finální
       pozici (.kpn-panel--show ho pořád nastavuje), zůstává fade opacity. */
    .kpn-panel {
        transition: opacity .2s ease;
    }
}

.kpn-panel--show {
    transform: translateX(0);
    opacity: 1;
}

.kpn-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: #9a9a98;
    cursor: pointer;
    padding: 4px;
}
.kpn-close:hover { color: #1D1D1B; }

.kpn-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 6px;
}

.kpn-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1aa053;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    flex: 0 0 auto;
}

.kpn-title {
    font-size: 17px;
    font-weight: 700;
}

.kpn-name {
    font-size: 14px;
    line-height: 1.35;
    color: #444;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kpn-actions {
    display: flex;
    gap: 8px;
}

.kpn-btn {
    flex: 1 1 50%;
    text-align: center;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding: 12px 10px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none !important;
    border: 1.5px solid #1D1D1B;
    transition: background-color .15s ease, color .15s ease;
}

.kpn-btn--ghost {
    background: #fff;
    color: #1D1D1B !important;
}
.kpn-btn--ghost:hover { background: #f2f2f2; }

.kpn-btn--primary {
    background: #D61118;
    border-color: #D61118;
    color: #fff !important;
}
.kpn-btn--primary:hover { background: #b60d13; border-color: #b60d13; }

@media (max-width: 767px) {
    .kpn-panel {
        top: auto;
        bottom: 12px;
        right: 12px;
        left: 12px;
        width: auto;
        transform: translateY(calc(100% + 24px));
    }
    .kpn-panel--show { transform: translateY(0); }
}
