html.osf-contact-open,
html.osf-contact-open body {
    overflow: hidden;
}

.osf-contact[hidden] { display: none !important; }
.osf-contact {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 18px;
    color: #161616;
}

.osf-contact__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 8, .68);
    backdrop-filter: blur(3px);
}

.osf-contact__dialog {
    position: relative;
    width: min(100%, 520px);
    max-height: calc(100dvh - 36px);
    overflow: auto;
    padding: 28px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
}

.osf-contact__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f2f2f2;
    color: #1a1a1a;
    font: 700 28px/36px Arial, sans-serif;
    cursor: pointer;
}

.osf-contact__eyebrow {
    margin: 0 46px 6px 0;
    color: #737373;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.osf-contact h2 {
    margin: 0;
    color: #111;
    font-size: clamp(24px, 5vw, 34px);
    line-height: 1.08;
}

.osf-contact__product {
    margin: 12px 0 0;
    color: #292929;
    font-weight: 750;
}

.osf-contact__help {
    margin: 8px 0 20px;
    color: #5f5f5f;
    font-size: 14px;
    line-height: 1.45;
}

.osf-contact__channels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.osf-channel {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    width: 100%;
    padding: 13px;
    border: 1px solid #e1e1e1;
    border-radius: 15px;
    background: #fff !important;
    color: #171717 !important;
    text-align: left;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.osf-channel:hover,
.osf-channel:focus-visible {
    transform: translateY(-1px);
    border-color: #111;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    outline: 0;
    background: #fff !important;
    color: #171717 !important;
}

.osf-channel__icon {
    display: grid;
    flex: 0 0 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: #171717;
    color: #fff;
}
.osf-channel__icon svg { width: 25px; height: 25px; fill: currentColor; }
.osf-channel--instagram .osf-channel__icon svg { stroke: currentColor; stroke-width: 1.8; }
.osf-channel--instagram .osf-channel__icon .osf-icon-fill { fill: currentColor; stroke: none; }

.osf-channel--whatsapp .osf-channel__icon { background: #128c7e; }
.osf-channel--messenger .osf-channel__icon { background: #087fea; }
.osf-channel--instagram .osf-channel__icon { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.osf-channel--tiktok .osf-channel__icon { background: #050505; text-shadow: 1px 1px #fe2c55, -1px -1px #25f4ee; }

.osf-channel strong,
.osf-channel small { display: block; }
.osf-channel strong { font-size: 15px; line-height: 1.25; }
.osf-channel small { margin-top: 3px; color: #666; font-size: 11px; line-height: 1.25; }

.osf-contact__status {
    min-height: 20px;
    margin-top: 12px;
    color: #167045;
    font-size: 13px;
    font-weight: 700;
}

.osf-contact__fallback {
    display: block;
    margin-top: 14px;
    color: #333;
    font-size: 12px;
    font-weight: 700;
}
.osf-contact__fallback[hidden] { display: none; }
.osf-contact__fallback textarea {
    display: block;
    width: 100%;
    min-height: 92px;
    margin-top: 6px;
    padding: 10px;
    border: 1px solid #c8c8c8;
    border-radius: 10px;
    background: #fafafa;
    color: #222;
    font: 13px/1.4 Arial, sans-serif;
    resize: vertical;
}

@media (max-width: 560px) {
    .osf-contact { align-items: end; padding: 0; }
    .osf-contact__dialog {
        width: 100%;
        max-height: min(88dvh, 720px);
        padding: 24px 18px calc(18px + env(safe-area-inset-bottom));
        border-radius: 22px 22px 0 0;
    }
    .osf-contact__channels { grid-template-columns: 1fr; }
    .osf-channel { min-height: 66px; }
}

@media (prefers-reduced-motion: reduce) {
    .osf-channel { transition: none; }
}
