.consent-option,
form .consent-option {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    color: var(--black);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
}

.consent-option input[type="checkbox"] {
    appearance: auto;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    padding: 0;
    accent-color: var(--orange);
    cursor: pointer;
}

.consent-option input:disabled {
    cursor: not-allowed;
}

.consent-option input:focus-visible,
.cookie-consent button:focus-visible,
.cookie-settings-link:focus-visible,
.form-consent a:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 4px;
}

.form-consent__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 8px 0 0 32px;
    font-size: 1.4rem;
    line-height: 1.5;
}

.form-consent__links a,
.cookie-settings-link {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-settings-link {
    justify-self: start;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.cookie-consent {
    position: fixed;
    z-index: 10000;
    right: 24px;
    bottom: 24px;
    width: min(600px, calc(100% - 48px));
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    padding: 28px;
    border: 1px solid var(--light-border);
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 8px 48px rgb(0 0 0 / 16%);
    font-size: 1.6rem;
    line-height: 1.5;
}

.cookie-consent[hidden],
.cookie-consent [hidden] {
    display: none;
}

.cookie-consent__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.cookie-consent h2 {
    font-size: 2.4rem;
    line-height: 1.2;
}

.cookie-consent__close {
    flex: 0 0 44px;
    min-height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--black);
    font-size: 2.8rem;
    cursor: pointer;
}

.cookie-consent__options {
    display: grid;
    gap: 20px;
    margin: 24px 0;
}

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

.cookie-consent .consent-option span span {
    margin-top: 4px;
    color: var(--gray);
    font-size: 1.4rem;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cookie-consent__actions .button {
    flex: 1 1 220px;
    min-height: 48px;
    font-size: 1.6rem;
    line-height: 1.3;
}

.cookie-consent__button {
    background: var(--light-gray);
    color: var(--black);
}

.cookie-consent__error {
    margin-bottom: 16px;
    color: #a12000;
}

[data-contact-form] button:disabled {
    cursor: wait;
    opacity: 0.65;
}

@media (max-width: 479px) {
    .cookie-consent {
        right: 12px;
        bottom: 12px;
        width: calc(100% - 24px);
        max-height: calc(100dvh - 24px);
        padding: 20px;
    }
}
