/* assets/usthp-fix3.css */
.usthp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}
.usthp-modal {
    background: #fff;
    padding: 20px 20px 20px 20px; 
    border-radius: 10px;
    max-width: 540px;
    width: 94%;
    box-shadow: 0 14px 40px rgba(0,0,0,0.18);
    position: relative;
    text-align: left;
}
.usthp-modal-title {
    margin: 0 0 8px;
    font-size: 20px;
    padding-right: 30px; 
}
.usthp-modal-close {
    position: absolute !important;
    right: 12px !important;
    top: 8px !important;
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}
.usthp-modal-text {
    margin: 0 0 14px;
    color: #444;
}
.usthp-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

/* === BOTÕES PADRÃO === */
.usthp-register-btn,
.usthp-login-btn,
.usthp-open-modal-btn,
.usthp-logged-in-buy-btn,
.usthp-form-register-button,
.usthp-whatsapp-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    flex-direction: row !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 52px !important;
    height: auto !important;
    box-sizing: border-box !important;
    font-size: clamp(12px, 2vw, 15px) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    padding: 10px 12px !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    position: relative !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important;
}
/* Cores individuais */
.usthp-register-btn {
    background: #FFD700 !important;
    color: #000 !important;
}
.usthp-login-btn {
    background: #333 !important;
    color: #fff !important;
}
.usthp-open-modal-btn {
    background: #FFD700 !important;
    color: #000 !important;
}
.usthp-logged-in-buy-btn {
    background: #FFC107 !important;
    color: #000 !important;
}
.usthp-whatsapp-btn {
    background: #25D366 !important;
    color: #fff !important;
}
/* Oculta botão padrão "Adicionar ao carrinho" */
.woocommerce-after-shop-loop-item .add_to_cart_button:not(.usthp-logged-in-buy-btn) {
    display: none !important;
}
/* Brilho metálico */
.usthp-open-modal-btn,
.usthp-logged-in-buy-btn,
.usthp-form-register-button,
.usthp-register-btn,
.usthp-login-btn,
.usthp-whatsapp-btn {
    position: relative !important;
    overflow: hidden !important;
}

.usthp-open-modal-btn::after,
.usthp-logged-in-buy-btn::after,
.usthp-form-register-button.loading-shine::after,
.button-metallic-loading::after,
.usthp-register-btn.metallic-shine-added::after,
.usthp-login-btn.metallic-shine-added::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: metallic-shine 3.5s linear infinite;
}
@keyframes metallic-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}
/* Carregamento */
.usthp-form-register-button.loading-shine::after {
    animation: metallicShine 1.2s ease-in-out infinite;
}
@keyframes metallicShine {
    100% {
        left: 120%;
    }
}
/* Ajustes responsivos */
@media (max-width: 480px) {
    .usthp-register-btn,
    .usthp-login-btn,
    .usthp-open-modal-btn,
    .usthp-logged-in-buy-btn,
    .usthp-form-register-button {
        font-size: clamp(12px, 3.5vw, 14px) !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        text-align: center !important;
        height: auto !important;
        min-height: 46px !important;
    }
}

/* Novo estilo para o botão do WhatsApp */
.usthp-whatsapp-btn {
    color: white !important;
    text-decoration: none !important;
    font-size: 16px !important;
    line-height: 1.3 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}