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

.woocommerce-account .woocommerce {
    display: flex;
    gap: 36px;
    align-items: flex-start;
    max-width: 1180px;
    margin: 16px 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: 16px 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;
    }
}

.custom-footer{
    background:#111;
    color:#fff;
    padding:90px 80px 40px;
}

.custom-footer a{
    color:#b8b8b8;
    text-decoration:none;
}

.custom-footer a:hover{
    color:#fff;
}

.custom-footer h2 {
    color: #ffffff;
}

.custom-footer h3 {
    color: #ffffff;
}

.custom-footer h4 {
    color: #ffffff;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 100px;
    max-width: 1200px;
    margin: 0 auto 70px;
}

.footer-title{
    flex:1;
}

.footer-title h2{
    font-size:64px;
    line-height:1.1;
    font-weight:700;
}

.footer-text{
    flex:1;
    font-size:22px;
    line-height:1.8;
    color:#d4d4d4;
}

.custom-footer hr{
    border:none;
    border-top:1px solid #2d2d2d;
    margin:60px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.3fr repeat(4, 1fr);
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-contact img{
    width:90px;
    margin-bottom:30px;
}

.footer-contact h3,
.footer-column h4{
    margin-bottom:20px;
    font-size:26px;
}

.footer-column ul{
    list-style:none;
    padding:0;
}

.footer-column li{
    margin-bottom:15px;
}

.footer-column .leadinfo{
    width:128px;
    margin-top:64px;
}

.footer-bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:80px;
    padding-top:30px;
    border-top:1px solid #2d2d2d;
    color:#888;
}

.footer-social{
    display:flex;
    gap:25px;
    font-size:22px;
}

.header-top{
    background:#2784d6;
    height:40px;
}

.header-top-container{
    max-width:1400px;
    margin:auto;
    height:40px;
    display:flex;
    align-items:center;
    gap:50px;
}

.custom-header .header-top a {
    color:#fff;
    text-decoration:none;
    transition:0.3s ease;
}

.custom-header .header-top a:hover {
    color:#b8d9f5;
}

.custom-header .header-main{
    background:#0d4a7b;
}

.custom-header {
    position: relative;
    z-index: 9999;
}

.custom-header .dropdown-menu {
    z-index: 10000;
}

.custom-header .header-container{
    max-width:1400px;
    margin:auto;
    height:90px;

    display:flex;
    justify-content:space-between;
    align-items:center;
}

.header-logo img{
    height:64px;
}

.custom-header .header-nav > ul{
    display:flex;
    align-items:center;
    height:90px;
    list-style:none;
    gap:45px;
    margin:0;
    padding:0;
}

.custom-header .header-nav > ul > li{
    position:relative;
    height:90px;
    display:flex;
    align-items:center;
}

.custom-header .header-nav > ul > li > a{
    height:100%;
    display:flex;
    align-items:center;

    color:white;
    text-decoration:none;
    font-weight:600;
}

.custom-header .header-nav > ul > li > a {
    transition: color 0.3s ease;
}

.custom-header .header-nav > ul > li > a:hover {
    color: #b8d9f5;
}

.header-nav>ul>li>a::after{
    font-size:10px;
}

.custom-header .dropdown {
    position: relative;
}

.custom-header .dropdown-menu {
    display: none;
    position: absolute;
    top: 80%;
    left: 0;

    background: white;
    min-width: 240px;

    list-style: none;
    padding: 15px 0;
    margin: 0;

    border-radius: 8px;

    box-shadow: 0 15px 35px rgba(0,0,0,.15);

    z-index: 10000;
}

.custom-header .dropdown-menu li a {
    display: block;
    padding: 10px 20px;

    color: #222;
    text-decoration: none;
}

.custom-header .dropdown-menu li a:hover {
    background: #f2f2f2;
}

.custom-header .dropdown:hover > .dropdown-menu {
    display: block;
}

.custom-header .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

.header-right{

    display:flex;
    align-items:center;
    gap:35px;

}

.custom-header .header-right > a {
    color:white;
    text-decoration:none;
    transition:0.3s ease;
}

.custom-header .header-right > a:hover {
    color:#b8d9f5;
}

.custom-header .contact-btn {
    background:white;
    color:#111 !important;

    padding:15px 35px;
    border-radius:8px;
    font-weight:600;

    transition:0.3s ease;
}

.custom-header .contact-btn:hover {
    background:#2784d6;
    color:white !important;
}

/* ===== DNS Manager ===== */

.dns-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 14px;
}

.dns-table thead th {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    text-align: left;
    padding: 0 12px 8px;
}

.dns-table tbody tr {
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,.06);
    border-radius: 12px;
}

.dns-table td {
    padding: 14px 12px;
    vertical-align: middle;
}

.dns-table tbody tr td:first-child {
    border-radius: 12px 0 0 12px;
}

