/* 
:root {
    --feri-primary: #AD1736;
    --feri-primary-hover: #8a122b;
    --feri-primary-light: rgba(173, 23, 54, 0.1);
    --feri-secondary: #f8f9fa;
    --feri-dark: #2c2c2c;
    --feri-gray: #6c757d;
    --feri-light-gray: #f5f5f5;
    --feri-white: #ffffff;
    --feri-font-titles: 'TokyoDreams', sans-serif;
    --feri-font-buttons: 'Poppins', sans-serif;
    --feri-font-poppins: 'Poppins', sans-serif;
    --feri-font-text: "Antic Didone", serif;
    --font-subtitle: 'Plus Jakarta Sans', sans-serif;
    --feri-shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --feri-shadow-md: 0 5px 20px rgba(0,0,0,0.08);
    --feri-shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --feri-radius-sm: 8px;
    --transition-speed: 0.3s;
}
*/
.contentAccount, 
body {
    background-color: #ffffff !important;
}
.h-100 {
    min-height: calc(100vh - 150px) !important;
}
.topHeader {
    background-color: var(--feri-dark);
}
.topHeader a, .topHeader strong{
    color: var(--feri-light-gray);
    font-size: 14px;
    text-decoration: none;
    transition: color .2s ease-in-out;
}
.topHeader a:hover{
    color: var(--feri-gray); 
}
.topHeader .custom-language-switcher a:not(:last-child) { 
        border-right: 1px solid #ffffff;
}
header {
    background-color: var(--feri-primary) !important;
}
a.menuLink {
    color: var(--feri-white);
    text-decoration: none;
    font-family: var(--font-subtitle);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px; 
    transition: color .2s ease-in-out;
} 
a.menuLink:hover {
    color: var(--feri-light-gray) !important;  
} 
 
.sidebarAccount {
    background-color: var(--feri-light-gray);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
}
.sidebarAccount ul {
    list-style: none;
} 
.sidebarAccount li{
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 5px; 
    margin-bottom: 10px;
}
.sidebarAccount li a{
    font-family: var(--feri-font-buttons);
    text-transform: uppercase;
    font-weight: 300 !important;
}
.sidebarAccount li * {
    color: var(--feri-dark) !important;
    stroke: var(--feri-dark) !important;
    text-decoration: none !important;
}
.sidebarAccount li.active, 
.sidebarAccount li:hover { 
    background-color: #ffffff;
    border-radius: 10px;
}
.sidebarAccount li.active *,
.sidebarAccount li:hover * {
    color: var(--feri-primary-hover) !important;
    stroke: var(--feri-primary-hover) !important; 
}
.woocommerce-account .woocommerce-MyAccount-content {
    float: none;
    width: 100%;
}

