/**
 * My Account Dashboard
 * Custom layout for the dashboard endpoint of My Account.
 */

.btma-dashboard {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}
.btma-dashboard *,
.btma-dashboard *::before,
.btma-dashboard *::after {
    box-sizing: border-box;
}

/* ── Welcome ── */
.btma-welcome {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.12), rgba(0, 224, 240, 0.06));
    border: 1px solid rgba(108, 99, 255, 0.18);
    position: relative;
    overflow: hidden;
    width: 100%;
    flex-wrap: wrap;
}
.btma-welcome::before {
    content: "";
    position: absolute;
    top: -40px; right: -40px;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.15), transparent 70%);
    pointer-events: none;
}
.btma-welcome__avatar img {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(108, 99, 255, 0.35);
    object-fit: cover;
}
.btma-welcome__body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.btma-welcome__greet {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2px;
    letter-spacing: 0.04em;
}
.btma-welcome__name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 2px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btma-welcome__wave {
    display: inline-block;
    animation: btmaWave 1.6s ease-in-out infinite;
    transform-origin: 70% 70%;
}
@keyframes btmaWave {
    0%, 60%, 100% { transform: rotate(0); }
    10%, 30% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
}
.btma-welcome__sub {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}
.btma-welcome__action { position: relative; z-index: 1; }
.btma-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 0.2s ease;
}
.btma-logout:hover {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.4);
    color: #f87171;
}

