/* =============================================================================
   Kinwi: Migrated from Yellow Pencil plugin (March 2025)
   Curated essentials only � 52,456 lines condensed to ~250.
   Vendor Dashboard section (15,838 lines) fully discarded � handled by
   functions.php kinwi_dokan_nav_fix_styles() and rules above.
   ============================================================================= */

/* --- Global body safety resets --- */
/* Kinwi: Prevent plugins/themes from constraining body dimensions */
body {
    max-height: none !important;
    overflow: visible;
    height: auto !important;
    max-width: none !important;
}

/* Kinwi: Match html background to footer colour — fills any viewport gap below body */
html {
    background-color: #111111;
}

/* Kinwi: Elementor wrapper overflow control */
body .elementor {
    height: auto !important;
    max-width: none !important;
}

/* --- Header --- */
/* Kinwi: Fixed header height and shadow */
body .elementor-location-header {
    height: 110px !important;
    box-shadow: 0px 0px 5px 0px #111111;
    width: 100%;
    display: block;
}

body .elementor-location-header .elementor-element-6d86b54 {
    min-height: 1px;
    height: 110px;
}

/* Kinwi: Site logo sizing */
body #site-logo {
    height: 82px;
    max-height: none;
}

body #site-logo a {
    height: 82px;
}

body #site-logo .elementor-widget-container {
    width: 100%;
}

body #site-logo-container {
    align-content: center;
    flex: 0 0 auto;
    align-self: center;
    width: auto !important;
    height: auto !important;
}

/* Kinwi: Header nav menu centering */
body .elementor-location-header .elementor-element nav {
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-direction: row;
}

body .elementor-location-header .e-n-menu .e-n-menu-wrapper {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    align-self: center;
}

/* Kinwi: Cart toggle button transparent background */
body #elementor-menu-cart__toggle_button {
    background-color: rgba(0, 0, 0, 0);
    justify-content: center;
    align-content: center;
}

/* --- Password protected page --- */
/* Kinwi: Hide password page logo */
body #password-protected-logo {
    display: none;
}

/* --- Footer images --- */
/* Kinwi: Footer social/payment icon sizing */
body footer.elementor-location-footer .elementor-widget-image .elementor-widget-container {
    width: 30px;
}

body footer.elementor-location-footer .elementor-element img {
    width: 30px;
    max-width: none;
}

body footer.elementor-location-footer .elementor-element h2 {
    white-space: nowrap;
}

/* Kinwi: Footer policy/guide links — white on dark background, green on hover */
body footer.elementor-location-footer .elementor-widget-text-editor a {
    color: #ffffff !important;
}

/* Kinwi: Footer copyright text — 12px, centred (high specificity to override info-page styles) */
body footer.elementor-location-footer .elementor-widget-heading .elementor-heading-title {
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: inherit !important;
    text-align: center !important;
    width: 100% !important;
}
body footer.elementor-location-footer .elementor-widget-heading {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body footer.elementor-location-footer .elementor-widget-text-editor a:hover {
    color: #00967d !important;
}

/* --- Newsletter (MailerLite) form positioning in footer --- */
/* Kinwi: Offset and scale the embedded MailerLite form to fit footer space */
/* Kinwi: MailerLite CSS removed as per user request (2026-03-31) */

/* --- Product page (single-product) --- */
/* Kinwi: Gold star ratings on product pages */
body.single-product .dokan-rating .star-rating span {
    color: #d4af37;
}

/* Kinwi: Review comment font */
body.single-product #comments p {
    font-family: 'Lora upload';
}

/* Kinwi: Store support modal fonts */
body.single-product .dokan-store-support-modals div .dokan-support-intro-user {
    font-family: 'Lora upload';
    font-style: italic;
}

body.single-product .dokan-store-support-modals div .dokan-support-intro-text {
    font-family: 'Gabriela upload';
    font-size: 24px;
}

body.single-product #dokan-support-form .dokan-form-group select {
    font-family: 'Lora upload';
    font-style: italic;
}

body.single-product #dokan-support-form .dokan-form-group label {
    font-family: 'Lora upload';
}

body.single-product #support-submit-btn {
    font-family: 'Gabriela upload';
}

/* Kinwi: Share modal fonts */
body.single-product .dokan-share-store-modals div .dokan-share {
    font-family: 'Lora upload';
    font-style: italic;
}

body.single-product .dokan-share-store-modals > div {
    font-family: 'Lora upload';
    font-style: italic;
}

/* Kinwi: Remove box-shadow from modal close buttons */
body.single-product .dokan-izimodal-close-btn .icon-close {
    box-shadow: none;
}

/* Kinwi: Red wishlist heart icon */
body.single-product .tinv-modal-open .tinv-cell .icon_big_heart_plus {
    color: #ac002a;
}

body.single-product .tinv-modal-open .tinv-cell label {
    font-family: 'Lora upload';
}

/* Kinwi: Hide secondary dokan area and latest products section on product page */
body.single-product #dokan-secondary {
    display: none;
}

body.single-product #dokan_store_section_latest {
    display: none;
}

/* Kinwi: Product page button and heading weights */
body.single-product #dokan-content .product .button {
    font-weight: 500;
    font-style: italic;
}

body.single-product #dokan-content .products-list-heading {
    font-weight: 700;
}

body.single-product .dokan-modules-button .dokan-follow-store-button {
    font-weight: 500;
    font-style: italic;
}

/* Kinwi: White link text in product description */
body.single-product .e-con-inner p a {
    color: #fff;
}

/* Kinwi: Emerald hover on vendor product page SVGs */
body.single-product #vendor-items .product svg:hover {
    color: #00967d;
}

/* Kinwi: Hide support button on product page (desktop only) */
@media (min-width: 481px) {
    body.single-product .dokan-store-tabs .dokan-modules-button .dokan-store-support-btn-wrap {
        display: none !important;
    }
}

/* --- Search page --- */
/* Kinwi: Search results product name font */
body.search .elementor-grid .product h2 {
    font-family: 'Gabriela upload';
    font-style: normal;
    font-weight: 500;
    padding-left: 15px !important;
}

body.search .grid_mart .text-clamp a {
    font-style: normal;
    font-family: 'Gabriela upload';
}

/* Kinwi: Search page archive title styling */
body.search .elementor-widget-theme-archive-title h1 {
    font-style: italic;
    font-weight: 500;
}

/* Kinwi: Search product grid button styling — matches global standard */
body.search .elementor-grid .product .button {
    font-weight: 500;
    font-style: italic;
    margin-left: 15px;
}

/* Kinwi: Hide wishlist text in search grid */
body.search .elementor-grid .tinvwl-product-make-remove .tinvwl_add_to_wishlist-text {
    display: none !important;
}

