html.efs-locked,
html.efs-locked body {
    overflow: hidden;
}

.efs-gate {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
    background: rgba(12, 8, 12, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow-y: auto;
}

.efs-gate__box {
    width: 100%;
    max-width: 30rem;
    margin: auto;
    padding: 2rem 1.75rem;
    border-radius: 14px;
    background: #fbf8f5;
    color: #1d1a1c;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    font-family: inherit;
}

.efs-gate__badge {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.35rem 0.8rem;
    border: 2px solid #8c1c3a;
    border-radius: 999px;
    color: #8c1c3a;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.efs-gate__title {
    margin: 0 0 0.75rem;
    font-size: 1.4rem;
    line-height: 1.3;
}

.efs-gate__text {
    margin: 0 0 1.25rem;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #4a4447;
}

.efs-gate__check {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin: 0 0 1.5rem;
    text-align: left;
    font-size: 0.98rem;
    line-height: 1.45;
    cursor: pointer;
}

.efs-gate__check input {
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.1rem;
    accent-color: #8c1c3a;
}

.efs-gate__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.efs-gate__enter,
.efs-gate__leave {
    flex: 1 1 9rem;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.efs-gate__enter {
    border: 0;
    background: #8c1c3a;
    color: #fff;
}

.efs-gate__enter:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.efs-gate__leave {
    border: 1px solid #c9bfc4;
    background: transparent;
    color: #1d1a1c;
}

.efs-gate__enter:focus-visible,
.efs-gate__leave:focus-visible,
.efs-gate__check input:focus-visible {
    outline: 2px solid #e0a3b4;
    outline-offset: 2px;
}

.efs-gate__box:focus {
    outline: none;
}
