.petbnb-consent-section {
    margin-top: 0.85rem;
}

.petbnb-consent-section .petbnb-field {
    margin-bottom: 0.4rem;
}

.petbnb-consent-section .petbnb-consent-option {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    width: 100%;
    padding: 0.45rem 0.15rem;
    border: 0;
    border-radius: 6px;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.petbnb-consent-section .petbnb-consent-option:hover {
    background-color: rgba(15, 118, 110, 0.04);
}

.petbnb-consent-section .petbnb-consent-option.is-invalid {
    background-color: rgba(220, 38, 38, 0.06);
}

.petbnb-consent-section .petbnb-consent-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.petbnb-consent-section .petbnb-consent-option__control {
    width: 1.05rem;
    height: 1.05rem;
    min-width: 1.05rem;
    margin-top: 0.12rem;
    border: 1.5px solid #9ca3af;
    border-radius: 0.25rem;
    background-color: #ffffff;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.petbnb-consent-section .petbnb-consent-option__text {
    display: block;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.4;
    color: #1f2937;
}

.petbnb-consent-section .petbnb-consent-option__text a {
    color: #0f766e;
    text-decoration: underline;
    text-underline-offset: 0.1em;
}

.petbnb-consent-section .petbnb-consent-option__text a.petbnb-consent-link {
    font-weight: 700;
}

.petbnb-consent-section .petbnb-consent-option input:focus-visible + .petbnb-consent-option__control {
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.22);
    border-color: #0f766e;
}

.petbnb-consent-section .petbnb-consent-option.is-invalid input + .petbnb-consent-option__control {
    border-color: #dc2626;
}

.petbnb-consent-section .petbnb-consent-option input:checked + .petbnb-consent-option__control {
    border-color: #0f766e;
    background-color: #0f766e;
}

.petbnb-consent-section .petbnb-consent-option input:checked + .petbnb-consent-option__control::after {
    content: "";
    position: absolute;
    left: 0.28rem;
    top: 0.04rem;
    width: 0.28rem;
    height: 0.58rem;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.petbnb-consent-section .petbnb-consent-option input:checked + .petbnb-consent-option__control + .petbnb-consent-option__text {
    color: #0f172a;
}

.petbnb-consent-section .petbnb-consent-option__error {
    margin: 0.2rem 0 0.4rem 1.75rem;
    font-size: 0.82rem;
    line-height: 1.3;
    color: #b91c1c;
}

.petbnb-consent-section .petbnb-consent-option__error[hidden] {
    display: none;
}

@media (max-width: 640px) {
    .petbnb-consent-section .petbnb-consent-option {
        padding: 0.42rem 0.08rem;
    }

    .petbnb-consent-section .petbnb-consent-option__error {
        margin-left: 1.62rem;
    }
}

.petbnb-legal-modal[hidden] {
    display: none;
}

.petbnb-legal-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.petbnb-legal-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
}

.petbnb-legal-modal__dialog {
    position: relative;
    z-index: 1;
    width: calc(100% - 32px);
    max-width: 900px;
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.24);
    overflow: hidden;
    outline: none;
}

.petbnb-legal-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    color: #334155;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.petbnb-legal-modal__title {
    margin: 0;
    padding: 18px 56px 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 1.2rem;
}

.petbnb-legal-modal__body {
    max-height: calc(100vh - 140px);
    padding: 18px 20px 20px;
    overflow-y: auto;
    color: #334155;
    line-height: 1.6;
}

.petbnb-legal-modal__document[hidden] {
    display: none;
}

.petbnb-legal-modal__document :first-child {
    margin-top: 0;
}

@media (max-width: 640px) {
    .petbnb-legal-modal__dialog {
        width: calc(100% - 18px);
        margin: 9px auto;
        max-height: calc(100vh - 18px);
        border-radius: 10px;
    }

    .petbnb-legal-modal__title {
        padding: 14px 48px 12px 14px;
        font-size: 1.05rem;
    }

    .petbnb-legal-modal__body {
        max-height: calc(100vh - 92px);
        padding: 14px;
    }
}
