.hosting-consent[hidden] {
    display: none !important;
}

.hosting-consent {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.hosting-consent__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 23, 0.75);
    backdrop-filter: blur(6px);
}

.hosting-consent__dialog {
    position: relative;
    width: min(100%, 540px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 30px 28px 24px;
    border: 1px solid #dbe4ee;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(2, 8, 23, 0.35);
    color: #0f172a;
    text-align: center;
    outline: 0;
}

.hosting-consent__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.hosting-consent__close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.hosting-consent__icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    place-items: center;
    border-radius: 50%;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #059669;
    font-size: 22px;
    font-weight: 900;
}

.hosting-consent h2 {
    margin: 0 0 8px;
    font-size: clamp(1.25rem, 3.5vw, 1.55rem);
    font-weight: 800;
    color: #0f172a;
}

.hosting-consent p {
    margin: 0 auto 12px;
    max-width: 440px;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.55;
}

/* Checklist Inside Modal */
.hosting-consent__checklist {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 16px 0 18px;
    text-align: left;
}

.hc-check-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0f172a;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.hc-check-title svg {
    color: #059669;
    flex-shrink: 0;
}

.hc-check-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hc-check-items li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    line-height: 1.45;
    color: #334155;
}

.hc-check-items li svg {
    color: #059669;
    flex-shrink: 0;
    margin-top: 2px;
}

.hc-check-items li strong {
    color: #0f172a;
    font-weight: 700;
}

.hc-check-items li.hc-check-note {
    color: #64748b;
    font-size: 11px;
    border-top: 1px dashed #cbd5e1;
    padding-top: 8px;
    margin-top: 4px;
}

.hc-check-items li.hc-check-note svg {
    color: #94a3b8;
}

.hosting-consent__terms {
    display: inline-block;
    margin-bottom: 20px;
    color: #0066ff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.hosting-consent__terms:hover {
    text-decoration: underline;
}

.hosting-consent__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.hosting-consent__actions button {
    min-height: 44px;
    padding: 0 22px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.hosting-consent__agree {
    border: 1px solid #0066ff;
    background: #0066ff;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.25);
}

.hosting-consent__agree:hover {
    background: #0052cc;
    border-color: #0052cc;
}

.hosting-consent__cancel {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
}

.hosting-consent__cancel:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.has-hosting-consent {
    overflow: hidden;
}

@media (max-width: 520px) {
    .hosting-consent {
        padding: 12px;
    }
    .hosting-consent__dialog {
        padding: 24px 16px 18px;
        border-radius: 14px;
    }
    .hosting-consent__checklist {
        padding: 12px 10px;
        margin: 12px 0 14px;
    }
    .hc-check-items li {
        font-size: 11px;
        gap: 6px;
    }
    .hosting-consent__actions {
        flex-direction: column;
        gap: 8px;
    }
    .hosting-consent__actions button {
        width: 100%;
    }
}