.contenutoAccount {
    border: 1px solid #E9E9E9;
    padding: 20px;
    border-radius: 20px;
}
   /* Stats Cards Styles - Luxury Design with Large Background Icons */
    .stat-card-item {
        padding: 20px 0px;
    }

    .stat-card {
        background: #ffffff;
        border-radius: 8px;
        padding: 28px 24px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
        transition: all 0.3s ease;
        height: 140px;
        display: flex;
        align-items: flex-start;
        border: 1px solid #E5E5E5;
        position: relative;
        overflow: hidden;
    }

    .stat-card:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        transform: translateY(-1px);
        border-color: #8a122b;
    }

    .stat-card:hover .stat-icon-bg {
        opacity: 0.08;
    }

    .stat-icon-bg {
        position: absolute;
        right: -10px;
        bottom: -10px;
        color: #8a122b;
        opacity: 0.05;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .stat-card-content {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
    }

    .stat-title {
        font-size: 13px;
        color: #2F2B2D !important;
        font-weight: 500;
        font-family: var(--font-subtitle) !important;
        text-transform: uppercase !important;
        margin: 0 0 12px 0;
        line-height: 1.4;
        letter-spacing: 0.01em;
    }

    .stat-number {
        font-size: 36px;
        font-weight: 300 !important;
        color: #737373 !important;
        margin: 0;
        font-family: var(--feri-font-buttons) !important;
        letter-spacing: -0.02em;
    }

    /* Owl Carousel Customization - Minimal Style */
    .dashboard-stats-carousel .owl-nav {
        margin-top: 20px;
    }

    .dashboard-stats-carousel .owl-nav button.owl-prev,
    .dashboard-stats-carousel .owl-nav button.owl-next {
        width: 36px;
        height: 36px;
        background: #ffffff !important;
        color: #2F2B2D !important;
        border-radius: 6px !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
        border: 1px solid #E5E5E5 !important;
        font-size: 18px !important;
        line-height: 36px !important;
        transition: all 0.3s ease !important;
    }

    .dashboard-stats-carousel .owl-nav button:hover {
        background: #8a122b !important;
        border-color: #8a122b !important;
        color: #ffffff !important;
    }

    .dashboard-stats-carousel .owl-dots {
        margin-top: 20px;
    }

    .dashboard-stats-carousel .owl-dots .owl-dot span {
        background: #D4D4D4;
        width: 8px;
        height: 8px;
        transition: all 0.3s ease;
    }

    .dashboard-stats-carousel .owl-dots .owl-dot.active span,
    .dashboard-stats-carousel .owl-dots .owl-dot:hover span {
        background: #8a122b;
    }

    /* Table Styles - Minimal */
    .table thead th {
        font-size: 11px;
        font-weight: 600;
        color: #737373;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        padding: 12px 16px;
        border-bottom: 1px solid #E5E5E5;
        background: #FAFAFA;
    }
    
    .table tbody td {
        padding: 16px;
        border-bottom: 1px solid #F5F5F5;
    }
    
    .table tbody tr:hover {
        background-color: #FAFAFA;
    }

    .table {
        border: 1px solid #F0F0F0;
        border-radius: 6px;
        overflow: hidden;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .stat-card {
            height: 120px;
            padding: 20px;
        }

        .stat-number {
            font-size: 28px;
        }

        .stat-title {
            font-size: 12px;
            margin-bottom: 8px;
        }

        .stat-icon-bg svg {
            width: 60px;
            height: 60px;
        }
    }
 
    /* Orders History Container */
    .woocommerce-orders-history {
        padding: 0;
    }

    .orders-header {
        margin-bottom: 24px;
    }

    .orders-title {
        font-size: 24px;
        font-weight: 600;
        color: #2F2B2D;
        margin: 0;
        letter-spacing: -0.01em;
    }

    /* Filter Tabs */
    .orders-filter-tabs {
        display: flex;
        gap: 8px;
        margin-bottom: 28px;
        border-bottom: 1px solid #E5E5E5;
        padding-bottom: 0;
        flex-wrap: wrap;
    }

    .filter-tab {
        padding: 12px 20px;
        background: transparent;
        border: none;
        color: #737373;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        cursor: pointer;
        transition: all 0.3s ease;
        border-bottom: 2px solid transparent;
        position: relative;
        white-space: nowrap;
    }

    .filter-tab:hover {
        color: #2F2B2D;
        background: #FAFAFA;
    }

    .filter-tab.active {
        color: #8a122b;
        border-bottom-color: #8a122b;
        background: transparent;
    }

    .filter-tab .count {
        display: inline-block;
        margin-left: 6px;
        padding: 2px 8px;
        background: #F5F5F5;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 600;
        color: #525252;
    }

    .filter-tab.active .count {
        background: #8a122b;
        color: #ffffff;
    }

    /* Orders List */
    .orders-list {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* Order Card */
    .order-card {
        background: #ffffff;
        border: 1px solid #E5E5E5;
        border-radius: 8px;
        padding: 24px;
        transition: all 0.3s ease;
    }

    .order-card:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        border-color: #D4D4D4;
    }

    /* Order Header */
    .order-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 16px;
        border-bottom: 1px solid #F5F5F5;
    }

    .order-info {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .order-number {
        font-size: 15px;
        color: #525252;
        font-weight: 400;
    }

    .order-number strong {
        color: #2F2B2D;
        font-weight: 600;
    }

    .order-status-badge {
        padding: 4px 12px;
        border-radius: 4px;
        font-size: 13px;
        font-weight: 500;
        border: 1px solid;
    }

    .order-status-badge.status-pending {
        background: #FAFAFA;
        color: #525252;
        border-color: #E5E5E5;
    }

    .order-status-badge.status-processing {
        background: #EDE9FE;
        color: #7C3AED;
        border-color: #DDD6FE;
    }

    .order-status-badge.status-completed {
        background: #DCFCE7;
        color: #16A34A;
        border-color: #BBF7D0;
    }

    .order-status-badge.status-cancelled {
        background: #FEE2E2;
        color: #DC2626;
        border-color: #FECACA;
    }

    .order-date {
        font-size: 14px;
        color: #737373;
    }

    /* Order Items */
    .order-items {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 20px;
    }

    .order-item {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .item-image {
        flex-shrink: 0;
        width: 64px;
        height: 64px;
        border-radius: 6px;
        overflow: hidden;
        border: 1px solid #F0F0F0;
    }

    .item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .item-details {
        flex: 1;
    }

    .item-name {
        font-size: 15px;
        font-weight: 500;
        color: #2F2B2D;
        margin: 0 0 4px 0;
    }

    .item-variation {
        font-size: 13px;
        color: #737373;
        margin: 0;
    }

    .item-quantity {
        font-size: 14px;
        font-weight: 500;
        color: #525252;
        white-space: nowrap;
    }

    /* Order Footer */
    .order-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 16px;
        border-top: 1px solid #F5F5F5;
        flex-wrap: wrap;
        gap: 16px;
    }

    .order-total {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .total-label {
        font-size: 14px;
        color: #737373;
    }

    .total-amount {
        font-size: 18px;
        font-weight: 600;
        color: #2F2B2D;
    }

    .order-actions {
        display: flex;
        gap: 12px;
    }

    .btn-order-details,
    .btn-cancel-order {
        padding: 10px 20px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.3s ease;
        border: 1px solid;
        cursor: pointer;
        white-space: nowrap;
    }

    .btn-order-details {
        background: #2F2B2D;
        color: #ffffff;
        border-color: #2F2B2D;
    }

    .btn-order-details:hover {
        background: #8a122b;
        border-color: #8a122b;
        color: #ffffff;
    }

    .btn-cancel-order {
        background: transparent;
        color: #737373;
        border-color: #E5E5E5;
    }

    .btn-cancel-order:hover {
        background: #FAFAFA;
        color: #2F2B2D;
        border-color: #D4D4D4;
    }

    /* No Orders */
    .no-orders {
        text-align: center;
        padding: 60px 20px;
        color: #737373;
        font-size: 15px;
    }

    /* Modal Styles - jQuery Version */ 
    .modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 9999;
        display: none; /* Rimane none */
        align-items: center;
        justify-content: center;
    }

    .modal-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        cursor: pointer;
        z-index: 9999;
    }

    .modal-dialog {
        position: relative;  
        z-index: 10000;
        max-height: calc(100vh - 80px); 
    }


    .modal-content {
        background: #ffffff;
        border-radius: 12px;
        border: none;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        position: relative;
    }

    .modal-header {
        padding: 24px 28px;
        border-bottom: 1px solid #F0F0F0;
        background: #FAFAFA;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 12px 12px 0 0;
    }

    .modal-title {
        font-size: 14px !important;
        font-weight: 300 !important;
        color: #2F2B2D !important;
        margin: 0;
        text-transform: uppercase;
        font-family: var(--feri-font-buttons) !important;
    }

    .btn-close {
        width: 32px;
        height: 32px;
        background-color: transparent !important;
        border: none;
        border-radius: 6px;
        opacity: 0.5;
        transition: all 0.3s ease;
        cursor: pointer;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #2F2B2D !important;
    }

    .btn-close:hover {
        opacity: 1;
        background-color: #F5F5F5;
    }

    .btn-close svg {
        pointer-events: none;
    }

    .modal-body {
        padding: 28px;
        max-height: calc(70vh - 80px);
        overflow-y: auto;
    }

    /* Body class when modal is open */
    body.modal-open {
        overflow: hidden;
    }

    /* Loading Spinner */
    .loading-spinner {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 60px 20px;
    }

    .spinner {
        width: 40px;
        height: 40px;
        border: 3px solid #F5F5F5;
        border-top-color: #8a122b;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

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

    .loading-spinner p {
        margin-top: 16px;
        color: #737373;
        font-size: 14px;
    }

    /* Order Details Content in Modal */
    .order-details-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        margin-bottom: 28px;
    }

    .detail-section {
        background: #FAFAFA;
        padding: 20px;
        border-radius: 8px;
    }

    .detail-section h6 {
        font-size: 12px;
        font-weight: 600;
        color: #737373;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin: 0 0 12px 0;
    }

    .detail-section p {
        font-size: 14px;
        color: #2F2B2D;
        margin: 4px 0;
        line-height: 1.6;
    }

    .detail-section strong {
        font-weight: 600;
    }

    .modal-items-list {
        margin-bottom: 24px;
    }

    .modal-items-list h6 {
        font-size: 14px;
        font-weight: 600;
        color: #2F2B2D;
        margin: 0 0 16px 0;
    }

    .modal-order-item {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 16px;
        background: #FAFAFA;
        border-radius: 8px;
        margin-bottom: 12px;
    }

    .modal-item-image {
        width: 60px;
        height: 60px;
        border-radius: 6px;
        overflow: hidden;
        flex-shrink: 0;
    }

    .modal-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .modal-item-info {
        flex: 1;
    }

    .modal-item-name {
        font-size: 15px;
        font-weight: 500;
        color: #2F2B2D;
        margin: 0 0 4px 0;
    }

    .modal-item-meta {
        font-size: 13px;
        color: #737373;
        margin: 0;
    }

    .modal-item-price {
        font-size: 15px;
        font-weight: 600;
        color: #2F2B2D;
        white-space: nowrap;
    }

    .order-totals {
        background: #FAFAFA;
        padding: 20px;
        border-radius: 8px;
    }

    .total-row {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        font-size: 14px;
    }

    .total-row.final {
        border-top: 2px solid #E5E5E5;
        margin-top: 12px;
        padding-top: 16px;
        font-size: 16px;
        font-weight: 600;
    }
    /* Item Variations - Stacked */
    .item-variations {
        margin-top: 6px;
    }

    .item-variation {
        font-size: 13px;
        color: #737373;
        margin: 2px 0;
        line-height: 1.4;
    }

    .item-variation strong {
        color: #2F2B2D;
        font-weight: 500;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .orders-filter-tabs {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .orders-filter-tabs::-webkit-scrollbar {
            display: none;
        }

        .order-card {
            padding: 20px;
        }

        .order-header,
        .order-footer {
            flex-direction: column;
            align-items: flex-start;
        }

        .order-actions {
            width: 100%;
            flex-direction: column;
        }

        .btn-order-details,
        .btn-cancel-order {
            width: 100%;
            text-align: center;
        }

        .item-image {
            width: 56px;
            height: 56px;
        }

        .item-quantity {
            font-size: 13px;
        }

        .order-details-grid {
            grid-template-columns: 1fr;
            gap: 16px;
        }

        .modal-dialog {
            width: 95%;
            margin: 20px auto;
            max-height: calc(100vh - 40px);
        }

        .modal-header {
            padding: 20px;
        }

        .modal-body {
            padding: 20px;
        }
    } 
/* Modal Order Details - 2 Column Layout */
.order-details-modal-content {
    padding: 0;
}

.order-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-left: 1px solid #E5E5E5;
}

