/* ==========================================================================
   Motomarine v3 · Cookie banner
   Fixed to the bottom of the viewport; Accept / Decline ([data-cookie-accept],
   [data-cookie-decline]) hide the banner and remember the choice (main.js).
   --bar full width bottom bar, --wide wide centred card with the message
   beside the buttons, --demo = styleguide only,
   rendered in place instead of fixed.
   ========================================================================== */

.cs-cookie {
    position: fixed;
    z-index: 5000;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    line-height: 1.6;
}
.cs-cookie.is-hidden {
    display: none;
}
.cs-cookie__text {
    margin: 0;
    color: var(--body);
}
.cs-cookie__text a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cs-cookie__text > i {
    margin-right: 4px;
    color: var(--primary);
}
.cs-cookie__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.cs-cookie__head i {
    font-size: 22px;
    line-height: 1;
    color: var(--primary);
}
.cs-cookie__head h3 {
    margin: 0;
    font-size: 17px;
}
.cs-cookie__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.cs-cookie__manage {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cs-cookie__manage:hover {
    color: var(--heading);
}

/* --- Full width bar --- */
.cs-cookie--bar {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(15, 23, 43, .08);
}
.cs-cookie__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.cs-cookie--bar .cs-cookie__actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
}

/* --- Wide card --- */
.cs-cookie--wide {
    left: 50%;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 32px;
    width: 860px;
    max-width: calc(100% - 48px);
    padding: 24px 28px;
    border: 1px solid var(--border);
    border-radius: 0;
    transform: translateX(-50%);
}
.cs-cookie--wide .cs-cookie__body {
    flex: 1 1 auto;
    min-width: 0;
}
.cs-cookie__actions--stack {
    flex: 0 0 200px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
}
.cs-cookie__actions--stack .cs-btn {
    width: 100%;
}

/* --- Styleguide demo: in place, not fixed --- */
.cs-cookie--demo {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    margin: 0 auto;
}
.cs-cookie--demo.cs-cookie--bar {
    margin: 0;
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .cs-cookie__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .cs-cookie--bar .cs-cookie__actions {
        width: 100%;
    }
    .cs-cookie--bar .cs-cookie__actions .cs-btn {
        flex: 1 1 0;
    }
    .cs-cookie--wide {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 20px;
    }
    .cs-cookie__actions--stack {
        flex-basis: auto;
    }
}
@media (max-width: 575px) {
    .cs-cookie--wide {
        bottom: 12px;
        max-width: calc(100% - 24px);
    }
}


/* ==========================================================================
   v5 · Modern cookie banner
   Two-tone icon chip, light shadow on the card, a hairline over the bar.
   ========================================================================== */
.cs-cookie .bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 14px;
    color: var(--white);
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .12);
}
.cs-cookie__text .bi {
    margin-right: 10px;
    vertical-align: middle;
}
.cs-cookie:not(.cs-cookie--bar) {
    border: 1px solid var(--border-light);
    box-shadow: rgba(15, 23, 43, .12) 0 12px 32px 0;
}
.cs-cookie--bar {
    border-top: 1px solid var(--border-light);
    box-shadow: rgba(15, 23, 43, .08) 0 -4px 16px 0;
}
.cs-cookie__head {
    gap: 12px;
}
