.register-container {
    position: relative;
}
.register-container .main-logo-site {
    margin: 0.5em auto;
}
.register-inner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    right: 0;
    transform: translate(-50%, -50%);
}
.select2-results__option {
    display: flex;
}
.select2-results__option .sel-img {
    object-fit: contain;
}
.select2-results__option .str {
    line-height: 1;
    font-weight: 200;
    display: flex;
    align-items: center;
}
@media only screen and (min-device-height: 481px) and (max-device-height: 650px) {
    .main-logo-site {
        display: none;
    }
}
.blackdrop-chrome {
    display: none;
    opacity: 0;
}
.blackdrop-chrome.active {
    opacity: 1;
    display: flex;
    position: fixed;
    z-index: 10000;
    width: 100vw;
    height: 100vh;
    max-width: 100%;
    background: #000000c2;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.popup-chrome {
    position: absolute;
    bottom: 1em;
    width: 95%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0.75em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #FFFFFF;
    padding: 1.5em;
}
.title-popup-chrome {
    color: #ABABAB;
    font-size: 1em;
    font-weight: 300;
}
.ic-chrome {
    object-fit: contain;
    display: flex;
    width: 76px;
    height: 76px;
    margin-top: 1.5em;
    margin-bottom: 4.5em;
}
.btn-click-to-chrome,
.btn-click-to-download-chrome {
    text-decoration: none;
    width: 90%;
    text-align: center;
    padding: 0.5em;
    border-radius: 0.65em;
    background: #D4D3DB;
    color: #252526;
}
.btn-submit-register {
    box-shadow: rgba(0, 0, 0, 0.35) 0 5px 15px;
}
.register-form-content {
    width: 350px;
    padding: 12px;
    background: #ffffff24;
    border-radius: 8px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
#block-register.card {
    background: #ffffff24;
    border: none;
}
.header-change-type-register {
    width: 350px;
    height: 45px;
    margin-bottom: 0.25em;
}
.header-change-type-register > button {
    flex: 1;
    border: none;
    height: 100%;
    background: #ffffff7d;
    color: #0c0c0c;
    font-weight: 500;
}
.header-change-type-register > button:first-child {
    margin-right: 1px;
    border-radius: 8px 2px 2px 2px;
}
.header-change-type-register > button:last-child {
    margin-left: 1px;
    border-radius: 2px 8px 2px 2px;
}
.header-change-type-register > button.active {
    background: var(--gm88_index_btn_login_color, #CF2029);
    color: #fff;
}
.register-group-container {
    width: 350px;
    position: absolute;
    top: 50%;
    left: 50%;
    right: 0;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
}
.captcha-wrapper > span > svg {
    /* `filter: none !important` overrides `index2.css`'s
     * `.register-container>.card .captcha-wrapper svg { filter: invert(1) !important }`
     * so the SVG renders with the colours set inline (white fill, black
     * outline) instead of being inverted/darkened.
     */
    filter: none !important;
    width: 120px;
}
/* Swiper React's `autoHeight` already sizes the wrapper to the active
 * slide; non-active slides are positioned via transform off-screen, so
 * they don't push the wrapper height. No max-height cap is needed.
 */

/* Generalised .form-select styling so the BankSelector trigger button
 * AND the native <select> for "รู้จักเราผ่านทาง" both look like the
 * other inputs (same dark bg, same pill border). The legacy rule
 * `.theme-form input:not([type="checkbox"])` targets <input> only,
 * hence the explicit rule for <select>/<button class="form-select">.
 */
.theme-form .form-select {
    background-color: #2f2e2a;
    border: none;
    border-radius: 2em !important;
    color: #fff;
    font-size: 20px;
    font-weight: 400;
    /* white chevron because the field is dark */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
}
.theme-form .form-select:focus,
.theme-form .form-select:hover {
    background-color: #2f2e2a;
    color: #fff;
    box-shadow: none;
    font-weight: 400;
}
/* When a floating .input-group-text icon sits over the field, push the
 * text right to clear it (same idea as the legacy `.input-group-text + input`
 * rule, but for our <button>/<select> triggers).
 */
.theme-form .input-group-lg .input-group-text + .form-select {
    padding-left: 2.7em;
}
/* Style native <option> rows for browsers that respect it (Chromium does;
 * Safari is limited). Fallback to OS default when not supported.
 */
.theme-form .form-select option {
    background-color: #2f2e2a;
    color: #fff;
}
/* Dropdown list — dark theme matching legacy select2 look in style.css */
.theme-form .bank-selector .dropdown-menu {
    background-color: #2f2e2a;
    border: 1px solid #4b4b4b;
    border-radius: 1em;
}
.theme-form .bank-selector .dropdown-item {
    color: #fff;
    padding: 0.5em 0.75em;
}
.theme-form .bank-selector .dropdown-item:hover,
.theme-form .bank-selector .dropdown-item:focus {
    background-color: #644815;
    color: #fff;
}
.theme-form .bank-selector .dropdown-item.active {
    background-color: #e0a624;
    color: #fff;
}
.popup_otp #swal2-title {
    font-size: 1.5em;
    color: #e35f5f !important;
    margin-bottom: 1.5rem;
}
.popup_otp .popup_otp-phone-txt {
    color: #ffffff;
    font-size: 1.3rem;
}
.popup_otp .popup_otp-timeleft {
    font-size: 1rem;
}
.popup_otp #popup_otp-input {
    margin: 0 auto;
    height: 45px;
    text-align: center;
}
.popup_otp .popup_otp-ref {
    font-size: 0.9em;
    font-weight: 100;
    color: #dfdfdf;
}
.popup_otp .popup_otp-confirm-button {
    background: #3e4add !important;
    width: 100%;
    border-radius: 4rem !important;
    box-shadow: #00000059 0px 5px 15px;
    outline: none;
    border: none;
    color: #fff;
    font-weight: 300;
}
.popup_otp .popup_otp-confirm-button:focus {
    outline: none;
    box-shadow: #00000059 0px 5px 15px;
}
.popup_otp .swal2-actions {
    margin-top: 0;
    padding: 0 1.6em;
}
