/* Estilos do popup */
.popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
    z-index: 9999;
}

.popup-content {
    background: white;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

.popup-content h2 {
    margin-top: 0px;
    text-align: center;
    margin-bottom: 10px;
}

/* Botão de fechar */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

/* Estilo das abas */
.tab {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.tab button {
    flex: 1;
    padding: 10px;
    border: none;
    cursor: pointer;
    background: #f1f1f1;
    transition: 0.3s;
    color: #333333;
}

.popup .tab button.active {
    background: #d30c5c;
    color: white;
}

.tabcontent {
    display: none;
}

/* Estilo do formulário */
.popup form {
    display: flex;
    flex-direction: column;
}

.popup input, .popup select, #form-checkout .formContainer {
    margin-bottom: 10px;
    padding: 11px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    color: #282828;
}

#form-checkout .formContainer {
    height: 44px;
}

/* .popup button {
    padding: 10px;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.popup button[type=submit] {
    color: white;
    background: #d30c5c;
    border-radius: 4px;
    padding: 15px;
}
*/

.popup .tablinks:hover {
    background: #a50948;
    color: #fff;
}

.popup .tab .tablinks {
    border-radius: 0px 30px 30px 0px;
}

.popup .tab .tablinks:first-child {
    border-radius: 30px 0px 0px 30px;
}

.w-half {
    width: 50%;
}

.w-half-25 {
    width: 25%;
}

.w-half-75, #form-checkout__identificationNumber {
    width: 75%;
}

.w-full{
    width: 100%;
}

.inputGroup {
    display: flex;
    gap: 10px;
}

.popup h4 {
    margin: 10px 0px;
    font-size: 1.08em;
    font-weight: normal;
}

.hide {
    display: none !important;
}

img.qrcode {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    display: block;
}

#popupContent h3 {
    margin-top: 0px;
    text-align: center;
}

p.qrcodeText {
    text-align: center;
}

textarea#qrcodeText {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    resize: none;
    font-size: 14px;
    height: 60px;
    font-family: sans-serif;
    overflow: hidden;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #c1c1c1;
    border-radius: 4px;
    color: #282828;
}

button#copyButton, button#paidButton {
    display: flex;
    margin: 0 auto;
    padding: 12px 40px;
    color: #fff;
    box-shadow: none;
    max-width: fit-content;
}

.tabcontent .alert {
    padding: 15px;
    margin: 10px auto;
    border-radius: 5px;
    width: 100%;
    text-align: center;
    font-weight: normal;
}

div#loader {
    display: none;
    height: 100%;
    width: 100%;
    position: absolute;
    background: #ffffff9c;
    margin: -40px;
    border-radius: 10px;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    flex-direction: column;
}

#loading {
    width: 40px;
    height: 40px;
    border: 6px solid #ccc;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.mt-1 {
    margin-top: 10px !important;
}

.alert {
    padding: 13px;
    border-radius: 8px;
    margin: 18px 0;
    /* display: none; */
    font-size: 0.95rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background: #cfe2ff;
    color: #084298;
    border: 1px solid #b6d4fe;
}

.alert-danger, .alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