html[data-theme="light"] .btma-welcome {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.06), rgba(0, 224, 240, 0.03));
    border-color: rgba(108, 99, 255, 0.12);
}
html[data-theme="light"] .btma-welcome__name { color: #1a1a1a; }
html[data-theme="light"] .btma-welcome__greet { color: #666; }
html[data-theme="light"] .btma-welcome__sub { color: #555; }
html[data-theme="light"] .btma-logout {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: #555;
}

/* ── Stats grid ── */
.btma-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    width: 100%;
}
.btma-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.25s ease;
}
.btma-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.08);
}
.btma-stat__icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}
.btma-stat__icon--orders   { background: linear-gradient(135deg, #6c63ff, #4f46e5); }
.btma-stat__icon--spent    { background: linear-gradient(135deg, #00e0f0, #06b6d4); }
.btma-stat__icon--pending  { background: linear-gradient(135deg, #f59e0b, #d97706); }
.btma-stat__icon--done     { background: linear-gradient(135deg, #4ade80, #16a34a); }

.btma-stat__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.btma-stat__label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}
.btma-stat__value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}
.btma-stat__value--money { font-size: 0.95rem; color: #00e0f0; }
.btma-stat__value--money bdi { color: inherit; }

html[data-theme="light"] .btma-stat {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
html[data-theme="light"] .btma-stat__label { color: #888; }
html[data-theme="light"] .btma-stat__value { color: #1a1a1a; }
html[data-theme="light"] .btma-stat__value--money { color: #6c63ff; }

/* ── Section heading ── */
.btma-section__title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btma-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.btma-section__head .btma-section__title { margin-bottom: 0; }
.btma-section__more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #6c63ff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: gap 0.2s ease;
}
.btma-section__more:hover { gap: 8px; color: #00e0f0; }

html[data-theme="light"] .btma-section__title { color: #1a1a1a; }

/* ── Quick actions ── */
.btma-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    width: 100%;
}
.btma-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}
.btma-action:hover {
    background: rgba(108, 99, 255, 0.08);
    border-color: rgba(108, 99, 255, 0.35);
    transform: translateY(-2px);
}
.btma-action__icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(108, 99, 255, 0.1);
    color: #6c63ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.btma-action:hover .btma-action__icon {
    background: linear-gradient(135deg, #6c63ff, #00e0f0);
    color: #fff;
    transform: rotate(-4deg) scale(1.05);
}
.btma-action__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.btma-action__body strong {
    font-size: 0.85rem;
    color: #fff;
    font-weight: 700;
}
.btma-action__body small {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}
html[data-theme="light"] .btma-action {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .btma-action__body strong { color: #1a1a1a; }
html[data-theme="light"] .btma-action__body small { color: #666; }

/* ── Recent orders ── */
.btma-recent {
    padding: 18px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.btma-orders-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.btma-order {
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
}
.btma-order:hover {
    background: rgba(108, 99, 255, 0.05);
    border-color: rgba(108, 99, 255, 0.2);
}
.btma-order__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.btma-order__num { display: inline-flex; align-items: center; gap: 4px; font-size: 0.95rem; }
.btma-order__hash { color: #6c63ff; font-weight: 700; }
.btma-order__num strong { color: #fff; font-weight: 800; }

.btma-order__status {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
}
.btma-order__status--completed   { background: rgba(74, 222, 128, 0.14); color: #4ade80; border-color: rgba(74, 222, 128, 0.3); }
.btma-order__status--processing  { background: rgba(96, 165, 250, 0.14); color: #60a5fa; border-color: rgba(96, 165, 250, 0.3); }
.btma-order__status--on-hold     { background: rgba(251, 191, 36, 0.14); color: #fbbf24; border-color: rgba(251, 191, 36, 0.3); }
.btma-order__status--pending     { background: rgba(168, 85, 247, 0.14); color: #c084fc; border-color: rgba(168, 85, 247, 0.3); }
.btma-order__status--cancelled,
.btma-order__status--failed,
.btma-order__status--refunded    { background: rgba(248, 113, 113, 0.14); color: #f87171; border-color: rgba(248, 113, 113, 0.3); }

.btma-order__body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.btma-order__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
}
.btma-order__total strong { color: #00e0f0; font-weight: 700; }

.btma-order__actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}
.btma-order__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(108, 99, 255, 0.1);
    color: #a5a0ff;
    border: 1px solid rgba(108, 99, 255, 0.25);
    cursor: pointer;
    transition: all 0.2s ease;
}
.btma-order__btn:hover {
    background: rgba(108, 99, 255, 0.2);
    color: #fff;
    transform: translateY(-1px);
}
.btma-order__btn--invoice {
    background: rgba(0, 224, 240, 0.08);
    color: #00e0f0;
    border-color: rgba(0, 224, 240, 0.25);
}
.btma-order__btn--invoice:hover {
    background: rgba(0, 224, 240, 0.18);
    color: #fff;
}
.btma-order__btn--email {
    background: rgba(74, 222, 128, 0.08);
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.25);
}
.btma-order__btn--email:hover {
    background: rgba(74, 222, 128, 0.18);
    color: #fff;
}
.btma-order__btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btma-order__btn.is-success {
    background: rgba(74, 222, 128, 0.25) !important;
    color: #4ade80 !important;
    border-color: rgba(74, 222, 128, 0.5) !important;
}
.btma-order__btn.is-error {
    background: rgba(248, 113, 113, 0.2) !important;
    color: #f87171 !important;
    border-color: rgba(248, 113, 113, 0.5) !important;
}

html[data-theme="light"] .btma-recent {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .btma-order {
    background: #fafafa;
    border-color: rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .btma-order__num strong { color: #1a1a1a; }
html[data-theme="light"] .btma-order__meta { color: #555; }
html[data-theme="light"] .btma-order__total strong { color: #6c63ff; }

/* ── Empty state ── */
.btma-empty {
    text-align: center;
    padding: 40px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}
.btma-empty__icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.6;
}
.btma-empty h4 {
    font-size: 1.05rem;
    color: #fff;
    margin: 0 0 6px;
    font-weight: 700;
}
.btma-empty p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0 0 16px;
}
.btma-empty__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6c63ff, #00e0f0);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}
.btma-empty__btn:hover { transform: translateY(-1px); }

html[data-theme="light"] .btma-empty h4 { color: #1a1a1a; }
html[data-theme="light"] .btma-empty p { color: #666; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .btma-stats { grid-template-columns: repeat(2, 1fr); }
    .btma-actions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .btma-welcome {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .btma-welcome__action { width: 100%; }
    .btma-logout { width: 100%; justify-content: center; }
    .btma-order__head { flex-wrap: wrap; gap: 8px; }
    .btma-order__body { flex-direction: column; align-items: stretch; }
    .btma-order__actions { width: 100%; justify-content: stretch; }
    .btma-order__btn { flex: 1; justify-content: center; }
}


/* ═══════════════════════════════════════════════════════════════
   MY ACCOUNT — GLOBAL COMPACT STYLES
   All WC sub-pages (orders, addresses, referral, loyalty, etc.)
   get tighter spacing, smaller fonts, and cleaner look.
═══════════════════════════════════════════════════════════════ */

/* ── Base typography inside my-account content ── */
.woocommerce-account .woocommerce-MyAccount-content {
    font-size: 0.82rem;
    line-height: 1.55;
}
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: #fff;
}
.woocommerce-account .woocommerce-MyAccount-content h4 {
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
}
.woocommerce-account .woocommerce-MyAccount-content p {
    font-size: 0.8rem;
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.75);
}
html[data-theme="light"] .woocommerce-account .woocommerce-MyAccount-content h2,
html[data-theme="light"] .woocommerce-account .woocommerce-MyAccount-content h3,
html[data-theme="light"] .woocommerce-account .woocommerce-MyAccount-content h4 {
    color: #1a1a1a;
}
html[data-theme="light"] .woocommerce-account .woocommerce-MyAccount-content p {
    color: #555;
}

/* ── Tables (orders list, downloads) ── */
.woocommerce-account .woocommerce-MyAccount-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}
.woocommerce-account .woocommerce-MyAccount-content table th {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}
.woocommerce-account .woocommerce-MyAccount-content table td {
    padding: 10px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    color: rgba(255, 255, 255, 0.85);
}
.woocommerce-account .woocommerce-MyAccount-content table tr:hover td {
    background: rgba(108, 99, 255, 0.03);
}
html[data-theme="light"] .woocommerce-account .woocommerce-MyAccount-content table th {
    color: #888;
    border-color: rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .woocommerce-account .woocommerce-MyAccount-content table td {
    color: #333;
    border-color: rgba(0, 0, 0, 0.05);
}

/* ── Buttons inside my-account ── */
.woocommerce-account .woocommerce-MyAccount-content .button,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-button,
.woocommerce-account .woocommerce-MyAccount-content a.button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(108, 99, 255, 0.1);
    color: #a5a0ff;
    border: 1px solid rgba(108, 99, 255, 0.25);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.woocommerce-account .woocommerce-MyAccount-content .button:hover,
.woocommerce-account .woocommerce-MyAccount-content a.button:hover {
    background: rgba(108, 99, 255, 0.2);
    color: #fff;
}

/* ── Forms (edit account, edit address) ── */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-form,
.woocommerce-account .woocommerce-MyAccount-content form {
    max-width: 100%;
}
.woocommerce-account .woocommerce-MyAccount-content .form-row {
    margin-bottom: 12px;
}
.woocommerce-account .woocommerce-MyAccount-content .form-row label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
    display: block;
}
.woocommerce-account .woocommerce-MyAccount-content .form-row input[type="text"],
.woocommerce-account .woocommerce-MyAccount-content .form-row input[type="email"],
.woocommerce-account .woocommerce-MyAccount-content .form-row input[type="tel"],
.woocommerce-account .woocommerce-MyAccount-content .form-row input[type="password"],
.woocommerce-account .woocommerce-MyAccount-content .form-row select,
.woocommerce-account .woocommerce-MyAccount-content .form-row textarea {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    transition: border-color 0.2s;
}
.woocommerce-account .woocommerce-MyAccount-content .form-row input:focus,
.woocommerce-account .woocommerce-MyAccount-content .form-row select:focus,
.woocommerce-account .woocommerce-MyAccount-content .form-row textarea:focus {
    border-color: #6c63ff;
    outline: none;
}
html[data-theme="light"] .woocommerce-account .woocommerce-MyAccount-content .form-row label {
    color: #555;
}
html[data-theme="light"] .woocommerce-account .woocommerce-MyAccount-content .form-row input,
html[data-theme="light"] .woocommerce-account .woocommerce-MyAccount-content .form-row select,
html[data-theme="light"] .woocommerce-account .woocommerce-MyAccount-content .form-row textarea {
    background: #f8f9fa;
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

/* ── Addresses section ── */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address h3 {
    font-size: 0.82rem;
    margin: 0;
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address address {
    font-size: 0.78rem;
    font-style: normal;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* ── Order detail / tracking timeline ── */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-order-details {
    font-size: 0.8rem;
}
.woocommerce-account .woocommerce-MyAccount-content .order-info,
.woocommerce-account .woocommerce-MyAccount-content .order-again {
    font-size: 0.78rem;
}

/* ── Referral / Loyalty / Custom plugin sections ── */
.woocommerce-account .woocommerce-MyAccount-content .bt-referral-wrap,
.woocommerce-account .woocommerce-MyAccount-content .bt-loyalty-wrap,
.woocommerce-account .woocommerce-MyAccount-content [class*="referral"],
.woocommerce-account .woocommerce-MyAccount-content [class*="loyalty"] {
    font-size: 0.8rem;
}
.woocommerce-account .woocommerce-MyAccount-content [class*="referral"] h2,
.woocommerce-account .woocommerce-MyAccount-content [class*="referral"] h3,
.woocommerce-account .woocommerce-MyAccount-content [class*="loyalty"] h2,
.woocommerce-account .woocommerce-MyAccount-content [class*="loyalty"] h3 {
    font-size: 0.95rem;
}

/* ── Order tracking page (timeline dots + labels) ── */
.woocommerce-account .woocommerce-MyAccount-content .bto-timeline,
.woocommerce-account .woocommerce-MyAccount-content [class*="timeline"],
.woocommerce-account .woocommerce-MyAccount-content [class*="tracking"] {
    font-size: 0.78rem;
}

/* ── Notices / alerts ── */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error {
    font-size: 0.8rem;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 14px;
}

/* ── Pagination ── */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-pagination {
    margin-top: 16px;
    font-size: 0.78rem;
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-pagination a,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-pagination span {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
}

/* ── Compact spacing for all sections ── */
.woocommerce-account .woocommerce-MyAccount-content > *:first-child {
    margin-top: 0;
}
.woocommerce-account .woocommerce-MyAccount-content section,
.woocommerce-account .woocommerce-MyAccount-content > div {
    margin-bottom: 16px;
}

/* ── Responsive for content area ── */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════════════════════════════════
   HIDE BLANK/EMPTY LOADING PLACEHOLDER BOXES
   (The gray rectangles at top of content area)
═══════════════════════════════════════════════════════════════ */
.woocommerce-account .woocommerce-MyAccount-content > .blockUI,
.woocommerce-account .woocommerce-MyAccount-content > .loader,
.woocommerce-account .woocommerce-MyAccount-content > [class*="loading"],
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-notices-wrapper:empty,
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper:empty {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   ACCOUNT DETAILS FORM — 2-column compact layout
   (First name / Last name / Display name / Email / Passwords)
═══════════════════════════════════════════════════════════════ */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm,
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm,
.woocommerce-account .woocommerce-MyAccount-content form.edit-account {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    align-items: start;
}
/* First name = left, Last name = right (already have form-row-first / form-row-last) */
.woocommerce-account .woocommerce-EditAccountForm .form-row-first {
    grid-column: 1;
}
.woocommerce-account .woocommerce-EditAccountForm .form-row-last {
    grid-column: 2;
}
/* Display name + Email → side by side (each takes one column) */
.woocommerce-account .woocommerce-EditAccountForm .form-row-wide {
    grid-column: auto; /* let them flow into 2-col grid naturally */
}
/* Password fieldset + save button → full width */
.woocommerce-account .woocommerce-EditAccountForm fieldset,
.woocommerce-account .woocommerce-EditAccountForm .clear,
.woocommerce-account .woocommerce-EditAccountForm > p:last-of-type {
    grid-column: 1 / -1;
}
/* Hide the .clear divs (they break grid flow) */
.woocommerce-account .woocommerce-EditAccountForm .clear {
    display: none;
}
/* Compact form row spacing */
.woocommerce-account .woocommerce-EditAccountForm .woocommerce-form-row {
    margin-bottom: 0;
}
.woocommerce-account .woocommerce-EditAccountForm .woocommerce-form-row label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
    display: block;
}
.woocommerce-account .woocommerce-EditAccountForm .woocommerce-form-row input {
    width: 100%;
    padding: 9px 12px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    transition: border-color 0.2s;
}
.woocommerce-account .woocommerce-EditAccountForm .woocommerce-form-row input:focus {
    border-color: #6c63ff;
    outline: none;
}
.woocommerce-account .woocommerce-EditAccountForm .woocommerce-form-row em,
.woocommerce-account .woocommerce-EditAccountForm .woocommerce-form-row span em {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    display: block;
    margin-top: 3px;
}
/* Password fieldset compact */
.woocommerce-account .woocommerce-EditAccountForm fieldset {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 16px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.02);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}
.woocommerce-account .woocommerce-EditAccountForm fieldset legend {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    padding: 0 8px;
    grid-column: 1 / -1;
}
/* Inside fieldset: current password full-width, new + confirm side by side */
.woocommerce-account .woocommerce-EditAccountForm fieldset .form-row:first-of-type {
    grid-column: 1 / -1;
}
/* Save button */
.woocommerce-account .woocommerce-EditAccountForm > p:last-of-type {
    margin-top: 8px;
}
.woocommerce-account .woocommerce-EditAccountForm button[type="submit"],
.woocommerce-account .woocommerce-EditAccountForm input[type="submit"] {
    padding: 10px 28px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 8px;
    background: linear-gradient(135deg, #6c63ff, #4f46e5);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.woocommerce-account .woocommerce-EditAccountForm button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

html[data-theme="light"] .woocommerce-account .woocommerce-EditAccountForm fieldset {
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.02);
}
html[data-theme="light"] .woocommerce-account .woocommerce-EditAccountForm fieldset legend {
    color: #333;
}
html[data-theme="light"] .woocommerce-account .woocommerce-EditAccountForm .woocommerce-form-row label {
    color: #555;
}
html[data-theme="light"] .woocommerce-account .woocommerce-EditAccountForm .woocommerce-form-row input {
    background: #f8f9fa;
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}
html[data-theme="light"] .woocommerce-account .woocommerce-EditAccountForm .woocommerce-form-row em {
    color: #888;
}

/* ═══════════════════════════════════════════════════════════════
   ORDER TRACKING PAGE — compact timeline + order cards
═══════════════════════════════════════════════════════════════ */
.woocommerce-account .woocommerce-MyAccount-content [class*="order-tracking"],
.woocommerce-account .woocommerce-MyAccount-content [class*="bto-"] {
    font-size: 0.8rem;
}

/* Order card */
.woocommerce-account .woocommerce-MyAccount-content [class*="bto-order-card"],
.woocommerce-account .woocommerce-MyAccount-content [class*="bto-card"] {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 12px;
}

/* Timeline steps */
.woocommerce-account .woocommerce-MyAccount-content [class*="timeline__step"],
.woocommerce-account .woocommerce-MyAccount-content [class*="bto-step"] {
    font-size: 0.72rem;
}
.woocommerce-account .woocommerce-MyAccount-content [class*="timeline__dot"],
.woocommerce-account .woocommerce-MyAccount-content [class*="bto-dot"] {
    width: 28px;
    height: 28px;
}
.woocommerce-account .woocommerce-MyAccount-content [class*="timeline__label"],
.woocommerce-account .woocommerce-MyAccount-content [class*="bto-label"] {
    font-size: 0.68rem;
    margin-top: 4px;
}

/* Order items inside tracking */
.woocommerce-account .woocommerce-MyAccount-content [class*="bto-item"],
.woocommerce-account .woocommerce-MyAccount-content [class*="bto-product"] {
    font-size: 0.78rem;
    padding: 8px 10px;
}

/* ═══════════════════════════════════════════════════════════════
   LOYALTY POINTS — compact card
═══════════════════════════════════════════════════════════════ */
.woocommerce-account .woocommerce-MyAccount-content [class*="loyalty-balance"],
.woocommerce-account .woocommerce-MyAccount-content [class*="points-balance"],
.woocommerce-account .woocommerce-MyAccount-content [class*="bt-loyalty"] {
    padding: 16px 20px;
    border-radius: 10px;
    text-align: center;
}
.woocommerce-account .woocommerce-MyAccount-content [class*="loyalty-balance"] h2,
.woocommerce-account .woocommerce-MyAccount-content [class*="points-balance"] h2 {
    font-size: 1.8rem;
    margin: 6px 0;
}
.woocommerce-account .woocommerce-MyAccount-content [class*="loyalty"] [class*="history"] h3,
.woocommerce-account .woocommerce-MyAccount-content [class*="loyalty"] [class*="history"] h4 {
    font-size: 0.88rem;
}

/* ═══════════════════════════════════════════════════════════════
   REFERRAL PROGRAM — compact
═══════════════════════════════════════════════════════════════ */
.woocommerce-account .woocommerce-MyAccount-content [class*="referral"] {
    font-size: 0.8rem;
}
.woocommerce-account .woocommerce-MyAccount-content [class*="referral-code"],
.woocommerce-account .woocommerce-MyAccount-content [class*="share-link"] {
    font-size: 0.78rem;
    padding: 8px 12px;
}

/* ═══════════════════════════════════════════════════════════════
   ADDRESSES PAGE — compact headings + text
═══════════════════════════════════════════════════════════════ */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address-title h3,
.woocommerce-account .woocommerce-MyAccount-content .col-1 h2,
.woocommerce-account .woocommerce-MyAccount-content .col-2 h2,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-column__title {
    font-size: 0.9rem !important;
    font-weight: 700;
    margin-bottom: 8px;
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses address,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address address {
    font-size: 0.78rem;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   ORDERS LIST — compact table rows
═══════════════════════════════════════════════════════════════ */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table td {
    padding: 8px 10px;
    font-size: 0.78rem;
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a {
    padding: 5px 10px;
    font-size: 0.7rem;
    margin: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   VIEW ORDER PAGE — compact details
═══════════════════════════════════════════════════════════════ */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-order-details__title,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-column__title {
    font-size: 0.9rem;
    font-weight: 700;
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details td,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details th {
    padding: 8px 10px;
    font-size: 0.78rem;
}
