.tako-cookie-ui {
    --tako-cookie-ink: #212529;
    --tako-cookie-blue: #063b7d;
    --tako-cookie-border: #dce4ef;
    --tako-cookie-surface: #f3f6fa;
    color: var(--tako-cookie-ink);
}

.tako-cookie-banner,
.tako-cookie-dialog {
    box-sizing: border-box;
    border: 1px solid var(--tako-cookie-border);
    border-radius: 16px;
    background: #fff;
    color: var(--tako-cookie-ink);
    box-shadow: 0 10px 40px rgba(20, 46, 78, .18);
}

.tako-cookie-banner {
    position: fixed;
    z-index: 10000;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    left: max(16px, env(safe-area-inset-left));
    display: flex;
    gap: 16px 24px;
    align-items: center;
    justify-content: space-between;
    max-width: 1120px;
    margin-inline: auto;
    padding: 20px 24px;
}

.tako-cookie-banner[hidden],
.tako-cookie-dialog:not([open]),
.tako-cookie-map [hidden] {
    display: none !important;
}

.tako-cookie-dialog {
    width: min(540px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    padding: 24px;
}

.tako-cookie-dialog::backdrop {
    background: rgba(15, 27, 43, .6);
}

.tako-cookie-ui h2 {
    margin: 0 0 6px;
    color: inherit;
    font-size: 20px;
    line-height: 1.25;
}

.tako-cookie-ui p {
    margin: 0;
    color: inherit;
    font-size: 14px;
    line-height: 1.5;
}

.tako-cookie-ui a,
.tako-cookie-footer {
    text-decoration: underline;
    text-underline-offset: .2em;
}

.tako-cookie-footer {
    display: inline-block;
    margin-top: 8px;
}

.tako-cookie-actions {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tako-cookie-actions button {
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid var(--tako-cookie-blue);
    border-radius: 6px;
    background: var(--tako-cookie-blue);
    color: #fff;
    font: inherit;
    font-size: 14px;
    line-height: 1.35;
    cursor: pointer;
}

.tako-cookie-actions button[data-tako-cookie-open],
.tako-cookie-actions button[data-tako-choice="close"] {
    background: #fff;
    color: var(--tako-cookie-blue);
}

.tako-cookie-actions button:hover {
    filter: brightness(.91);
}

.tako-cookie-ui :focus-visible {
    outline: 2px solid var(--tako-cookie-blue);
    outline-offset: 3px;
}

.tako-cookie-option {
    margin-block: 12px;
    padding: 14px;
    border-radius: 8px;
    background: var(--tako-cookie-surface);
}

.tako-cookie-option label {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
    color: inherit;
    font-weight: 700;
    cursor: pointer;
}

.tako-cookie-option input[type="checkbox"] {
    appearance: auto;
    position: static;
    width: 18px;
    height: 18px;
    margin: 0;
    opacity: 1;
    accent-color: var(--tako-cookie-blue);
}

.tako-cookie-option p {
    margin-top: 6px;
}

.tako-cookie-option span {
    padding-inline-start: 4px;
    color: #4b5869;
    font-size: 13px;
}

.tako-cookie-map {
    margin-bottom: 24px;
}

.tako-cookie-map [data-tako-no-map] {
    padding: 24px;
    border-radius: 8px;
    background: #f3f6fa;
}

.tako-cookie-map iframe {
    display: block;
    width: 100%;
    height: 500px;
    border: 0;
}

@media (max-width: 767px) {
    .tako-cookie-banner {
        align-items: stretch;
        flex-direction: column;
        max-height: calc(100vh - 32px);
        overflow: auto;
        padding: 14px;
    }

    .tako-cookie-banner .tako-cookie-actions button {
        flex: auto;
    }

    .tako-cookie-map iframe {
        height: 360px;
    }
}
