/* Cookie notice (card + settings dialog), shared by every public layout.
   Self-contained: it does not rely on Bootstrap or on the page's own CSS variables, so it renders the
   same under Bootstrap 3, 5.1 and 5.3. Markup and script: partials/frontend/cookie-notice.blade.php */

.cookie-card,
.cookie-modal {
    --ck-blue: #2f6fd6;
    --ck-blue-dark: #255bb3;
    --ck-ink: #0f1c2e;
    --ck-text: #475467;
    --ck-line: #e7e5df;
    font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.cookie-card *,
.cookie-modal * {
    box-sizing: border-box;
}

/* ===== Card ===== */
/* Card and dialog use the top of the z-index range so they stay above every other layer:
   the home coupon popup (2000), the old pop-up (99999), toastr and Bootstrap modals. */
.cookie-card {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 2147483646;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    padding: 26px 26px 24px;
    box-shadow: 0 30px 60px -20px rgba(15, 28, 46, .45);
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, transform .35s, visibility .35s;
}

.cookie-card.show {
    transform: none;
    opacity: 1;
    visibility: visible;
}

.cookie-card p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--ck-text);
    margin: 0 0 18px;
}

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

/* ===== Buttons ===== */
.cookie-btn {
    appearance: none;
    display: inline-block;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: .75rem 1.4rem;
    font: 700 15px/1.5 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    text-align: center;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s;
}

.cookie-btn--primary {
    background: var(--ck-blue);
    border-color: var(--ck-blue);
    color: #fff;
    box-shadow: 0 12px 24px -8px rgba(47, 111, 214, .55);
}

.cookie-btn--primary:hover {
    background: var(--ck-blue-dark);
    border-color: var(--ck-blue-dark);
}

.cookie-btn--outline {
    background: #fff;
    border-color: var(--ck-line);
    color: var(--ck-ink);
}

.cookie-btn--outline:hover {
    border-color: var(--ck-blue);
    color: var(--ck-blue);
}

/* ===== Settings dialog ===== */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 28, 46, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}

.cookie-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.cookie-modal__dialog {
    width: 100%;
    max-width: 800px;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 30px 60px -20px rgba(15, 28, 46, .45);
    transform: translateY(-20px);
    transition: transform .25s;
}

.cookie-modal.is-open .cookie-modal__dialog {
    transform: none;
}

.cookie-modal__header,
.cookie-modal__footer {
    display: flex;
    align-items: center;
    padding: 24px 24px 8px;
}

.cookie-modal__header {
    justify-content: space-between;
}

.cookie-modal__footer {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 24px 24px;
}

.cookie-modal__title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ck-ink);
}

.cookie-modal__close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ck-text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.cookie-modal__close:hover {
    background: #f2f4f7;
    color: var(--ck-ink);
}

.cookie-modal__body {
    overflow-y: auto;
    padding: 8px 24px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ck-text);
}

.cookie-modal__body p {
    margin: 0 0 16px;
}

.cookie-modal__body p:last-child {
    margin-bottom: 0;
}

.cookie-modal__body strong {
    color: var(--ck-ink);
}

.cookie-lock {
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .cookie-card {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }
}
