.fc-consent[hidden],
.fc-consent-modal[hidden] {
    display: none !important;
}

.fc-consent,
.fc-consent-modal {
    color: #1d3557;
    font-family: "Quicksand", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fc-consent {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    padding: 1.25rem max(1.25rem, env(safe-area-inset-right)) calc(1.25rem + env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -8px 36px rgba(29, 53, 87, 0.16);
}

.fc-consent__inner {
    width: min(78rem, 100%);
    margin: 0 auto;
    display: grid;
    gap: 1.25rem;
    align-items: center;
}

.fc-consent__title,
.fc-consent-modal__title {
    margin: 0 0 0.5rem;
    color: #1d3557;
    font-family: "Nunito", system-ui, sans-serif;
    font-weight: 900;
    line-height: 1.2;
}

.fc-consent__title {
    font-size: 1.2rem;
}

.fc-consent__description,
.fc-consent-modal__description,
.fc-consent-option__description {
    margin: 0;
    color: #457b9d;
    line-height: 1.55;
}

.fc-consent__description {
    font-size: 0.93rem;
}

.fc-consent a,
.fc-consent-modal a {
    color: #e9537b;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.fc-consent__actions,
.fc-consent-modal__actions {
    display: grid;
    gap: 0.65rem;
}

.fc-consent__button {
    min-height: 2.9rem;
    padding: 0.7rem 1.15rem;
    border: 2px solid #1d3557;
    border-radius: 999px;
    background: #ffffff;
    color: #1d3557;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.fc-consent__button:hover {
    background: #f3f6fa;
    transform: translateY(-1px);
}

.fc-consent__button--primary {
    border-color: #fb6f92;
    background: #fb6f92;
    color: #ffffff;
}

.fc-consent__button--primary:hover {
    border-color: #e9537b;
    background: #e9537b;
}

.fc-consent__button--dark {
    border-color: #1d3557;
    background: #1d3557;
    color: #ffffff;
}

.fc-consent__button--dark:hover {
    border-color: #142642;
    background: #142642;
}

.fc-consent__button:focus-visible,
.fc-consent-modal__close:focus-visible,
.fc-cookie-settings-link:focus-visible,
.fc-map-placeholder button:focus-visible,
.fc-map-placeholder a:focus-visible,
.fc-consent-option input:focus-visible + .fc-consent-option__switch {
    outline: 3px solid #a0c4ff;
    outline-offset: 3px;
}

.fc-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 10010;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(20, 38, 66, 0.58);
}

.fc-consent-modal__panel {
    position: relative;
    width: min(42rem, 100%);
    max-height: min(90vh, 52rem);
    overflow-y: auto;
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(20, 38, 66, 0.3);
    padding: 1.5rem;
}

.fc-consent-modal__title {
    padding-right: 2.5rem;
    font-size: 1.55rem;
}

.fc-consent-modal__description {
    font-size: 0.9rem;
}

.fc-consent-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: #f3f6fa;
    color: #1d3557;
    cursor: pointer;
    font-size: 1.45rem;
    line-height: 1;
}

.fc-consent-options {
    display: grid;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.fc-consent-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid #dce5ef;
    border-radius: 1rem;
    background: #fbfdff;
}

.fc-consent-option__name {
    display: block;
    margin-bottom: 0.2rem;
    color: #1d3557;
    font-weight: 900;
}

.fc-consent-option__description {
    display: block;
    font-size: 0.82rem;
}

.fc-consent-option__control {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.fc-consent-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.fc-consent-option__switch {
    position: relative;
    display: inline-block;
    width: 3rem;
    height: 1.7rem;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
    transition: background-color 160ms ease;
}

.fc-consent-option__switch::after {
    position: absolute;
    top: 0.2rem;
    left: 0.2rem;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(20, 38, 66, 0.25);
    content: "";
    transition: transform 160ms ease;
}

.fc-consent-option input:checked + .fc-consent-option__switch {
    background: #fb6f92;
}

.fc-consent-option input:checked + .fc-consent-option__switch::after {
    transform: translateX(1.3rem);
}

.fc-consent-option input:disabled + .fc-consent-option__switch {
    background: #1d3557;
    cursor: not-allowed;
    opacity: 0.72;
}

.fc-consent-modal__note {
    margin: 0 0 1.25rem;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.5;
}

.fc-cookie-settings-link {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    transition: color 160ms ease;
}

.fc-cookie-settings-link:hover {
    color: #ff8fab;
}

.fc-map-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 20rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fbff, #fff5f8);
    color: #1d3557;
    text-align: center;
}

.fc-map-placeholder__icon {
    font-size: 2.25rem;
}

.fc-map-placeholder__title {
    margin: 0;
    font-family: "Nunito", system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
}

.fc-map-placeholder__description {
    max-width: 32rem;
    margin: 0;
    color: #457b9d;
    font-size: 0.9rem;
    line-height: 1.5;
}

.fc-map-placeholder__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.35rem;
}

.fc-map-placeholder button,
.fc-map-placeholder a {
    display: inline-flex;
    min-height: 2.7rem;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    border: 2px solid #fb6f92;
    border-radius: 999px;
    background: #fb6f92;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
}

.fc-map-placeholder a {
    border-color: #1d3557;
    background: #ffffff;
    color: #1d3557;
}

.fc-cookie-modal-open {
    overflow: hidden;
}

@media (min-width: 52rem) {
    .fc-consent__inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .fc-consent__actions {
        grid-template-columns: repeat(3, minmax(9.5rem, 1fr));
    }

    .fc-consent-modal__actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 51.99rem) {
    .fc-consent__actions {
        grid-template-columns: 1fr;
    }

    .fc-consent-modal__actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fc-consent__button,
    .fc-consent-option__switch,
    .fc-consent-option__switch::after {
        transition: none;
    }
}