.order-details-left {
    padding: 32px;
    border-right: 1px solid #E5E5E5;
}

.order-details-right {
    padding: 32px;
    background: #FAFAFA;
}

.section-title {
    font-size: 16px !important;
    font-weight: 600;
    color: #2F2B2D;
    margin: 0 0 24px 0;
    font-family: var(--font-subtitle) !important;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Detail Blocks */
.detail-block {
    margin-bottom: 28px;
}

.detail-block:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-size: 11px;
    font-weight: 600;
    color: #737373;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 12px 0;
}

.detail-value {
    font-size: 15px;
    color: #2F2B2D;
    line-height: 1.6;
    margin: 4px 0;
}

.detail-value strong {
    font-weight: 600;
}

/* Order Items List */
.order-items-list {
    margin-bottom: 32px;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #E5E5E5;
}

.order-item-row:first-child {
    padding-top: 0;
}

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

.item-left {
    display: flex;
    gap: 16px;
    flex: 1;
}

.item-image-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #E5E5E5;
}

.item-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-info {
    flex: 1;
}

.item-name {
    font-size: 16px;
    font-weight: 500;
    color: #2F2B2D;
    margin: 0 0 6px 0;
}

.item-variation {
    font-size: 14px;
    color: #737373;
    margin: 0;
}