/* Kinwi: Search page product grid borders */
body.search .elementor-widget-woocommerce-products .elementor-grid li {
    border: 2px solid #565656;
}

/* Kinwi: Emerald hover on search result SVGs and links */
body.search .grid_mart .product svg:hover {
    color: #00967d;
}

body.search .grid_mart .woo_grid_compact a:hover {
    color: #00967d !important;
}

/* --- Cart page --- */
/* Kinwi: Cart product name font */
body.page-id-7 .cart .product-name a {
    font-family: 'Gabriela upload';
    font-style: normal;
}

/* Kinwi: Cart checkout button — matches global standard */
body.page-id-7 .cart_totals .wc-proceed-to-checkout a {
    font-weight: 500;
    font-style: italic;
}

/* Kinwi: Cart order total weight */
body.page-id-7 .order-total td strong {
    font-weight: 500;
}

/* Kinwi: Gold wishlist "add all to cart" button in cart */
body.page-id-7 .cart tbody tr .actions .tinvwl-cart-add-to-cart a {
    background-color: #d4af37 !important;
}

/* --- Wishlist page --- */
/* Kinwi: Wishlist page title font */
body.page-id-3661 .post .title h1 {
    font-weight: 500;
    font-family: 'Gabriela upload';
}

/* Kinwi: Hide estimate wrap on wishlist */
body.page-id-3661 .post .tinv-wishlist-clear .tinvwl-estimate-wrap {
    display: none;
}

/* Kinwi: Hide sidebar on wishlist page */
body.page-id-3661 .rh-outer-wrap .clearfix .sidebar {
    display: none;
}

/* Kinwi: Emerald wishlist action buttons */
body.page-id-3661 .tinvwl-table-manage-list tbody .wishlist_item .product-action .tinvwl-button {
    background-color: #00967d !important;
}

body.page-id-3661 .tinvwl-table-manage-list tbody .wishlist_item .product-action .tinvwl-button:hover {
    background-color: #111 !important;
    color: #00967d !important;
}

/* Kinwi: Emerald border on wishlist info messages */
body.page-id-3661 .page-content .tinv-wishlist .woocommerce-info {
    border-top-color: #00967d;
}

/* --- Store List page --- */
/* Kinwi: Emerald map buttons on store list */
body.page-id-17 #dokan-geolocation-locations-map div div div div > button {
    background-color: #00967d;
}

/* Kinwi: Store card data font */
body.page-id-17 .dokan-seller-wrap .store-wrapper .store-data {
    font-family: 'Gabriela upload';
    font-size: 20px;
}

/* Kinwi: Store list follow button styling */
body.page-id-17 .dokan-seller-wrap .store-footer .dokan-follow-store-button {
    font-weight: 400 !important;
    font-style: italic !important;
}

/* Kinwi: Store list filter label font */
body.page-id-17 .store-lists-other-filter-wrap .item label {
    font-family: 'Lora upload';
    font-weight: 500 !important;
    font-size: 16px !important;
}

/* Kinwi: Store list filter button size */
body.page-id-17 #dokan-store-listing-filter-wrap .item .dokan-store-list-filter-button {
    font-size: 16px;
}

/* Kinwi: Store list cancel filter hover */
body.page-id-17 #cancel-filter-btn:hover {
    background-color: #00967d !important;
}

/* --- Marketplace (shop archive) page --- */
/* Kinwi: Marketplace product title weight */
body.post-type-archive-product .products .product h2 {
    font-style: normal;
    font-weight: 500;
}

/* Kinwi: Marketplace add-to-cart button — matches global standard */
body.post-type-archive-product .products .product .button {
    font-weight: 500;
    font-style: italic;
}

/* Kinwi: Marketplace wishlist text visible */
body.post-type-archive-product .products .product .tinvwl_add_to_wishlist-text,
body.archive .products .product .tinvwl_add_to_wishlist-text {
    padding-right: 12px;
    display: inline-block !important;
}

/* Kinwi: Hide "Add to Wishlist" text once a product is already in the wishlist (fixing conflict) */
body.post-type-archive-product .products .product .tinvwl-product-in-list .tinvwl_add_to_wishlist-text,
body.archive .products .product .tinvwl-product-in-list .tinvwl_add_to_wishlist-text,
.tinvwl-product-in-list .tinvwl_add_to_wishlist-text {
    display: none !important;
}



.dokan-message {
  
  border-top: 3px solid #00967d;
}
/* Delete dimensions field from variable product popup*/
div.dokan-product-variation-itmes:nth-child(1) > div:nth-child(3) > div:nth-child(1) > div:nth-child(6) > div:nth-child(2)
{
 
  display: none !important;
  
} 
/* Add new product category - change active text colour 00967d and background to 00947e4f*/
.dokan-product-category-modal .dokan-product-category-modal-content .dokan-product-category-modal-body .dokan-single-categories-container .dokan-single-categories .dokan-product-category-li-active
 {
 
  color: #00967d !important;
  background-color: #00947e4f !important;
}

/* Add new product category - change chevron icon colour to 00967d*/
.dokan-product-category-modal .dokan-product-category-modal-content .dokan-product-category-modal-body .dokan-single-categories-container .dokan-single-categories .dokan-product-category-li-active.dokan-cat-has-child .dokan-product-category-icon
{
	color: #00967d !important;
}

/* Add new product category - change button hover background colour to 00947e4f*/
.dokan-product-category-modal .dokan-product-category-modal-content .dokan-product-category-modal-body .dokan-single-categories-container .dokan-single-categories .dokan-product-category-ul .dokan-product-category-li:hover
 {
  background-color: #00947e4f !important;
}

/* Add new product category - change text hover  colour to 00967d*/
.dokan-product-category-modal .dokan-product-category-modal-content .dokan-product-category-modal-body .dokan-single-categories-container .dokan-single-categories .dokan-product-category-ul .dokan-product-category-li:hover .dokan-product-category
{
	color: #00967d !important;
}

/* Change blue text to emerald on Selected category text */ 

.dokan-selected-category-product.dokan-cat-selected
{
color: #00967d !important;
}

/* Remove affiliate and group product type options from product page */

#product_type > option:nth-child(3)
{

               display: none !important;
}
#product_type > option:nth-child(4)
{

               display: none !important;
}

/* Remove mailerlite buttons from product page description */
#mceu_70-button
{

               display: none !important;
}
#mceu_13-button
{

               display: none !important;
}



/* Remove Tags on product page */
.dokan-product-meta > div:nth-child(6) > span:nth-child(3)
{

  display: none !important;
}
.dokan-product-meta > div:nth-child(6) > label:nth-child(1)
{

  display: none !important;
}

