.tmopt-gate-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.tmopt-gate-overlay.tmopt-gate-open { display: flex; }

.tmopt-gate-box {
    background: #fff;
    border-radius: 14px;
    max-width: 400px;
    width: 100%;
    padding: 30px 26px 26px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,.3);
    text-align: center;
    font-family: inherit;
    box-sizing: border-box;
}

.tmopt-gate-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff8dc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 14px;
}

.tmopt-gate-box h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.3;
    color: #1a1a1a;
    padding: 0 14px;
}
.tmopt-gate-box p {
    margin: 0 0 22px;
    font-size: 13.5px;
    color: #666;
    line-height: 1.55;
}

.tmopt-gate-field { margin-bottom: 14px; text-align: left; }
.tmopt-gate-field:last-of-type { margin-bottom: 0; }
.tmopt-gate-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #888;
    margin-bottom: 6px;
}

.tmopt-gate-field input {
    width: 100%;
    height: 46px;
    padding: 0 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
}
.tmopt-gate-field input:focus {
    outline: none;
    border-color: #fdce0c;
    box-shadow: 0 0 0 3px rgba(253,206,12,.25);
}

/* Dropdown de país customizado (ícones de bandeira reais, funcionam em
   qualquer sistema — emoji de bandeira não renderiza direito no Windows) */
.tmopt-gate-country-select {
    position: relative;
}
.tmopt-gate-country-btn {
    width: 100%;
    height: 46px;
    padding: 0 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #222;
    box-sizing: border-box;
    text-align: left;
}
.tmopt-gate-country-select.tmopt-gate-country-open .tmopt-gate-country-btn {
    border-color: #fdce0c;
    box-shadow: 0 0 0 3px rgba(253,206,12,.25);
}
.tmopt-gate-country-btn .fi { border-radius: 3px; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
#tmopt-gate-country-label { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmopt-gate-country-code { color: #888; font-weight: 600; flex: 0 0 auto; }
.tmopt-gate-caret { color: #999; font-size: 11px; flex: 0 0 auto; transition: transform .15s ease; }
.tmopt-gate-country-select.tmopt-gate-country-open .tmopt-gate-caret { transform: rotate(180deg); }

.tmopt-gate-country-list {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0,0,0,.15);
    z-index: 10;
    margin: 0;
    padding: 6px 0;
    list-style: none;
}
.tmopt-gate-country-select.tmopt-gate-country-open .tmopt-gate-country-list { display: block; }
.tmopt-gate-country-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    font-size: 13.5px;
    cursor: pointer;
    text-align: left;
}
.tmopt-gate-country-item:hover { background: #fffbea; }
.tmopt-gate-country-item .fi { border-radius: 3px; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.tmopt-gate-country-item-name { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #333; }
.tmopt-gate-country-item-code { color: #999; flex: 0 0 auto; }

.tmopt-gate-error {
    color: #c0392b;
    background: #fdecea;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12.5px;
    margin: -4px 0 14px;
    text-align: left;
}

/* Botão na cor da marca (amarelo #fdce0c, extraído direto do site, com
   texto preto — mesma combinação usada no cabeçalho do site) */
.tmopt-gate-submit {
    width: 100%;
    background: #fdce0c;
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease;
    letter-spacing: .01em;
    margin-top: 6px;
}
.tmopt-gate-submit:hover { background: #e0b70a; }
.tmopt-gate-submit:active { transform: scale(.98); }
.tmopt-gate-submit:disabled { opacity: .6; cursor: default; transform: none; }

.tmopt-gate-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f2f2f2;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: #777;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease;
}
.tmopt-gate-close:hover { background: #e6e6e6; color: #333; }

@media (max-width: 420px) {
    .tmopt-gate-box { padding: 26px 20px 22px; }
}
