.at-cookie-banner[hidden],
.at-cookie-modal[hidden] {
    display: none !important;
}

.at-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 99998;
    background: #1a1a1a;
    color: #f0f0f0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
    padding: 16px 24px;
}

.at-cookie-banner--bottom { bottom: 0; }
.at-cookie-banner--top    { top: 0; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); }
.at-cookie-banner--modal  {
    bottom: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.at-cookie-banner__inner {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.at-cookie-banner__text {
    flex: 1 1 360px;
}

.at-cookie-banner__title {
    margin: 0 0 6px;
    font-size: 1.1em;
    color: #fff;
}

.at-cookie-banner__message {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.4;
}

.at-cookie-banner__link {
    margin: 6px 0 0;
    font-size: 0.85em;
}

.at-cookie-banner__link a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.at-cookie-banner__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.at-cookie-btn {
    padding: 9px 16px;
    border-radius: 0;
    cursor: pointer;
    font-size: 0.9em;
    font-family: inherit;
    line-height: 1;
    transition: background-color 120ms ease, color 120ms ease;
}

/* Primary : black ghost — white border, black bg, inverts on hover. Matches
 * the .at-btn--ghost pattern used across at-theme cart / checkout. */
.at-cookie-btn--primary {
    background: #000;
    color: #fff;
    border: 2px solid #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.at-cookie-btn--primary:hover {
    background: #fff;
    color: #000;
}

.at-cookie-btn--secondary {
    background: transparent;
    color: #f0f0f0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.at-cookie-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}

.at-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.at-cookie-modal__inner {
    background: #1a1a1a;
    color: #f0f0f0;
    padding: 24px;
    border-radius: 8px;
    max-width: 560px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.at-cookie-modal__title {
    margin: 0 0 16px;
    color: #fff;
    font-size: 1.2em;
}

.at-cookie-cat {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 10px;
}

.at-cookie-cat__head {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.at-cookie-cat__head input[type="checkbox"] {
    margin: 0;
}

.at-cookie-cat__req {
    margin-left: auto;
    font-size: 0.75em;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.at-cookie-cat__desc {
    margin: 8px 0 0 24px;
    font-size: 0.85em;
    color: #bbb;
    line-height: 1.4;
}

.at-cookie-modal__actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 20px;
}