/* Remove SEO details from product page */
.dokan-product-seo
 {

  display: none !important;
}

/* Remove linked products from product page */
.dokan-linked-product-options
{

  display: none !important;
}

/* Remove product review checkbox to make this default */
.dokan-other-options > div:nth-child(2) > div:nth-child(5) > label:nth-child(1)
{

  display: none !important;
}

/* Remove allow backorders on product page */
div.dokan-product-inventory div.content-half-part:has(#_backorders) {

               display: none;

}




/* Remove backorder stock status on product page */
#_stock_status > option:nth-child(3){

               display: none !important;

}

/* Remove geolocation on product page */
.dokan-geolocation-options > div:nth-child(1)
{

  display: none !important;
}

.dokan-geolocation-options > div:nth-child(2)
{

  display: none !important;
}
/* Remove Tags on product page */
.dokan-product-meta > div:nth-child(6) > span:nth-child(3)
{

  display: none !important;
}
.dokan-product-meta > div:nth-child(6) > label:nth-child(1)
{

  display: none !important;
}

/* Remove SEO details from product page */
.dokan-product-seo
 {

  display: none !important;
}



/* Remove length, width and height from shipping on product page */
#_length
{

               display: none !important;

}
#_width
{

               display: none !important;

}
#_height
{

               display: none !important;

}

/* Remove visibility section on product page */
.dokan-other-options > div:nth-child(2) > div:nth-child(2)
{

               display: none !important;

}

/* REMOVE EXCESS FIELDS FROM VARIABLE PRODUCTS*/
/* remove height, length and width from shipping*/
#field_to_edit > optgroup:nth-child(7) > option:nth-child(3)
{
  display: none !important;
}
#field_to_edit > optgroup:nth-child(7) > option:nth-child(2)
{
  display: none !important;
}
#field_to_edit > optgroup:nth-child(7) > option:nth-child(1)
{
  display: none !important;
}

/* remove downloadable products from variable product*/
#field_to_edit > optgroup:nth-child(8)
{
  display: none !important;
}

/* Remove status field from variable products*/
#field_to_edit > optgroup:nth-child(4)
{
  display: none !important;
}
/* Remove add variations from menu on variable products as comes up with error & keeps loading*/
#field_to_edit > option:nth-child(1)
{
  display: none !important;
}
#field_to_edit > optgroup:nth-child(5)
{
  display: none !important;
}
#field_to_edit > optgroup:nth-child(6)
{
  display: none !important;
}
#field_to_edit > optgroup:nth-child(7)
{
  display: none !important;
}
#field_to_edit > option:nth-child(1)
{
  display: none !important;
}

/* Change add variation gallery image button */

.woo-variation-gallery-wrapper .add-woo-variation-gallery-image, .woo-variation-gallery-wrapper .woo-variation-gallery-pro-button {
  
  background: #d4af37;
  border-color: #d4af37;
  color: #111;
}

/* Remove dimensions on variable products */
/*div.dokan-product-variation-wrapper div.dimensions_field:has(input[id^="product_length"]) {
  display: none !important;
}*/
div.dokan-product-variation-wrapper div.dimensions_field {
  display: none !important;
}

/* Remove error message when add variation */
b.variation-needs-update:warning
{
  display: none !important;
}

/* Remove backorders on variable products */

div.dokan-product-variation-itmes:nth-child(1) > div:nth-child(3) > div:nth-child(1) > div:nth-child(5) > div:nth-child(2)
{
  display: none !important;
}


/* Remove Custom attribute from vendor */
#predefined_attribute > option:nth-child(1)
{
  display: none !important;
}



/* BULK EDITOR */

/* Remove Tags from bulk editor */
div.dokan-w8:nth-child(3) > div:nth-child(2)
{
  display: none !important;
}

/* Remove l/w/h from bulk editor */
#bulk-edit > td:nth-child(1) > fieldset:nth-child(1) > div:nth-child(3) > div:nth-child(2) > div:nth-child(4)
{
  display: none !important;
}


/* Remove backorders from bulk editor */
div.dokan-w6:nth-child(3) > div:nth-child(5)
{
  display: none !important;
}



/* Remove visibility from bulk editor */
div.dokan-w6:nth-child(3) > div:nth-child(1)
{
  display: none !important;
}


/* QUICK EDIT*/

/* Remove Tags from quick edit */

/* Match the label element which is immediately before the select element with "product_tag_search" class */
tr.dokan-product-list-inline-edit-form div.dokan-inline-edit-column label:has(+select.product_tag_search),

/* Match the select element with "product_tag_search" class */
tr.dokan-product-list-inline-edit-form div.dokan-inline-edit-column select.product_tag_search,

/* Match the span element with "select2" class, that is immediately after the select element with "product_tag_search" class */
tr.dokan-product-list-inline-edit-form div.dokan-inline-edit-column select.product_tag_search + span.select2

{
	display: none !important;
}

/* Remove l/w/h from quick edit */

/* Match the "dokan-inline-edit-field-row" div element which has a descendent input element having the attribute data-field-name="length" */
tr.dokan-product-list-inline-edit-form div.dokan-inline-edit-field-row:has(input[data-field-name="length"]) {
	display: none !important;
}

/* Remove backorders from quick edit */

/* Match the "dokan-inline-edit-field-row" div element which has a descendent select element having the attribute data-field-name="backorders" */
tr.dokan-product-list-inline-edit-form div.dokan-inline-edit-field-row:has(select[data-field-name="backorders"]) {
	display: none !important;
}

/* Remove visibility from quick edit */

/* Match the "dokan-inline-edit-field-row" div element which has a descendent select element having the attribute data-field-name="_visibility" */
tr.dokan-product-list-inline-edit-form div.dokan-inline-edit-field-row:has(select[data-field-name="_visibility"]) {
	display: none !important;
}

/* Remove enable review choice from quick edit */

/* Match the label element which has a descendent input element having the attribute data-field-name="reviews_allowed" */
tr.dokan-product-list-inline-edit-form div.dokan-inline-edit-column label:has(input[data-field-name="reviews_allowed"]) {
	display: none !important;
}

/* PRODUCT ADDONS */

/* REMOVE CUSTOMER DEFINED PRICE FROM DROPDOWN TYPE */
/* Kinwi: Handled by child theme template override (html-addon.php) + JS in functions.php.
   Old nth-child(6) rule only covered the first addon (#wc-pao-addon-content-type-0). */

/* make remove x non italic */
#product_addons_data .wc-pao-addon-content-remove > button
{
font-style:normal !important
}

