/**
 * Hotel Impire Cookie Consent — scoped banner styles only.
 * Desktop center: left 50% + translateX(-50%) preserved through show animation.
 * Mobile (≤767px): always bottom-center regardless of desktop position class.
 */

.hicc-root.hicc-banner {
    position: fixed;
    z-index: 99999;
    width: min(var(--hicc-max-width, 420px), calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
    background: var(--hicc-bg, #fff);
    color: var(--hicc-text, #1a1a1a);
    border-radius: var(--hicc-radius, 16px);
    box-shadow: var(--hicc-shadow, 0 12px 40px rgba(0, 0, 0, 0.14));
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.28s ease, transform 0.28s ease;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    /* Default off-center positions animate Y only */
    transform: translate3d(0, 12px, 0);
}

.hicc-root.hicc-banner.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* —— Desktop: true viewport center —— */
.hicc-root.hicc-banner.hicc-banner--bottom-center {
    left: 50%;
    right: auto;
    bottom: 20px;
    transform: translate3d(-50%, 12px, 0);
}

.hicc-root.hicc-banner.hicc-banner--bottom-center.is-visible {
    transform: translate3d(-50%, 0, 0);
}

.hicc-root.hicc-banner.hicc-banner--bottom-right {
    right: 20px;
    bottom: 20px;
    left: auto;
    transform: translate3d(0, 12px, 0);
}

.hicc-root.hicc-banner.hicc-banner--bottom-right.is-visible {
    transform: translate3d(0, 0, 0);
}

.hicc-root.hicc-banner.hicc-banner--bottom-left {
    left: 20px;
    bottom: 20px;
    right: auto;
    transform: translate3d(0, 12px, 0);
}

.hicc-root.hicc-banner.hicc-banner--bottom-left.is-visible {
    transform: translate3d(0, 0, 0);
}

.hicc-banner__strip {
    height: var(--hicc-strip-height, 4px);
    background: var(--hicc-strip-bg, #c4a35a);
}

.hicc-banner__inner {
    padding: 16px 18px 18px;
    box-sizing: border-box;
}

/* Header: icon + title on one visual axis */
.hicc-banner__header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hicc-banner__icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: var(--hicc-icon-radius, 12px);
    background: var(--hicc-icon-bg, #f7f1e4);
    color: var(--hicc-icon-fg, #8b6914);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hicc-banner__icon .hicc-icon-svg {
    display: block;
}

.hicc-banner__title {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--hicc-text, #1a1a1a);
}

/* Body: full inner width below header (no icon indent) */
.hicc-banner__body {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--hicc-muted, #5c5c5c);
}

.hicc-banner__body p {
    margin: 0 0 0.55em;
}

.hicc-banner__body p:last-child {
    margin-bottom: 0;
}

.hicc-banner__body a {
    color: var(--hicc-link, #8b6914);
    text-decoration: underline;
}

.hicc-banner__body a:hover {
    opacity: 0.85;
}

.hicc-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.hicc-root .hicc-btn {
    appearance: none;
    cursor: pointer;
    border: 1px solid transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    padding: 10px 14px;
    box-sizing: border-box;
    flex: 1 1 auto;
    min-width: 140px;
    text-align: center;
    border-radius: var(--hicc-button-radius, 10px);
}

.hicc-root .hicc-btn:focus-visible {
    outline: 2px solid var(--hicc-link, #8b6914);
    outline-offset: 2px;
}

.hicc-root .hicc-btn--primary {
    background: var(--hicc-primary-bg, #c4a35a);
    color: var(--hicc-primary-text, #fff);
}

.hicc-root .hicc-btn--primary:hover {
    background: var(--hicc-primary-hover, #b39148);
}

.hicc-root .hicc-btn--secondary {
    background: var(--hicc-secondary-bg, #fff);
    color: var(--hicc-secondary-text, #333);
    border-color: var(--hicc-secondary-border, #d0d0d0);
}

.hicc-root .hicc-btn--secondary:hover {
    background: var(--hicc-secondary-hover, #f5f5f5);
}

/* —— Mobile: always bottom-center —— */
@media (max-width: 767px) {
    .hicc-root.hicc-banner,
    .hicc-root.hicc-banner.hicc-banner--bottom-center,
    .hicc-root.hicc-banner.hicc-banner--bottom-left,
    .hicc-root.hicc-banner.hicc-banner--bottom-right {
        left: 50% !important;
        right: auto !important;
        bottom: 12px;
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        transform: translate3d(-50%, 12px, 0);
    }

    .hicc-root.hicc-banner.is-visible,
    .hicc-root.hicc-banner.hicc-banner--bottom-center.is-visible,
    .hicc-root.hicc-banner.hicc-banner--bottom-left.is-visible,
    .hicc-root.hicc-banner.hicc-banner--bottom-right.is-visible {
        transform: translate3d(-50%, 0, 0);
    }

    .hicc-root .hicc-btn {
        min-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hicc-root.hicc-banner,
    .hicc-root.hicc-banner.is-visible {
        transition: none;
    }

    .hicc-root.hicc-banner.hicc-banner--bottom-center,
    .hicc-root.hicc-banner.hicc-banner--bottom-center.is-visible {
        transform: translate3d(-50%, 0, 0);
    }

    .hicc-root.hicc-banner.hicc-banner--bottom-left,
    .hicc-root.hicc-banner.hicc-banner--bottom-left.is-visible,
    .hicc-root.hicc-banner.hicc-banner--bottom-right,
    .hicc-root.hicc-banner.hicc-banner--bottom-right.is-visible {
        transform: none;
    }

    @media (max-width: 767px) {
        .hicc-root.hicc-banner,
        .hicc-root.hicc-banner.is-visible,
        .hicc-root.hicc-banner.hicc-banner--bottom-left,
        .hicc-root.hicc-banner.hicc-banner--bottom-right {
            transform: translate3d(-50%, 0, 0);
        }
    }
}
