/* Account Navigation */
.wtd-account-wrapper {
    max-width: 1200px;
    display: grid;
    align-items: start;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
}

@media screen and (max-width: 1024px) {
    .wtd-account-wrapper {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.wtd-account-wrapper h2,
.wtd-account-wrapper h3 {
    margin-top: 0;
    font-family: var(--family-heading);
    letter-spacing: 0;
    font-weight: bold;
}

.wtd-account-wrapper h2 {
    font-size: 1.5rem;
}

.wtd-account-wrapper h3 {
    font-size: 1.25rem;
    margin-bottom: 0;
}


.wtd-account-wrapper {
    font-family: var(--family-body);
    font-weight: 400;
}

.wtd-account-navigation {
    margin-bottom: 2rem;
    position: sticky;
    top: 2rem;
}

@media screen and (max-width: 1024px) {
    .wtd-account-navigation {
        position: static;
        margin-bottom: 1rem;
    }
}

.wtd-account-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--wtd-white);
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.wtd-account-nav-item {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    color: var(--wtd-stone);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.wtd-account-nav-item:hover {
    color: var(--wtd-charcoal);
    background: var(--wtd-parchment-50);
    text-decoration: none;
}

.wtd-account-nav-item.active {
    background: #8E8C8A; /* OS 26-Jun changed the color */
    color: var(--wtd-white);
}

/* Account Content Area */
.wtd-account-content {
    background: var(--wtd-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@media screen and (max-width: 1024px) {
    .wtd-account-content {
        padding: 16px;
    }
}

.wtd-account-content h2 {
    margin-bottom: 1rem;
}

/* Tooltips */
.status-pre_authorized { 
    background: #e5e7eb; 
    color: #374151; 
}

.wtd-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 4px;
    border: 2px solid #374151;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spinner 1s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.wtd-tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 4px;
}

.wtd-tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #374151;
    color: white;
    font-size: 11px;
    cursor: help;
}

.wtd-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    width: 240px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 100;
}

.wtd-tooltip h4 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #1d2327;
}

.wtd-tooltip p {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #4b5563;
}

.wtd-tooltip-wrapper:hover .wtd-tooltip {
    visibility: visible;
    opacity: 1;
}

/* Add a small arrow to the tooltip */
.wtd-tooltip:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

/* Dashboard Grid Layout */
.wtd-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

@media screen and (max-width: 1024px) {
    .wtd-dashboard-grid {
        gap: 16px;
    }
}

.wtd-dashboard-section {
    background: var(--wtd-parchment-50);
    padding: 24px;
    border-radius: 15px;
}

@media screen and (max-width: 1024px) {
    .wtd-dashboard-section {
        padding: 16px;
    }
}

.wtd-welcome-section {
    grid-column: 1 / -1;
}



/* Stats Grid */
.wtd-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.wtd-stat-item {
    padding: 1rem;
    background: var(--wtd-white);
    border-radius: 10px;
}

.wtd-stat-label {
    display: block;
    color: var(--wtd-stone);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.wtd-stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--wtd-charcoal);
}

/* Activity List */
.wtd-activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wtd-activity-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--wtd-parchment);
}

.wtd-activity-item:last-child {
    border-bottom: none;
}

.wtd-activity-date {
    color: var(--wtd-stone);
    font-size: 0.9rem;
}

.wtd-activity-type {
    font-weight: 500;
}

.wtd-activity-amount {
    font-weight: 500;
    color: var(--wtd-charcoal);
}

/* Subscription Details */
.wtd-subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.wtd-subscription-info {
    background: var(--wtd-parchment-50);
    padding: 2rem;
    border-radius: 15px;
}

.wtd-info-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--wtd-parchment);
}

.wtd-info-item:last-child {
    border-bottom: none;
}

.wtd-info-label {
    color: var(--wtd-stone);
}

.wtd-info-value {
    font-weight: 500;
    color: var(--wtd-charcoal);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .wtd-account-nav {
        flex-direction: column;
        border-radius: 15px;
    }

    .wtd-account-nav-item {
        text-align: center;
    }

    .wtd-activity-item {
        grid-template-columns: 1fr auto;
        gap: 0.5rem;
    }

    .wtd-activity-date {
        grid-column: 1;
        grid-row: 2;
    }

    .wtd-activity-type {
        grid-column: 1;
        grid-row: 1;
    }

    .wtd-activity-amount {
        grid-column: 2;
        grid-row: 1;
    }

    .wtd-activity-status {
        grid-column: 2;
        grid-row: 2;
    }
}