/* Display checkbox inputs as proper checkboxes */
input[type=checkbox] {
	appearance: checkbox;
	-webkit-appearance: checkbox;
	-moz-appearance: checkbox;
}

/* Display radio inputs as proper radio buttons */
input[type="radio"] {
  appearance: radio;
  -webkit-appearance: radio;
  -moz-appearance: radio;
}

/* make checkmark darker on selection boxes*/
.single_variation_wrap .wc-pao-addon-22124-0-0 input[type=checkbox]:hover{

color: #111 !important;
}
.single_variation_wrap .wc-pao-addon-22124-0-0 input[type=checkbox]{
	color: #111 !important;

}
.single_variation_wrap .wc-pao-addon-22124-0-0 input[type=checkbox]:active{
color: #111 !important;	
}
.single_variation_wrap .wc-pao-addon-22124-0-0 input[type=checkbox]:checked{
	color: #111 !important;	
}
.single_variation_wrap .wc-pao-addon-22124-0-0 input[type=checkbox]:focus{
	color: #111 !important;	
}
.single_variation_wrap .wc-pao-addon-22124-0-0 input[type=checkbox]:enabled{
color: #111 !important;	
}

/* Kinwi: Hide Dokan store sidebar (Store Product Category, Contact Vendor etc.) on all vendor store pages */
#dokan-secondary.dokan-store-sidebar {
    display: none !important;
}

/* Kinwi: Hide Latest Products section above All Products on all vendor store pages */
#dokan_store_section_latest {
    display: none !important;
}

/* Kinwi: Store page button redesign � Follow, Share, Reviews, Return to Dashboard */

/* Hide Ask a Question button */
.dokan-single-store .dokan-store-tabs .dokan-store-support-btn-wrap {
    display: none !important;
}

/* Hide the Products / Reviews tab row (Reviews is now a button above) */
/* Kinwi: We no longer hide the entire row because we need Terms and Biography tabs.
   The Reviews tab specifically is unset via PHP in functions.php instead. */
.dokan-single-store .dokan-store-tabs ul.dokan-list-inline {
    /* display: none !important; */
}

/* Style all Dokan store tab buttons (Follow, Share + our Reviews) */

/* Fix alignment and spacing of the button row */
.dokan-single-store .dokan-store-tabs ul.dokan-modules-button {
    align-items: center !important;
    gap: 8px !important;
}

.dokan-single-store .dokan-store-tabs ul.dokan-modules-button li {
    margin: 0 !important;
    float: none !important;
}

.dokan-single-store .dokan-store-tabs ul.dokan-modules-button button.dokan-btn,
.dokan-single-store .dokan-store-tabs ul.dokan-modules-button .kinwi-reviews-btn {
    background-color: #00967d !important;
    color: #000000 !important;
    border-color: #00967d !important;
    font-family: "Lora upload" !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    height: 34px !important;
    line-height: 1 !important;
    padding: 0 18px !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}

.dokan-single-store .dokan-store-tabs ul.dokan-modules-button button.dokan-btn:hover,
.dokan-single-store .dokan-store-tabs ul.dokan-modules-button .kinwi-reviews-btn:hover {
    background-color: #000000 !important;
    color: #00967d !important;
    border-color: #000000 !important;
}

/* Kinwi: Share button icon � reduce size and add gap from text */
.dokan-single-store .dokan-store-tabs .dokan-share-btn i.fas.fa-external-link-alt {
    font-size: 13px !important;
    margin-left: 5px !important;
}

/* Kinwi: Share button has a default margin-top:3px  remove it to align with Follow and Reviews */
.dokan-single-store .dokan-store-tabs .dokan-share-btn {
    margin-top: 0 !important;
}

/* Kinwi: Add to cart buttons on store page  match 500 weight */
.dokan-single-store a.add_to_cart_button,
.dokan-single-store a.button {
    font-weight: 500 !important;
    font-style: italic !important;
}


/* Kinwi: Wishlist popup buttons  equal width, no text wrapping */
.tinvwl-buttons-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
}

.tinvwl-buttons-group .tinvwl-button {
    white-space: nowrap !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
    margin-left: 0 !important;
}

/*make subtotal emerald*/

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price,
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price {
  color:#00967d !important;
  font-size:1.25em
}



/*Hide import-export buttons as do not work*/

.wc-pao-toolbar__import-export
{
  display: none !important;
}


/* VENDOR SHIPPING */

/* Remove tax box from table rate shipping */
div.dokan-form-group:has([name="table_rate_prices_include_tax"])  {

               display: none !important;

}

/* Sam's code to remove  abort column from table rate shipping */
#dokan_shipping_rates thead th:nth-child(6),

#dokan_shipping_rates tbody td:nth-child(6)
{

               display: none !important;
}

/* Sam's code to remove tax and handling fee from table rate shipping */
div.dokan-form-group:has([name="table_rate_tax_status"]),

div.dokan-form-group:has([name="table_rate_order_handling_fee"]),

div.dokan-form-group:has([name="table_rate_handling_fee"])  {

               display:none !important;
}

/* Remove calculation text from shipping class popup */

.zone-component .dokan-form-group span.description {
 
  display: none !important;
}
/*Dokan Shipping Zone update button colour and make always visible */
table.shipping-zone-table tbody tr td .row-actions {
    visibility: visible !important;
}
table.shipping-zone-table tbody tr td .row-actions a {
    display: inline-block !important;
    background: #00967d !important;
    color: #111 !important;
    padding: 4px 10px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    border-radius: 4px !important;
    text-align: center !important;
    white-space: normal !important;
    box-sizing: border-box !important;
    transform: none !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}
table.shipping-zone-table tbody tr td .row-actions a:hover,
table.shipping-zone-table tbody tr td .row-actions a:focus {
    background: #111 !important;
    color: #00967d !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    padding: 4px 10px !important;
    transform: none !important;
    box-shadow: none !important;
}
table.shipping-zone-table tbody tr td p span {
    display: block;
}
table.shipping-zone-table tbody tr td p span ~ a {
    display: inline-block !important;
    background: #00967d !important;
    color: #111 !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    border-radius: 4px !important;
    text-align: center !important;
    white-space: normal !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    margin-top: 6px !important;
    transform: none !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
    font-style: italic !important;
    font-family: "Lora upload", "Lora", serif !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}
table.shipping-zone-table tbody tr td p span ~ a:hover,
table.shipping-zone-table tbody tr td p span ~ a:focus {
    background: #111 !important;
    color: #00967d !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    padding: 6px 12px !important;
    transform: none !important;
    box-shadow: none !important;
    font-style: italic !important;
}
table.shipping-zone-table tbody tr td p span ~ a:active {
    transform: scale(0.98) !important;
    background: #d4af37 !important;
    color: #111 !important;
}

