/*
Theme Name: Spotmart Child
Theme URI: https://example.com/spotmart-child
Description: Spotmart Child theme for customization and Dokan enhancements.
Author: Spotmart Dev
Author URI: https://example.com
Template: astra
Version: 1.0.0
Text Domain: spotmart-child
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: e-commerce, dokan, child-theme
*/

/* Add your custom CSS below this line */ 

:root {
    --spotmart-accent: #009900;
    --spotmart-accent-strong: #067a06;
    --spotmart-accent-soft: #ecf7ec;
    --spotmart-surface: #f6faf4;
    --spotmart-border: rgba(0, 153, 0, 0.12);
    --spotmart-text-muted: #5e6b5e;
  }
  
  /* Page-specific targeting */
  body.page-id-3607 .woocommerce-MyAccount-navigation {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: width 0.3s ease;
  }
  
  /* Top section with logo and toggle */
  body.page-id-3607 .woocommerce-MyAccount-navigation .sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
  }
  
  body.page-id-3607 .woocommerce-MyAccount-navigation .sidebar-logo {
    width: 40px;
    height: auto;
  }
  
  body.page-id-3607 .woocommerce-MyAccount-navigation .sidebar-toggle {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
  }
  
  /* Bottom profile section */
  body.page-id-3607 .woocommerce-MyAccount-navigation .sidebar-bottom {
    padding: 10px;
    text-align: center;
  }
  
  body.page-id-3607 .woocommerce-MyAccount-navigation .sidebar-profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 5px;
  }
  
  /* Collapsed state */
  body.page-id-3607 .woocommerce-MyAccount-navigation.collapsed {
    width: 60px;
  }
  
  /* Dokan vendor product list enhancements */
.dokan-dashboard .dokan-dashboard-content {
  margin: 0 !important;
}

.dokan-dashboard .dokan-dashboard-content.dokan-product-listing {
  background: linear-gradient(180deg, #ffffff 0%, var(--spotmart-surface) 100%);
  border-radius: 24px;
  padding: 8px 8px 12px;
  border: 1px solid var(--spotmart-border);
  box-shadow: 0 20px 48px rgba(0, 153, 0, 0.08);
}
  
  .dokan-dashboard .dokan-product-listing .product-listing-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  margin-bottom: -8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
  
  .dokan-dashboard .dokan-product-listing .product-listing-top ul.dokan-listing-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
  }
  
  .dokan-dashboard .dokan-product-listing .product-listing-top ul.dokan-listing-filter li {
    list-style: none;
  }
  
  .dokan-dashboard .dokan-product-listing .product-listing-top ul.dokan-listing-filter li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--spotmart-accent-soft);
    color: #214321;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    transition: all 0.2s ease;
  }
  
  .dokan-dashboard .dokan-product-listing .product-listing-top ul.dokan-listing-filter li a:hover,
  .dokan-dashboard .dokan-product-listing .product-listing-top ul.dokan-listing-filter li.active a {
    background: var(--spotmart-accent);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(0, 153, 0, 0.18);
    transform: translateY(-1px);
  }
  
  .dokan-dashboard .dokan-product-listing .product-listing-top span.dokan-add-product-link {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-left: auto;
  }
  
  .dokan-dashboard .dokan-product-listing .product-listing-top span.dokan-add-product-link a {
    border-radius: 12px;
    padding: 11px 22px;
    font-weight: 600;
    box-shadow: 0 16px 32px rgba(0, 153, 0, 0.25);
  }
  
  .dokan-dashboard .dokan-product-listing .product-listing-top span.dokan-add-product-link a:hover {
    background: var(--spotmart-accent-strong);
  }
  