/* Subscription Overview */
.wtd-subscription-overview {
    background: var(--wtd-white);
}

.wtd-subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.wtd-subscription-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.wtd-label {
    display: block;
    color: var(--wtd-stone);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.wtd-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--wtd-charcoal);
}

.wtd-text-link {
    color: var(--wtd-charcoal);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.wtd-text-link:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.wtd-text-link:hover:after {
    transform: scaleX(1);
}

/* Activity Section Updates */
.wtd-activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .wtd-upgrade-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .wtd-subscription-summary {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Account Page Layout */
.wtd-account-page {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: var(--family-body);
}

@media screen and (max-width: 1024px) {
    .wtd-account-page {
        padding: 0;
        margin-top: 0;
    }
}

/* Upgrade Banner */
.wtd-upgrade-banner {
    background: var(--wtd-white);
    margin: 2rem auto;
    padding: 1.5rem;
    border-radius: 15px;
}

.wtd-upgrade-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.wtd-upgrade-message h3 {
    margin: 0 0 0.5rem;
    font-family: var(--family-heading);
    font-size: 1.25rem;
    color: var(--wtd-black);
}

.wtd-upgrade-message p {
    margin: 0;
    color: var(--wtd-charcoal);
}

/* Account Wrapper (Navigation and Content) */
.wtd-account-wrapper {
    display: grid;
    align-items: start;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
}

@media screen and (max-width: 1024px) {
    .wtd-account-wrapper {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Rest of your existing CSS... */

/* Add this to your existing account.css styles */
.wtd-account-nav-divider {
    border-top: 1px solid var(--wtd-parchment);
}

/* Add these styles to your existing account.css */

/* Subscribe Banner */
.wtd-subscribe-banner {
    background: var(--wtd-black);
    margin: 2rem auto;
    padding: 1.5rem;
    border-radius: 15px;
    color: var(--wtd-white);
}

@media screen and (max-width: 1024px) {
    .wtd-subscribe-banner {
        margin-top: 0;
    }
}

.wtd-subscribe-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.wtd-subscribe-message h3 {
    margin: 0 0 0.5rem;
    font-family: var(--family-heading);
    font-size: 1.25rem;
    color: var(--wtd-white);
}

.wtd-subscribe-message p {
    margin: 0;
    color: var(--wtd-parchment);
}

.wtd-subscribe-banner .wtd-button-primary {
    background: var(--wtd-white);
    color: var(--wtd-black);
}

.wtd-subscribe-banner .wtd-button-primary:hover {
    background: var(--wtd-parchment);
    color: var(--wtd-black);
}

/* Hide redundant "My Account" heading - JavaScript will handle text-based hiding */
.woocommerce-MyAccount-content h1,
.woocommerce-MyAccount-content h2:first-child,
.wtd-account-page h1:first-child,
.wtd-account-page h2:first-child,
.pmpro_section_title:first-of-type,
#pmpro_account-profile h2.pmpro_section_title:first-child,
.entry-content > h1:first-child,
.entry-content > h2:first-child {
    display: none !important;
}

/* Update responsive styles */
@media screen and (max-width: 768px) {
    .wtd-upgrade-banner-content,
    .wtd-subscribe-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Temporary visibility for debugging */
.wtd-hidden-my-account {
    display: none !important;
}

/* Notice Styles */
.wtd-notice {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 15px;
    position: relative;
    animation: slideDown 0.3s ease-out;
}

.wtd-notice-content h3 {
    margin: 0 0 0.5rem;
    font-family: var(--family-heading);
    font-size: 1.25rem;
}

.wtd-notice-content p {
    margin: 0;
}

.wtd-notice-success {
    background: var(--wtd-parchment-50);
    border: 1px solid var(--wtd-parchment);
}

.wtd-notice-error {
    background: #fff2f2;
    border: 1px solid #ffdbdb;
}

.wtd-notice-dismiss {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--wtd-stone);
    transition: color 0.2s ease;
}

.wtd-notice-dismiss:hover {
    color: var(--wtd-charcoal);
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