/*Dokan Shipping method make always visible instead of on hover */
.edit > a:nth-child(1)
{
    visibility: visible !important;
}
.delete > a:nth-child(1)
{
    visibility: visible !important;
}



/*FREE SHIPPING*/
/*Remove coupon requirements under dropdown box*/


label[for="dokan-free-shipping-options"] + select option[value="coupon"],

label[for="dokan-free-shipping-options"] + select option[value="either"],

label[for="dokan-free-shipping-options"] + select option[value="both"] {

  display: none;

}


/*Remove Apply minimum order rule before discount from free shipping requires a minimum amount */
div.dokan-form-group:has(#apply_min_amount_rule_before_discount) {
display: none !important;
}


/* VENDOR REGISTRATION FORM */

/* Vendor registration button color */

input[type="submit"].dokan-btn-theme.disabled, a.dokan-btn-theme.disabled, .dokan-btn-theme.disabled, input[type="submit"].dokan-btn-theme[disabled], a.dokan-btn-theme[disabled], .dokan-btn-theme[disabled], fieldset[disabled] input[type="submit"].dokan-btn-theme, fieldset[disabled] a.dokan-btn-theme, fieldset[disabled] .dokan-btn-theme, input[type="submit"].dokan-btn-theme.disabled:hover, a.dokan-btn-theme.disabled:hover, .dokan-btn-theme.disabled:hover, input[type="submit"].dokan-btn-theme[disabled]:hover, a.dokan-btn-theme[disabled]:hover, .dokan-btn-theme[disabled]:hover, fieldset[disabled] input[type="submit"].dokan-btn-theme:hover, fieldset[disabled] a.dokan-btn-theme:hover, fieldset[disabled] .dokan-btn-theme:hover, input[type="submit"].dokan-btn-theme.disabled:focus, a.dokan-btn-theme.disabled:focus, .dokan-btn-theme.disabled:focus, input[type="submit"].dokan-btn-theme[disabled]:focus, a.dokan-btn-theme[disabled]:focus, .dokan-btn-theme[disabled]:focus, fieldset[disabled] input[type="submit"].dokan-btn-theme:focus, fieldset[disabled] a.dokan-btn-theme:focus, fieldset[disabled] .dokan-btn-theme:focus, input[type="submit"].dokan-btn-theme.disabled:active, a.dokan-btn-theme.disabled:active, .dokan-btn-theme.disabled:active, input[type="submit"].dokan-btn-theme[disabled]:active, a.dokan-btn-theme[disabled]:active, .dokan-btn-theme[disabled]:active, fieldset[disabled] input[type="submit"].dokan-btn-theme:active, fieldset[disabled] a.dokan-btn-theme:active, fieldset[disabled] .dokan-btn-theme:active, input[type="submit"].dokan-btn-theme.disabled.active, a.dokan-btn-theme.disabled.active, .dokan-btn-theme.disabled.active, input[type="submit"].dokan-btn-theme[disabled].active, a.dokan-btn-theme[disabled].active, .dokan-btn-theme[disabled].active, fieldset[disabled] input[type="submit"].dokan-btn-theme.active, fieldset[disabled] a.dokan-btn-theme.active, fieldset[disabled] .dokan-btn-theme.active {
  /* background-color: #f37655; */
  /* border-color: #f37655; */
  background-color: #00967dff;
  border-color: #00967dff;
}

/* Vendor registration form text button color */

input[type="submit"].dokan-btn-theme, a.dokan-btn-theme, .dokan-btn-theme {
  /* color: #fff; */
  color: #111111;
}

/* Hide state box & country box on vendor registration form */
#dokan-states-box
{
  display: none;
}

/* style.css | https://kinwi.co.nz/wp-content/plugins/dokan-lite/assets/css/style.css?ver=1704004878 */

input[type="submit"].dokan-btn-theme, a.dokan-btn-theme, .dokan-btn-theme {
  /* background-color: #f05025; */
  /* border-color: #f05025; */
  background-color: #111111;
  border-color: #111111;
}

/* Inline #50 | https://kinwi.co.nz/vendor-registration/ */

input[type="submit"].dokan-btn-theme, a.dokan-btn-theme, .dokan-btn-theme {
  /* color: #111111; */
  color: #00967dff;
}
/* Inline #50 | https://kinwi.co.nz/vendor-registration/ */

input[type="submit"].dokan-btn-theme, a.dokan-btn-theme, .dokan-btn-theme:hover {
  /* color: #111111; */
  color: #00967dff;
}

/* Inline #50 | https://kinwi.co.nz/vendor-registration/ */

input[type="submit"].dokan-btn-theme, a.dokan-btn-theme, .dokan-btn-theme:hover {
  /* color: #00967dff; */
  color: #111111;
}


/* WISHLIST EDITS */

/* Kinwi: Wishlist Add to Cart button — matches global standard */
.woocommerce.tinv-wishlist button.button.alt {
  background-color: #00967d !important;
  color: #111111 !important;
  border-color: #111111 !important;
}

/* Kinwi: Wishlist Add to Cart hover — matches global standard */
.woocommerce.tinv-wishlist button.button.alt:hover {
  background-color: #111111 !important;
  color: #00967d !important;
  border-color: #111111 !important;
}

/* Change product stock number colour in wishlist */
.tinv-wishlist .product-stock .stock:not(.out-of-stock) {
  color: #00967d !important;
}

/* Change product title colour in wishlist */
.tinv-wishlist a:not(.button):not(.social) {
  font-family: inherit !important;
  font-weight: 400 !important;
  color: #111 !important;
	}

/* Change product title hover colour in wishlist */
.tinv-wishlist a:not(.button):not(.social):hover {
  font-family: inherit !important;
  font-weight: 400 !important;
  color: #00967dff !important;
	}

/* Kinwi: Wishlist Add to Cart text colour — matches global standard */
.woocommerce.tinv-wishlist #respond input#submit.alt, .woocommerce.tinv-wishlist a.button.alt, .woocommerce.tinv-wishlist button.button.alt, .woocommerce.tinv-wishlist input.button.alt {
  color: #111111 !important;
}

/* Kinwi: Wishlist Add to Cart hover — matches global standard */
.woocommerce.tinv-wishlist #respond input#submit.alt:hover, .woocommerce.tinv-wishlist a.button.alt:hover, .woocommerce.tinv-wishlist button.button.alt:hover, .woocommerce.tinv-wishlist input.button.alt:hover {
	background-color: #111111 !important;
  color: #00967d !important;
}

