/* Freya My Account - Horizontal Layout (Square Edges) */

.woocommerce-account .woocommerce-MyAccount-navigation {
    float: none !important;
    width: 100% !important;
    margin-bottom: 35px !important;
    background: #ffffff !important;
    box-shadow: 0 5px 25px rgba(0,0,0,0.04) !important;
    padding: 30px !important;
    box-sizing: border-box !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 5px 25px rgba(0,0,0,0.04);
    padding: 30px;
    box-sizing: border-box;
}

/* Horizontal Tabs Styling */
.woocommerce-MyAccount-navigation ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
}

.woocommerce-MyAccount-navigation ul li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px !important;
    transition: all 0.3s ease;
    border-radius: 4px;
    white-space: nowrap;
    border: 1px solid transparent;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background: #fff;
    color: #ff9800;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border-color: #eee;
}

/* Active State */
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li.current-menu-item a {
    background: linear-gradient(135deg, #ffb74d, #ff9800);
    color: #fff !important;
    box-shadow: 0 6px 15px rgba(255, 152, 0, 0.35);
    border-color: transparent;
}

/* Logout Button (Pushed to the right) */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout {
    margin-left: auto !important;
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a {
    background: #ffebee;
    color: #d32f2f;
}
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background: #d32f2f;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

/* --- RESPONSIVE LAYOUT --- */
/* Mobile Layout: Stacked vertically */
@media (max-width: 768px) {
    .woocommerce-MyAccount-navigation ul {
        flex-direction: column;
        gap: 8px;
    }
    .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout {
        margin-left: 0 !important;
    }
    .woocommerce-MyAccount-navigation ul li {
        width: 100%;
    }
    .woocommerce-MyAccount-navigation ul li a {
        display: block;
        text-align: center;
    }
    
    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 20px 15px;
    }
}

/* Extra Settings (Newsletter) styling */
.freya-extra-settings p {
    display: flex !important;
    align-items: center;
    margin-bottom: 12px;
}
.freya-extra-settings input[type="radio"],
.freya-extra-settings input[type="checkbox"] {
    margin-right: 12px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    cursor: pointer;
    width: 18px;
    height: 18px;
}
.freya-extra-settings label {
    margin: 0 !important;
    cursor: pointer;
    font-weight: normal !important;
    color: #444;
    font-size: 14px !important;
    line-height: 1.4;
}
