.cookie-main {
    max-width: 1080px;
    margin: 42px auto 0;
}

.cookie-intro {
    margin-bottom: 26px;
}

.cookie-intro h1 {
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 46px;
}

.cookie-intro p {
    margin: 0;
    color: var(--copy);
    font-size: 18px;
}

.cookie-groups {
    display: grid;
    gap: 18px;
}

.cookie-home-button {
    margin-top: 26px;
}

/* Cookie group */

.cookie-group {
        margin: 0;
    padding: 1.5rem;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 10px;
        box-shadow: var(--shadow);
}


/* =========================================
   Title + Accept / Decline
   ========================================= */

.cookie-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-group-title h3 {
    margin: 0;
    color: var(--ink);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4;
}


/* =========================================
   Accept / Decline container
   ========================================= */

.cookie-group-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 0.5rem;

    flex-shrink: 0;
}


/* Each form stays inline */
.cookie-group-form form {
    display: block;
    margin: 0;
    padding: 0;
}


/* =========================================
   Buttons
   ========================================= */

.cookie-group-form input[type="submit"] {
    appearance: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 90px;
    min-height: 40px;
    padding: 8px 16px;

    border: 1px solid var(--teal);
    border-radius: 6px;

    background: var(--teal);
    color: #fff;

    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;

    cursor: pointer;
    white-space: nowrap;

    transition:
        filter 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.cookie-group-form input[type="submit"]:hover {
    filter: brightness(0.92);

    box-shadow:
        0 4px 12px color-mix(
            in srgb,
            var(--button) 25%,
            transparent
        );
}

.cookie-group-form input[type="submit"]:active {
    transform: translateY(1px);
}


/* =========================================
   Accepted / Declined status
   ========================================= */

.cookie-consent-accepted,
.cookie-consent-declined {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 90px;
    padding: 0.55rem 1.1rem;

    border-radius: 6px;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.cookie-consent-accepted {
    background: color-mix(
        in srgb,
        white
    );

    color: var(--teal);
}

.cookie-consent-declined {
    background: #fff;
    color: #777;
}


/* =========================================
   Description
   ========================================= */

.cookie-group > p {
    margin: 1rem 0 1.25rem;

    color: var(--copy);
    font-size: 15px;
    line-height: 1.6;
}


/* =========================================
   Cookie table
   ========================================= */

.cookie-group table,
.cookie-group th,
.cookie-group td {
    display: none;
}


/* =========================================
   Mobile
   ========================================= */

@media (max-width: 600px) {

    .cookie-main {
        margin-top: 28px;
    }

    .cookie-intro h1 {
        font-size: 34px;
    }

    .cookie-intro p {
        font-size: 16px;
    }

    .cookie-group {
        padding: 1.1rem;
        border-radius: 15px;
    }

    .cookie-group-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    .cookie-group-form {
        width: 100%;
        justify-content: flex-start;
    }

    .cookie-group-form form {
        flex: 1;
    }

    .cookie-group-form input[type="submit"],
    .cookie-consent-accepted,
    .cookie-consent-declined {
        width: 100%;
        min-width: 0;
    }
}