/* Kinwi: Wishlist bottom buttons — matches global standard */
.woocommerce.tinv-wishlist #respond input#submit, .woocommerce.tinv-wishlist a.button, .woocommerce.tinv-wishlist button.button, .woocommerce.tinv-wishlist input.button {
  color: #111111 !important;
  background-color: #00967d !important;
}

/* Kinwi: Wishlist bottom buttons hover — matches global standard */
.woocommerce.tinv-wishlist #respond input#submit:hover, .woocommerce.tinv-wishlist a.button:hover, .woocommerce.tinv-wishlist button.button:hover, .woocommerce.tinv-wishlist input.button:hover {
  color: #00967d !important;
  background-color: #111111 !important;
}

/*Remove ask for estimate button from wishlist in account */
.tinvwl-estimate-wrap

 {

  display: none !important;

}


/* Change empty wishlist icon to emerald */

.woocommerce-info::before {
  /* color: #1e85be; */
  color: #00967d;
}


/*Change border top colour to emerald */


.woocommerce-info {
  /* border-top-color: #1e85be; */
  border-top-color: #00967d;
}
	

	
	
	/* SIMPLE FIX: Full-width background image from 881px to 1030px */
@media (min-width: 881px) and (max-width: 1029px) {
	body.home .elementor-section:first-of-type:not(.elementor-location-header) .elementor-slide-bg,
	body.home .elementor-section:first-of-type:not(.elementor-location-header) .elementor-background,
	body.home .elementor-section:first-of-type:not(.elementor-location-header) .swiper-slide,
	body.home .elementor-section:first-of-type:not(.elementor-location-header) .elementor-slide,
	body.home .elementor-section:first-of-type:not(.elementor-location-header) img,
	body.home .elementor-section:first-of-type:not(.elementor-location-header) .elementor-slide-image img {
		max-width: 100vw !important;
		width: 100vw !important;
		margin: 0 !important;
		padding: 0 !important;
		background-size: cover !important;
		background-position: center center !important;
		background-repeat: no-repeat !important;
		object-fit: cover !important;
		object-position: center !important;
	}
}
	
	@media (max-width: 600px) {
		body.home .elementor-section:first-of-type:not(.elementor-location-header) .elementor-widget-slides,
		body.home .elementor-section:first-of-type:not(.elementor-location-header) .swiper-container {
			min-height: 250px !important;
		}
		
		body.home .elementor-section:first-of-type:not(.elementor-location-header) .swiper-slide,
		body.home .elementor-section:first-of-type:not(.elementor-location-header) .elementor-slide,
		body.home .elementor-section:first-of-type:not(.elementor-location-header) .elementor-slide-bg,
		body.home .elementor-section:first-of-type:not(.elementor-location-header) .elementor-background,
		body.home .elementor-section:first-of-type:not(.elementor-location-header) img {
			min-height: 250px !important;
		}
		
		body.home .elementor-section:first-of-type:not(.elementor-location-header) .elementor-slide-content {
			padding: 10px !important;
		}
	}
	
	/* Make bottom slider dots on background - position within slider */
	.elementor-swiper .swiper-pagination-clickable,
	.elementor-widget-slides .swiper-pagination,
	.elementor-widget-slides .swiper-pagination-bullets {
		bottom: 20px !important;
		top: auto !important;
		left: 50% !important;
		transform: translateX(-50%) !important;
		z-index: 10 !important;
		position: absolute !important;
	}
	
	/* Ensure pagination dots stay within slider container */
	.elementor-widget-slides .swiper-wrapper {
		margin-bottom: 0 !important;
	}
	
	/* Remove any extra spacing that pushes dots below slider */
	.elementor-widget-slides .swiper-pagination {
		margin: 0 !important;
		padding: 0 !important;
	}
	
	/* Fix slider content layout - prevent text/button/dots from overflowing */
	.elementor #slider-background .elementor-widget-slides .elementor-slide-content,
	.elementor .elementor-widget-slides .elementor-slide-content,
	.elementor-section .elementor-widget-slides .elementor-slide-content {
		padding: 20px !important;
		box-sizing: border-box !important;
    border-radius: 0 !important;
		max-width: 100% !important;
		overflow: hidden !important;
	}
	
	/* Ensure slide content stays within bounds */
	.elementor #slider-background .elementor-slide-heading,
	.elementor #slider-background .elementor-slide-description,
	.elementor #slider-background .elementor-slide-button,
	.elementor .elementor-widget-slides .elementor-slide-heading,
	.elementor .elementor-widget-slides .elementor-slide-description,
	.elementor .elementor-widget-slides .elementor-slide-button {
		max-width: 100% !important;
		word-wrap: break-word !important;
		overflow-wrap: break-word !important;
		box-sizing: border-box !important;
    border-radius: 0 !important;
	}
	
	/* Keep pagination dots within slider */
	.elementor #slider-background .swiper-pagination,
	.elementor .elementor-widget-slides .swiper-pagination,
	.elementor-widget-slides .swiper-pagination {
		position: absolute !important;
		bottom: 20px !important;
		left: 50% !important;
		transform: translateX(-50%) !important;
		width: auto !important;
		z-index: 10 !important;
		top: auto !important;
		margin: 0 !important;
		padding: 0 !important;
	}
	
	/* Responsive slider content for smaller screens */
	@media (max-width: 768px) {
		.elementor #slider-background .elementor-slide-content,
		.elementor .elementor-widget-slides .elementor-slide-content {
			padding: 15px !important;
		}
		.elementor #slider-background .elementor-slide-heading,
		.elementor .elementor-widget-slides .elementor-slide-heading {
			font-size: clamp(18px, 4vw, 24px) !important;
			line-height: 1.2 !important;
		}
		.elementor #slider-background .elementor-slide-description,
		.elementor .elementor-widget-slides .elementor-slide-description {
			font-size: clamp(14px, 3vw, 16px) !important;
			line-height: 1.3 !important;
		}
		.elementor #slider-background .elementor-slide-button,
		.elementor .elementor-widget-slides .elementor-slide-button {
			font-size: clamp(12px, 2.5vw, 14px) !important;
			padding: 8px 16px !important;
		}
	}
	
	@media (max-width: 480px) {
		.elementor #slider-background .elementor-slide-content,
		.elementor .elementor-widget-slides .elementor-slide-content {
			padding: 10px !important;
		}
		.elementor #slider-background .elementor-slide-heading,
		.elementor .elementor-widget-slides .elementor-slide-heading {
			font-size: clamp(16px, 5vw, 20px) !important;
			margin-bottom: 8px !important;
		}
		.elementor #slider-background .elementor-slide-description,
		.elementor .elementor-widget-slides .elementor-slide-description {
			font-size: clamp(12px, 3.5vw, 14px) !important;
			margin-bottom: 12px !important;
		}
		.elementor #slider-background .elementor-slide-button,
		.elementor .elementor-widget-slides .elementor-slide-button {
			font-size: clamp(11px, 3vw, 12px) !important;
			padding: 6px 12px !important;
		}
	}

