/* ==========================================================================
   Cookie consent (devrabiul/laravel-cookie-consent) — site look
   Loaded after CookieConsent::styles() and main.css.
   main.css styles every <button>, <p>, <a> and heading globally
   (incl. `color: #212931 !important` on buttons), so this file resets
   those inside the banner / modal and restyles them in the site's style.
   ========================================================================== */

.cookie-consent-root,
.cookie-preferences-modal,
.cookie-consent-floating-button {
    --cc-card-bg-color: #fff;
    --cc-card-text-color: #212931;
    --cc-button-bg-color-rgb: 33, 41, 49;
    --cc-button-bg-opacity: 1;
    --cc-button-text-color: #fff;
    --cc-border-color: #eeeeee;
    --cc-accent: #f37021;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    line-height: 1.6;
}

/* ---------- Banner card ---------- */

.cookie-consent-root {
    border: 1px solid #eeeeee;
    border-radius: 0;
    box-shadow: 0 20px 40px -20px rgba(33, 41, 49, .45);
}

.cookie-consent-root.consent-layout-box-wide {
    --cookie-consent-width: 30rem;
}

.cookie-consent-root .cookie-consent-content-container {
    max-width: none;
    padding: 1.75rem 1.75rem 1.5rem;
    gap: 1.25rem;
    align-items: stretch;
}

.cookie-consent-root .cookie-consent-content-title {
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-size: .85rem;
    font-weight: 900;
    letter-spacing: .075em;
    text-transform: uppercase;
    line-height: 1.5;
    margin: 0 0 .6rem;
    padding: 0;
    color: #212931;
}

.cookie-consent-root .cookie-consent-content-description,
.cookie-consent-root .cookie-consent-content-description p {
    font-family: "Merriweather", Georgia, serif;
    font-weight: 300;
    font-size: .85rem;
    line-height: 1.75;
    text-align: left;
    margin: 0;
    opacity: 1;
    color: #555;
}

/* ---------- Buttons (shared reset against main.css) ---------- */

.cookie-consent-root button,
.cookie-preferences-modal .primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.75rem;
    line-height: 1;
    padding: 0 1.25rem;
    border: 0;
    border-radius: 0;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .075em;
    text-transform: uppercase;
    white-space: nowrap;
    min-width: 0;
    cursor: pointer;
    transition: background-color .2s ease-in-out, box-shadow .2s ease-in-out, color .2s ease-in-out;
}

/* Accept: solid dark */
.cookie-consent-root button.cookie-consent-accept,
.cookie-preferences-modal button.cookie-consent-accept {
    background-color: #212931;
    box-shadow: none;
    color: #fff !important;
}

.cookie-consent-root button.cookie-consent-accept:hover,
.cookie-preferences-modal button.cookie-consent-accept:hover {
    background-color: var(--cc-accent);
    color: #fff !important;
}

/* Reject + Save: outlined dark */
.cookie-consent-root button.cookie-consent-reject,
.cookie-preferences-modal button.cookie-consent-reject,
.cookie-preferences-modal button.cookie-preferences-save {
    background-color: transparent;
    box-shadow: inset 0 0 0 2px #212931;
    color: #212931 !important;
}

.cookie-consent-root button.cookie-consent-reject:hover,
.cookie-preferences-modal button.cookie-consent-reject:hover,
.cookie-preferences-modal button.cookie-preferences-save:hover {
    background-color: transparent;
    box-shadow: inset 0 0 0 2px var(--cc-accent);
    color: var(--cc-accent) !important;
}

/* Manage preferences: quiet text link */
.cookie-consent-root button.preferences-btn {
    background-color: transparent;
    box-shadow: none;
    padding: 0 .25rem;
    color: #212931 !important;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 4px;
}

.cookie-consent-root button.preferences-btn:hover {
    background-color: transparent;
    color: var(--cc-accent) !important;
}

.cookie-consent-root .cookie-consent-button-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
}

.cookie-consent-root .cookie-consent-button-action {
    flex-direction: row;
    gap: .75rem;
    width: auto;
}

/* ---------- Policy links strip ---------- */

.cookie-consent-root .cookie-consent-links-container {
    background: #f7f7f7;
    border-top: 1px solid #eeeeee;
    padding: .6rem 1.75rem;
    text-align: left;
}

.cookie-consent-root .cookie-consent-links-container ul {
    width: auto;
    gap: .25rem 1.25rem;
}

.cookie-consent-root .cookie-consent-links-container li {
    line-height: 1.5;
}

.cookie-consent-root .cookie-consent-links-container a {
    font-size: .7rem;
    font-weight: 400;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #777;
    border-bottom: 0;
}

.cookie-consent-root .cookie-consent-links-container a:hover {
    color: var(--cc-accent) !important;
    text-decoration: none;
}

/* ---------- Preferences modal ---------- */

.cookie-preferences-modal-content {
    border-radius: 0;
}

.cookie-preferences-modal h2,
.cookie-preferences-modal h3 {
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-weight: 900;
    letter-spacing: .075em;
    text-transform: uppercase;
    color: #212931;
    margin: 0;
}

.cookie-preferences-modal h2 {
    font-size: .9rem;
}

.cookie-preferences-modal h3 {
    font-size: .8rem;
}

.cookie-preferences-modal p {
    font-family: "Merriweather", Georgia, serif;
    font-weight: 300;
    font-size: .85rem;
    line-height: 1.75;
    text-align: left;
    margin: 0;
    color: #555;
}

.cookie-preferences-modal .cookie-preferences-modal-close {
    height: auto;
    line-height: 1;
    padding: .5rem;
    background: transparent;
    box-shadow: none;
    color: #212931 !important;
}

.cookie-preferences-modal .cookie-preferences-modal-close:hover {
    background: transparent;
    color: var(--cc-accent) !important;
}

.cookie-preferences-modal .cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #212931;
}

/* ---------- Floating "cookie settings" button ---------- */

.cookie-consent-floating-button {
    height: 44px;
    line-height: 1;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    color: #212931 !important;
}

.cookie-consent-floating-button:hover {
    color: var(--cc-accent) !important;
}

/* ---------- Mobile ---------- */

@media (max-width: 575.98px) {
    .cookie-consent-root .cookie-consent-content-container {
        padding: 1.25rem;
    }

    .cookie-consent-root .cookie-consent-button-action,
    .cookie-consent-root .cookie-consent-button-action button {
        width: 100%;
        flex: 1 1 0;
    }

    .cookie-consent-root button.preferences-btn {
        width: 100%;
    }

    .cookie-consent-root .cookie-consent-links-container {
        padding: .6rem 1.25rem;
    }
}
