/**
 * CDC My Account Shortcodes - Base Styles
 * Mobile-first responsive styles for Avada integration
 * 
 * Color palette:
 * - Primary: var(--h3_typography-color) (theme primary)
 * - Success: #28a745
 * - Warning: #ffc107
 * - Danger: #dc3545
 * - Gray: #6c757d
 */

/* ==========================================================================
   Base Styles & Common Elements
   ========================================================================== */

.myacct-login-required,
.myacct-fallback {
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 1rem 0;
}

.myacct-login-required .button,
.myacct-fallback .button {
    display: inline-block;
    margin-top: 1rem;
}

/* Clickable boxes */
[data-href] {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-href]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Header Section [myacct_header]
   ========================================================================== */

.myacct-header {
    background: linear-gradient(135deg, var(--h3_typography-color) 0%, #A0522D 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.myacct-header__greeting h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.myacct-header__info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.myacct-header__membership,
.myacct-header__points {
    flex: 1;
    min-width: 200px;
}

.myacct-header__membership .label,
.myacct-header__points .label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.3rem;
}

.myacct-header__membership .value,
.myacct-header__points .value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
}

.myacct-header__membership .expiry {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.myacct-header .status-active {
    color: #90EE90;
}

.myacct-header .status-expiring {
    color: #FFD700;
    font-weight: 600;
}

.myacct-header .status-expired {
    color: #FF6B6B;
    font-weight: 600;
}

.myacct-header .status-unknown {
    opacity: 0.7;
    font-style: italic;
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin-left: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 12px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

.badge-danger:hover {
    background-color: #c82333;
    color: white;
    text-decoration: none;
    transform: scale(1.05);
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .myacct-header {
        padding: 1.5rem;
    }

    .myacct-header__greeting h2 {
        font-size: 1.5rem;
    }

    .myacct-header__info {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ==========================================================================
   Events Section [myacct_events]
   ========================================================================== */

.myacct-events {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    margin-bottom: 2rem;
}

.myacct-events h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.4rem;
    color: #333;
}

.myacct-events__event {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.myacct-events__event:hover {
    border-color: var(--h3_typography-color);
    background: #fff;
}

.myacct-events__event .event-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--h3_typography-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.myacct-events__event .event-details {
    flex: 1;
}

.myacct-events__event .event-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: #333;
}

.myacct-events__event .event-datetime {
    margin: 0 0 1rem 0;
    color: #6c757d;
    font-size: 0.95rem;
}

.myacct-events__event .event-link {
    color: var(--h3_typography-color);
    font-weight: 600;
    text-decoration: none;
}

.myacct-events__event .event-link:hover {
    text-decoration: underline;
}

.myacct-events__all-link {
    margin-top: 1rem;
    text-align: center;
}

.myacct-events__all-link a {
    color: var(--h3_typography-color);
    font-weight: 600;
}

.myacct-events__empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #6c757d;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .myacct-events {
        padding: 1.5rem;
    }

    .myacct-events__event {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .myacct-events__event .event-icon {
        margin: 0 auto;
    }
}

/* Events participation counter */
.myacct-events__participation {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #856404;
}

.myacct-events__participation p {
    margin: 0;
    font-weight: 500;
}

.myacct-events__participation .participation-link {
    color: inherit;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.myacct-events__participation .participation-link:hover {
    color: #664d03;
    text-decoration: underline;
}

/* Upcoming events link */
.myacct-events__upcoming-link {
    text-align: center;
    margin: 1.5rem 0 0 0;
}

.myacct-events__upcoming-link a {
    color: var(--h3_typography-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.myacct-events__upcoming-link a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Events All Section [myacct_events_all]
   ========================================================================== */

.myacct-events-all {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.myacct-events-all h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.8rem;
    color: #333;
}

.myacct-events-all__stats {
    background: linear-gradient(135deg, var(--h3_typography-color) 0%, #A0522D 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.myacct-events-all__stats p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.myacct-events-all__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--h3_typography-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.event-item:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.15);
    transform: translateX(4px);
}

.event-item__date {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: var(--h3_typography-color);
    color: white;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
}

.event-item__date .event-date {
    font-size: 0.95rem;
    line-height: 1.2;
}

.event-item__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-item__title {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: #333;
}

.event-item__title a {
    color: inherit;
    text-decoration: none;
}

.event-item__title a:hover {
    color: var(--h3_typography-color);
}

.event-item__link {
    color: var(--h3_typography-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
}

.event-item__link:hover {
    text-decoration: underline;
}

.myacct-events-all__empty {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
}

.myacct-events-all__empty p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.myacct-events-all__empty a {
    color: var(--h3_typography-color);
    font-weight: 600;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .myacct-events-all h2 {
        font-size: 1.4rem;
    }

    .event-item {
        flex-direction: column;
        gap: 1rem;
    }

    .event-item__date {
        width: 100%;
        height: auto;
        padding: 1rem;
    }

    .event-item__date .event-date {
        font-size: 1rem;
    }
}

/* ==========================================================================
   Membership Section [myacct_membership]
   ========================================================================== */

.myacct-membership {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    margin-bottom: 2rem;
}

.myacct-membership h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.4rem;
    color: #333;
}

.myacct-membership__success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.myacct-membership__success .icon {
    font-size: 1.5rem;
    color: #28a745;
}

.myacct-membership__success strong {
    color: #155724;
}

.myacct-membership__content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.membership-section {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--h3_typography-color);
}

.membership-section h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.membership-label {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--h3_typography-color);
    margin: 0;
}

.membership-expiry {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.membership-empty {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
}

.membership-message {
    font-size: 0.95rem;
    color: #333;
    margin: 0.5rem 0 0 0;
    line-height: 1.5;
}

/* Badge styling in membership context */
.membership-section .badge {
    display: inline-block;
    margin-bottom: 0.75rem;
}

.membership-section .badge-success {
    background-color: #28a745;
    color: white;
}

.membership-section .badge-danger {
    background-color: #dc3545;
    color: white;
    text-decoration: none;
}

.membership-section .badge-danger:hover {
    background-color: #c82333;
    color: white;
}

.myacct-membership__cta {
    text-align: center;
}

.button-primary {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: var(--h3_typography-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-primary:hover {
    background: #A0522D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .myacct-membership {
        padding: 1.5rem;
    }

    .myacct-membership__content {
        flex-direction: column;
        text-align: center;
    }

    .membership-icon {
        margin: 0 auto;
    }
}

/* ==========================================================================
   Rewards Section [myacct_rewards]
   ========================================================================== */

.myacct-rewards {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    margin-bottom: 2rem;
}

.myacct-rewards h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.4rem;
    color: #333;
}

.myacct-rewards--empty {
    text-align: center;
    color: #6c757d;
}

.myacct-rewards--empty .empty-message {
    font-size: 1.1rem;
}

.myacct-rewards__items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.reward-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.reward-item:hover {
    border-color: var(--h3_typography-color);
    background: white;
}

.reward-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--h3_typography-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.reward-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.reward-label {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.3rem;
}

.reward-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--h3_typography-color);
}

.myacct-rewards__info-link {
    text-align: center;
    margin: 0;
}

.myacct-rewards__info-link a {
    color: var(--h3_typography-color);
    font-weight: 600;
}

/* YITH Points & Rewards summary (inside myacct_rewards) */
.myacct-rewards__points {
    margin-top: 1.5rem;
}

.myacct-rewards .ywpar-wrapper>h2 {
    display: none;
}

.myacct-rewards .ywpar-wrapper #ywpar_tabs {
    display: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .myacct-rewards {
        padding: 1.5rem;
    }

    .myacct-rewards__items {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Account Section [myacct_account]
   ========================================================================== */

.myacct-account {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    margin-bottom: 2rem;
}

.myacct-account h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.4rem;
    color: #333;
}

/* Accordion styles */
.myacct-accordion {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

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

.accordion-header {
    width: 100%;
    padding: 1.2rem;
    background: #f8f9fa;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-header[aria-expanded="true"] {
    background: var(--h3_typography-color);
    color: white;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 1.5rem;
    background: white;
}

/* Personal data display */
.personal-data .data-row {
    display: flex;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.personal-data .data-row:last-of-type {
    border-bottom: none;
}

.personal-data .data-label {
    flex: 0 0 120px;
    font-weight: 600;
    color: #6c757d;
}

.personal-data .data-value {
    flex: 1;
    color: #333;
}

.personal-data .data-note {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9rem;
    color: #6c757d;
}

.personal-data .data-note a.button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.7rem 1.5rem;
    background: var(--h3_typography-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.personal-data .data-note a.button:hover {
    background: #A0522D;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.2);
}

/* Change password & logout sections */
.change-password,
.logout {
    text-align: center;
}

.change-password p,
.logout p {
    margin: 0 0 1rem 0;
}

/* Buttons */
.button,
.button-secondary {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.button {
    background: var(--h3_typography-color);
    color: white;
}

.button:hover {
    background: #A0522D;
}

.button-secondary {
    background: #6c757d;
    color: white;
}

.button-secondary:hover {
    background: #5a6268;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .myacct-account {
        padding: 1.5rem;
    }

    .accordion-header {
        padding: 1rem;
        font-size: 1rem;
    }

    .accordion-content {
        padding: 1rem;
    }

    .personal-data .data-row {
        flex-direction: column;
        gap: 0.3rem;
    }

    .personal-data .data-label {
        flex: none;
    }
}

/* ==========================================================================
   Orders Section [myacct_orders]
   ========================================================================== */

.myacct-orders {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    margin-bottom: 2rem;
}

.myacct-orders h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.4rem;
    color: #333;
}

.myacct-orders--empty {
    text-align: center;
    color: #6c757d;
}

.myacct-orders--empty .empty-message {
    font-size: 1.1rem;
    margin: 1rem 0;
}

/* Orders Summary */
.myacct-orders__summary {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.summary-item {
    flex: 1;
    min-width: 150px;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--h3_typography-color);
    text-align: center;
}

.summary-item--unpaid {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.summary-label {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--h3_typography-color);
}

.summary-item--unpaid .summary-value {
    color: #dc3545;
}

/* Summary Toggle Button */
.myacct-orders__summary-toggle {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.myacct-orders__summary-toggle:hover {
    opacity: 0.8;
}

.myacct-orders__summary-toggle .myacct-orders__summary {
    margin-bottom: 0;
}

.summary-toggle-icon {
    font-size: 1.5rem;
    color: var(--h3_typography-color);
    transition: transform 0.3s ease;
    margin-left: 1rem;
}

.myacct-orders__summary-toggle[aria-expanded="true"] .summary-toggle-icon {
    transform: rotate(180deg);
}

/* Orders List */
.myacct-orders__list {
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Orders Accordion */
.orders-accordion {
    border: none;
    border-radius: 0;
}

.order-item {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
    border-radius: 0;
}

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

.order-item .accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.2rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    transition: background 0.3s ease;
    flex-wrap: wrap;
    gap: 1rem;
}

.order-item:last-child .accordion-header {
    border-bottom: 1px solid #e0e0e0;
}

.order-item .accordion-header:hover {
    background: #f8f9fa;
}

.order-item .accordion-header[aria-expanded="true"] {
    background: var(--h3_typography-color);
    color: white;
    border-color: var(--h3_typography-color);
}

.order-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    min-width: 100%;
    gap: 1rem;
    flex-wrap: wrap;
}

.order-header-main {
    flex: 1;
    min-width: 200px;
}

.order-number {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.order-date {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 400;
}

.order-item .accordion-header[aria-expanded="true"] .order-date {
    color: rgba(255, 255, 255, 0.8);
}

.order-header-right {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Order Status Badge */
.order-status-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.order-status-pending {
    background: #fff3cd;
    color: #856404;
}

.order-status-processing {
    background: #cfe2ff;
    color: #084298;
}

.order-status-completed {
    background: #d1e7dd;
    color: #0f5132;
}

.order-status-failed {
    background: #f8d7da;
    color: #842029;
}

.order-status-unpaid {
    background: #f8d7da;
    color: #842029;
}

.order-status-pickup {
    background: #28a745;
    color: white;
}

.order-item .accordion-header[aria-expanded="true"] .order-status-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Order Tags */
.order-tag {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: var(--h3_typography-color);
    color: white;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.order-item .accordion-header[aria-expanded="true"] .order-tag {
    background: rgba(255, 255, 255, 0.2);
}

/* Order Total */
.order-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--h3_typography-color);
    min-width: 100px;
    text-align: right;
}

.order-item .accordion-header[aria-expanded="true"] .order-total {
    color: white;
}

/* Order Content */
.order-content {
    padding: 1.5rem;
    background: white;
}

.order-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.order-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.order-section h5 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

/* Order Items Table */
.order-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.order-items-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.order-items-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #333;
}

.order-items-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.order-items-table tbody tr:last-child td {
    border-bottom: none;
}

.qty-cell,
.price-cell {
    text-align: right;
    font-weight: 500;
}

/* Order Summary */
.order-summary {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: none;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-row .summary-label {
    text-transform: none;
    text-align: left;
    color: #6c757d;
}

.summary-row .summary-value {
    font-size: 1rem;
    text-align: right;
}

/* Order Actions */
.order-actions {
    background: #f0f8ff;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--h3_typography-color);
}

.order-action-text {
    margin: 0 0 1rem 0;
    color: #333;
}

.order-actions .button {
    display: inline-block;
    width: auto;
}

/* Load More Orders Button */
.myacct-orders__load-more {
    text-align: center;
    padding: 1.5rem 0 0 0;
}

.load-more-orders {
    background: var(--h3_typography-color);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.load-more-orders:hover {
    background: #A0522D;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.load-more-orders:active {
    transform: translateY(0);
}

.load-more-orders:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .myacct-orders {
        padding: 1.5rem;
    }

    .myacct-orders__summary {
        flex-direction: column;
    }

    .summary-item {
        min-width: 100%;
    }

    .order-header-content {
        min-width: 100%;
        flex-direction: column;
    }

    .order-header-right {
        justify-content: space-between;
        width: 100%;
    }

    .order-total {
        text-align: left;
    }

    .order-items-table {
        font-size: 0.85rem;
    }

    .order-items-table th,
    .order-items-table td {
        padding: 0.5rem;
    }
}

/* ==========================================================================
   WooCommerce My Account Page - My Points Page
   ========================================================================== */

/* Hide sidebar navigation on /my-account/my-points/ page */
.woocommerce-account .woocommerce-MyAccount-navigation {
    display: none !important;
}

/* Make my-points content full width */
.woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    margin: 0 !important;
}

/* Adjust my-points container padding */
.woocommerce-account .woocommerce-MyAccount-content .ywpar-wrapper {
    max-width: 100%;
}

/* ==========================================================================
   Dashicons Fallback (if not loaded)
   ========================================================================== */

.dashicons {
    display: inline-block;
    width: 1em;
    height: 1em;
    font-size: inherit;
    vertical-align: middle;
}