.dokan-dashboard .dokan-product-listing .dokan-w12 {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 4px;
}
  
  .dokan-dashboard .dokan-product-listing .dokan-product-date-filter,
  .dokan-dashboard .dokan-product-listing .dokan-product-search-form {
    flex: 1 1 320px;
    background: #ffffff;
    border: 1px solid var(--spotmart-border);
    border-radius: 16px;
    padding: 8px 8px;
    box-shadow: 0 14px 32px rgba(0, 153, 0, 0.06);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
  }
  
  .dokan-dashboard .dokan-product-listing .dokan-product-search-form {
    justify-content: flex-start;
  }
  
  .dokan-dashboard .dokan-product-listing .dokan-form-group {
    margin: 0;
    flex: 1 1 140px;
  }
  
  .dokan-dashboard .dokan-product-listing .dokan-product-date-filter .dokan-form-group:last-of-type {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
  }
  
  .dokan-dashboard .dokan-product-listing .dokan-product-search-form .dokan-form-group {
    order: 1;
    flex: 1 1 260px;
  }
  
  .dokan-dashboard .dokan-product-listing .dokan-product-search-form .dokan-btn {
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
  }
  
  .dokan-dashboard .dokan-product-listing .dokan-form-group .dokan-form-control,
  .dokan-dashboard .dokan-product-listing .dokan-form-group input[type="text"],
  .dokan-dashboard .dokan-product-listing .dokan-form-group select {
    width: 100%;
    border: 1px solid var(--spotmart-border);
    border-radius: 12px;
    min-height: 42px;
    padding: 8px 12px;
    background: #ffffff;
    color: #233723;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  
  .dokan-dashboard .dokan-product-listing .dokan-form-group .dokan-form-control:focus,
  .dokan-dashboard .dokan-product-listing .dokan-form-group input[type="text"]:focus,
  .dokan-dashboard .dokan-product-listing .dokan-form-group select:focus {
    border-color: var(--spotmart-accent);
    box-shadow: 0 0 0 3px rgba(0, 153, 0, 0.14);
    outline: none;
  }
  
  .dokan-dashboard .dokan-product-listing .dokan-btn {
    background: var(--spotmart-accent);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 600;
    padding: 10px 20px;
    box-shadow: 0 12px 28px rgba(0, 153, 0, 0.18);
    transition: all 0.2s ease;
  }
  
  .dokan-dashboard .dokan-product-listing .dokan-btn:hover {
    background: var(--spotmart-accent-strong);
    color: #ffffff;
    transform: translateY(-1px);
  }
  
  .dokan-dashboard .dokan-product-listing a.dokan-btn:not(.dokan-btn-theme) {
    background: transparent;
    color: var(--spotmart-accent);
    border: 1px solid var(--spotmart-accent);
    box-shadow: none;
  }
  
  .dokan-dashboard .dokan-product-listing a.dokan-btn:not(.dokan-btn-theme):hover {
    background: var(--spotmart-accent);
    color: #ffffff;
  }
  
  .dokan-dashboard .dokan-product-listing .chosen-container-single .chosen-single {
    border: 1px solid var(--spotmart-border);
    border-radius: 12px;
    height: 42px;
    line-height: 42px;
    padding: 0 14px;
    box-shadow: none;
    background: #ffffff;
    color: #233723;
  }
  
  .dokan-dashboard .dokan-product-listing .chosen-container .chosen-results li.highlighted {
    background-color: var(--spotmart-accent);
  }
  
.dokan-dashboard .dokan-product-listing #product-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  border-radius: 20px;
  border: 1px solid var(--spotmart-border);
  box-shadow: 0 18px 40px rgba(0, 153, 0, 0.08);
  padding: 8px 8px;
  background: #ffffff;
}

.dokan-dashboard .dokan-product-listing #dokan-bulk-action-selector,
.dokan-dashboard .dokan-product-listing #dokan-bulk-action-submit {
  display: none !important;
}

