/**
 * Combined account/auth styles (account tabs, dashboard, social login overrides).
 */

/* === Account Tabs === */
.apc-account-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #1a1a1a;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.apc-account-tab {
    appearance: none;
    border: 0;
    background: #f1f1f1;
    color: #1a1a1a;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 10px 18px;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.apc-account-tab:is(:focus-visible) {
    outline: 2px solid #d50000;
    outline-offset: 2px;
}

.apc-account-tab.is-active {
    background: #d50000;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.apc-account-panels {
    position: relative;
}

.apc-account-panel {
    display: none;
}

.apc-account-panel.is-active {
    display: block;
}

.apc-account-panel[hidden] {
    display: none !important;
}

.apc-account-panel .apc-google-legal-note {
    font-size: 0.9rem;
    color: #555;
    margin: 0 0 16px;
}

.apc-account-panel .apc-google-legal-note a {
    color: #d50000;
    text-decoration: underline;
}

.apc-register-consent {
    display: block;
    margin: 0 0 16px;
}

.apc-register-consent label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
}

.apc-register-consent input[type="checkbox"] {
    margin-top: 4px;
}

.apc-register-consent__hint {
    display: block;
    margin-left: 26px;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #666;
}

/* === Account Dashboard === */
.woocommerce-MyAccount-content > p:first-child:not(.apc-email-copy p) {
    display: none !important;
}

.apc-account-dashboard {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.apc-account-profile-card {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: nowrap;
    background: linear-gradient(135deg, #2b2b2b 0%, #111111 100%);
    color: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
}

.apc-profile-main {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    gap: 20px;
    align-items: center;
    flex-wrap: nowrap;
}

.apc-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 80px;
    border: 2px solid #444;
}

.apc-profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apc-profile-meta {
    display: flex;
    flex-direction: column;
    flex: 1 1 260px;
    min-width: 220px;
    gap: 6px;
}

.apc-profile-meta h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.apc-profile-email {
    margin: 4px 0 12px;
    font-size: 0.95rem;
    color: #bbbbbb;
}

.apc-profile-wallet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 18px;
    margin: 0 0 0 auto;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    flex: 0 1 260px;
    min-width: 220px;
}

.apc-profile-wallet:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.apc-profile-wallet-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffb3b3;
}

.apc-profile-wallet-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

@media (max-width: 1020px) {
    .apc-account-profile-card {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .apc-profile-main {
        width: 100%;
        margin-bottom: 12px;
    }

    .apc-profile-wallet {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
    }
}

.apc-account-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .apc-account-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .apc-account-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.apc-account-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    height: 100%;
    justify-content: center;
}

.apc-account-card:hover {
    border-color: #d50000;
    box-shadow: 0 12px 30px rgba(213, 0, 0, 0.1);
    transform: translateY(-2px);
}

.apc-card-label {
    font-weight: 700;
    font-size: 1.1rem;
    color: #000;
}

.apc-card-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
}

.apc-account-email-section {
    width: 100%;
}

.apc-email-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    background: #f4f4f4;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
    .woocommerce-account .woocommerce-MyAccount-navigation {
        display: none;
    }
}

.apc-email-copy h3 {
    margin: 0 0 8px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #000;
}

.apc-email-copy p {
    margin: 0 0 6px;
    color: #444;
}

.apc-email-status {
    font-weight: 600;
    color: #d50000;
    margin-top: 5px;
}

.apc-email-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.apc-email-optin .button,
.apc-email-btn {
    border-radius: 999px;
    padding: 12px 28px;
    font-weight: 700;
    background-color: #000;
    color: #fff;
    border: none;
    cursor: pointer;
}

.apc-email-btn:hover {
    background-color: #d50000;
}

@media (max-width: 600px) {
    .apc-account-profile-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .apc-account-grid {
        grid-template-columns: 1fr;
    }
}

.woocommerce-MyAccount-content > p:first-of-type,
.woocommerce-MyAccount-content > p:nth-of-type(2) {
    display: none !important;
}

.apc-account-dashboard p {
    display: block !important;
}

/* === Heateor Social Login Overrides === */
.heateor_sl_outer_login_container {
    width: 100%;
    max-width: 100%;
    display: block;
    clear: both;
    margin: 24px 0 24px;
    position: relative;
    z-index: 2;
}

.woocommerce-account .heateor_sl_outer_login_container,
.woocommerce-checkout .heateor_sl_outer_login_container {
    margin-top: 16px;
}

.heateor_sl_outer_login_container > .heateor_sl_title {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    margin: 0 0 20px;
    background: #d50000;
    font-size: 0;
    line-height: 0;
    text-indent: -9999px;
    overflow: hidden;
    display: block;
    color: transparent !important;
    position: relative;
}

.heateor_sl_login_container {
    width: 100%;
    max-width: 100%;
    display: block;
}

.heateor_sl_login_container ul.heateor_sl_login_ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: block !important;
    width: 100%;
}

.heateor_sl_login_container ul.heateor_sl_login_ul li {
    width: 100% !important;
    float: none !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 0 14px 0 !important;
    list-style: none !important;
    clear: both !important;
}

.heateor_sl_login_container ul.heateor_sl_login_ul li:last-child {
    margin-bottom: 0 !important;
}

.heateor_sl_login_container .heateorSlLogin {
    float: none !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.heateor_sl_login_container .heateorSlGoogleLogin {
    width: 100% !important;
    min-height: 52px;
    box-sizing: border-box;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    border-radius: 8px !important;
    padding: 14px 20px !important;
    border: 1px solid #dadce0 !important;
    background-color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15), 0 2px 6px rgba(60, 64, 67, 0.2) !important;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.heateor_sl_login_container .heateorSlGoogleLogin:hover,
.heateor_sl_login_container .heateorSlGoogleLogin:focus {
    box-shadow: 0 4px 12px rgba(60, 64, 67, 0.25) !important;
    transform: translateY(-1px);
}

.heateor_sl_login_container .heateorSlGoogleLoginSvg {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    flex-shrink: 0 !important;
}

.heateor_sl_login_container .apc-google-text {
    display: block;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    text-align: left;
}

.heateor_sl_outer_login_container .apc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
