.fm-consent-panel {
    box-sizing: border-box;
    width: min(44rem, calc(100% - 2rem));
    max-height: min(88vh, 44rem);
    max-height: min(88dvh, 44rem);
    overflow: auto;
    padding: clamp(1rem, 3vw, 1.65rem);
    border: 1px solid #ddd8cf;
    border-radius: 1rem;
    color: #242420;
    background: #fffdf8;
    box-shadow: 0 1rem 3rem #24242029;
    font: 400 .94rem/1.5 system-ui, sans-serif;
}

#fm-cookie-banner {
    position: fixed;
    z-index: 1100;
    inset: auto auto max(1rem, env(safe-area-inset-bottom)) 50%;
    transform: translateX(-50%);
}

.fm-consent-panel[hidden],
.fm-consent-panel [hidden] {
    display: none !important;
}

.fm-consent-dialog {
    margin: auto;
}

.fm-consent-dialog::backdrop {
    background: #24242080;
}

.fm-consent-panel h2 {
    margin: 0 0 .5rem;
    font-size: clamp(1.2rem, 3vw, 1.65rem);
    line-height: 1.2;
    color: inherit;
}

.fm-consent-panel p {
    margin: 0 0 .7rem;
}

.fm-consent-kicker {
    color: #9c4129;
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .08em;
}

.fm-consent-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
    margin: .85rem 0 .6rem;
}

.fm-consent-actions button,
.fm-consent-placeholder button {
    min-height: 44px;
    padding: .55rem .7rem;
    border: 1px solid #79736b;
    border-radius: .65rem;
    color: #242420;
    background: #fff;
    font: 650 .875rem/1.25 system-ui, sans-serif;
    cursor: pointer;
}

.fm-consent-actions button:hover,
.fm-consent-placeholder button:hover {
    background: #f5eee3;
}

.fm-consent-panel :focus-visible,
.fm-consent-placeholder :focus-visible,
.fm-consent-footer :focus-visible {
    outline: 2px solid #aa472e;
    outline-offset: 3px;
}

.fm-consent-panel a {
    color: #8e3a27;
    font-size: .85rem;
    text-decoration: underline;
}

.fm-consent-options {
    border-top: 1px solid #ddd8cf;
}

.fm-consent-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    margin: 0;
    padding: .6rem 0;
    border-bottom: 1px solid #ddd8cf;
    font-weight: 400;
}

.fm-consent-option strong,
.fm-consent-option span span,
.fm-consent-option div span {
    display: block;
}

.fm-consent-option span span,
.fm-consent-option div span {
    font-size: .85rem;
}

.fm-consent-option input {
    flex: 0 0 auto;
    width: 1.35rem;
    height: 1.35rem;
    margin: 0 .35rem;
    accent-color: #aa472e;
    cursor: pointer;
}

.fm-consent-essential {
    flex: 0 0 auto;
    font-size: .75rem;
    color: #4b5342;
}

.fm-consent-footer button {
    padding: .35rem 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.fm-consent-placeholder {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin: .8rem 0;
    padding: .8rem 1rem;
    border: 1px solid #ddd8cf;
    border-radius: .75rem;
    color: #242420;
    background: #f8f5ef;
}

.fm-consent-message {
    color: #8e3a27;
}

@media (max-width: 480px) {
    .fm-consent-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fm-consent-actions button:last-child {
        grid-column: 1 / -1;
    }
}
