/*
 * Cookie consent banner.
 *
 * Reject and Accept are the same size, weight and colour: under GDPR refusing
 * has to be as easy as agreeing, and a grey "reject" beside a bright "accept"
 * is the usual way that rule is broken.
 */

.aton-cc {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 100000;
    max-width: 62rem;
    margin: 0 auto;
    padding: 1.4rem 1.5rem;
    border: 1px solid rgba(191, 233, 236, 0.16);
    border-radius: 18px;
    background: #072a3a;
    color: #dbeff2;
    box-shadow: 0 24px 60px rgba(2, 12, 18, 0.55);
    font-size: 0.92rem;
    line-height: 1.65;
    animation: aton-cc-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes aton-cc-in {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .aton-cc { animation: none; }
}

.aton-cc__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: flex-start;
}

.aton-cc__body { flex: 1 1 26rem; min-width: 0; }

.aton-cc__title {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
}

.aton-cc__intro { margin: 0; color: rgba(219, 239, 242, 0.82); }

.aton-cc__intro a { color: #f2a007; text-decoration: underline; }

.aton-cc__rows {
    margin-top: 1.1rem;
    display: grid;
    gap: 0.6rem;
}

/* `display: grid` above would otherwise beat the browser's own rule for
   [hidden], leaving the settings panel open before it is asked for. */
.aton-cc__rows[hidden] { display: none; }

.aton-cc__row {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(191, 233, 236, 0.14);
    border-radius: 12px;
    background: rgba(4, 22, 31, 0.35);
    cursor: pointer;
}

.aton-cc__row.is-locked { cursor: default; opacity: 0.75; }

.aton-cc__row input {
    margin-top: 0.25rem;
    width: 1.05rem;
    height: 1.05rem;
    accent-color: #f2a007;
    flex: 0 0 auto;
}

.aton-cc__rowtext { display: block; min-width: 0; }

.aton-cc__rowtitle {
    display: block;
    font-weight: 700;
    color: #fff;
}

.aton-cc__rowtitle em {
    font-style: normal;
    font-weight: 600;
    font-size: 0.78rem;
    color: rgba(219, 239, 242, 0.6);
}

.aton-cc__rowdesc {
    display: block;
    font-size: 0.84rem;
    color: rgba(219, 239, 242, 0.7);
}

.aton-cc__actions {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.aton-cc__btn {
    padding: 0.72rem 1.4rem;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.aton-cc__btn:hover { transform: translateY(-1px); }

/* Accept and reject are deliberately identical. */
.aton-cc__btn--plain {
    color: #17202a;
    background: #f2a007;
}

.aton-cc__btn--plain:hover { background: #ffc44d; }

.aton-cc__btn--ghost {
    color: #dbeff2;
    background: transparent;
    border: 1px solid rgba(191, 233, 236, 0.3);
}

.aton-cc__btn--ghost:hover {
    color: #fff;
    border-color: rgba(242, 160, 7, 0.55);
}

/* Placeholder shown in place of a third-party embed. */
.aton-cc-embed {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    min-height: 260px;
    padding: 1.8rem 1.4rem;
    text-align: center;
    border: 1px dashed rgba(191, 233, 236, 0.28);
    border-radius: 14px;
    background: rgba(7, 42, 58, 0.55);
    color: #dbeff2;
}

.aton-cc-embed__text {
    margin: 0;
    max-width: 34rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(219, 239, 242, 0.8);
}

.aton-cc-embed__btn {
    padding: 0.68rem 1.4rem;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    color: #17202a;
    background: #f2a007;
    cursor: pointer;
}

.aton-cc-embed__btn:hover { background: #ffc44d; }

@media (max-width: 47.99rem) {
    .aton-cc {
        left: 0.6rem;
        right: 0.6rem;
        bottom: 0.6rem;
        padding: 1.1rem 1.1rem 1.2rem;
        font-size: 0.86rem;
        max-height: 85vh;
        overflow-y: auto;
    }

    .aton-cc__actions { width: 100%; }

    .aton-cc__btn { flex: 1 1 100%; text-align: center; }
}

/* The site is dark; a light-scheme page gets a readable surface too. */
body.aton-light .aton-cc {
    background: #ffffff;
    color: #17303a;
    border-color: rgba(16, 34, 43, 0.14);
}

body.aton-light .aton-cc__title,
body.aton-light .aton-cc__rowtitle { color: #0a2330; }

body.aton-light .aton-cc__intro,
body.aton-light .aton-cc__rowdesc { color: rgba(23, 48, 58, 0.78); }

body.aton-light .aton-cc__row { background: rgba(16, 34, 43, 0.04); }

body.aton-light .aton-cc__btn--ghost {
    color: #17303a;
    border-color: rgba(16, 34, 43, 0.25);
}