.dns-table tbody tr td:last-child {
    border-radius: 0 12px 12px 0;
}

.dns-table input,
.dns-table select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    box-sizing: border-box;
    transition: .2s;
}

.dns-table input:focus,
.dns-table select:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 4px rgba(37,99,235,.15);
}

.dns-table td:first-child {
    width: 130px;
}

.dns-table td:nth-child(2) {
    width: 160px;
}

.dns-table td:nth-child(4) {
    width: 110px;
}

.dns-table td:last-child {
    width: 60px;
    text-align: center;
}

.dns-delete {
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    color: #ef4444;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    transition: .2s;
}

.dns-delete:hover {
    background: #ef4444;
    color: #fff;
    transform: scale(1.08);
}

.dns-actions {
    display:flex;
    justify-content:space-between;
    align-items:center;
}

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

.dns-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dns-modal[hidden] {
    display: none;
}


/* Achtergrond */
.dns-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(8px);
}


/* Modal zelf */
.dns-modal-content {
    position: relative;
    width: 460px;
    max-width: calc(100% - 40px);
    background: #fff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(0,0,0,.25);
    z-index: 1;
}


.dns-modal-content h3 {
    margin-bottom: 20px;
    font-size: 22px;
}

.dns-template-option {
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 16px 18px;
    margin-bottom: 12px;

    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;

    cursor: pointer;
    transition: .2s;
}

.dns-template-option:hover {
    border-color: #2563eb;
    background: #f8fafc;
    transform: translateY(-2px);
}

.dns-template-option small {
    margin-top: 5px;
    color: #6b7280;
}

.dns-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

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

#dns-save {
    background: #16a34a;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

#dns-add {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

#dns-template {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

#dns-save:hover {
    background: #15803d;
}

.dns-layout {
    display:grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap:25px;
    align-items:start;
}

.dns-layout .wc-dashboard-card {
    min-width:0;
}

.dns-history-item {
    padding:15px;
    border-bottom:1px solid #e5e7eb;
}

.dns-history-item strong {
    display:block;
    margin-bottom:8px;
}

.dns-history-item small {
    color:#777;
}

.dns-revert {
    margin-top:10px;
}

.dns-layout {
    display: grid;
    grid-template-columns: minmax(800px, 1fr) 400px;
    gap: 25px;
    align-items: start;
}

.dns-layout > .wc-dashboard-card {
    min-width: 0;
}

.dns-history-item {
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fff;
}

.dns-history-item strong {
    display: block;
    margin-bottom: 8px;
}

.dns-history-item p {
    margin: 0 0 8px;
}

.dns-history-item small {
    display: block;
    color: #6b7280;
    margin-bottom: 12px;
}

.dns-revert {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 16px;

    border: 1px solid #d1d5db;
    border-radius: 6px;

    background: #2563eb;
    color: #ffffff;

    font-size: 14px;
    cursor: pointer;

    transition: 0.2s ease;
}

.dns-revert:hover {
    background: #1a49ad;
}

.dns-locked td {
    background: #d3d4d4;
}

.dns-lock {
    display:flex;
    align-items:center;
    justify-content:center;

    width:36px;
    height:36px;

    background:#f1f5f9;
    border-radius:50%;

    font-size:16px;
}

.woo-transfer-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
}

.woo-transfer-header {
    margin-bottom: 30px;
}

.woo-transfer-form label {
    display:block;
    font-weight:600;
    margin-bottom:6px;
}

.woo-transfer-form input {
    width:100%;
    padding:12px;
    border:1px solid #ddd;
    border-radius:6px;
}

.form-group {
    margin-bottom:20px;
}

.form-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.form-grid .full {
    grid-column:1 / -1;
}

.woo-transfer-form button {
    margin-top:30px;
    background:#0b63ce;
    color:white;
    border:none;
    padding:14px 30px;
    border-radius:6px;
    cursor:pointer;
}

@media(max-width:768px){

    .form-grid {
        grid-template-columns:1fr;
    }

}

#draft-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

#draft-modal[hidden] {
    display: none;
}

#draft-modal .dns-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

#draft-modal .dns-modal-content {
    position: relative;
    z-index: 2;

    width: 420px;
    max-width: calc(100% - 40px);

    margin: 15vh auto 0;

    background: #fff;
    padding: 30px;

    border-radius: 12px;

    box-shadow: 0 20px 50px rgba(0,0,0,0.15);

    display: flex;
    flex-direction: column;
    gap: 20px;
}

#draft-modal h3 {
    margin: 0;
    font-size: 22px;
}

#draft-modal input {
    width: 100%;
    padding: 12px 14px;

    border: 1px solid #ddd;
    border-radius: 8px;

    font-size: 15px;

    box-sizing: border-box;
}

#draft-modal input:focus {
    outline: none;
    border-color: #2271b1;
}

#draft-modal .wc-btn {
    width: 100%;
}