/**
 * MM Auth Verification - Frontend Styles
 *
 * @package MM_Auth_Verification
 */

/* WooCommerce My Account Integration */
.mm-auth-woocommerce-login-wrapper {
    max-width: 100%;
}

.mm-auth-woocommerce-login-wrapper .mm-auth-login-container {
    max-width: 600px;
    margin: 0 auto;
    border: none;
    box-shadow: none;
}

.mm-auth-login-container {
    max-width: 450px;
    margin: 0 auto;
    padding: 30px;
    background: var(--dark);
    border: 1px solid #ddd;
    border-radius: 8px;
    position: relative;
}

.mm-auth-step h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.mm-auth-step p {
    text-align: center;
    margin-bottom: 20px;
    color: var(--light);
}

/* Method Selection */
.mm-auth-method-buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-bottom: 20px;
}

.mm-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid #333;
    /*background: #fff;*/
    /*color: #333;*/
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mm-auth-btn:hover {
    background: #333;
    color: #fff;
}

.mm-auth-btn-primary {
    background: #333;
    color: #fff;
    width: 100%;
}

.mm-auth-btn-primary:hover {
    background: #000;
    border-color: #000;
}

/* Form Elements */
.mm-auth-form-group {
    margin-bottom: 20px;
}

.mm-auth-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.mm-auth-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    background: var(--main) !important;
}

.mm-auth-input:focus {
    outline: none;
    border-color: #333;
}

.mm-auth-format-hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    margin-bottom: 0;
    text-align: left;
}

/* Code Inputs */
.mm-auth-code-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.mm-auth-code-digit {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px !important;
    font-weight: bold;
    border: 2px solid #000 !important;
    border-radius: 6px !important;
    transition: border-color 0.3s ease;
    background: var(--dark) !important;
}

.mm-auth-code-digit:focus {
    outline: none;
    border-color: #333;
}

/* Messages */
.mm-auth-messages {
    margin: 15px 0;
}

.mm-auth-message {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 14px;
}

.mm-auth-error {
    background: #471a1a !important;
    border: 1px solid #fcc;
    color: #c00 !important;
}

.mm-auth-success {
    background: #104d10;
    border: 1px solid #cfc;
    color: #060;
}

/* Back Button */
.mm-auth-back-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 0;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.mm-auth-back-btn:hover {
    color: #fff;
}

/* Resend */
.mm-auth-resend {
    text-align: center;
    font-size: 14px;
    margin-bottom: 20px;
    color: #666;
}

.mm-auth-resend-btn {
    background: none;
    border: none;
    color: #333;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
}

.mm-auth-resend-btn:hover {
    color: #000;
}

.mm-auth-countdown {
    font-weight: bold;
    color: #333;
}

/* Register Link */
.mm-auth-register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.mm-auth-register-link a {
    color: var(--light);
    text-decoration: underline;
    font-weight: 500;
}

.mm-auth-register-link a:hover {
    color: #fff;
}

/* Loading Spinner */
.mm-auth-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 100;
}

.mm-auth-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: mm-auth-spin 1s linear infinite;
}

@keyframes mm-auth-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Guest Notice */
.mm-auth-guest-notice {
    background: #f0f0f0;
    border-left: 3px solid #333;
    padding: 15px;
    margin: 15px 0;
}

.mm-auth-guest-notice p {
    margin: 0;
    text-align: left;
}

/* ===== Login / Register Button Replacements ===== */

/* Single product page */
.mm-auth-single-product-buttons {
    margin: 20px 0 40px;
}

.mm-auth-purchase-notice {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.mm-auth-button-group {
    display: flex;
    gap: 10px;
}

.mm-auth-button-group .mm-auth-login-btn {
    flex: 1;
    text-align: center;
}

.mm-auth-button-group .mm-auth-register-btn {
    flex: 1;
    text-align: center;
    background: transparent;
    color: #333;
    border: 2px solid #333;
}

.mm-auth-button-group .mm-auth-register-btn:hover {
    background: #333;
    color: #fff;
}

/* Loop / archive product cards — hide quantity and any remaining purchase buttons when ours are present */
.mm-auth-loop-buttons ~ .quantity,
.mm-auth-loop-buttons ~ form.cart,
.product:has(.mm-auth-loop-buttons) .quantity,
.product:has(.mm-auth-loop-buttons) .add_to_cart_button,
.product:has(.mm-auth-loop-buttons) .product_type_variable,
.product:has(.mm-auth-loop-buttons) .product_type_simple,
.product:has(.mm-auth-loop-buttons) .product_type_grouped,
.product:has(.mm-auth-loop-buttons) .ajax_add_to_cart,
.product:has(.mm-auth-loop-buttons) a.button[data-quantity] {
    display: none !important;
}

/* Loop / archive Login/Register buttons — styled independently from theme */
.mm-auth-loop-buttons {
    display: flex;
    gap: 6px;
    width: 100%;
}

.mm-auth-loop-btn {
    flex: 1;
    display: inline-block !important;
    text-align: center !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Override any theme icon replacement on these buttons */
.mm-auth-loop-btn::before,
.mm-auth-loop-btn::after {
    display: none !important;
    content: none !important;
}

.mm-auth-login-btn.mm-auth-loop-btn {
    background: #333 !important;
    color: #fff !important;
    border: 2px solid #333 !important;
}

.mm-auth-login-btn.mm-auth-loop-btn:hover {
    background: #000 !important;
    border-color: #000 !important;
}

.mm-auth-register-btn.mm-auth-loop-btn {
    background: transparent !important;
    color: #333 !important;
    border: 2px solid #333 !important;
}

.mm-auth-register-btn.mm-auth-loop-btn:hover {
    background: #333 !important;
    color: #fff !important;
}

/* Inside product hover footer: stack buttons vertically and hide Quick View */
.footer-product .mm-auth-loop-buttons {
    flex-direction: column;
    gap: 4px;
}

.footer-product:has(.mm-auth-loop-buttons) .show-quickly {
    display: none !important;
}

.product-view-mask2 .footer-product{
    width: 75px !important;
}


/***************   MY Account **********************/

.woocommerce-account .content-page,
.woocommerce-edit-account .content-page,
.woocommerce-edit-address .content-page,
.woocommerce-dashboard .content-page,
.woocommerce-orders .content-page{
    padding: 35px 40px;
    background: rgba(255, 255, 255, 0.90);
    margin-bottom: 30px;
}
.woocommerce-dashboard .content-page .sidebar-position-without{

}

/* Responsive */
@media (max-width: 600px) {
    .mm-auth-login-container {
        padding: 20px;
        margin: 0 15px;
    }

    .mm-auth-code-digit {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }

    .mm-auth-code-inputs {
        gap: 6px;
    }
}

/* Sent To Display */
.mm-auth-sent-to {
    background: var(--main) !important;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.mm-auth-identifier-display {
    color: #333;
    word-break: break-all;
}

.woocommerce-account .tf-my-account{
    min-height: 50vh;
}
.woocommerce-account{
    background: url(https://www.zoomersdispensary.com/wp-content/uploads/2023/10/BG.jpeg) no-repeat center center;
    background-size: cover;
}
.woocommerce-account header + div{
    padding-top: 150px;
}