.item-price {
    font-size: 15px;
    font-weight: 500;
    color: #2F2B2D;
    white-space: nowrap;
    margin-left: 16px;
}

/* Order Summary */
.order-summary {
    background: #ffffff;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #E5E5E5;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 15px;
    color: #2F2B2D;
}

.summary-row:not(:last-child) {
    border-bottom: 1px solid #F0F0F0;
}

.summary-total {
    font-size: 18px;
    font-weight: 600;
    padding-top: 16px;
    border-top: 2px solid #E5E5E5 !important;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 968px) {
    .order-modal-grid {
        grid-template-columns: 1fr;
    }
    
    .order-details-left {
        border-right: none;
        border-bottom: 1px solid #E5E5E5;
    }
    
    .order-details-right {
        background: #ffffff;
    }
}

@media (max-width: 768px) {
    .order-details-left,
    .order-details-right {
        padding: 24px;
    }
    
    .item-image-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .item-name {
        font-size: 14px;
    }
    
    .item-price {
        font-size: 13px;
    }
}

/*Address*/
/* Addresses Wrapper */
.woocommerce-addresses-wrapper {
    padding: 0;
}

.addresses-header {
    margin-bottom: 32px;
}

.addresses-title {
    font-size: 24px;
    font-weight: 600;
    color: #2F2B2D;
    margin: 0 0 8px 0;
}

