/* EasyWeb cookie consent banner. Buttons reuse the card's .btn-primary so they follow each card's theme color. */

.ew-consent[hidden],
.ew-consent [hidden] {
    display: none !important;
}

.ew-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000; /* above Bootstrap's fixed navbar (1030) */
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    color: #333;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .2);
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

.ew-consent__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 16px;
}

.ew-consent__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    text-transform: none;
    color: #222;
    outline: none;
}

.ew-consent__text {
    margin: 0 0 16px;
}

.ew-consent__text a {
    text-decoration: underline;
}

.ew-consent__settings {
    margin: 0 0 16px;
    border-top: 1px solid #e5e5e5;
}

.ew-consent__row {
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

.ew-consent__label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.ew-consent__label input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.ew-consent__desc {
    margin: 4px 0 0 26px;
    color: #555;
    font-size: 13px;
}

.ew-consent__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* "Endast nödvändiga" and "Acceptera alla" are deliberately identical in size and style. */
.ew-consent__btn {
    flex: 1 1 180px;
    margin: 0;
    padding: 10px 16px;
    font-size: 14px;
    white-space: normal;
}

@media (max-width: 480px) {
    .ew-consent__btn {
        flex-basis: 100%;
    }
}

/* Held-back third-party embeds (Google Maps) */
.ew-consent-embed:not(.is-loaded) iframe[data-consent-src] {
    display: none;
}

.ew-consent-embed.is-loaded .ew-consent-embed__placeholder {
    display: none;
}

.ew-consent-embed__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 250px;
    padding: 24px 16px;
    background: #f2f2f2;
    border: 1px solid #ddd;
    text-align: center;
}

.ew-consent-embed__placeholder p {
    max-width: 480px;
    margin: 0;
}