/* Division */
.elementor #slider-background .e-con-inner .elementor-widget-slides .elementor-widget-container .elementor-swiper .swiper-container-initialized .swiper-pagination-clickable{
	height:40px !important;
}

/* Kinwi: Slider width + spacing (migrated from Additional CSS) */
@media (min-width: 1041px) {
  #slider-background,
  #slider-background > .e-con-inner {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (min-width: 641px) {
  #slider-background {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 20px !important;
    padding-bottom: 0 !important;
  }

  #slider-background,
  #slider-background .elementor-slides-wrapper,
  #slider-background .elementor-widget-container {
    overflow: hidden !important;
  }
}


/* STORE LIST */


/* Make store titles 20px */

#dokan-seller-listing-wrap.grid-view .store-content .store-data-container .store-data h2 a {
  
  font-size: 20px;
}


/* VENDOR DASHBOARD */


/* Allow body to scroll when popup opens 782 and below */

body.lockscroll, html.lockscroll {
  /* overflow: hidden; */
  overflow: visible !important;
}


/* Make popup title on vendor dashboard charts Lora upload  */

.woocommerce-dashboard__chart-block-wrapper > div h4 {
  font-family: "Lora upload";
}

@media (min-width: 801px) {
  /* Kinwi: Desktop common-links use original Dokan hover labels (no click), with green hover button */
  .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a::before {
    content: none !important;
    display: none !important;
  }

  .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a {
    color: #ffffff !important;
    background: transparent !important;
    border-radius: 4px;
  }

  .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a i {
    color: #ffffff !important;
  }

  .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a:hover,
  .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a:focus-visible {
    background: #00967d !important;
    color: #ffffff !important;
  }

  .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a:hover i,
  .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a:focus-visible i {
    color: #ffffff !important;
  }

  .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a[data-original-title]:hover::after,
  .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a[data-original-title]:focus-visible::after {
    content: attr(data-original-title) !important;
    display: block !important;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    padding: 4px 8px;
    border-radius: 4px;
    background: #111111;
    color: #ffffff !important;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    z-index: 10005;
    pointer-events: none;
  }

  /* Kinwi: Keep Dokan sidebar/content aligned in one row on desktop widths */
  body.dokan-dashboard,
  body.dokan-dashboard .dokan-dashboard,
  body.dokan-dashboard .dokan-dashboard-wrapper,
  body.dokan-dashboard .dokan-dashboard-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.dokan-dashboard .dokan-dashboard-wrap {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    overflow: visible !important;
  }

  body.dokan-dashboard .dokan-dash-sidebar {
    width: 20% !important;
    max-width: 20% !important;
    min-width: 0 !important;
    flex: 0 0 20% !important;
    float: none !important;
    clear: none !important;
  }

  body.dokan-dashboard .dokan-dashboard-content {
    width: 80% !important;
    max-width: 80% !important;
    min-width: 0 !important;
    flex: 1 1 80% !important;
    float: none !important;
    clear: none !important;
    margin-top: 0 !important;
  }
}

@media (min-width: 801px) {
  /* Kinwi: Visit Store � full-width desktop sidebar item matching other nav items */
  body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    position: relative !important;
    top: 0 !important;
  }

  /* 801px+: standard block layout matching other nav items */
  body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a:nth-of-type(1) {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 10px 0 10px 18px !important;
    font-size: 14px !important;
    color: #ffffff !important;
    background: transparent !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
    white-space: nowrap !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    line-height: normal !important;
  }

  body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a:nth-of-type(1) i {
    font-size: 17px !important;
    color: #ffffff !important;
    padding-right: 15px !important;
    margin: 0 !important;
    vertical-align: middle !important;
  }

  body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a:nth-of-type(1)::after {
    content: "Visit Store" !important;
    display: inline !important;
    font-size: 14px !important;
    color: #ffffff !important;
    position: static !important;
    transform: none !important;
    background: transparent !important;
    padding: 0 !important;
    pointer-events: none;
    vertical-align: middle !important;
  }

  body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a:nth-of-type(1)::before {
    display: none !important;
    content: none !important;
  }

  body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a:nth-of-type(1):hover,
  body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a:nth-of-type(1):focus-visible {
    background: #00967d !important;
    color: #ffffff !important;
  }

  body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a:nth-of-type(1):hover::after,
  body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a:nth-of-type(1):focus-visible::after {
    content: "Visit Store" !important;
    position: static !important;
    transform: none !important;
    background: transparent !important;
    color: #ffffff !important;
  }
}

/* 881px+: block layout */
@media (min-width: 881px) {
  body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a:nth-of-type(1) {
    padding: 10px 0 10px 18px !important;
    font-size: 14px !important;
  }

  body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a:nth-of-type(1) i {
    font-size: 17px !important;
    padding-right: 15px !important;
    margin: 0 !important;
  }

  body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a:nth-of-type(1)::after {
    font-size: 14px !important;
  }
}

@media (min-width: 801px) {
  /* Kinwi: JS-driven desktop hover fallback for Common Links */
  body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a.kinwi-hover-active {
    background: #00967d !important;
    color: #ffffff !important;
  }

  body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a.kinwi-hover-active i {
    color: #ffffff !important;
  }

  body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a.kinwi-hover-active::after {
    content: attr(data-kinwi-label) !important;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    display: block !important;
    padding: 4px 8px;
    border-radius: 4px;
    background: #111111;
    color: #ffffff !important;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    z-index: 10020;
    pointer-events: none;
  }
}

@media (min-width: 801px) {
  /* Kinwi: Final desktop sidebar/common-links behavior */
  body.dokan-dashboard .dokan-dashboard-wrap {
    display: flex !important;
    align-items: stretch !important;
  }

  body.dokan-dashboard .dokan-dash-sidebar {
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
    height: auto !important;
    min-height: 100% !important;
    background: #000000;
  }

  body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  /* Kinwi: li.dokan-common-links layout is handled in the earlier desktop block � no grid here */
  body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links {
    flex: 0 0 auto !important;
    margin-top: auto !important;
  }

  /* Kinwi: Hide clearfix pseudo-elements so they don't occupy grid slots */
  body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links::before,
  body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links::after {
    display: none !important;
    content: none !important;
  }

  body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 10px 18px !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    position: relative;
  }

  body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a i {
    color: #ffffff !important;
  }

  body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a:hover,
  body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a:focus-visible {
    background: #00967d !important;
    color: #ffffff !important;
  }

  body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a:hover i,
  body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a:focus-visible i {
    color: #ffffff !important;
  }

  body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a::before {
    content: none !important;
    display: none !important;
  }

  body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a[data-original-title]:hover::after,
  body.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu > li.dokan-common-links > a[data-original-title]:focus-visible::after {
    content: attr(data-original-title) !important;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    display: block !important;
    padding: 4px 8px;
    border-radius: 4px;
    background: #111111;
    color: #ffffff !important;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    z-index: 10010;
    pointer-events: none;
  }
}

