.lacosta-cookies {
    color: #111;
    font-size: 1rem;
    line-height: 1.45;
}

.lacosta-cookies [hidden],
.lacosta-cookies dialog:not([open]) {
    display: none !important;
}

.lacosta-cookies__banner,
.lacosta-cookies dialog {
    box-sizing: border-box;
    background: #fff;
    color: #111;
}
.lacosta-cookies__banner {
    position: fixed;
    inset: auto 0 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    max-height: 70vh;
    overflow: auto;
    padding: 16px clamp(16px, 4vw, 64px) max(16px, env(safe-area-inset-bottom));
    border-top: 1px solid #111;
}

.lacosta-cookies__banner p {
    flex: 1 1 25rem;
    margin: 0;
}

.lacosta-cookies a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.lacosta-cookies__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lacosta-cookies button {
    width: auto;
    min-height: 44px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #111;
    border-radius: 0;
    background: #fff;
    color: #111;
    font: inherit;
    text-align: center;
    cursor: pointer;
}

.lacosta-cookies button:hover {
    background: #eee;
}

.lacosta-cookies :focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.legal [data-cookie-settings] {
    appearance: none;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    background: none;
    text-align: start;
    cursor: pointer;
}

.lacosta-cookies dialog {
    width: min(34rem, calc(100% - 32px));
    max-height: calc(100% - 32px);
    padding: 24px;
    border: 1px solid #111;
    margin: auto;
}

.lacosta-cookies dialog::backdrop {
    background: rgb(0 0 0 / 55%);
}

.lacosta-cookies h2 {
    margin: 0 0 16px;
    font: inherit;
    font-size: 1.25rem;
    font-weight: 700;
}

.lacosta-cookies label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.lacosta-cookies input[type="checkbox"] {
    appearance: auto;
    position: static;
    inline-size: 1.15rem;
    block-size: 1.15rem;
    margin: 0;
    opacity: 1;
    accent-color: #111;
}

.lacosta-cookies dialog p {
    margin: 0 0 16px;
}

.lacosta-cookies__names {
    display: block;
    margin-top: 4px;
    overflow-wrap: anywhere;
    font-family: monospace;
}
