/* =========================================
   Dokan Seller Registration Override
   File: dokan/global/seller-registration-form.php
   ========================================= */
/* example tweaks */
.dokan-vendor-register .form-row { margin-bottom: 12px; }
.dokan-vendor-register .dokan-btn { border-radius: 8px; }

/* =========================================
   Dokan Dashboard (menu + content)
   File: dokan/dashboard/dashboard.php
   ========================================= */
.dokan-dashboard .dokan-dash-sidebar { background:#121212; }
.dokan-dashboard .dokan-dash-sidebar a { color:#eee; }

/* =========================================
   Dokan Settings → Payment
   File: dokan/dashboard/settings/payment.php
   ========================================= */
.dokan-settings .dokan-form-group input { border-radius: 6px; }

/* =========================================
   Dokan Withdraw
   File: dokan/dashboard/withdraw/*
   ========================================= */
.dokan-withdraw-area .dokan-alert { border-radius: 8px; }

/* =========================================
   Dokan Add Song
   File: dokan/product/*
   ========================================= */
.dokan-edit-row .dokan-section-heading h2 {color: #666;}

.dokan-add-more-single-cat-container .dokan-single-cat-add-btn {
    color: white !important;
    background: #7F54B3;
    padding: 5px 10px;
}
.product-edit-new-container label.form-label {font-size: 18px !important; color: #666 !important; font-weight: bold;}

.dokan-product-edit-form [type='text'] {font-size: 1.5rem;}

.product-edit-container .dokan-feat-image-upload a.dokan-feat-image-btn {color: white !important; text-shadow: none !important; background: #7F54B3 !important; padding: 2px 5px;}
i.fas.fa-cloud-upload-alt {color: #7F54B3 !important;}

/* Setup Wizrad ----------------*/
html .dokan-vendor-setup-wizard {
    background-color: #000 !important;
}
body.dokan-vendor-setup-wizard,
.dokan-vendor-setup-wizard .wc-setup-content {
    background-color: var(--dokan-sidebar-background-color) !important;
}
.wc-setup-content h1, 
.wc-setup-content h2, 
.wc-setup-content h3, 
.wc-setup-content table,
.wc-setup-content p {

    color: var(--dokan-sidebar-text-color) !important;
}
.dokan-vendor-setup-wizard .form-table label {
	color: var(--dokan-sidebar-text-color) !important;	
}

.dokan-vendor-setup-wizard .select2-container--default .select2-selection--multiple .select2-selection__rendered li {
	color: var(--dokan-link-hover-color) !important;
}


/* Flip the button order in Dokan Setup Wizard */
body.dokan-vendor-setup-wizard .wc-setup-actions.step {
  display: flex;
  flex-direction: row-reverse; /* reverse the order */
  gap: 12px;                   /* add some spacing back */
}


/* Dashboard ----------------*/
.dokan-dashboard #brx-content {
    padding: 0 60px 20px 20px !important;
}

.dokan-dashboard .brxe-section {
   margin-bottom: 0; 
}

.dokan-dashboard #brx-content h1 {
	display:none;
}

.dokan-dashboard .dokan-dashboard-content {
    padding: 20px 4px 4px 25px;
    background: var(--bricks-color-pjtzlr);
}

.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li:hover:not(.active) ul.navigation-submenu,
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li ul.navigation-submenu li {
    background: var(--bricks-color-uleqzb) !important;
}


.dokan-dashboard #brx-footer {
    padding: 0 40px 40px;
    margin: 0 auto 0 260px;
}

/* Dashboard Sub Menu Nav */
.navigation-submenu .report_stock,
.navigation-submenu .report_categories,
.navigation-submenu .report_variations {
	display:none;
}

/* Dashboard product page */
.dokan-dashboard .dokan-w12 {
	display:none !important;
}
/* custom coloring*/
.dokan-dashboard .dokan-progress-bar-info,
.dokan-dashboard .dokan-alert-info {
    background-color: var(--dokan-link-color) !important;
    color: var(--dokan-sidebar-hover-text-color) !important;
}

/* ACF Buttons */
.dokan-dashboard .acf-button {
    padding: 10px 20px;
}


/* Make the left nav a vertical stack we can push against */
.dokan-dashboard .dokan-dashboard-menu {
  display: flex;
  flex-direction: column;
}

/* Our custom "Back to Site" item lives at the bottom */
.dokan-dashboard .dokan-dashboard-menu li.mcj-back-site {
  display: none !important;
  margin-top: auto;                /* pushes it to the bottom of the list */
  padding: 12px;                   /* breathing room from edges */
  position: sticky;                /* stays visible near bottom on long menus */
  bottom: 12px;
}

/* Button look */
.dokan-dashboard .dokan-dashboard-menu li.mcj-back-site > a {
  display: block;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--dokan-link-color) !important;
  color: var(--white, #fff);
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  transition: transform .12s ease, opacity .12s ease;
}

/* Icon spacing */
.dokan-dashboard .dokan-dashboard-menu li.mcj-back-site > a .fa {
  margin-right: 8px;
}

/* Hover/focus */
.dokan-dashboard .dokan-dashboard-menu li.mcj-back-site > a:hover,
.dokan-dashboard .dokan-dashboard-menu li.mcj-back-site > a:focus {
  opacity: .95;
  transform: translateY(-1px);
}

/* Fallback selector if Dokan ignores custom 'class' key */
.dokan-dashboard .dokan-dashboard-menu li[class*="mcj-back-site"] > a { /* same rules apply */ }

.dokan-dashboard-menu li:hover.mcj-back-site {
	background: none !important;
}

/* Dokan Error ----------------*/
.dokan-error {
    border-top: 3px solid var(--dokan-button-border-color) !important;
    color: #000;
}

.dokan-error:before {
    background-color: var(--dokan-button-border-color) !important;
}


/* Mobile: sidebar collapses; header spans full width */
@media (max-width: 991px) {
  .dokan-dashboard .main-menu-sidebar-wrap {
    position: static;
    width: 100%;
    height: auto;
    border-right: 0;
  }
  .dokan-dashboard .navbar-3-area { left: 0; }
  .dokan-dashboard #brx-content,
  .dokan-dashboard  #brx-footer {
    margin-left: 0;
    max-width: 100vw;
  }

  .dokan-dashboard #brx-content {
  display: flex;
  flex-direction: column;
  padding: 20px 40px 20px 40px !important;
  }

  .dokan-header.brxe-container {
    justify-content: center;
}
}

/* MCJ: Align the product Name column left on the vendor list */
.dokan-dashboard .dokan-product-listing .post-title,
.dokan-dashboard .dokan-product-listing th.post-title {
  text-align: left !important;
}


/** Vendor Dashobard - Payment Page /dashboard/settings/payment/  */ 
.payment-methods-listing-header h2{
    color: black !important;
}


/** Vendor Dashobard - Store Page /dashboard/settings/store/  */ 
.dokan-dashboard .dokan-settings-area .dokan-form-group:has(#settings_dokan_company_name),
.dokan-dashboard .dokan-settings-area .dokan-form-group:has(#settings_dokan_company_id_number),
.dokan-dashboard .dokan-settings-area .dokan-form-group:has(#setting_vat_number),
.dokan-dashboard .dokan-settings-area .dokan-form-group:has(#setting_bank_name),
.dokan-dashboard .dokan-settings-area .dokan-form-group:has(#setting_bank_iban) {
    display: none !important;
}