.addresses-description {
    font-size: 14px;
    color: #737373;
    margin: 0;
}

/* Accordion */
.addresses-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.address-accordion-item {
    background: #ffffff;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.address-accordion-item.is-open {
    border-color: #8a122b;
}

.address-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    cursor: pointer;
}

.address-header-left {
    flex: 1;
}

.address-title {
    font-size: 18px;
    font-weight: 600;
    color: #2F2B2D;
    margin: 0 0 8px 0;
}

.address-preview {
    font-size: 14px;
    color: #737373;
    margin: 0;
}

.address-empty {
    font-size: 14px;
    color: #A3A3A3;
    margin: 0;
    font-style: italic;
}

.address-toggle-btn {
    width: 36px;
    height: 36px;
    padding: 20px !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: contents;
}
 

.address-accordion-item.is-open .address-toggle-btn {
    transform: rotate(180deg); 
}

.address-accordion-content {
    padding: 0 24px 24px 24px;
    border-top: 1px solid #F5F5F5;
}

.address-full {
    padding: 20px 0;
}

.address-full address {
    font-size: 15px;
    color: #2F2B2D;
    line-height: 1.6;
    font-style: normal;
}

.btn-edit-address,
.btn-save-address,
.woocommerce-Button.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--feri-primary);
    color: var(--feri-light-gray);
    border-radius: 0px !important;
    font-size: 13px !important;
    letter-spacing: .5px;
    font-family: var(--feri-font-buttons) !important;
    text-transform: uppercase;
    font-weight: 400 !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-edit-address:hover,
.btn-save-address:hover,
.woocommerce-Button.button:hover {
    background: var(--feri-primary-hover) !important;
    color: var(--feri-light-gray) !important;
}

/* Edit Address Form */
.edit-address-wrapper {
    padding: 0;
}

.edit-address-header {
    margin-bottom: 32px;
}

.back-to-addresses {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #737373;
    text-decoration: none;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.back-to-addresses:hover {
    color: #8a122b;
}

.edit-address-title {
    font-size: 24px;
    font-weight: 600;
    color: #2F2B2D;
    margin: 0;
}

.edit-address-form .woocommerce-address-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.edit-address-form .form-row-wide {
    grid-column: 1 / -1;
}

.form-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #E5E5E5;
}
 
.woocommerce-js form .form-row {
    width: 100% !important;
}
.woocommerce-address-fields__field-wrapper p span > input:focus,
.woocommerce-address-fields__field-wrapper p span > input:active {
    border: 1px solid var(--feri-primary-hover) !important;
    border-style: solid !important;
}
.woocommerce-address-fields__field-wrapper label,
.woocommerce-EditAccountForm label {
    font-weight: 500 !important;
    text-transform: uppercase;
    font-size: 13px !important;
    letter-spacing: .5px !important;
}

/* Login/Register Wrapper */
.ferifers-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #FAFAFA;
}
 #wppb-form-style-3-wrapper { 
    width: 100% !important;
    max-width: 100% !important;
}
#wppb-login-wrap {
    width: 100% !important;
    max-width: 100% !important;
}  
.ferifers-tabs {
    padding: 32px;
}
.ferifers-tabs-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
}
 

.ferifers-tab-link {
    display: block;
    padding: 16px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    color: #2F2B2D;
    text-decoration: none; 
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.ferifers-tab-link:hover {
    color: var(--feri-primary-hover);
}

.ferifers-tab-link.active {
    color: #8a122b;
    border-bottom-color: #8a122b;
}

.ferifers-tab-link.active:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--feri-primary-hover);
    bottom: 0;
    left: 0;
}
.ferifers-tabs-content {
    padding: 32px;
}

