/* Cookie consent banner */

.shop-cookie-banner {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1080;
    padding: var(--shop-space-4);
    padding-bottom: max(var(--shop-space-4), env(safe-area-inset-bottom, 0px));
    background: var(--shop-color-surface, #fff);
    border-top: 1px solid var(--shop-color-border, #e5e5e0);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
}

.shop-cookie-banner[hidden] {
    display: none !important;
}

.shop-cookie-banner__inner {
    display: flex;
    flex-direction: column;
    gap: var(--shop-space-4);
    align-items: stretch;
}

@media (min-width: 768px) {
    .shop-cookie-banner__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.shop-cookie-banner__title {
    font-size: var(--shop-font-size-md);
    font-weight: var(--shop-font-weight-semibold, 600);
    margin: 0 0 var(--shop-space-2);
    color: var(--shop-color-text);
}

.shop-cookie-banner__text {
    font-size: var(--shop-font-size-sm);
    line-height: var(--shop-line-height-relaxed);
    color: var(--shop-color-text-muted);
    max-width: 42rem;
}

.shop-cookie-banner__text a {
    font-weight: 600;
}

.shop-cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--shop-space-2);
    flex-shrink: 0;
}

.shop-cookie-banner__btn {
    min-height: var(--shop-touch-target, 2.75rem);
}

body.shop-has-cookie-banner {
    padding-bottom: calc(7rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
    body.shop-has-cookie-banner {
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }
}

/* Map placeholder when optional cookies declined */
.shop-map--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--shop-color-surface-muted, #f6f6f4);
}

.shop-map__placeholder-body {
    padding: var(--shop-space-5);
    text-align: center;
    max-width: 20rem;
}

.shop-map__placeholder-text {
    font-size: var(--shop-font-size-sm);
    color: var(--shop-color-text-muted);
    margin: 0;
}

.shop-footer__cookie-settings {
    background: none;
    border: 0;
    padding: 0;
    font-size: inherit;
    color: var(--shop-color-text-muted);
    text-decoration: underline;
    cursor: pointer;
}

.shop-footer__cookie-settings:hover {
    color: var(--shop-color-primary-hover);
}
