﻿/* Main CSS for TapMenu Plugin */

:root {
    --tapmenu-primary-color: #e74c3c;
    --tapmenu-primary-hover: #c0392b;
    --tapmenu-text-color: #333;
    --tapmenu-border-color: #ddd;
    --tapmenu-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Sticky Header — Homepage (blank template, no theme wrappers) */
.tapmenu-header,
.tapmenu-top-bar {
    position: sticky !important;
    top: 0;
    padding-top: calc(env(safe-area-inset-top, 0px) + clamp(10px, 2dvh, 22px));
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Fixed Header — Cart/Checkout pages (theme wrappers break sticky) */
.tapmenu-page-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding-top: calc(env(safe-area-inset-top, 0px) + clamp(10px, 2dvh, 22px));
}

/* Push content below fixed header */
.tapmenu-cart-page {
    padding-top: calc(64px + env(safe-area-inset-top, 0px) + clamp(10px, 2dvh, 22px));
}

/* Mobile-First Container Styles */
body.tapmenu-mobile-first {
    background: #f5f5f5 !important;
    margin: 0;
    padding: 0;
}

.tapmenu-mobile-container {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
    position: relative;
    /* NO overflow here — it breaks position:sticky on children */
}

@media (max-width: 500px) {
    .tapmenu-mobile-container {
        max-width: 100%;
        box-shadow: none;
    }

    body.tapmenu-mobile-first {
        background: #fff !important;
    }
}

/* Quick View Modal */
.tapmenu-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    box-sizing: border-box;
    padding-top: calc(env(safe-area-inset-top, 0px) + clamp(10px, 2.4dvh, 28px));
}

.tapmenu-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tapmenu-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.tapmenu-modal-content {
    position: relative;
    background: #fff;
    max-width: 90%;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - clamp(24px, 5dvh, 56px));
    overflow-y: auto;
    border-radius: 12px;
    padding: 30px;
    z-index: 10;
}

.tapmenu-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    z-index: 11;
    padding: 0;
    width: 32px;
    height: 32px;
}

.tapmenu-modal-close:hover {
    color: #333;
}

.tapmenu-quick-view-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .tapmenu-quick-view-product {
        grid-template-columns: 1fr;
    }

    .tapmenu-modal-content {
        max-width: 95%;
        padding: 20px;
    }
}

.tapmenu-quick-view-product .product-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.tapmenu-quick-view-product .product-title {
    font-size: 24px;
    margin: 0 0 15px;
}

.tapmenu-quick-view-product .product-price {
    font-size: 28px;
    font-weight: bold;
    color: var(--tapmenu-primary-color);
    margin-bottom: 20px;
}

.tapmenu-quick-view-product .product-description {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.tapmenu-quick-view-product .in-stock {
    color: #27ae60;
    font-weight: 600;
}

.tapmenu-quick-view-product .out-of-stock {
    color: #e74c3c;
    font-weight: 600;
}

.tapmenu-quick-view-product .view-full-details {
    display: inline-block;
    margin-top: 15px;
    color: var(--tapmenu-primary-color);
    text-decoration: none;
}

/* Loading Spinner */
.tapmenu-loading {
    text-align: center;
    padding: 40px;
}

.tapmenu-loading .spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--tapmenu-primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* PWA Install Button */
.tapmenu-pwa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--tapmenu-primary-color);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tapmenu-pwa-btn:hover {
    background: var(--tapmenu-primary-hover);
}

/* Geo Map Messages */
.tapmenu-geo-message {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 1000;
    box-shadow: var(--tapmenu-shadow);
}

.tapmenu-geo-message.success {
    background: #27ae60;
    color: #fff;
}

.tapmenu-geo-message.error {
    background: #e74c3c;
    color: #fff;
}