.dokan-dashboard .dokan-product-listing table.product-listing-table {
    flex: 1 1 100%;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  margin-top: 0;
  border-radius: 18px;
  box-shadow: 0 22px 48px rgba(0, 153, 0, 0.08);
}
  
  .dokan-dashboard .dokan-product-listing table.product-listing-table thead th {
    background: #EAECF0;
    color: #3D3D3D;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 14px 16px;
    border: none;
  }
  
  .dokan-dashboard .dokan-product-listing table.product-listing-table tbody tr {
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  }
  
  .dokan-dashboard .dokan-product-listing table.product-listing-table tbody tr:nth-child(even) {
    background: var(--spotmart-surface);
  }
  
  .dokan-dashboard .dokan-product-listing table.product-listing-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 153, 0, 0.12);
    background: #ffffff;
  }
  
  .dokan-dashboard .dokan-product-listing table.product-listing-table td {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 14px;
    color: #2e432e;
    vertical-align: middle;
  }
  
  .dokan-dashboard .dokan-product-listing table.product-listing-table tbody tr:last-child td {
    border-bottom: none;
  }
  
  .dokan-dashboard .dokan-product-listing table.product-listing-table td.column-primary {
    font-weight: 600;
  }
  
  .dokan-dashboard .dokan-product-listing table.product-listing-table td.column-primary a {
    color: #444444;
    text-decoration: none;
  }
  
  .dokan-dashboard .dokan-product-listing table.product-listing-table td.column-primary a:hover {
    text-decoration: underline;
  }
  
  .dokan-dashboard .dokan-product-listing table.product-listing-table td img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 6px 14px rgba(0, 153, 0, 0.08);
  }
  
  .dokan-dashboard .dokan-product-listing table.product-listing-table td.post-status label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: var(--spotmart-accent-soft);
    color: var(--spotmart-accent-strong);
    text-transform: capitalize;
  }
  
  .dokan-dashboard .dokan-product-listing table.product-listing-table td.post-status label.publish {
    background: var(--spotmart-accent);
    color: #ffffff;
  }
  
  .dokan-dashboard .dokan-product-listing table.product-listing-table td.post-status label.pending {
    background: #fff3cd;
    color: #8a6200;
  }
  
  .dokan-dashboard .dokan-product-listing table.product-listing-table td.post-status label.draft {
    background: #e7ecf2;
    color: #384c62;
  }
  
  .dokan-dashboard .dokan-product-listing table.product-listing-table mark.instock {
    background: none;
    color: var(--spotmart-accent-strong);
    font-weight: 700;
  }
  
  .dokan-dashboard .dokan-product-listing table.product-listing-table mark.outofstock {
    background: none;
    color: #d93025;
    font-weight: 700;
  }
  
  .dokan-dashboard .dokan-product-listing table.product-listing-table del {
    color: #d93025;
    opacity: 0.7;
  }
  
  .dokan-dashboard .dokan-product-listing table.product-listing-table ins {
    color: var(--spotmart-accent-strong);
    text-decoration: none;
    font-weight: 700;
  }
  
  .dokan-dashboard .dokan-product-listing table.product-listing-table .row-actions {
    margin-top: 6px;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.2s ease;
  }
  
  .dokan-dashboard .dokan-product-listing table.product-listing-table tr:hover .row-actions {
    opacity: 1;
    transform: translateY(0);
  }
  
  .dokan-dashboard .dokan-product-listing table.product-listing-table .row-actions a {
    color: var(--spotmart-accent-strong);
  }
  
  .dokan-dashboard .dokan-product-listing table.product-listing-table .row-actions a:hover {
    color: var(--spotmart-accent);
  }
  
  .dokan-dashboard .dokan-product-listing .pagination-wrap {
    margin-top: 26px;
  }
  
  .dokan-dashboard .dokan-product-listing .pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0;
  }
  
  .dokan-dashboard .dokan-product-listing .pagination li {
    list-style: none;
  }
  
  .dokan-dashboard .dokan-product-listing .pagination li a,
  .dokan-dashboard .dokan-product-listing .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--spotmart-border);
    color: #1f331f;
    font-weight: 600;
    transition: all 0.2s ease;
  }
  
  .dokan-dashboard .dokan-product-listing .pagination li a:hover {
    border-color: var(--spotmart-accent);
    color: var(--spotmart-accent-strong);
    box-shadow: 0 10px 18px rgba(0, 153, 0, 0.12);
  }
  
  .dokan-dashboard .dokan-product-listing .pagination li span.current {
    background: var(--spotmart-accent);
    border-color: var(--spotmart-accent);
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(0, 153, 0, 0.18);
  }
  
  .dokan-dashboard .dokan-product-listing .dokan-dashboard-not-product-found {
    background: #ffffff;
    border-radius: 22px;
    padding: 40px;
    border: 1px solid var(--spotmart-border);
    box-shadow: 0 18px 40px rgba(0, 153, 0, 0.08);
  }
  
  .dokan-dashboard .dokan-product-listing .dokan-dashboard-not-product-found .dokan-btn-theme {
    border-radius: 14px;
    padding: 12px 24px;
  }
  