.ferifers-tab-content {
    display: none;
}

.ferifers-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Tab Header */
.ferifers-tab-header {
    margin-bottom: 32px;
    text-align: left;
}

.ferifers-tab-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2F2B2D;
    margin: 0 0 8px 0;
}

.ferifers-tab-header p {
    font-size: 14px;
    color: #737373;
    margin: 0;
}

/* Profile Builder Forms Styling */
.ferifers-tab-content .wppb-form-field {
    margin-bottom: 20px;
}

.ferifers-tab-content label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #2F2B2D;
    margin-bottom: 8px;
}

.ferifers-tab-content input[type="text"],
.ferifers-tab-content input[type="email"],
.ferifers-tab-content input[type="password"],
.ferifers-tab-content input[type="tel"],
.ferifers-tab-content input[type="date"],
.ferifers-tab-content select,
.ferifers-tab-content textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ferifers-tab-content input:focus,
.ferifers-tab-content select:focus,
.ferifers-tab-content textarea:focus {
    outline: none;
    border-color: #8a122b;
    box-shadow: 0 0 0 3px rgba(138, 18, 43, 0.1);
}

/* Profile Builder Submit Button */
.ferifers-tab-content input[type="submit"],
.ferifers-tab-content button[type="submit"] {
    width: 100%;
    padding: 14px 24px;
    background: var(--feri-primary-hover);
    color: #ffffff;
    border: none;
    border-radius: 0px !important;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.ferifers-tab-content input[type="submit"]:hover,
.ferifers-tab-content button[type="submit"]:hover {
    background: var(--feri-primary);
}

/* Profile Builder Messages */
.ferifers-tab-content .wppb-error,
.ferifers-tab-content .wppb-success,
.ferifers-tab-content .wppb-warning {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.ferifers-tab-content .wppb-error {
    background: #FEE2E2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.ferifers-tab-content .wppb-success {
    background: #DCFCE7;
    color: #16A34A;
    border: 1px solid #BBF7D0;
}

/* Profile Builder Lost Password Link */
.ferifers-tab-content .wppb-form-field a {
    color: #8a122b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.ferifers-tab-content .wppb-form-field a:hover {
    text-decoration: underline;
}

/* Divider */
.ferifers-divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
}

.ferifers-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #E5E5E5;
}

.ferifers-divider span {
    position: relative;
    display: inline-block;
    padding: 0 16px;
    background: #FAFAFA !important;
    font-size: 13px;
    color: #A3A3A3;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Switch Tab Button */
.ferifers-btn-switch-tab {
    width: 100%;
    padding: 12px 24px;
    background: transparent;
    color: #2F2B2D;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ferifers-btn-switch-tab:hover {
    background: #FAFAFA;
    border-color: #D4D4D4;
}
button.ferifers-btn-switch-tab {
    background-color: transparent!important;
    color: var(--feri-primary-hover) !important;
    border: 1px solid var(--feri-primary-hover);
    font-weight: 400 !important;
}

button.ferifers-btn-switch-tab:hover {
    background-color: var(--feri-primary-hover) !important;
    color: var(--feri-light-gray) !important;
    border: 1px solid var(--feri-primary-hover);
}
/* Footer */
.ferifers-login-footer {
    padding: 24px 32px;
    border-top: 1px solid #F0F0F0;
    background: #FAFAFA;
    text-align: left;
}

.ferifers-login-footer p {
    font-size: 12px;
    color: #737373;
    margin: 0;
    line-height: 1.6;
}

.ferifers-login-footer a {
    color: #8a122b;
    text-decoration: none;
    font-weight: 500;
}

.ferifers-login-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    .ferifers-login-container {
        border-radius: 0;
    }

    .ferifers-login-header,
    .ferifers-tabs-content,
    .ferifers-login-footer {
        padding: 24px;
    }

    .ferifers-tabs {
        padding: 0 24px;
    }

    .ferifers-tabs-nav {
        gap: 16px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .address-accordion-header {
        padding: 20px;
    }

    .address-title {
        font-size: 16px;
    }

    .edit-address-form .woocommerce-address-fields__field-wrapper {
        grid-template-columns: 1fr;
    }
}