/* Buttons */
.tapmenu-btn-primary {
    background: var(--tapmenu-primary-color);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tapmenu-btn-primary:hover {
    background: var(--tapmenu-primary-hover);
}

/* Utility Classes */
.tapmenu-text-center {
    text-align: center;
}

.tapmenu-mt-20 {
    margin-top: 20px;
}

.tapmenu-mb-20 {
    margin-bottom: 20px;
}

body.tapmenu-modal-open {
    overflow: hidden;
}

/* WooCommerce Account/Auth Pages (Login/Register/Lost Password) */
body.woocommerce-account,
body.woocommerce-lost-password {
    background: #f5f5f5 !important;
}

/* Keep only TapMenu footer on auth/account pages */
body.woocommerce-account footer:not(.tapmenu-footer),
body.woocommerce-lost-password footer:not(.tapmenu-footer),
body.woocommerce-account .site-info,
body.woocommerce-lost-password .site-info {
    display: none !important;
}

body.woocommerce-account .woocommerce,
body.woocommerce-lost-password .woocommerce {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 20px 16px 40px;
    background: #f8fafc;
    box-shadow: none;
    box-sizing: border-box;
}

body.woocommerce-account .tapmenu-footer,
body.woocommerce-lost-password .tapmenu-footer {
    margin-top: 18px;
    margin-bottom: 0;
    border-radius: 24px 24px 0 0;
}

/* Account/Auth Top Bar */
body.woocommerce-account .woocommerce > .tapmenu-account-topbar-wrap,
body.woocommerce-lost-password .woocommerce > .tapmenu-account-topbar-wrap {
    margin: -20px -16px 14px;
}

body.woocommerce-account .tapmenu-account-topbar-wrap .tapmenu-top-bar,
body.woocommerce-lost-password .tapmenu-account-topbar-wrap .tapmenu-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    padding-top: calc(env(safe-area-inset-top, 0px) + clamp(10px, 2dvh, 22px));
    background: var(--tapmenu-header-bg, #fff);
    color: var(--tapmenu-header-text, #333);
    border-bottom: 1px solid #efefef;
    position: sticky;
    top: 0;
    z-index: 1000;
}

body.woocommerce-account .tapmenu-account-topbar-wrap .top-bar-left,
body.woocommerce-account .tapmenu-account-topbar-wrap .top-bar-right,
body.woocommerce-lost-password .tapmenu-account-topbar-wrap .top-bar-left,
body.woocommerce-lost-password .tapmenu-account-topbar-wrap .top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.woocommerce-account .tapmenu-account-topbar-wrap .top-bar-btn,
body.woocommerce-lost-password .tapmenu-account-topbar-wrap .top-bar-btn {
    width: 44px;
    height: 44px;
    border: 2px solid #f0f0f0;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    transition: all 0.2s ease;
    padding: 0;
    text-decoration: none;
}

body.woocommerce-account .tapmenu-account-topbar-wrap .top-bar-btn:hover,
body.woocommerce-lost-password .tapmenu-account-topbar-wrap .top-bar-btn:hover {
    border-color: var(--tapmenu-checkout-action-bg, var(--tapmenu-primary-color, #e74c3c));
    color: var(--tapmenu-checkout-action-bg, var(--tapmenu-primary-color, #e74c3c));
}

body.woocommerce-account .tapmenu-account-topbar-wrap .top-bar-title,
body.woocommerce-lost-password .tapmenu-account-topbar-wrap .top-bar-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: 52%;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.woocommerce-account .tapmenu-account-topbar-wrap .lang-switcher,
body.woocommerce-lost-password .tapmenu-account-topbar-wrap .lang-switcher {
    display: flex;
    background: #f5f5f5;
    border-radius: 25px;
    padding: 4px;
}

body.woocommerce-account .tapmenu-account-topbar-wrap .lang-btn,
body.woocommerce-lost-password .tapmenu-account-topbar-wrap .lang-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: #666;
}

body.woocommerce-account .tapmenu-account-topbar-wrap .lang-btn.active,
body.woocommerce-lost-password .tapmenu-account-topbar-wrap .lang-btn.active {
    background: var(--tapmenu-checkout-action-bg, var(--tapmenu-primary-color, #e74c3c));
    color: #fff;
}

body.woocommerce-account .woocommerce h2,
body.woocommerce-lost-password .woocommerce h2 {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

body.woocommerce-account .woocommerce .u-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

body.woocommerce-account .woocommerce .u-column1,
body.woocommerce-account .woocommerce .u-column2 {
    width: 100% !important;
    float: none !important;
}

body.woocommerce-account .woocommerce form.login,
body.woocommerce-account .woocommerce form.register,
body.woocommerce-account .woocommerce form.woocommerce-ResetPassword,
body.woocommerce-lost-password .woocommerce form.woocommerce-ResetPassword {
    margin: 0;
    border: 1px solid rgba(231, 76, 60, 0.18);
    border-radius: 18px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

body.woocommerce-account .woocommerce form .form-row,
body.woocommerce-lost-password .woocommerce form .form-row {
    margin-bottom: 12px;
}

body.woocommerce-account .woocommerce form .form-row label,
body.woocommerce-lost-password .woocommerce form .form-row label {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    display: block;
}

body.woocommerce-account .woocommerce form .form-row input.input-text,
body.woocommerce-account .woocommerce form .form-row textarea,
body.woocommerce-lost-password .woocommerce form .form-row input.input-text,
body.woocommerce-lost-password .woocommerce form .form-row textarea {
    width: 100%;
    min-height: 48px;
    padding: 14px 14px;
    border: 1.5px solid #e4e4e4;
    border-radius: 14px;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.woocommerce-account .woocommerce form .form-row input.input-text:focus,
body.woocommerce-account .woocommerce form .form-row textarea:focus,
body.woocommerce-lost-password .woocommerce form .form-row input.input-text:focus,
body.woocommerce-lost-password .woocommerce form .form-row textarea:focus {
    border-color: var(--tapmenu-checkout-action-bg, var(--tapmenu-primary-color, #e74c3c));
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    background: #fff;
    outline: none;
}

body.woocommerce-account .woocommerce form.login button.button,
body.woocommerce-account .woocommerce form.register button.button,
body.woocommerce-account .woocommerce form.woocommerce-ResetPassword button.button,
body.woocommerce-lost-password .woocommerce form.woocommerce-ResetPassword button.button,
body.woocommerce-account .woocommerce form.login input.button,
body.woocommerce-account .woocommerce form.register input.button,
body.woocommerce-account .woocommerce form.woocommerce-ResetPassword input.button,
body.woocommerce-lost-password .woocommerce form.woocommerce-ResetPassword input.button {
    width: 100%;
    min-height: 50px;
    padding: 14px 18px;
    border: none !important;
    border-radius: 14px;
    background: var(--tapmenu-checkout-action-bg, var(--tapmenu-primary-color, #e74c3c)) !important;
    color: var(--tapmenu-checkout-action-text, #fff) !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.woocommerce-account .woocommerce form.login button.button:hover,
body.woocommerce-account .woocommerce form.register button.button:hover,
body.woocommerce-account .woocommerce form.woocommerce-ResetPassword button.button:hover,
body.woocommerce-lost-password .woocommerce form.woocommerce-ResetPassword button.button:hover,
body.woocommerce-account .woocommerce form.login input.button:hover,
body.woocommerce-account .woocommerce form.register input.button:hover,
body.woocommerce-account .woocommerce form.woocommerce-ResetPassword input.button:hover,
body.woocommerce-lost-password .woocommerce form.woocommerce-ResetPassword input.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(190, 18, 60, 0.18);
}

body.woocommerce-account .woocommerce form .show-password-input,
body.woocommerce-lost-password .woocommerce form .show-password-input {
    color: #777;
}

body.woocommerce-account .woocommerce .lost_password,
body.woocommerce-account .woocommerce .woocommerce-LostPassword,
body.woocommerce-lost-password .woocommerce .woocommerce-LostPassword {
    margin: 10px 0 0;
    text-align: center;
}

body.woocommerce-account .woocommerce .lost_password a,
body.woocommerce-account .woocommerce .woocommerce-LostPassword a,
body.woocommerce-account .woocommerce .woocommerce-form-login__rememberme,
body.woocommerce-account .woocommerce .woocommerce-form-login__rememberme span,
body.woocommerce-lost-password .woocommerce .woocommerce-LostPassword a {
    color: var(--tapmenu-checkout-action-bg, var(--tapmenu-primary-color, #e74c3c));
    font-size: 13px;
}

body.woocommerce-account .woocommerce .woocommerce-notices-wrapper .woocommerce-error,
body.woocommerce-account .woocommerce .woocommerce-notices-wrapper .woocommerce-message,
body.woocommerce-lost-password .woocommerce .woocommerce-notices-wrapper .woocommerce-error,
body.woocommerce-lost-password .woocommerce .woocommerce-notices-wrapper .woocommerce-message {
    border-radius: 14px;
    border: 1px solid rgba(231, 76, 60, 0.25);
    background: rgba(231, 76, 60, 0.08);
    color: #7a2620;
    margin-bottom: 12px;
}

/* My Account (logged-in) layout */
body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
    margin: 0 0 14px;
    border: 1px solid rgba(231, 76, 60, 0.18);
    border-radius: 18px;
    background: #fff;
    padding: 16px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul li + li {
    margin-top: 8px;
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 11px 13px;
    border-radius: 12px;
    text-decoration: none;
    color: #3c3c3c;
    font-size: 14px;
    font-weight: 600;
    background: #fafafa;
    transition: all 0.2s ease;
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul li.is-active a,
body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul li a:hover {
    background: rgba(231, 76, 60, 0.1);
    color: var(--tapmenu-checkout-action-bg, var(--tapmenu-primary-color, #e74c3c));
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-content p,
body.woocommerce-account .woocommerce .woocommerce-MyAccount-content li {
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.6;
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-content a {
    color: var(--tapmenu-checkout-action-bg, var(--tapmenu-primary-color, #e74c3c));
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-content .button,
body.woocommerce-account .woocommerce .woocommerce-MyAccount-content button.button,
body.woocommerce-account .woocommerce .woocommerce-MyAccount-content input.button {
    border: none !important;
    border-radius: 12px;
    background: var(--tapmenu-checkout-action-bg, var(--tapmenu-primary-color, #e74c3c)) !important;
    color: var(--tapmenu-checkout-action-text, #fff) !important;
    font-weight: 700;
    padding: 11px 16px;
    min-height: 44px;
    text-decoration: none;
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-content table.shop_table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #efefef;
    border-radius: 12px;
    overflow: hidden;
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-content table.shop_table th,
body.woocommerce-account .woocommerce .woocommerce-MyAccount-content table.shop_table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f3f3f3;
    text-align: start;
    font-size: 13px;
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-content table.shop_table tr:last-child td {
    border-bottom: none;
}

body.woocommerce-account .woocommerce .woocommerce-Addresses .woocommerce-Address {
    margin-bottom: 12px;
    border: 1px solid #efefef;
    border-radius: 12px;
    padding: 12px;
    background: #fafafa;
}

body.woocommerce-account .woocommerce .woocommerce-Addresses .woocommerce-Address h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

@media (max-width: 500px) {
    body.woocommerce-account .woocommerce,
    body.woocommerce-lost-password .woocommerce {
        max-width: 100%;
        padding: 16px 12px 28px;
        box-shadow: none;
    }

    body.woocommerce-account .woocommerce form.login,
    body.woocommerce-account .woocommerce form.register,
    body.woocommerce-account .woocommerce form.woocommerce-ResetPassword,
    body.woocommerce-lost-password .woocommerce form.woocommerce-ResetPassword {
        padding: 14px;
        border-radius: 14px;
    }

    body.woocommerce-account .woocommerce > .tapmenu-account-topbar-wrap,
    body.woocommerce-lost-password .woocommerce > .tapmenu-account-topbar-wrap {
        margin: -16px -12px 12px;
    }
}

/* ========================================
   Prototype Auth / Account Refresh
======================================== */
body.woocommerce-account,
body.woocommerce-lost-password {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.7), transparent 30%),
        linear-gradient(180deg, #eef2f7 0%, #f8fafc 16%, #f8fafc 100%);
}

body.woocommerce-account .woocommerce,
body.woocommerce-lost-password .woocommerce {
    max-width: 480px;
    padding: 0 16px 120px;
    background: transparent;
    box-shadow: none;
}

body.woocommerce-account .tapmenu-account-topbar-wrap .tapmenu-top-bar,
body.woocommerce-lost-password .tapmenu-account-topbar-wrap .tapmenu-top-bar {
    min-height: 64px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body.woocommerce-account .tapmenu-account-topbar-wrap .top-bar-btn,
body.woocommerce-lost-password .tapmenu-account-topbar-wrap .top-bar-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: transparent;
}

body.woocommerce-account .tapmenu-account-topbar-wrap .lang-switcher,
body.woocommerce-lost-password .tapmenu-account-topbar-wrap .lang-switcher {
    padding: 4px;
    border-radius: 999px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

body.woocommerce-account .tapmenu-account-topbar-wrap .lang-btn,
body.woocommerce-lost-password .tapmenu-account-topbar-wrap .lang-btn {
    min-width: 42px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

body.woocommerce-account .tapmenu-account-topbar-wrap .lang-btn.active,
body.woocommerce-lost-password .tapmenu-account-topbar-wrap .lang-btn.active {
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

body.woocommerce-account .woocommerce form.login,
body.woocommerce-account .woocommerce form.register,
body.woocommerce-account .woocommerce form.woocommerce-ResetPassword,
body.woocommerce-lost-password .woocommerce form.woocommerce-ResetPassword,
body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce .woocommerce-MyAccount-content {
    border: 1px solid #eef2f7;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
}

body.woocommerce-account .woocommerce form.login,
body.woocommerce-account .woocommerce form.register,
body.woocommerce-account .woocommerce form.woocommerce-ResetPassword,
body.woocommerce-lost-password .woocommerce form.woocommerce-ResetPassword {
    padding: 26px;
}

body.woocommerce-account .woocommerce h2,
body.woocommerce-lost-password .woocommerce h2 {
    color: #111827;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

body.woocommerce-account .woocommerce form .form-row input.input-text,
body.woocommerce-account .woocommerce form .form-row textarea,
body.woocommerce-lost-password .woocommerce form .form-row input.input-text,
body.woocommerce-lost-password .woocommerce form .form-row textarea {
    min-height: 54px;
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #f8fafc;
    box-shadow: none;
}

body.woocommerce-account .woocommerce form .form-row input.input-text:focus,
body.woocommerce-account .woocommerce form .form-row textarea:focus,
body.woocommerce-lost-password .woocommerce form .form-row input.input-text:focus,
body.woocommerce-lost-password .woocommerce form .form-row textarea:focus {
    border-color: rgba(225, 29, 72, 0.3);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.08);
}

body.woocommerce-account .woocommerce form.login button.button,
body.woocommerce-account .woocommerce form.register button.button,
body.woocommerce-account .woocommerce form.woocommerce-ResetPassword button.button,
body.woocommerce-lost-password .woocommerce form.woocommerce-ResetPassword button.button,
body.woocommerce-account .woocommerce form.login input.button,
body.woocommerce-account .woocommerce form.register input.button,
body.woocommerce-account .woocommerce form.woocommerce-ResetPassword input.button,
body.woocommerce-lost-password .woocommerce form.woocommerce-ResetPassword input.button,
body.woocommerce-account .woocommerce .woocommerce-MyAccount-content .button,
body.woocommerce-account .woocommerce .woocommerce-MyAccount-content button.button,
body.woocommerce-account .woocommerce .woocommerce-MyAccount-content input.button {
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    border: none;
    background: var(--tapmenu-checkout-action-bg, var(--tapmenu-primary-color, #e74c3c));
    box-shadow: 0 18px 38px rgba(225, 29, 72, 0.28);
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce .woocommerce-MyAccount-content {
    padding: 18px;
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul li a {
    border-radius: 18px;
    font-weight: 700;
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul li.is-active a,
body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation ul li a:hover {
    box-shadow: none;
}

body.rtl .tapmenu-mobile-container,
body.rtl .tapmenu-cart-page,
body.rtl .tapmenu-checkout-page,
body.rtl .tapmenu-top-bar,
body.rtl .tapmenu-page-header,
body.rtl .woocommerce,
.tapmenu-top-bar.rtl {
    font-family: 'Cairo', sans-serif;
}

body.woocommerce-account .woocommerce,
body.woocommerce-lost-password .woocommerce {
    animation: tapmenuScreenFade 0.3s ease both;
}

body.woocommerce-account .woocommerce form.login,
body.woocommerce-account .woocommerce form.register,
body.woocommerce-account .woocommerce form.woocommerce-ResetPassword,
body.woocommerce-lost-password .woocommerce form.woocommerce-ResetPassword,
body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce .woocommerce-MyAccount-content {
    animation: tapmenuCardLift 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.woocommerce-account .woocommerce form .form-row input.input-text,
body.woocommerce-account .woocommerce form .form-row textarea,
body.woocommerce-lost-password .woocommerce form .form-row input.input-text,
body.woocommerce-lost-password .woocommerce form .form-row textarea,
body.woocommerce-account .woocommerce form.login button.button,
body.woocommerce-account .woocommerce form.register button.button,
body.woocommerce-account .woocommerce form.woocommerce-ResetPassword button.button,
body.woocommerce-lost-password .woocommerce form.woocommerce-ResetPassword button.button,
body.woocommerce-account .woocommerce form.login input.button,
body.woocommerce-account .woocommerce form.register input.button,
body.woocommerce-account .woocommerce form.woocommerce-ResetPassword input.button,
body.woocommerce-lost-password .woocommerce form.woocommerce-ResetPassword input.button {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

body.woocommerce-account .woocommerce form.login button.button:active,
body.woocommerce-account .woocommerce form.register button.button:active,
body.woocommerce-account .woocommerce form.woocommerce-ResetPassword button.button:active,
body.woocommerce-lost-password .woocommerce form.woocommerce-ResetPassword button.button:active,
body.woocommerce-account .woocommerce form.login input.button:active,
body.woocommerce-account .woocommerce form.register input.button:active,
body.woocommerce-account .woocommerce form.woocommerce-ResetPassword input.button:active,
body.woocommerce-lost-password .woocommerce form.woocommerce-ResetPassword input.button:active {
    transform: scale(0.985);
}

body.woocommerce-account .woocommerce,
body.woocommerce-lost-password .woocommerce,
body.woocommerce-account .woocommerce p,
body.woocommerce-lost-password .woocommerce p {
    color: #334155 !important;
}

body.woocommerce-account .woocommerce h1,
body.woocommerce-account .woocommerce h2,
body.woocommerce-account .woocommerce h3,
body.woocommerce-lost-password .woocommerce h1,
body.woocommerce-lost-password .woocommerce h2,
body.woocommerce-lost-password .woocommerce h3 {
    color: #0f172a !important;
}

body.woocommerce-account .woocommerce form .form-row label,
body.woocommerce-account .woocommerce .woocommerce-form-login__rememberme,
body.woocommerce-account .woocommerce .woocommerce-form-login__rememberme span,
body.woocommerce-lost-password .woocommerce form .form-row label {
    color: #475569 !important;
}

body.woocommerce-account .woocommerce form .form-row input.input-text,
body.woocommerce-account .woocommerce form .form-row textarea,
body.woocommerce-lost-password .woocommerce form .form-row input.input-text,
body.woocommerce-lost-password .woocommerce form .form-row textarea {
    color: #0f172a !important;
    background: #f8fafc !important;
}

body.woocommerce-account .woocommerce form .form-row input.input-text::placeholder,
body.woocommerce-account .woocommerce form .form-row textarea::placeholder,
body.woocommerce-lost-password .woocommerce form .form-row input.input-text::placeholder,
body.woocommerce-lost-password .woocommerce form .form-row textarea::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

body.woocommerce-account .woocommerce form.login button.button,
body.woocommerce-account .woocommerce form.register button.button,
body.woocommerce-account .woocommerce form.woocommerce-ResetPassword button.button,
body.woocommerce-lost-password .woocommerce form.woocommerce-ResetPassword button.button,
body.woocommerce-account .woocommerce form.login input.button,
body.woocommerce-account .woocommerce form.register input.button,
body.woocommerce-account .woocommerce form.woocommerce-ResetPassword input.button,
body.woocommerce-lost-password .woocommerce form.woocommerce-ResetPassword input.button,
body.woocommerce-account .woocommerce .woocommerce-MyAccount-content .button,
body.woocommerce-account .woocommerce .woocommerce-MyAccount-content button.button,
body.woocommerce-account .woocommerce .woocommerce-MyAccount-content input.button {
    background: #e11d48 !important;
    color: #fff7f9 !important;
    box-shadow: 0 14px 28px rgba(225, 29, 72, 0.22) !important;
}

body.woocommerce-account .woocommerce .lost_password a,
body.woocommerce-account .woocommerce .woocommerce-LostPassword a,
body.woocommerce-lost-password .woocommerce .woocommerce-LostPassword a {
    color: #be123c !important;
}

body.woocommerce-account #wpadminbar,
body.woocommerce-lost-password #wpadminbar {
    background: #111827 !important;
}

body.woocommerce-account #wpadminbar *,
body.woocommerce-lost-password #wpadminbar * {
    color: #f8fafc !important;
    text-shadow: none !important;
}

body.woocommerce-account .woocommerce,
body.woocommerce-lost-password .woocommerce,
body.woocommerce-account .woocommerce *,
body.woocommerce-lost-password .woocommerce * {
    animation: none !important;
    opacity: 1 !important;
}

body.woocommerce-account .woocommerce form.login,
body.woocommerce-account .woocommerce form.register,
body.woocommerce-account .woocommerce form.woocommerce-ResetPassword,
body.woocommerce-lost-password .woocommerce form.woocommerce-ResetPassword,
body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce .woocommerce-MyAccount-content {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

body.woocommerce-account,
body.woocommerce-lost-password,
body.woocommerce-account .wp-site-blocks,
body.woocommerce-lost-password .wp-site-blocks,
body.woocommerce-account main,
body.woocommerce-lost-password main {
    background: #f8fafc !important;
    color: #111827 !important;
}

body.woocommerce-account .woocommerce,
body.woocommerce-lost-password .woocommerce,
body.woocommerce-account .woocommerce p,
body.woocommerce-lost-password .woocommerce p,
body.woocommerce-account .woocommerce li,
body.woocommerce-lost-password .woocommerce li,
body.woocommerce-account .woocommerce label,
body.woocommerce-lost-password .woocommerce label,
body.woocommerce-account .woocommerce span:not(.button):not(.top-bar-title),
body.woocommerce-lost-password .woocommerce span:not(.button):not(.top-bar-title) {
    color: #111827 !important;
}

body.woocommerce-account .woocommerce a,
body.woocommerce-lost-password .woocommerce a {
    color: #be123c !important;
}

body.woocommerce-account .woocommerce button.button,
body.woocommerce-lost-password .woocommerce button.button,
body.woocommerce-account .woocommerce input.button,
body.woocommerce-lost-password .woocommerce input.button,
body.woocommerce-account .woocommerce .button,
body.woocommerce-lost-password .woocommerce .button {
    background: #be123c !important;
    color: #fff7f9 !important;
}

html body.woocommerce-account.admin-bar #wpadminbar,
html body.woocommerce-lost-password.admin-bar #wpadminbar,
html body.woocommerce-account.admin-bar #wpadminbar .ab-top-menu > li,
html body.woocommerce-lost-password.admin-bar #wpadminbar .ab-top-menu > li,
html body.woocommerce-account.admin-bar #wpadminbar .ab-top-menu > li > .ab-item,
html body.woocommerce-lost-password.admin-bar #wpadminbar .ab-top-menu > li > .ab-item {
    background: #111827 !important;
    color: #f8fafc !important;
}

html body.woocommerce-account.admin-bar #wpadminbar .ab-sub-wrapper,
html body.woocommerce-lost-password.admin-bar #wpadminbar .ab-sub-wrapper,
html body.woocommerce-account.admin-bar #wpadminbar .menupop .ab-sub-wrapper,
html body.woocommerce-lost-password.admin-bar #wpadminbar .menupop .ab-sub-wrapper {
    background: #1f2937 !important;
}

html body.woocommerce-account.admin-bar #wpadminbar .ab-item,
html body.woocommerce-lost-password.admin-bar #wpadminbar .ab-item,
html body.woocommerce-account.admin-bar #wpadminbar .ab-label,
html body.woocommerce-lost-password.admin-bar #wpadminbar .ab-label {
    color: #f8fafc !important;
}

html body.woocommerce-account.admin-bar #wpadminbar input,
html body.woocommerce-lost-password.admin-bar #wpadminbar input {
    background: #ffffff !important;
    color: #111827 !important;
}

html:has(body.woocommerce-account),
html:has(body.woocommerce-lost-password) {
    margin-top: 0 !important;
}

body.woocommerce-account #wpadminbar,
body.woocommerce-lost-password #wpadminbar {
    display: none !important;
}

@keyframes tapmenuScreenFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tapmenuCardLift {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