@media (max-width: 1024px) {
  .dokan-dashboard .dokan-dashboard-content.dokan-product-listing {
    padding: 22px;
  }

  .dokan-dashboard .dokan-product-listing #product-filter {
    padding: 16px;
  }
}
  
  @media (max-width: 782px) {
    .dokan-dashboard .dokan-product-listing .product-listing-top {
      justify-content: flex-start;
    }
  
    .dokan-dashboard .dokan-product-listing .product-listing-top span.dokan-add-product-link {
      width: 100%;
    }
  
  .dokan-dashboard .dokan-product-listing .dokan-w12 {
    gap: 10px;
  }

    .dokan-dashboard .dokan-product-listing .dokan-product-date-filter,
    .dokan-dashboard .dokan-product-listing .dokan-product-search-form {
      flex: 1 1 100%;
    }
  
  .dokan-dashboard .dokan-product-listing #product-filter {
    padding: 14px;
  }
}

@media (max-width: 540px) {
  .dokan-dashboard .dokan-dashboard-content.dokan-product-listing {
    padding: 16px;
  }

  .dokan-dashboard .dokan-product-listing .dokan-product-date-filter,
  .dokan-dashboard .dokan-product-listing .dokan-product-search-form {
    padding: 12px;
  }
  
    .dokan-dashboard .dokan-product-listing .pagination li a,
    .dokan-dashboard .dokan-product-listing .pagination li span {
      min-width: 34px;
      height: 34px;
      font-size: 13px;
    }
  }
.yes-js.js_active .ast-plain-container.ast-single-post #primary {
  margin: 0 !important;
}
 /* WooCommerce Order Action Buttons Spacing */
.woocommerce-orders-table td .order-actions-button {
  margin-right: 10px;
  display: inline-block;
}

.woocommerce-orders-table td .order-actions-button:last-child {
  margin-right: 0;
}

/* Alternative selector if buttons are directly in td */
td .woocommerce-button.order-actions-button {
  margin-right: 10px;
  display: inline-block;
}

td .woocommerce-button.order-actions-button:last-child {
  margin-right: 0;
}

/* WooCommerce Terms and Conditions Checkbox Alignment */
.woocommerce-form__label-for-checkbox.checkbox {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}

.woocommerce-form__label-for-checkbox.checkbox br {
  display: none !important;
}

.woocommerce-form__label-for-checkbox.checkbox .woocommerce-form__input-checkbox {
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.woocommerce-form__label-for-checkbox.checkbox .woocommerce-terms-and-conditions-checkbox-text {
  display: inline !important;
  line-height: 1.5 !important;
}

.woocommerce-form__label-for-checkbox.checkbox .required {
  display: inline !important;
  margin-left: 2px !important;
}

/* Razorpay Payment Buttons - Layout and Styling */
#btn-razorpay,
#btn-razorpay-cancel {
  display: inline-block;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  box-sizing: border-box;
}

/* Primary Button - Pay Now */
#btn-razorpay {
  background: #009900;
  color: #fff;
  margin-right: 15px;
}

#btn-razorpay:hover:not(:disabled) {
  background: #007d39;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 153, 0, 0.3);
}

#btn-razorpay:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Secondary Button - Cancel */
#btn-razorpay-cancel {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
}

#btn-razorpay-cancel:hover:not(:disabled) {
  background: #f8f9fa;
  border-color: #999;
  transform: translateY(-2px);
}

#btn-razorpay-cancel:disabled {
  background: #f0f0f0;
  color: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Remove br tag between buttons */
p:has(#btn-razorpay) br {
  display: none;
}

.jssocials-shares{
	display:flex;
	justify-content: center;
}

/* Mobile Responsive - Buttons Only */
@media (max-width: 768px) {
  #btn-razorpay,
  #btn-razorpay-cancel {
    display: block;
    width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  #btn-razorpay-cancel {
    margin-bottom: 0;
  }
}
  

