.ak-cookie-settings-link {
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 0.35rem 0;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.ak-site-footer-bottom .ak-cookie-settings-link {
    margin-top: 0.5rem;
}

.ak-cookie-settings-standalone {
    text-align: center;
}

.ak-cookie-settings-standalone .ak-cookie-settings-link {
    margin: 0.75rem;
}

.ak-cookie-bar,
.ak-cookie-dialog {
    background: var(--ak-panel);
    border: 1px solid var(--ak-border);
    border-radius: 1rem;
    box-shadow: var(--ak-shadow);
    color: var(--ak-text);
    overflow: auto;
    padding: clamp(0.85rem, 3vw, 1.5rem);
}

.ak-cookie-bar {
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    inset-inline: 0.75rem;
    margin-inline: auto;
    max-height: calc(100dvh - 2rem);
    max-width: 64rem;
    position: fixed;
    z-index: 1100;
}

.ak-cookie-bar:not([hidden]) {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    justify-content: space-between;
}

.ak-cookie-bar > div:first-child {
    flex: 1 1 20rem;
}

.ak-cookie-bar h2,
.ak-cookie-dialog h2 {
    font-size: 1.2rem;
    margin: 0;
}

.ak-cookie-bar p,
.ak-cookie-dialog p {
    color: var(--ak-muted);
    font-size: 0.95rem;
    line-height: 1.45;
    margin: 0.3rem 0 0;
}

.ak-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ak-cookie-actions .ak-button {
    cursor: pointer;
    font-family: inherit;
}

.ak-cookie-dialog {
    max-height: calc(100dvh - 2rem);
    max-width: 34rem;
    width: calc(100% - 1.5rem);
}

.ak-cookie-dialog::backdrop {
    background: rgba(36, 25, 20, 0.55);
}

.ak-cookie-form {
    display: grid;
    gap: 0.9rem;
}

.ak-cookie-dialog-heading {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.ak-cookie-category {
    border: 1px solid var(--ak-border);
    border-radius: 0.65rem;
    padding: 0.7rem 0.9rem;
}

.ak-cookie-category label {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-weight: 700;
    gap: 0.55rem;
    min-height: 1.5rem;
}

.ak-cookie-category input {
    accent-color: var(--ak-accent-dark);
    height: 1.15rem;
    margin: 0;
    width: 1.15rem;
}

@media (max-width: 29rem) {
    .ak-cookie-bar .ak-cookie-actions,
    .ak-cookie-dialog .ak-cookie-actions {
        width: 100%;
    }

    .ak-cookie-actions .ak-button {
        flex: 1 0 100%;
        min-height: 2.65rem;
    }
}
