/* Süti-hozzájárulás sáv a központi oldalon (lásd public/partials/cookie-consent + js/consent.js).
   A landing és a belépés oldalakon is ez tölt be, ezért nem épít a landing.css-re. */

.hw-consent {
    --hw-primary: #15c6d1;
    --hw-primary-dark: #0b8f99;
    --hw-ink: #0e3a40;
    --hw-line: #dfeced;

    position: fixed;
    left: 50%;
    bottom: 1rem;
    z-index: 1100;
    width: calc(100% - 2rem);
    max-width: 1040px;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    transform: translateX(-50%);
    background-color: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #4b5f63);
    border: 1px solid var(--hw-line);
    border-radius: 1.25rem;
    box-shadow: 0 24px 60px -18px rgba(14, 58, 64, .35);
    font-size: .9rem;
}

.hw-consent[hidden] {
    display: none;
}

.hw-consent-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: 1.25rem 1.5rem;
}

.hw-consent-text {
    flex: 1 1 420px;
}

.hw-consent-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .35rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--hw-ink);
}

.hw-consent-title i {
    color: var(--hw-primary-dark);
    font-size: 1.15rem;
}

.hw-consent-text p {
    line-height: 1.55;
}

.hw-consent-text a {
    color: var(--hw-primary-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hw-consent-settings {
    padding-top: 1rem;
    border-top: 1px solid var(--hw-line);
}

.hw-consent-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
}

/* A gombok azonos méretűek; az elutasítás ugyanolyan hangsúlyos, mint az elfogadás. */
.hw-consent-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: .5rem 1.15rem;
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: none;
    transform: none;
}

.hw-consent-actions .btn[hidden] {
    display: none;
}

.hw-consent-btn-secondary {
    background: transparent;
    color: var(--hw-ink);
    border: 1px solid var(--hw-line);
}

.hw-consent-btn-secondary:hover,
.hw-consent-btn-secondary:focus-visible {
    color: var(--hw-primary-dark);
    border-color: var(--hw-primary);
}

.hw-consent-btn-primary {
    background: var(--hw-primary-dark);
    color: #fff;
    border: 1px solid var(--hw-primary-dark);
}

.hw-consent-btn-primary:hover,
.hw-consent-btn-primary:focus-visible {
    background: #0a7a83;
    border-color: #0a7a83;
    color: #fff;
}

.hw-consent-actions .btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(21, 198, 209, .25);
}

/* Az admin felület kapcsolója, a landing türkiz színével. */
.hw-consent .form-switch .form-check-input {
    width: 2em;
    height: 1.25em;
    cursor: pointer;
}

.hw-consent .form-switch .form-check-input:focus {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
    border-color: var(--hw-primary);
    box-shadow: 0 0 0 .25rem rgba(21, 198, 209, .18);
}

.hw-consent .form-switch .form-check-input:checked {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
    background-color: var(--hw-primary-dark);
    border-color: var(--hw-primary-dark);
}

.hw-consent .form-check-label {
    padding-left: .35rem;
    cursor: pointer;
}

@media (max-width: 575.98px) {
    .hw-consent {
        bottom: .5rem;
        width: calc(100% - 1rem);
    }

    .hw-consent-inner {
        padding: 1rem;
    }

    .hw-consent-actions {
        width: 100%;
    }

    .hw-consent-actions .btn {
        flex: 1 1 calc(50% - .25rem);
    }
}
