/* My Account - Modern Design with Spiritual Names Patterns */

/* Override any parent container restrictions */
.woocommerce-account .entry-content,
.woocommerce-account .site-main,
.woocommerce-account .content-area {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.woocommerce-account .entry-content > * {
    max-width: 100% !important;
}

/* Main Container with Bootstrap Grid */
.sn-my-account-container {
    display: flex;
    flex-wrap: wrap;
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    width: 100%;
    box-sizing: border-box;
}

/* Navigation Column - Remove Bootstrap padding and gap */
.sn-navigation-col {
    padding: 0 !important;
    margin: 0 !important;
}

/* Content Column - Remove Bootstrap padding and gap */
.sn-content-col {
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove gap between columns in the row */
.sn-my-account-container .row,
.container .row.g-0 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
}

.sn-my-account-container .row > [class*="col-"],
.container .row.g-0 > [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Navigation Styles - Vertical Sidebar - Override WooCommerce default styles */
.woocommerce-account .woocommerce-MyAccount-navigation {
    float: none !important;
    width: 100% !important;
    min-width: auto !important;
}

.woocommerce-MyAccount-navigation {
    background: linear-gradient(135deg, #4D68B0 0%, #6BABDC 100%);
    padding: 2rem 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    float: none !important;
    min-width: auto !important;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.woocommerce-MyAccount-navigation ul li {
    margin: 0;
    width: 100%;
    min-width: 0;
}

.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 3px solid transparent;
    background: transparent;
    margin: 0;
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.woocommerce-MyAccount-navigation ul li a i {
    font-size: 1.1rem;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #2D3C73 !important;
    border-left-color: rgba(255, 255, 255, 0.5);
}

.woocommerce-MyAccount-navigation ul li a:hover i,
.woocommerce-MyAccount-navigation ul li a:hover span {
    color: #2D3C73 !important;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background: #ffffff;
    color: #4D68B0;
    font-weight: 600;
    border-left-color: #4D68B0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Content Area - Override WooCommerce default styles */
.woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

.woocommerce-MyAccount-content {
    background: #ffffff;
    padding: 2rem;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex: 1;
    min-width: 0;
    float: none !important;
}

/* Ensure all content inside uses full width */
.woocommerce-MyAccount-content > * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Dashboard Header */
.woocommerce-MyAccount-content h1.lead {
    background: #ffffff;
    color: #4D68B0;
    padding: 2rem;
    margin: -2rem -2rem 2rem -2rem;
    border-radius: 15px 15px 0 0;
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Barlow Semi Condensed', sans-serif;
    border-bottom: 2px solid #EDEDED;
}

.woocommerce-MyAccount-content h1.lead strong {
    color: #4D68B0;
    font-weight: 700;
}

/* Dashboard Content */
.sn-dashboard-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.woocommerce-MyAccount-content p {
    color: #707070;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.woocommerce-MyAccount-content p a {
    color: #4D68B0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.woocommerce-MyAccount-content p a:hover {
    color: #6BABDC;
    text-decoration: underline;
}

.woocommerce-MyAccount-content hr {
    border: none;
    border-top: 2px solid #EDEDED;
    margin: 1.5rem 0;
}

/* Info Cards Section */
.sn-account-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.sn-account-card {
    background: #EDEDED;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #4D68B0;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.sn-account-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(77, 104, 176, 0.2);
}

.sn-account-card h3 {
    color: #212529;
    margin: 0 0 0.75rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sn-account-card h3 i {
    color: #4D68B0;
    font-size: 1.5rem;
}

.sn-account-card p {
    color: #707070;
    margin: 0;
    line-height: 1.5;
}

.sn-account-card a {
    color: #4D68B0;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.sn-account-card a:hover {
    color: #6BABDC;
}

/* Orders Table */
.woocommerce-orders-table,
.woocommerce-MyAccount-orders {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.woocommerce-orders-table thead,
.woocommerce-MyAccount-orders thead {
    background: #DAE2F1;
    border-bottom: 2px solid #4D68B0;
}

.woocommerce-orders-table th,
.woocommerce-MyAccount-orders th {
    padding: 0.75rem 1rem;
    text-align: left;
    color: #212529;
    font-weight: 600;
    font-size: 0.9rem;
}

.woocommerce-orders-table td,
.woocommerce-MyAccount-orders td {
    padding: 0.75rem 1rem;
    color: #212529;
    border-bottom: 1px solid #EDEDED;
}

.woocommerce-orders-table tbody tr:hover,
.woocommerce-MyAccount-orders tbody tr:hover {
    background: #f8f9fa;
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a,
.woocommerce-MyAccount-orders .woocommerce-orders-table__cell-order-actions a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #4D68B0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a:hover,
.woocommerce-MyAccount-orders .woocommerce-orders-table__cell-order-actions a:hover {
    background: #2D3C73 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 60, 115, 0.3);
}

/* Buttons */
.woocommerce-button,
.woocommerce .button,
.woocommerce-MyAccount-content .button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #4D68B0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.woocommerce-button:hover,
.woocommerce .button:hover,
.woocommerce-MyAccount-content .button:hover {
    background: #6BABDC;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 104, 176, 0.3);
}

.woocommerce-button.alt,
.woocommerce .button.alt {
    background: #F39200;
}

.woocommerce-button.alt:hover,
.woocommerce .button.alt:hover {
    background: #ffa733;
}

/* Forms */
.woocommerce-MyAccount-content .woocommerce-form-row input[type="text"],
.woocommerce-MyAccount-content .woocommerce-form-row input[type="email"],
.woocommerce-MyAccount-content .woocommerce-form-row input[type="password"],
.woocommerce-MyAccount-content .woocommerce-form-row input[type="tel"],
.woocommerce-MyAccount-content .woocommerce-form-row select,
.woocommerce-MyAccount-content .woocommerce-form-row textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.woocommerce-MyAccount-content .woocommerce-form-row input:focus,
.woocommerce-MyAccount-content .woocommerce-form-row select:focus,
.woocommerce-MyAccount-content .woocommerce-form-row textarea:focus {
    outline: none;
    border-color: #4D68B0;
    box-shadow: 0 0 0 3px rgba(77, 104, 176, 0.1);
}

.woocommerce-MyAccount-content .woocommerce-form-row label {
    color: #212529;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

/* Addresses Section */
.sn-addresses-intro {
    margin-bottom: 2rem;
}

.sn-addresses-description {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #DAE2F1;
    border-left: 4px solid #4D68B0;
    border-radius: 8px;
    color: #212529;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.sn-addresses-description i {
    color: #4D68B0;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Addresses Grid - Override WooCommerce float layout */
.woocommerce-MyAccount-content .sn-addresses-grid,
.woocommerce-MyAccount-content .addresses.col2-set,
.woocommerce-MyAccount-content .woocommerce-Addresses.col2-set,
.woocommerce-MyAccount-content .u-columns.woocommerce-Addresses.col2-set,
.woocommerce-account .sn-addresses-grid,
.woocommerce-account .addresses.col2-set,
.woocommerce-account .woocommerce-Addresses.col2-set,
.woocommerce-account .u-columns.woocommerce-Addresses.col2-set {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
    margin-top: 1.5rem !important;
    align-items: stretch !important;
    width: 100% !important;
    clear: both !important;
}

.woocommerce-MyAccount-content .sn-addresses-grid::before,
.woocommerce-MyAccount-content .sn-addresses-grid::after,
.woocommerce-MyAccount-content .addresses.col2-set::before,
.woocommerce-MyAccount-content .addresses.col2-set::after,
.woocommerce-MyAccount-content .woocommerce-Addresses.col2-set::before,
.woocommerce-MyAccount-content .woocommerce-Addresses.col2-set::after {
    display: none !important;
}

/* Override WooCommerce float styles for address columns */
.woocommerce-MyAccount-content .col2-set .col-1,
.woocommerce-MyAccount-content .col2-set .col-2,
.woocommerce-MyAccount-content .col2-set .u-column1,
.woocommerce-MyAccount-content .col2-set .u-column2,
.woocommerce-account .col2-set .col-1,
.woocommerce-account .col2-set .col-2,
.woocommerce-account .col2-set .u-column1,
.woocommerce-account .col2-set .u-column2,
.addresses.col2-set .col-1,
.addresses.col2-set .col-2,
.addresses.col2-set .u-column1,
.addresses.col2-set .u-column2,
.woocommerce-Addresses.col2-set .col-1,
.woocommerce-Addresses.col2-set .col-2,
.woocommerce-Addresses.col2-set .u-column1,
.woocommerce-Addresses.col2-set .u-column2 {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: none !important;
}

.woocommerce-Address,
.sn-address-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: auto;
}

.woocommerce-Address:hover,
.sn-address-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.sn-address-header,
.woocommerce-Address-title {
    padding: 1rem 1.25rem;
    background: #ffffff;
    border-bottom: 1px solid #EDEDED;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    gap: 0.75rem;
}

.sn-address-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sn-address-title-wrapper i {
    color: #4D68B0;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.woocommerce-Address-title h2,
.sn-address-header h2 {
    color: #212529;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.woocommerce-Address .edit,
.sn-edit-address-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.875rem;
    background: #4D68B0;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: none;
    width: 100%;
    box-sizing: border-box;
}

.woocommerce-Address .edit i,
.sn-edit-address-btn i {
    font-size: 0.8rem;
}

.woocommerce-Address .edit:hover,
.sn-edit-address-btn:hover {
    background: #2D3C73 !important;
    color: #ffffff !important;
}

.sn-address-content {
    padding: 1.25rem;
    flex: 1;
}

.woocommerce-Address address,
.sn-formatted-address {
    color: #495057;
    line-height: 1.6;
    font-style: normal;
    margin: 0;
    font-size: 0.9rem;
    white-space: pre-line;
}

.sn-no-address {
    text-align: center;
    padding: 2rem 1rem;
    color: #6c757d;
}

.sn-no-address i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
    display: block;
}

.sn-no-address p {
    color: #6c757d;
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
}

.sn-add-address-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #4D68B0;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sn-add-address-btn:hover {
    background: #2D3C73 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 60, 115, 0.3);
}

/* Responsive for addresses */
@media (max-width: 991.98px) {
    .sn-addresses-grid,
    .addresses.col2-set {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sn-address-header,
    .woocommerce-Address-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .sn-edit-address-btn,
    .woocommerce-Address .edit {
        width: 100%;
        justify-content: center;
    }
}


/* No Orders Message */
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-error {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.woocommerce-MyAccount-content .woocommerce-message {
    background: #DAE2F1;
    border-color: #4D68B0;
    color: #212529;
}

.woocommerce-MyAccount-content .woocommerce-info {
    background: #fff8f0;
    border-color: #F39200;
    color: #212529;
}

.woocommerce-MyAccount-content .woocommerce-error {
    background: #fee;
    border-color: #dc3545;
    color: #721c24;
}

/* Responsive */
@media (max-width: 1200px) {
    .sn-account-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991.98px) {
    .sn-my-account-container {
        flex-direction: column;
    }
    
    .sn-navigation-col {
        order: 1;
    }
    
    .sn-content-col {
        order: 2;
    }
    
    .woocommerce-MyAccount-navigation {
        padding: 1.5rem;
        border-radius: 15px 15px 0 0;
    }
    
    .woocommerce-MyAccount-navigation ul {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .woocommerce-MyAccount-navigation ul li {
        flex: 1 1 auto;
        min-width: 120px;
    }
    
    .woocommerce-MyAccount-navigation ul li a {
        border-left: none;
        border-bottom: 3px solid transparent;
        border-radius: 8px;
        margin: 0;
        justify-content: center;
    }
    
    .woocommerce-MyAccount-navigation ul li.is-active a {
        border-left: none;
        border-bottom-color: #4D68B0;
    }
    
    .sn-account-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .sn-my-account-container {
        margin: 1rem 0;
        border-radius: 12px;
    }
    
    .woocommerce-MyAccount-navigation ul {
        flex-direction: column;
    }
    
    .woocommerce-MyAccount-navigation ul li {
        width: 100%;
    }
    
    .woocommerce-MyAccount-navigation ul li a {
        border-bottom: none;
        border-left: 3px solid transparent;
        border-radius: 0 8px 8px 0;
        justify-content: flex-start;
    }
    
    .woocommerce-MyAccount-navigation ul li.is-active a {
        border-bottom: none;
        border-left-color: #4D68B0;
    }
    
    .sn-account-info-cards {
        grid-template-columns: 1fr;
    }
    
    .woocommerce-MyAccount-content {
        padding: 1.5rem;
    }
    
    .woocommerce-MyAccount-content h1.lead {
        padding: 1.5rem;
        margin: -1.5rem -1.5rem 1.5rem -1.5rem;
        font-size: 1.5rem;
    }
    
    .woocommerce-orders-table,
    .woocommerce-MyAccount-orders {
        font-size: 0.85rem;
    }
    
    .woocommerce-orders-table th,
    .woocommerce-orders-table td,
    .woocommerce-MyAccount-orders th,
    .woocommerce-MyAccount-orders td {
        padding: 0.5rem;
    }
}

/* Spiritual Names Section */
.sn-spiritual-names-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.sn-spiritual-names-section h2 {
    color: #4D68B0;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.sn-spiritual-names-section h2 i {
    color: #F39200;
    margin-right: 0.5rem;
}

.sn-spiritual-name-display {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #F39200;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sn-spiritual-name-display h3 {
    color: #333;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
}

.sn-spiritual-name-display h3 i {
    color: #F39200;
    margin-right: 0.5rem;
}

.sn-spiritual-name-display p {
    color: #4D68B0;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.sn-name-requests,
.sn-card-requests {
    margin-bottom: 1.5rem;
}

.sn-name-requests h3,
.sn-card-requests h3 {
    color: #333;
    font-weight: 600;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
}

.sn-name-requests h3 i {
    color: #4D68B0;
    margin-right: 0.5rem;
}

.sn-card-requests h3 i {
    color: #F39200;
    margin-right: 0.5rem;
}

.sn-requests-list {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sn-request-item {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

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

.sn-request-item:hover {
    background-color: #f8f9fa;
}

.sn-status-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Status badge colors */
.sn-status-badge.sn-status-requested {
    background: #e3f2fd;
    color: #1976d2;
}

.sn-status-badge.sn-status-pending {
    background: #fff3e0;
    color: #f57c00;
}

.sn-status-badge.sn-status-payment_pending {
    background: #ffebee;
    color: #d32f2f;
}

.sn-status-badge.sn-status-named {
    background: #e8f5e9;
    color: #388e3c;
}

.sn-status-badge.sn-status-letter {
    background: #f3e5f5;
    color: #7b1fa2;
}

.sn-status-badge.sn-status-completed {
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 700;
}

.sn-status-badge.sn-status-cancelled,
.sn-status-badge.sn-status-archive {
    background: #f5f5f5;
    color: #757575;
}

/* Destiny Card status badges */
.sn-status-badge.sn-dc-status-pending {
    background: #fff3e0;
    color: #f57c00;
}

.sn-status-badge.sn-dc-status-payment_pending {
    background: #ffebee;
    color: #d32f2f;
}

.sn-status-badge.sn-dc-status-paid {
    background: #e8f5e9;
    color: #388e3c;
}

.sn-status-badge.sn-dc-status-completed {
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 700;
}

/* Responsive styles for spiritual names section */
@media (max-width: 768px) {
    .sn-request-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .sn-request-item > div:last-child {
        text-align: left;
        width: 100%;
    }
    
    .sn-spiritual-name-display {
        padding: 1rem;
    }
    
    .sn-spiritual-name-display p {
        font-size: 1.1rem;
    }
}
