/*
Theme Name: Woocommerce-child
Template: Divi
Version: 1.0
*/

.woocommerce-account .woocommerce {
    display: flex;
    gap: 36px;
    align-items: flex-start;
    max-width: 1180px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Dashboard-only page template (no sidebar, same spacing)
   WP body class uses the filename: page-template-page-dashboard-php */
:root {
    --wc-dashboard-max-width: 960px; /* pas dit aan (bv. 880px / 1080px) */
}

body.wc-account-surface .woocommerce.woocommerce-dashboard-only,
body.page-template-page-dashboard-php .woocommerce.woocommerce-dashboard-only,
body.page-template-page-dashboard .woocommerce.woocommerce-dashboard-only {
    width: 100%;
    max-width: var(--wc-dashboard-max-width);
    margin: 60px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* One main "card" wrapper for the entire dashboard */
body.wc-account-surface .woocommerce.woocommerce-dashboard-only .wc-dashboard-card,
body.page-template-page-dashboard-php .woocommerce.woocommerce-dashboard-only .wc-dashboard-card,
body.page-template-page-dashboard .woocommerce.woocommerce-dashboard-only .wc-dashboard-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

/* Make dashboard heading look intentional */
body.wc-account-surface .woocommerce.woocommerce-dashboard-only .woocommerce-MyAccount-content > h2:first-child,
body.page-template-page-dashboard-php .woocommerce.woocommerce-dashboard-only .woocommerce-MyAccount-content > h2:first-child,
body.page-template-page-dashboard .woocommerce.woocommerce-dashboard-only .woocommerce-MyAccount-content > h2:first-child,
body.wc-account-surface .woocommerce.woocommerce-dashboard-only .woocommerce-MyAccount-content > h3:first-child,
body.page-template-page-dashboard-php .woocommerce.woocommerce-dashboard-only .woocommerce-MyAccount-content > h3:first-child,
body.page-template-page-dashboard .woocommerce.woocommerce-dashboard-only .woocommerce-MyAccount-content > h3:first-child {
    margin-top: 0;
}

/* Reduce "nested card" look inside the main card */
body.wc-account-surface .woocommerce.woocommerce-dashboard-only .woocommerce-MyAccount-content,
body.page-template-page-dashboard-php .woocommerce.woocommerce-dashboard-only .woocommerce-MyAccount-content,
body.page-template-page-dashboard .woocommerce.woocommerce-dashboard-only .woocommerce-MyAccount-content {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

/* Sidebar */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 290px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #1f7ecb 0%, #1669ad 100%);
    border-radius: 20px;
    padding: 18px 14px;
    box-shadow: 0 14px 30px rgba(19, 88, 145, 0.18);
}

/* Remove default list styling */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Menu item spacing */
.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin: 6px 0;
}

/* Menu links */
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 0 18px 0 46px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.1px;
    color: rgba(255, 255, 255, 0.92);
    background: transparent;
    transition: all 0.22s ease;
}

/* Professional indicator dot */
.woocommerce-account .woocommerce-MyAccount-navigation ul li a::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    transform: translateY(-50%);
    transition: all 0.22s ease;
}

/* Hover state */
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    padding-left: 50px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover::before {
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

/* Active state */
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: #ffffff;
    color: #1f7ecb;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a::before {
    background: #1f7ecb;
    box-shadow: 0 0 0 4px rgba(31, 126, 203, 0.12);
}

/* Content card */
.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

/* Headings */
.woocommerce-account .woocommerce-MyAccount-content h1,
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
    color: #1f7ecb;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Paragraphs */
.woocommerce-account .woocommerce-MyAccount-content p {
    color: #4f5b66;
    line-height: 1.7;
}

/* Tables */
.woocommerce-account .woocommerce table.shop_table {
    border: none !important;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.woocommerce-account .woocommerce table.shop_table th {
    background: #1f7ecb;
    color: #ffffff;
    padding: 16px !important;
    font-weight: 600;
}

.woocommerce-account .woocommerce table.shop_table td {
    background: #ffffff;
    padding: 16px !important;
}

/* Buttons */
.woocommerce-account .woocommerce button.button,
.woocommerce-account .woocommerce a.button,
.woocommerce-account .woocommerce input.button,
.woocommerce-account .woocommerce-MyAccount-content .button {
    background: #1f7ecb !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 24px !important;
    font-weight: 600;
    transition: all 0.22s ease;
}

.woocommerce-account .woocommerce button.button:hover,
.woocommerce-account .woocommerce a.button:hover,
.woocommerce-account .woocommerce input.button:hover,
.woocommerce-account .woocommerce-MyAccount-content .button:hover {
    background: #1669ad !important;
    transform: translateY(-1px);
}

/* Form fields */
.woocommerce-account .woocommerce form .form-row input.input-text,
.woocommerce-account .woocommerce form .form-row textarea,
.woocommerce-account .woocommerce form .form-row select {
    border: 1px solid #d6e6f5 !important;
    border-radius: 12px !important;
    background: #f7fbff;
    min-height: 50px;
    padding: 12px 16px !important;
    box-shadow: none !important;
}

/* Notices */
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-error {
    border: none;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(31, 126, 203, 0.08);
}

/* Mobile */
@media (max-width: 980px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content {
        width: 100%;
    }

    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 24px;
    }
}

@media (max-width: 980px) {
    body.wc-account-surface .woocommerce.woocommerce-dashboard-only,
    body.page-template-page-dashboard-php .woocommerce.woocommerce-dashboard-only,
    body.page-template-page-dashboard .woocommerce.woocommerce-dashboard-only {
        margin: 40px auto;
    }

    body.wc-account-surface .woocommerce.woocommerce-dashboard-only .wc-dashboard-card,
    body.page-template-page-dashboard-php .woocommerce.woocommerce-dashboard-only .wc-dashboard-card,
    body.page-template-page-dashboard .woocommerce.woocommerce-dashboard-only .wc-dashboard-card {
        padding: 24px;
    }
}