/* Kinwi: Contain WooCommerce Analytics React app on all narrow-screen devices.
   Root causes identified via browser audit:
   A) YP @(max-width:782px): .woocommerce-chart { margin:-16px -16px } ? chart bleeds outside container
   B) YP @(max-width:960px): .woocommerce-chart__interval-select { width:100% } ? "By day" takes full row
   C) YP @(max-width:767px): .woocommerce-chart__types { width:100% } ? chart type buttons wrap below
   D) Dokan reports/index.css: .woocommerce-filters-filter { min-width:30% } ? filter rows overflow
   E) YP: .woocommerce-dropdown-button fixed min-widths (315�385px) ? dropdowns overflow column
   F) d3 chart containers render at full WC admin width (~2234px)
   Coverage extended to max-width:960px to fix stacking on all phones and tablets, not just 641�767px. */
@media (max-width: 960px) {
  /* A: Remove negative margins that bleed the chart outside its column */
  #dokan-analytics-app .woocommerce-chart {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
  }

  /* B+C: Grid layout for Charts section header — title/line/ellipsis on row 1,
     By day + chart buttons on row 2. Matches grid in 11-analytics.css. */
  #dokan-analytics-app .woocommerce-section-header.has-interval-select {
    display: grid !important;
    grid-template-columns: auto 1fr 28px !important;
    grid-template-rows: auto auto !important;
    grid-template-areas:
        "title line menu"
        "actions actions actions" !important;
    align-items: center !important;
    column-gap: 8px !important;
    row-gap: 10px !important;
  }

  #dokan-analytics-app .woocommerce-section-header.has-interval-select .woocommerce-section-header__title {
    grid-area: title !important;
    margin: 0 !important;
  }

  #dokan-analytics-app .woocommerce-section-header.has-interval-select hr {
    display: block !important;
    visibility: visible !important;
    grid-area: line !important;
    margin: 0 !important;
    min-width: 10px !important;
    width: 100% !important;
    border: none !important;
    border-top: 1px solid #e0e0e0 !important;
  }

  #dokan-analytics-app .woocommerce-section-header.has-interval-select .woocommerce-section-header__menu {
    grid-area: menu !important;
    position: static !important;
    margin: 0 !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #dokan-analytics-app .woocommerce-section-header.has-interval-select .woocommerce-section-header__actions {
    grid-area: actions !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    justify-content: flex-end !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #dokan-analytics-app .woocommerce-section-header.has-interval-select .woocommerce-chart__interval-select {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border-right: none !important;
    height: auto !important;
    min-height: 0 !important;
    width: auto !important;
    flex: 0 0 auto !important;
    order: 1 !important;
  }

  #dokan-analytics-app .woocommerce-chart__interval-select .components-select-control__input {
    min-height: 36px !important;
    padding: 6px 36px 6px 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
  }

  #dokan-analytics-app .woocommerce-section-header.has-interval-select .woocommerce-chart__types {
    display: inline-flex !important;
    flex-direction: row !important;
    gap: 6px !important;
    width: auto !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    order: 2 !important;
  }

  #dokan-analytics-app .woocommerce-section-header.has-interval-select .woocommerce-chart__types button {
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #555 !important;
    flex: 0 0 auto !important;
  }

  #dokan-analytics-app .woocommerce-section-header.has-interval-select .woocommerce-chart__types button.woocommerce-chart__type-button-selected {
    background: #00967d !important;
    color: #fff !important;
    border-color: #00967d !important;
  }

  @media (min-width: 601px) {
    #dokan-analytics-app .woocommerce-section-header.has-interval-select .woocommerce-section-header__actions {
      justify-content: flex-end !important;
    }
  }

  #dokan-analytics-app .woocommerce-chart__header {
    flex-wrap: wrap !important;
    align-items: center !important;
    display: flex !important;
    gap: 10px !important;
  }

  /* D: Override the per-filter row min-width so each filter fits the column */
  #dokan-analytics-app .woocommerce-filters__basic-filters .woocommerce-filters-filter {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
  }

  /* E: Override the large fixed min-widths on the dropdown trigger button */
  #dokan-analytics-app .woocommerce-dropdown-button {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
  }

  /* F: Constrain d3 chart drawing containers to column width */
  #dokan-analytics-app .d3-chart__container,
  #dokan-analytics-app .d3-base,
  #dokan-analytics-app .woocommerce-legend {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
  }

  /* Clip at the app boundary � no page-level horizontal scroll */
  #dokan-analytics-app {
    overflow-x: hidden !important;
  }
}

/* Kinwi: Migrated from WPCode (2026-03-17) - keep Dokan date-range popover visible on mobile */
@media (max-width: 782px) {
  .dokan-dashboard-content,
  .dokan-dashboard-content .dashboard-content-area,
  .dokan-dashboard-content .woocommerce-layout,
  .dokan-dashboard-content .woocommerce-filters,
  .dokan-dashboard-content .woocommerce-filters__basic-filters,
  .dokan-dashboard-content .woocommerce-filters-filter,
  .dokan-dashboard-content .components-dropdown {
    overflow: visible !important;
    transform: none !important;
  }

  .components-popover.woocommerce-filters-date__content {
    z-index: 9999999 !important;
  }
}

/* Kinwi: Override Yellow Pencil hardcoded body/footer width:650px at =649px viewports.
   YP has @media(max-width:650px){ body{width:650px} footer{width:650px} dokan-dashboard-wrap{width:650px} }
   which makes the page wider than the viewport on phones narrower than 650px. */
@media (max-width: 650px) {
  body {
    width: 100% !important;
    max-width: 100% !important;
  }
  footer,
  .elementor-location-footer {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
  }
  .dokan-dashboard-wrap {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
  }
  .elementor,
  .rh-outer-wrap .elementor {
    max-width: 100% !important;
  }
}


/* Kinwi: Style for the active store tab */
.dokan-single-store .dokan-store-tabs ul.dokan-list-inline li.kinwi-active-tab a {
    color: #00967d !important;
    font-weight: 600 !important;
    border-bottom: 3px solid #00967d !important;
    padding-bottom: 5px !important;
}
