.tc-consent-banner,
.tc-privacy-settings {
    color: #152019;
    font: inherit;
    z-index: 10000;
}

.tc-consent-banner {
    position: fixed;
    inset-inline: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
    width: auto;
    max-width: 44rem;
    margin-inline: auto;
    padding: 1rem 1.125rem;
    border: 1px solid #c8d4cb;
    border-radius: 0.875rem;
    background: #fff;
    box-shadow: 0 0.75rem 2.5rem rgb(0 0 0 / 22%);
}

.tc-consent-banner[hidden],
.tc-privacy-settings[hidden] {
    display: none !important;
}

.tc-consent-banner h2 {
    margin: 0 0 0.375rem;
    color: #183d2b;
    font-size: 1.125rem;
}

.tc-consent-banner p {
    margin: 0;
    line-height: 1.5;
}

.tc-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 0.875rem;
}

.tc-consent-actions button,
.tc-privacy-settings {
    min-height: 2.75rem;
    padding: 0.625rem 0.9rem;
    border: 2px solid #1c5138;
    border-radius: 0.5rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.tc-consent-allow,
.tc-privacy-settings {
    color: #fff;
    background: #1c5138;
}

.tc-consent-reject {
    color: #183d2b;
    background: #fff;
}

.tc-privacy-settings {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    box-shadow: 0 0.25rem 1rem rgb(0 0 0 / 18%);
}

.tc-consent-actions button:focus-visible,
.tc-privacy-settings:focus-visible {
    outline: 3px solid #d39318;
    outline-offset: 3px;
}

@media (max-width: 36rem) {
    .tc-consent-banner {
        inset-inline: 0.625rem;
        bottom: max(0.625rem, env(safe-area-inset-bottom));
        width: auto;
        padding: 0.875rem;
    }

    .tc-consent-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tc-consent-actions button {
        width: 100%;
    }
}
