/* ============================================================================= 
   Kinwi: Dokan New Product Form Fixes - 2026-06-05 (Updated)
   Issues: 1) Remove Brand and Tags fields, 2) Lora 16px bold italic for labels, 
   3) Visual/Code button alignment
   ============================================================================= */

/* 1. Remove Brand field from vendor product form - instant CSS with zero flash */
html body.dokan-dashboard .dokan-form-group:has(#product_brand),
html body.dokan-dashboard .dokan-form-group:has(select[name*="product_brand"]),
html body.dokan-dashboard .dokan-form-group:has(label[for*="brand"]),
html body.dokan-dashboard .form-group:has(#product_brand),
html body.dokan-dashboard .form-group:has(select[name*="product_brand"]),
html body.dokan-dashboard .form-group:has(label[for*="brand"]),
html body.dokan-dashboard .dokan-product-brand,
html body.dokan-dashboard .product_brand,
html body.dokan-dashboard .dokan-product-brand-wrap,
html body.dokan-dashboard .dokan-product-brand-group,
html body.dokan-dashboard #product_brand,
html body.dokan-dashboard .product_brand_search,
html body.dokan-dashboard #dokan-form-field-product_brand,
html body.dokan-dashboard .dokan-form-field-product_brand,
html body.dokan-dashboard .dataforms-layouts-regular__field:has(#dokan-form-field-product_brand),
html body.dokan-dashboard .dataforms-layouts-regular__field:has(.dokan-form-field-product_brand) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. Remove Tags field from vendor product form - instant CSS with zero flash */
html body.dokan-dashboard .dokan-form-group:has(#product_tag_search),
html body.dokan-dashboard .dokan-form-group:has(select[name*="product_tag"]),
html body.dokan-dashboard .dokan-form-group:has(label[for*="tag"]),
html body.dokan-dashboard .form-group:has(#product_tag_search),
html body.dokan-dashboard .form-group:has(select[name*="product_tag"]),
html body.dokan-dashboard .form-group:has(label[for*="tag"]),
html body.dokan-dashboard .tag-cloud-link,
html body.dokan-dashboard .product_tagsdiv,
html body.dokan-dashboard #product_tag-div,
html body.dokan-dashboard .dokan-tags-field,
html body.dokan-dashboard .dokan-product-tags-wrap,
html body.dokan-dashboard .dokan-product-tags,
html body.dokan-dashboard .dokan-tags-group,
html body.dokan-dashboard .tag-selector,
html body.dokan-dashboard #product_tag_search,
html body.dokan-dashboard .product_tag_search,
html body.dokan-dashboard #dokan-form-field-product_tag,
html body.dokan-dashboard .dokan-form-field-product_tag,
html body.dokan-dashboard .dataforms-layouts-regular__field:has(#dokan-form-field-product_tag),
html body.dokan-dashboard .dataforms-layouts-regular__field:has(.dokan-form-field-product_tag) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 3. Lora 16px bold font for form labels and field headings (not italic, for clear scanning) */
html body.dokan-dashboard .dokan-form-label,
html body.dokan-dashboard .dokan-product-form .dokan-form-label,
html body.dokan-dashboard #dokan-vendor-new-product-form .dokan-form-label,
html body.dokan-dashboard .dokan-form-group label,
html body.dokan-dashboard .dokan-product-form label,
html body.dokan-dashboard #dokan-vendor-new-product-form label,
html body.dokan-dashboard .dokan-form-group .dokan-control-label,
html body.dokan-dashboard .dokan-product-form .dokan-control-label,
html body.dokan-dashboard #dokan-vendor-new-product-form .dokan-control-label,
html body.dokan-dashboard .dokan-form-group .control-label,
html body.dokan-dashboard .dokan-product-form .control-label,
html body.dokan-dashboard #dokan-vendor-new-product-form .control-label,
html body.dokan-dashboard form[ id*="product"] label,
html body.dokan-dashboard .dokan-product-edit-form label,
html body.dokan-dashboard .dokan-new-product-form label,
html body.dokan-dashboard .dokan-edit-product-wrap label,
html body.dokan-dashboard .dokan-product-variation-itmes label,
html body.dokan-dashboard .dokan-variations-container label,
html body.dokan-dashboard .dokan-product-variation-wrapper label,
html body.dokan-dashboard .woocommerce_variation label,
html body.dokan-dashboard .woocommerce_variations label,
html body.dokan-dashboard .dokan-attribute-variation-options label,
html body.dokan-dashboard .wc-pao-addon label,
html body.dokan-dashboard .wc-pao-addons label {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 16px !important;
    font-weight: bold !important;
    font-style: normal !important;
}

/* 3.2 Checkbox labels should be normal weight (not headings) */
html body.dokan-dashboard .dokan-form-group label input[type="checkbox"],
html body.dokan-dashboard .dokan-product-form label input[type="checkbox"],
html body.dokan-dashboard .dokan-product-variation-itmes label input[type="checkbox"],
html body.dokan-dashboard .dokan-variations-container label input[type="checkbox"],
html body.dokan-dashboard .woocommerce_variation label input[type="checkbox"],
html body.dokan-dashboard .wc-pao-addon label input[type="checkbox"] {
    vertical-align: middle !important;
}
html body.dokan-dashboard .dokan-form-group label:has(input[type="checkbox"]),
html body.dokan-dashboard .dokan-product-form label:has(input[type="checkbox"]),
html body.dokan-dashboard .dokan-edit-product-wrap label:has(input[type="checkbox"]),
html body.dokan-dashboard .dokan-product-variation-itmes label:has(input[type="checkbox"]),
html body.dokan-dashboard .dokan-variations-container label:has(input[type="checkbox"]),
html body.dokan-dashboard .dokan-product-variation-wrapper label:has(input[type="checkbox"]),
html body.dokan-dashboard .woocommerce_variation label:has(input[type="checkbox"]),
html body.dokan-dashboard .dokan-attribute-variation-options label:has(input[type="checkbox"]),
html body.dokan-dashboard .wc-pao-addon label:has(input[type="checkbox"]),
html body.dokan-dashboard .wc-pao-addons label:has(input[type="checkbox"]) {
    font-weight: normal !important;
    font-size: 14px !important;
    font-style: italic !important;
}

/* 3.1 Removed — all labels are now consistently 16px. Section headings provide the 18px tier. */

/* 4. Lora 14px italic font for form inputs, selects, and textareas (body text, not headings) */
html body.dokan-dashboard .dokan-form-group select,
html body.dokan-dashboard .dokan-product-form select,
html body.dokan-dashboard #dokan-vendor-new-product-form select,
html body.dokan-dashboard .dokan-product-edit-form select,
html body.dokan-dashboard form[id*="product"] select,
html body.dokan-dashboard .dokan-edit-product-wrap select,
html body.dokan-dashboard .dokan-form-group input[type="text"],
html body.dokan-dashboard .dokan-product-form input[type="text"],
html body.dokan-dashboard #dokan-vendor-new-product-form input[type="text"],
html body.dokan-dashboard .dokan-product-edit-form input[type="text"],
html body.dokan-dashboard form[id*="product"] input[type="text"],
html body.dokan-dashboard .dokan-edit-product-wrap input[type="text"],
html body.dokan-dashboard .dokan-form-group input[type="number"],
html body.dokan-dashboard .dokan-product-form input[type="number"],
html body.dokan-dashboard #dokan-vendor-new-product-form input[type="number"],
html body.dokan-dashboard .dokan-product-edit-form input[type="number"],
html body.dokan-dashboard form[id*="product"] input[type="number"],
html body.dokan-dashboard .dokan-edit-product-wrap input[type="number"],
html body.dokan-dashboard .dokan-form-group input[type="password"],
html body.dokan-dashboard .dokan-product-form input[type="password"],
html body.dokan-dashboard .dokan-product-edit-form input[type="password"],
html body.dokan-dashboard .dokan-form-group textarea,
html body.dokan-dashboard .dokan-product-form textarea,
html body.dokan-dashboard .dokan-product-edit-form textarea,
html body.dokan-dashboard form[id*="product"] textarea,
html body.dokan-dashboard .dokan-edit-product-wrap textarea,
/* Kinwi: Variable product variation inputs, selects, textareas */
html body.dokan-dashboard .dokan-product-variation-itmes input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
html body.dokan-dashboard .dokan-product-variation-itmes select,
html body.dokan-dashboard .dokan-product-variation-itmes textarea,
html body.dokan-dashboard .dokan-variations-container input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
html body.dokan-dashboard .dokan-variations-container select,
html body.dokan-dashboard .dokan-variations-container textarea,
html body.dokan-dashboard .dokan-product-variation-wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
html body.dokan-dashboard .dokan-product-variation-wrapper select,
html body.dokan-dashboard .dokan-product-variation-wrapper textarea,
html body.dokan-dashboard .woocommerce_variation input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
html body.dokan-dashboard .woocommerce_variation select,
html body.dokan-dashboard .woocommerce_variation textarea,
html body.dokan-dashboard .dokan-attribute-variation-options input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
html body.dokan-dashboard .dokan-attribute-variation-options select,
html body.dokan-dashboard .dokan-attribute-variation-options textarea,
html body.dokan-dashboard input[name^="variable_"],
html body.dokan-dashboard select[name^="variable_"],
html body.dokan-dashboard textarea[name^="variable_"],
html body.dokan-dashboard select[name^="attribute_"],
/* Kinwi: Product Add-ons inputs, selects, textareas */
html body.dokan-dashboard .wc-pao-addons input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
html body.dokan-dashboard .wc-pao-addons select,
html body.dokan-dashboard .wc-pao-addons textarea,
html body.dokan-dashboard .wc-pao-addon input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
html body.dokan-dashboard .wc-pao-addon select,
html body.dokan-dashboard .wc-pao-addon textarea,
html body.dokan-dashboard input[name^="product_addon_"]:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
html body.dokan-dashboard select[name^="product_addon_"],
html body.dokan-dashboard textarea[name^="product_addon_"] {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 14px !important;
    font-weight: normal !important;
    font-style: italic !important;
    padding: 8px 16px !important;
    min-height: 38px !important;
    line-height: 20px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
}

/* 4.1 All dashboard body text, descriptions, help text - 14px italic */
html body.dokan-dashboard .dokan-dashboard-wrap p,
html body.dokan-dashboard .dokan-dashboard-wrap span.description,
html body.dokan-dashboard .dokan-dashboard-wrap .help-block,
html body.dokan-dashboard .dokan-dashboard-wrap .dokan-section-content p {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 14px !important;
    font-weight: normal !important;
    font-style: italic !important;
}

/* 4.2 WooCommerce Product Add-ons - comprehensive styling */
/* Addon container base font size (prevents 13px inheritance) */
html body.dokan-dashboard .wc-pao-field-header,
html body.dokan-dashboard .wc-pao-addons,
html body.dokan-dashboard .wc-pao-actions,
html body.dokan-dashboard .wc-pao-product-global-addon,
html body.dokan-dashboard .wc-pao-import-export-container,
html body.dokan-dashboard .wc-pao-addon,
html body.dokan-dashboard .wc-pao-expand-all,
html body.dokan-dashboard .wc-pao-close-all,
html body.dokan-dashboard .dokan-section-content {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 14px !important;
}

/* "Multiple Choice" / addon type label in header — sized up from 12.6px */
html body.dokan-dashboard small.wc-pao-addon-type {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 14px !important;
    font-style: italic !important;
    font-weight: normal !important;
    color: #666 !important;
}

/* "Option" section title header — bold heading style */
html body.dokan-dashboard .wc-pao-addon-content-option-header {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 16px !important;
    font-weight: bold !important;
    font-style: normal !important;
}

/* Addon labels (Type, Display as, Title, Format title) — bold heading style */
html body.dokan-dashboard .wc-pao-addon label {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 16px !important;
    font-weight: bold !important;
    font-style: normal !important;
}

/* Addon checkbox labels (Add description, Required field) — italic normal weight */
html body.dokan-dashboard .wc-pao-addon label:has(input[type="checkbox"]) {
    font-weight: normal !important;
    font-size: 14px !important;
    font-style: italic !important;
}

/* Addon selects (Multiple Choice, Dropdowns, Label, Flat Fee) — italic body text */
html body.dokan-dashboard .wc-pao-addon select,
html body.dokan-dashboard .wc-pao-addon-type-select,
html body.dokan-dashboard .wc-pao-addon-display-select,
html body.dokan-dashboard .wc-pao-addon-option-price-type,
html body.dokan-dashboard .wc-pao-addon-adjust-price-select {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 14px !important;
    font-style: italic !important;
    font-weight: normal !important;
}

/* Addon text inputs (Enter an option, price fields) — italic body text */
html body.dokan-dashboard .wc-pao-addon input[type="text"],
html body.dokan-dashboard .wc-pao-addon input[type="number"],
html body.dokan-dashboard .wc-pao-addon input.wc_input_price,
html body.dokan-dashboard .wc-pao-addon .wc-pao-addon-content-name,
html body.dokan-dashboard .wc-pao-addon textarea {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 14px !important;
    font-style: italic !important;
    font-weight: normal !important;
}

/* Addon name heading */
html body.dokan-dashboard .dokan-dashboard-wrap .wc-pao-addon-header h3,
html body.dokan-dashboard .dokan-dashboard-wrap h3.wc-pao-addon-name,
html body.dokan-dashboard .dokan-dashboard-content .wc-pao-addon-header h3,
html body.dokan-dashboard .dokan-dashboard-content h3.wc-pao-addon-name,
html body.dokan-dashboard .wc-pao-addon-header h3.wc-pao-addon-name,
html body.dokan-dashboard .wc-pao-addon-header h3,
html body.dokan-dashboard h3.wc-pao-addon-name,
html body.dokan-dashboard .wc-pao-addon-name {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-style: normal !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    padding: 0 !important;
    word-break: break-word !important;
}

/* Kinwi: Addon header row - flex layout, responsive wrapping */
html body.dokan-dashboard .wc-pao-addon-header {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px 10px !important;
    height: auto !important;
    min-height: 44px !important;
    padding: 8px 10px !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

html body.dokan-dashboard .wc-pao-addon-header .wc-pao-col1 {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px 8px !important;
    height: auto !important;
    min-height: auto !important;
    line-height: 1.4 !important;
    flex: 1 1 140px !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

html body.dokan-dashboard .wc-pao-addon-header .wc-pao-addon-sort-handle {
    flex-shrink: 0 !important;
    margin: 0 !important;
    font-size: 14px !important;
    cursor: move !important;
}

html body.dokan-dashboard .wc-pao-addon-header small.wc-pao-addon-type {
    font-family: "Lora upload", Lora, serif !important;
    font-size: 12px !important;
    font-style: italic !important;
    font-weight: normal !important;
    color: #666666 !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline !important;
    white-space: nowrap !important;
}

html body.dokan-dashboard .wc-pao-addon-header .wc-pao-col2 {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
    height: auto !important;
}

html body.dokan-dashboard .wc-pao-addon-header .wc-pao-remove-addon {
    font-family: "Lora upload", Lora, serif !important;
    font-size: 12px !important;
    font-style: normal !important;
    padding: 4px 10px !important;
    height: 28px !important;
    min-height: 28px !important;
    line-height: 1.2 !important;
    border-radius: 4px !important;
    background-color: #00967d !important;
    border-color: #00967d !important;
    color: #ffffff !important;
    cursor: pointer !important;
}

html body.dokan-dashboard .wc-pao-addon-header .wc-pao-remove-addon:hover {
    background-color: #007a65 !important;
    border-color: #007a65 !important;
}

html body.dokan-dashboard .wc-pao-addon-header .wc-pao-addon-toggle {
    flex-shrink: 0 !important;
    cursor: pointer !important;
}

/* Prevent 'Add-ons' title from breaking into 'Add-' and 'ons' */
html body.dokan-dashboard #dokan-product-addons-options .dokan-section-heading h2 {
    white-space: nowrap !important;
    hyphens: none !important;
}

/* Small screens down to 260px - addon header compact sizing */
@media screen and (max-width: 480px) {
    html body.dokan-dashboard .wc-pao-addon-header {
        padding: 6px 8px !important;
        gap: 4px 8px !important;
    }

    html body.dokan-dashboard .dokan-dashboard-wrap .wc-pao-addon-header h3,
    html body.dokan-dashboard .dokan-dashboard-wrap h3.wc-pao-addon-name,
    html body.dokan-dashboard .dokan-dashboard-content .wc-pao-addon-header h3,
    html body.dokan-dashboard .dokan-dashboard-content h3.wc-pao-addon-name,
    html body.dokan-dashboard .wc-pao-addon-header h3.wc-pao-addon-name,
    html body.dokan-dashboard .wc-pao-addon-header h3,
    html body.dokan-dashboard h3.wc-pao-addon-name,
    html body.dokan-dashboard .wc-pao-addon-header .wc-pao-addon-name {
        font-size: 13px !important;
    }

    html body.dokan-dashboard .wc-pao-addon-header small.wc-pao-addon-type {
        font-size: 11px !important;
    }

    html body.dokan-dashboard .wc-pao-addon-header .wc-pao-remove-addon {
        padding: 3px 8px !important;
        font-size: 11px !important;
        height: 26px !important;
        min-height: 26px !important;
    }
}

/* 4.3 Category selector - ensure non-italic heading style (higher specificity needed) */
html body.dokan-dashboard .dokan-form-group label[for="chosen_product_cat"],
html body.dokan-dashboard .dokan-form-group label[for="product_cat"],
html body.dokan-dashboard .dokan-new-cat-ui-title label,
html body.dokan-dashboard .dokan-new-cat-ui-title label.form-label,
html body.dokan-dashboard label.control-label[for*="cat"] {
    font-style: normal !important;
    font-weight: bold !important;
    font-size: 16px !important;
}

/* 4.4 Attribute Value(s) input/textarea - reduce text size for readability on smaller screens */
html body.dokan-dashboard .dokan-product-attribute-wrapper textarea,
html body.dokan-dashboard .dokan-attribute-option-values textarea,
html body.dokan-dashboard textarea[placeholder*="Enter some text"],
html body.dokan-dashboard .dokan-product-attribute textarea,
html body.dokan-dashboard .dokan-product-attribute-wrapper input[type="text"],
html body.dokan-dashboard .dokan-attribute-option-values input[type="text"],
html body.dokan-dashboard input[placeholder*="Enter some text"],
html body.dokan-dashboard .dokan-product-attribute input[type="text"] {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 13px !important;
    font-style: italic !important;
    font-weight: normal !important;
}

/* 4.5 Attribute buttons - consistent sizing at all breakpoints */
html body.dokan-dashboard .add_new_attribute,
html body.dokan-dashboard .dokan-save-attribute,
html body.dokan-dashboard a.dokan-btn.add_new_attribute,
html body.dokan-dashboard a.dokan-btn.dokan-save-attribute {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 14px !important;
    padding: 8px 14px !important;
    text-align: center !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    color: #fff !important;
    background-color: #00897b !important;
    border-color: #00897b !important;
}
/* Add button needs clear:both because the Custom Attribute select above is float:left */
html body.dokan-dashboard .add_new_attribute,
html body.dokan-dashboard a.dokan-btn.add_new_attribute {
    clear: both !important;
}

/* 4.6 Attribute section - prevent horizontal overflow */
html body.dokan-dashboard .dokan-product-attribute-wrapper,
html body.dokan-dashboard .dokan-attribute-option-list {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* 4.6b Attribute Name / Remove header - flex layout so they don't overlap on small screens */
/* "Remove" link uses position:absolute by default, which overlaps "Attribute Name" on narrow viewports */
html body.dokan-dashboard .dokan-product-attribute-heading {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 5px !important;
}
html body.dokan-dashboard .dokan-product-attribute-heading > span {
    flex: 1 1 auto !important;
}
html body.dokan-dashboard .dokan-product-attribute-heading .dokan-product-remove-attribute,
html body.dokan-dashboard .dokan-product-attribute-heading .dokan-product-toggle-attribute {
    position: static !important;
    flex: 0 0 auto !important;
}

/* 4.6c Value(s) placeholder - 14px default, smaller on mobile so more hint text fits */
html body.dokan-dashboard .dokan-product-attribute-wrapper .select2-search__field::placeholder {
    font-size: 14px !important;
}

/* 4.7 Attribute Value(s) input - full width so text is readable */
/* Value(s) uses Select2 so target .select2-container and .select2-search__field */
html body.dokan-dashboard .dokan-product-attribute-wrapper .select2-container,
html body.dokan-dashboard .dokan-product-attribute .select2-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
html body.dokan-dashboard .dokan-product-attribute-wrapper .select2-search__field,
html body.dokan-dashboard .dokan-product-attribute .select2-search__field {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
/* The li parent of Select2 input also needs width to prevent the input from collapsing */
html body.dokan-dashboard .dokan-product-attribute-wrapper .select2-search--inline,
html body.dokan-dashboard .dokan-product-attribute .select2-search--inline {
    width: 100% !important;
}
html body.dokan-dashboard .dokan-product-attribute-wrapper textarea,
html body.dokan-dashboard .dokan-product-attribute textarea,
html body.dokan-dashboard textarea[placeholder*="Enter some text"],
html body.dokan-dashboard input[placeholder*="Enter some text"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 4.8 Custom Attribute select dropdown - prevent overflow on mobile */
html body.dokan-dashboard .dokan_attribute_taxonomy,
html body.dokan-dashboard .dokan-product-attribute-wrapper select {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 4.9 Dropdown arrow for product form selects.
   Dokan Tailwind sets appearance:none + SVG chevron on all <select>, but
   dokan-lite .dokan-form-control sets background-image:none which removes it.
   Re-add the chevron on all visible single-value selects on the product form. */
html body.dokan-dashboard .dokan-attribute-type select.dokan_attribute_taxonomy,
html body.dokan-dashboard .dokan-product-attribute-wrapper select,
html body.dokan-dashboard #predefined_attribute,
html body.dokan-dashboard select.dokan_attribute_taxonomy,
html body.dokan-dashboard .dokan-attribute-variation-options select.dokan-form-control,
html body.dokan-dashboard .dokan-product-variation-itmes select,
html body.dokan-dashboard .dokan-variations-container select,
html body.dokan-dashboard .woocommerce_variation select,
html body.dokan-dashboard select[name^="variable_"],
html body.dokan-dashboard select[name^="attribute_"],
html body.dokan-dashboard .wc-pao-addon select,
html body.dokan-dashboard .wc-pao-addons select,
html body.dokan-dashboard select[name^="product_addon_"],
html body.dokan-dashboard .dokan-product-edit-form select.dokan-form-control:not([multiple]):not(.select2-hidden-accessible),
html body.dokan-dashboard .dokan-new-product-form select.dokan-form-control:not([multiple]):not(.select2-hidden-accessible),
html body.dokan-dashboard #dokan-vendor-new-product-form select.dokan-form-control:not([multiple]):not(.select2-hidden-accessible) {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23555555' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 10px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px 16px !important;
    padding-right: 32px !important;
    cursor: pointer !important;
}

/* 4.9b Select dropdown focus & selection highlight - match theme green (#00967d) */
html body.dokan-dashboard .dokan-attribute-type select.dokan_attribute_taxonomy:focus,
html body.dokan-dashboard .dokan-product-attribute-wrapper select:focus,
html body.dokan-dashboard #predefined_attribute:focus,
html body.dokan-dashboard select.dokan_attribute_taxonomy:focus,
html body.dokan-dashboard .dokan-attribute-variation-options select.dokan-form-control:focus,
html body.dokan-dashboard .dokan-product-variation-itmes select:focus,
html body.dokan-dashboard .dokan-product-variation-itmes input:focus,
html body.dokan-dashboard .dokan-product-variation-itmes textarea:focus,
html body.dokan-dashboard .dokan-variations-container select:focus,
html body.dokan-dashboard .dokan-variations-container input:focus,
html body.dokan-dashboard .dokan-variations-container textarea:focus,
html body.dokan-dashboard .woocommerce_variation select:focus,
html body.dokan-dashboard .woocommerce_variation input:focus,
html body.dokan-dashboard .woocommerce_variation textarea:focus,
html body.dokan-dashboard select[name^="variable_"]:focus,
html body.dokan-dashboard input[name^="variable_"]:focus,
html body.dokan-dashboard textarea[name^="variable_"]:focus,
html body.dokan-dashboard select[name^="attribute_"]:focus,
html body.dokan-dashboard .wc-pao-addon select:focus,
html body.dokan-dashboard .wc-pao-addon input:not([type="checkbox"]):not([type="radio"]):focus,
html body.dokan-dashboard .wc-pao-addon textarea:focus,
html body.dokan-dashboard .wc-pao-addons select:focus,
html body.dokan-dashboard .wc-pao-addons input:not([type="checkbox"]):not([type="radio"]):focus,
html body.dokan-dashboard .wc-pao-addons textarea:focus,
html body.dokan-dashboard select[name^="product_addon_"]:focus,
html body.dokan-dashboard input[name^="product_addon_"]:not([type="checkbox"]):not([type="radio"]):focus,
html body.dokan-dashboard textarea[name^="product_addon_"]:focus,
html body.dokan-dashboard .dokan-product-edit-form select.dokan-form-control:focus,
html body.dokan-dashboard .dokan-product-edit-form input:focus,
html body.dokan-dashboard .dokan-product-edit-form textarea:focus,
html body.dokan-dashboard .dokan-new-product-form select.dokan-form-control:focus,
html body.dokan-dashboard .dokan-new-product-form input:focus,
html body.dokan-dashboard .dokan-new-product-form textarea:focus,
html body.dokan-dashboard #dokan-vendor-new-product-form select.dokan-form-control:focus,
html body.dokan-dashboard #dokan-vendor-new-product-form input:focus,
html body.dokan-dashboard #dokan-vendor-new-product-form textarea:focus {
    outline: none !important;
    border-color: #00967d !important;
    box-shadow: 0 0 0 1px #00967d !important;
}

html body.dokan-dashboard select.dokan-form-control,
html body.dokan-dashboard #predefined_attribute,
html body.dokan-dashboard select.dokan_attribute_taxonomy,
html body.dokan-dashboard .dokan-product-variation-itmes select,
html body.dokan-dashboard .woocommerce_variation select,
html body.dokan-dashboard select[name^="variable_"],
html body.dokan-dashboard select[name^="attribute_"],
html body.dokan-dashboard .wc-pao-addon select {
    accent-color: #00967d !important;
}

html body.dokan-dashboard select.dokan-form-control option:checked,
html body.dokan-dashboard #predefined_attribute option:checked,
html body.dokan-dashboard select.dokan_attribute_taxonomy option:checked {
    background-color: #00967d !important;
    color: #ffffff !important;
}

/* 4.10 Dokan info alert box - gold theme colour (#d4af37) with transparency and black text */
html body.dokan-dashboard #dokan-info-message,
html body.dokan-dashboard .dokan-alert.dokan-alert-info,
html body.dokan-dashboard .dokan-attribute-variation-options .dokan-alert.dokan-alert-info,
html body.dokan-dashboard .dokan-product-variation-wrapper .dokan-alert.dokan-alert-info,
html body.dokan-dashboard .dokan-product-edit-form .dokan-alert.dokan-alert-info,
html body.dokan-dashboard .dokan-new-product-form .dokan-alert.dokan-alert-info {
    background-color: rgba(212, 175, 55, 0.15) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    color: #000000 !important;
}
html body.dokan-dashboard #dokan-info-message *,
html body.dokan-dashboard #dokan-info-message p,
html body.dokan-dashboard #dokan-info-message strong,
html body.dokan-dashboard #dokan-info-message a,
html body.dokan-dashboard .dokan-alert.dokan-alert-info *,
html body.dokan-dashboard .dokan-alert.dokan-alert-info p,
html body.dokan-dashboard .dokan-alert.dokan-alert-info strong,
html body.dokan-dashboard .dokan-alert.dokan-alert-info a,
html body.dokan-dashboard .dokan-attribute-variation-options .dokan-alert.dokan-alert-info *,
html body.dokan-dashboard .dokan-attribute-variation-options .dokan-alert.dokan-alert-info p,
html body.dokan-dashboard .dokan-attribute-variation-options .dokan-alert.dokan-alert-info a,
html body.dokan-dashboard .dokan-attribute-variation-options .dokan-alert.dokan-alert-info strong,
html body.dokan-dashboard .dokan-product-variation-wrapper .dokan-alert.dokan-alert-info *,
html body.dokan-dashboard .dokan-product-variation-wrapper .dokan-alert.dokan-alert-info p,
html body.dokan-dashboard .dokan-product-variation-wrapper .dokan-alert.dokan-alert-info a,
html body.dokan-dashboard .dokan-product-variation-wrapper .dokan-alert.dokan-alert-info strong,
html body.dokan-dashboard .dokan-product-edit-form .dokan-alert.dokan-alert-info *,
html body.dokan-dashboard .dokan-product-edit-form .dokan-alert.dokan-alert-info p,
html body.dokan-dashboard .dokan-product-edit-form .dokan-alert.dokan-alert-info a,
html body.dokan-dashboard .dokan-product-edit-form .dokan-alert.dokan-alert-info strong,
html body.dokan-dashboard .dokan-new-product-form .dokan-alert.dokan-alert-info *,
html body.dokan-dashboard .dokan-new-product-form .dokan-alert.dokan-alert-info p,
html body.dokan-dashboard .dokan-new-product-form .dokan-alert.dokan-alert-info a,
html body.dokan-dashboard .dokan-new-product-form .dokan-alert.dokan-alert-info strong {
    color: #000000 !important;
}

/* 5. Fix Visual/Code button alignment in product description editor */
html body.dokan-dashboard .dokan-product-form .dokan-wp-editor-tabs,
html body.dokan-dashboard #dokan-vendor-new-product-form .dokan-wp-editor-tabs,
html body.dokan-dashboard .wp-editor-tabs,
html body.dokan-dashboard .dokan-wp-editor-container .wp-editor-tabs,
html body.dokan-dashboard .dokan-wp-editor-container .wp-editor-tabs .wp-switch-editor {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 2px !important;
}

html body.dokan-dashboard .dokan-product-form .switch-editor,
html body.dokan-dashboard #dokan-vendor-new-product-form .switch-editor,
html body.dokan-dashboard .wp-switch-editor,
html body.dokan-dashboard .dokan-wp-editor-container .wp-switch-editor {
    height: auto !important;
    line-height: normal !important;
    padding: 4px 12px !important;
    font-size: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 28px !important;
}

html body.dokan-dashboard .dokan-product-form .active.switch-editor,
html body.dokan-dashboard #dokan-vendor-new-product-form .active.switch-editor,
html body.dokan-dashboard .active.wp-switch-editor,
html body.dokan-dashboard .dokan-wp-editor-container .active.wp-switch-editor {
    background-color: #f0f0f1 !important;
    border-bottom-color: #f0f0f1 !important;
    color: #2c3338 !important;
}

/* 6. Add padding above Add New Product heading */
html body.dokan-dashboard .dokan-product-edit-form .entry-title,
html body.dokan-dashboard .dokan-new-product-form .entry-title,
html body.dokan-dashboard .dokan-product-form .entry-title,
html body.dokan-dashboard .dokan-dashboard-content .entry-title,
html body.dokan-dashboard h2.entry-title,
html body.dokan-dashboard h1.entry-title,
html body.dokan-dashboard .dokan-edit-product-wrap .entry-title,
html body.dokan-dashboard .dokan-product-edit-form h2,
html body.dokan-dashboard .dokan-new-product-form h2,
html body.dokan-dashboard .dokan-product-form h2,
html body.dokan-dashboard #dokan-product-post-form h2,
html body.dokan-dashboard h2:contains("Add New Product"),
html body.dokan-dashboard h2:contains("New Product") {
    margin-top: 20px !important;
    padding-top: 20px !important;
}

/* 7. Category selection text - Lora upload 16px italic, normal weight */
/* NOTE: Do NOT include label[for="chosen_product_cat"] here — that is the heading and must stay non-italic */
html body.dokan-dashboard .dokan_chosen_product_cat,
html body.dokan-dashboard .dokan_chosen_product_cat + .select2-container,
html body.dokan-dashboard .dokan-select-product-category-title,
html body.dokan-dashboard .dokan-select-product-category-title span,
html body.dokan-dashboard .dokan-select-product-category,
html body.dokan-dashboard .dokan-select-product-category * {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 16px !important;
    font-weight: normal !important;
    font-style: italic !important;
}

/* Category label 18px override removed — all labels are now consistent at 16px */

/* 8. Add new category popup heading - 20px */
/* Using exact class names found via browser inspection */
html body.dokan-dashboard .dokan-product-category-modal-header .dokan-product-category-title .dokan-single-title,
html body.dokan-dashboard .dokan-product-category-modal .dokan-single-title,
html body.dokan-dashboard .dokan-product-category-title .dokan-single-title,
html body.dokan-dashboard .dokan-category-modal .dokan-single-title {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 20px !important;
    font-weight: bold !important;
    font-style: italic !important;
}

/* 9. Add padding above Add New Product page title */
html body.dokan-dashboard .dokan-dashboard-content .entry-title,
html body.dokan-dashboard .dokan-dashboard-content h1.entry-title,
html body.dokan-dashboard article .entry-title,
html body.dokan-dashboard .dashboard-content-area .entry-title,
html body.dokan-dashboard .dokan-product-edit-form .entry-title,
html body.dokan-dashboard #dokan-product-post-form .entry-title {
    margin-top: 20px !important;
    padding-top: 15px !important;
}

/* 10. Category label specifically - bold non-italic (overrides any other rule) */
html body.dokan-dashboard .dokan-dashboard-wrap .dokan-form-group label[for="chosen_product_cat"],
html body.dokan-dashboard .dokan-dashboard-wrap label[for="chosen_product_cat"],
html body.dokan-dashboard .dokan-dashboard-wrap .dokan-new-cat-ui-title label,
html body.dokan-dashboard .dokan-dashboard-wrap .dokan-new-cat-ui-title label.form-label,
html body.dokan-dashboard .dokan-dashboard-wrap .dokan-form-group:has(label[for="chosen_product_cat"]) label,
html body.dokan-dashboard .dokan-dashboard-wrap .dokan-form-group:has(label[for="chosen_product_cat"]) .form-label {
    font-weight: bold !important;
    font-style: normal !important;
}

/* 11. Add-on fields and Add-ons sub-headings - Lora upload bold italic 16px */
/* Target ONLY the sub-headings, not the main section headings with icons */
/* Target "Add-on fields" and "Additional add-ons" text */
html body.dokan-dashboard .dokan-section-content strong,
html body.dokan-dashboard .dokan-product-edit strong,
html body.dokan-dashboard #dokan-product-post-form strong,
html body.dokan-dashboard .dokan-form-group strong {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 16px !important;
    font-weight: bold !important;
    font-style: italic !important;
}

/* Change main section headings with icons to Lora upload 16px bold (not italic) */
html body.dokan-dashboard .dokan-section-heading,
html body.dokan-dashboard h3.dokan-section-heading,
html body.dokan-dashboard .dokan-product-edit > h3,
html body.dokan-dashboard .dokan-product-edit-container > h3,
html body.dokan-dashboard #dokan-product-post-form > h3,
html body.dokan-dashboard .dokan-product-edit-form > h3 {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Override Elementor global h2 Gabriela on inner heading text inside section headings */
html body.dokan-dashboard .dokan-section-heading h2,
html body.dokan-dashboard .dokan-section-heading h3,
html body.dokan-dashboard .dokan-section-heading h2.joli-heading,
html body.dokan-dashboard .dokan-section-heading h3.joli-heading {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: bold !important;
}

/* Small descriptive text after section headings - Lora upload 14px */
html body.dokan-dashboard .dokan-section-heading p,
html body.dokan-dashboard h3.dokan-section-heading p {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: normal !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* Make arrow icons larger and ensure they're centered */
html body.dokan-dashboard .dokan-section-heading i.fa-sort-down,
html body.dokan-dashboard h3.dokan-section-heading i.fa-sort-down,
html body.dokan-dashboard .dokan-section-heading i[class*="fa-sort"],
html body.dokan-dashboard h3.dokan-section-heading i[class*="fa-sort"] {
    font-size: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Push the arrow toggle button to the right */
html body.dokan-dashboard .dokan-section-heading a.dokan-section-toggle,
html body.dokan-dashboard h3.dokan-section-heading a.dokan-section-toggle {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Small descriptive text after section headings - Lora upload 14px */
html body.dokan-dashboard .dokan-section-heading p,
html body.dokan-dashboard h3.dokan-section-heading p {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 14px !important;
    font-style: italic !important;
    font-weight: normal !important;
}

/* Ensure Font Awesome icons are NOT affected by font changes */
html body.dokan-dashboard .dokan-section-heading i.fa,
html body.dokan-dashboard .dokan-section-heading i.fas,
html body.dokan-dashboard .dokan-section-heading i.far,
html body.dokan-dashboard .dokan-section-heading i.fab,
html body.dokan-dashboard .dokan-section-heading i[class*="fa-"],
html body.dokan-dashboard h3.dokan-section-heading i.fa,
html body.dokan-dashboard h3.dokan-section-heading i.fas,
html body.dokan-dashboard h3.dokan-section-heading i.far,
html body.dokan-dashboard h3.dokan-section-heading i.fab,
html body.dokan-dashboard h3.dokan-section-heading i[class*="fa-"],
html body.dokan-dashboard i.fa,
html body.dokan-dashboard i.fas,
html body.dokan-dashboard i.far,
html body.dokan-dashboard i.fab,
html body.dokan-dashboard i[class*="fa-"],
html body.dokan-dashboard span.dokan-select-product-category-icon i {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands" !important;
    font-style: normal !important;
    font-weight: 900 !important;
}

/* 12. Expand all / Close all text - 16px */
html body.dokan-dashboard .dokan-clearfix a,
html body.dokan-dashboard .dokan-section-content .dokan-clearfix a,
html body.dokan-dashboard .dokan-right a {
    font-size: 16px !important;
}

/* 13. Weight (kg) input and placeholder text - 14px matching all other product form inputs */
html body.dokan-dashboard input[placeholder*="weight"],
html body.dokan-dashboard input[placeholder*="kg"],
html body.dokan-dashboard input[name*="weight"] {
    font-size: 14px !important;
}

html body.dokan-dashboard .dokan-section-content p a,
html body.dokan-dashboard .dokan-form-group p a,
html body.dokan-dashboard .dokan-dashboard-content a[href*="shipping"],
html body.dokan-dashboard .dokan-product-shipping p a {
    font-size: 16px !important;
}

/* 14b. Expand all / Close all links in Add-ons section — override the 16px link rule above */
html body.dokan-dashboard .dokan-section-content a.wc-pao-expand-all,
html body.dokan-dashboard .dokan-section-content a.wc-pao-close-all,
html body.dokan-dashboard a.wc-pao-expand-all,
html body.dokan-dashboard a.wc-pao-close-all {
    font-size: 14px !important;
}

/* 15. Hide Geolocation section */
html body.dokan-dashboard .dokan-section-heading:has(i.fa-map-marker-alt),
html body.dokan-dashboard h3.dokan-section-heading:has(i.fa-map-marker-alt),
html body.dokan-dashboard .dokan-product-geolocation-wrapper,
html body.dokan-dashboard .dokan-form-group:has([id*="geolocation"]),
html body.dokan-dashboard #dokan-product-geolocation {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 15.1 Hide Tax section (inside Shipping heading) - CSS instant hide to prevent flash */
html body.dokan-dashboard h2#tax,
html body.dokan-dashboard h2.show_if_virtual.joli-heading[id="tax"],
html body.dokan-dashboard p.show_if_virtual,
html body.dokan-dashboard .dokan-section-heading h2[id="tax"],
html body.dokan-dashboard .dokan-form-group._tax_status_field,
html body.dokan-dashboard .dokan-form-group._tax_class_field,
html body.dokan-dashboard ._tax_status_field,
html body.dokan-dashboard ._tax_class_field {
    display: none !important;
}

/* 16. Responsive styles for mobile and tablet */
@media (max-width: 980px) {
    /* Price and Discounted Price fields - stack vertically on medium/small screens */
    html body.dokan-dashboard .dokan-form-group.content-half-part,
    html body.dokan-dashboard .content-half-part {
        width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 15px !important;
    }
    
    /* Price inputs - full width on mobile */
    html body.dokan-dashboard input[name="_regular_price"],
    html body.dokan-dashboard input[name="_sale_price"],
    html body.dokan-dashboard .dokan-product-regular-price input,
    html body.dokan-dashboard .dokan-product-sale-price input {
        width: 100% !important;
        min-width: 100% !important;
    }
    
    /* Shipping weight field - full width */
    html body.dokan-dashboard input[name="_weight"],
    html body.dokan-dashboard input[placeholder*="weight"],
    html body.dokan-dashboard .dokan-form-group input[type="number"] {
        width: 100% !important;
        min-width: 100% !important;
    }
    
    /* Form groups - full width */
    html body.dokan-dashboard .dokan-form-group {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    /* Extra small screens - ensure inputs don't overflow */
    html body.dokan-dashboard input[type="text"],
    html body.dokan-dashboard input[type="number"],
    html body.dokan-dashboard select,
    html body.dokan-dashboard textarea,
    html body.dokan-dashboard .dokan-product-variation-itmes input,
    html body.dokan-dashboard .dokan-product-variation-itmes select,
    html body.dokan-dashboard .dokan-product-variation-itmes textarea,
    html body.dokan-dashboard .dokan-variations-container input,
    html body.dokan-dashboard .dokan-variations-container select,
    html body.dokan-dashboard .dokan-variations-container textarea,
    html body.dokan-dashboard .woocommerce_variation input,
    html body.dokan-dashboard .woocommerce_variation select,
    html body.dokan-dashboard .woocommerce_variation textarea,
    html body.dokan-dashboard .dokan-attribute-variation-options input,
    html body.dokan-dashboard .dokan-attribute-variation-options select,
    html body.dokan-dashboard .dokan-attribute-variation-options textarea,
    html body.dokan-dashboard .wc-pao-addon input,
    html body.dokan-dashboard .wc-pao-addon select,
    html body.dokan-dashboard .wc-pao-addon textarea,
    html body.dokan-dashboard .wc-pao-addons input,
    html body.dokan-dashboard .wc-pao-addons select,
    html body.dokan-dashboard .wc-pao-addons textarea,
    html body.dokan-dashboard input[name^="variable_"],
    html body.dokan-dashboard select[name^="variable_"],
    html body.dokan-dashboard textarea[name^="variable_"],
    html body.dokan-dashboard input[name^="product_addon_"]:not([type="checkbox"]):not([type="radio"]),
    html body.dokan-dashboard select[name^="product_addon_"],
    html body.dokan-dashboard textarea[name^="product_addon_"] {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Attribute buttons - stack vertically and match widths */
    html body.dokan-dashboard .add_new_attribute,
    html body.dokan-dashboard .dokan-save-attribute,
    html body.dokan-dashboard a.dokan-btn.add_new_attribute,
    html body.dokan-dashboard a.dokan-btn.dokan-save-attribute {
        width: 100% !important;
        min-width: unset !important;
        max-width: 100% !important;
        display: block !important;
        margin-bottom: 5px !important;
        box-sizing: border-box !important;
    }
    
    /* Custom Attribute input - full width */
    html body.dokan-dashboard .dokan-product-attribute-wrapper input[type="text"],
    html body.dokan-dashboard .dokan-product-attribute-wrapper select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Value(s) placeholder - smaller on mobile so more hint text fits */
    html body.dokan-dashboard .dokan-product-attribute-wrapper .select2-search__field::placeholder {
        font-size: 12px !important;
    }
    
    /* TinyMCE toolbar - even button spacing */
    html body.dokan-dashboard .dokan-dashboard-wrap .mce-toolbar .mce-flow-layout,
    html body.dokan-dashboard .mce-toolbar .mce-flow-layout {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 1px !important;
        justify-content: flex-start !important;
    }
    
    html body.dokan-dashboard .dokan-dashboard-wrap .mce-toolbar .mce-btn,
    html body.dokan-dashboard .mce-toolbar .mce-btn {
        margin: 1px !important;
        width: 30px !important;
        height: 30px !important;
    }
    
    html body.dokan-dashboard .dokan-dashboard-wrap .mce-toolbar .mce-btn button,
    html body.dokan-dashboard .mce-toolbar .mce-btn button {
        padding: 3px !important;
    }
    
    /* Paragraph dropdown - override the 30px mce-btn width so text is visible */
    html body.dokan-dashboard .dokan-dashboard-wrap .mce-toolbar .mce-btn.mce-listbox,
    html body.dokan-dashboard .mce-toolbar .mce-btn.mce-listbox,
    html body.dokan-dashboard .dokan-dashboard-wrap .mce-listbox,
    html body.dokan-dashboard .mce-listbox {
        width: auto !important;
        min-width: 90px !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    html body.dokan-dashboard .dokan-dashboard-wrap .mce-listbox button,
    html body.dokan-dashboard .mce-listbox button {
        font-size: 11px !important;
        padding: 3px 5px !important;
    }
    
    /* Add Media button - smaller on mobile */
    html body.dokan-dashboard .dokan-dashboard-wrap .insert-media.add_media,
    html body.dokan-dashboard .insert-media.add_media,
    html body.dokan-dashboard #insert-media-button,
    html body.dokan-dashboard .wp-media-buttons .insert-media {
        font-size: 11px !important;
        padding: 3px 6px !important;
        height: auto !important;
        line-height: 1.3 !important;
    }
    
    html body.dokan-dashboard .insert-media.add_media .wp-media-buttons-icon,
    html body.dokan-dashboard #insert-media-button .wp-media-buttons-icon {
        font-size: 13px !important;
        width: 13px !important;
        height: 13px !important;
    }
    
    /* Visual/Code buttons - smaller */
    html body.dokan-dashboard .dokan-dashboard-wrap .wp-switch-editor,
    html body.dokan-dashboard .wp-switch-editor {
        font-size: 11px !important;
        padding: 3px 7px !important;
        height: auto !important;
        line-height: 1.3 !important;
    }
}

@media (max-width: 320px) {
    /* Very small screens (260px-320px) */
    html body.dokan-dashboard .dokan-form-group,
    html body.dokan-dashboard .dokan-product-form .dokan-form-group {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    html body.dokan-dashboard input,
    html body.dokan-dashboard select,
    html body.dokan-dashboard textarea,
    html body.dokan-dashboard .dokan-product-variation-itmes input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
    html body.dokan-dashboard .dokan-product-variation-itmes select,
    html body.dokan-dashboard .dokan-product-variation-itmes textarea,
    html body.dokan-dashboard .dokan-variations-container input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
    html body.dokan-dashboard .dokan-variations-container select,
    html body.dokan-dashboard .dokan-variations-container textarea,
    html body.dokan-dashboard .dokan-product-variation-wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
    html body.dokan-dashboard .dokan-product-variation-wrapper select,
    html body.dokan-dashboard .dokan-product-variation-wrapper textarea,
    html body.dokan-dashboard .woocommerce_variation input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
    html body.dokan-dashboard .woocommerce_variation select,
    html body.dokan-dashboard .woocommerce_variation textarea,
    html body.dokan-dashboard .dokan-attribute-variation-options input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
    html body.dokan-dashboard .dokan-attribute-variation-options select,
    html body.dokan-dashboard .dokan-attribute-variation-options textarea,
    html body.dokan-dashboard .wc-pao-addon input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
    html body.dokan-dashboard .wc-pao-addon select,
    html body.dokan-dashboard .wc-pao-addon textarea,
    html body.dokan-dashboard .wc-pao-addons input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
    html body.dokan-dashboard .wc-pao-addons select,
    html body.dokan-dashboard .wc-pao-addons textarea,
    html body.dokan-dashboard input[name^="variable_"],
    html body.dokan-dashboard select[name^="variable_"],
    html body.dokan-dashboard textarea[name^="variable_"],
    html body.dokan-dashboard select[name^="attribute_"],
    html body.dokan-dashboard input[name^="product_addon_"]:not([type="checkbox"]):not([type="radio"]),
    html body.dokan-dashboard select[name^="product_addon_"],
    html body.dokan-dashboard textarea[name^="product_addon_"] {
        font-size: 13px !important;
        padding: 5px !important;
        min-height: 28px !important;
    }
    
    /* Headings/labels - slightly smaller on tiny screens */
    html body.dokan-dashboard .dokan-form-group label,
    html body.dokan-dashboard .dokan-form-label,
    html body.dokan-dashboard .dokan-product-form label,
    html body.dokan-dashboard #dokan-vendor-new-product-form label,
    html body.dokan-dashboard .dokan-product-edit-form label,
    html body.dokan-dashboard .dokan-edit-product-wrap label,
    html body.dokan-dashboard .dokan-product-variation-itmes label,
    html body.dokan-dashboard .dokan-variations-container label,
    html body.dokan-dashboard .dokan-product-variation-wrapper label,
    html body.dokan-dashboard .woocommerce_variation label,
    html body.dokan-dashboard .woocommerce_variations label,
    html body.dokan-dashboard .dokan-attribute-variation-options label,
    html body.dokan-dashboard .wc-pao-addon label,
    html body.dokan-dashboard .wc-pao-addons label,
    html body.dokan-dashboard .wc-pao-addon-name,
    html body.dokan-dashboard .wc-pao-addon-content-option-header,
    html body.dokan-dashboard .dokan-section-heading,
    html body.dokan-dashboard .dokan-section-heading h2,
    html body.dokan-dashboard .dokan-section-heading h3 {
        font-size: 14px !important;
    }

    /* Checkbox labels - 13px on tiny screens */
    html body.dokan-dashboard .dokan-form-group label:has(input[type="checkbox"]),
    html body.dokan-dashboard .dokan-product-form label:has(input[type="checkbox"]),
    html body.dokan-dashboard .dokan-edit-product-wrap label:has(input[type="checkbox"]),
    html body.dokan-dashboard .dokan-product-variation-itmes label:has(input[type="checkbox"]),
    html body.dokan-dashboard .dokan-variations-container label:has(input[type="checkbox"]),
    html body.dokan-dashboard .dokan-product-variation-wrapper label:has(input[type="checkbox"]),
    html body.dokan-dashboard .woocommerce_variation label:has(input[type="checkbox"]),
    html body.dokan-dashboard .dokan-attribute-variation-options label:has(input[type="checkbox"]),
    html body.dokan-dashboard .wc-pao-addon label:has(input[type="checkbox"]),
    html body.dokan-dashboard .wc-pao-addons label:has(input[type="checkbox"]) {
        font-size: 13px !important;
    }
    
    /* Section heading description text - smaller */
    html body.dokan-dashboard .dokan-section-heading p {
        font-size: 12px !important;
    }
    
    /* Attribute Name and Remove - prevent overlap */
    html body.dokan-dashboard .dokan-attribute-option-header {
        flex-wrap: wrap !important;
        gap: 5px !important;
    }
    
    /* Attribute buttons - stack vertically and full width */
    html body.dokan-dashboard .add_new_attribute,
    html body.dokan-dashboard .dokan-save-attribute,
    html body.dokan-dashboard a.dokan-btn.add_new_attribute,
    html body.dokan-dashboard a.dokan-btn.dokan-save-attribute {
        width: 100% !important;
        min-width: unset !important;
        font-size: 13px !important;
        padding: 6px 10px !important;
        margin-bottom: 5px !important;
    }
    
    /* TinyMCE toolbar buttons - smaller on tiny screens */
    html body.dokan-dashboard .mce-toolbar .mce-btn,
    html body.dokan-dashboard .mce-toolbar-grp .mce-btn {
        width: 28px !important;
        height: 28px !important;
        padding: 2px !important;
    }
    
    html body.dokan-dashboard .mce-toolbar .mce-btn button,
    html body.dokan-dashboard .mce-toolbar-grp .mce-btn button {
        padding: 2px !important;
    }
    
    /* Visual/Code switch buttons - smaller */
    html body.dokan-dashboard .wp-switch-editor,
    html body.dokan-dashboard .switch-editor {
        font-size: 11px !important;
        padding: 3px 8px !important;
        min-height: 24px !important;
    }
    
    /* Paragraph dropdown - override the mce-btn width so text shows */
    html body.dokan-dashboard .mce-toolbar .mce-btn.mce-listbox,
    html body.dokan-dashboard .mce-listbox {
        width: auto !important;
        min-width: 80px !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    html body.dokan-dashboard .mce-listbox button {
        font-size: 11px !important;
        padding: 2px 4px !important;
    }
    
    /* Section headings - prevent overlap with description */
    html body.dokan-dashboard .dokan-section-heading {
        flex-wrap: wrap !important;
    }
    
    /* Page title - smaller on tiny screens */
    html body.dokan-dashboard h1.entry-title {
        font-size: 18px !important;
    }
}

@media (max-width: 260px) {
    /* Absolute minimum - everything as compact as possible */
    html body.dokan-dashboard .dokan-form-group,
    html body.dokan-dashboard .dokan-product-form .dokan-form-group {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }
    
    html body.dokan-dashboard input,
    html body.dokan-dashboard select,
    html body.dokan-dashboard textarea,
    html body.dokan-dashboard .dokan-product-variation-itmes input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
    html body.dokan-dashboard .dokan-product-variation-itmes select,
    html body.dokan-dashboard .dokan-product-variation-itmes textarea,
    html body.dokan-dashboard .dokan-variations-container input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
    html body.dokan-dashboard .dokan-variations-container select,
    html body.dokan-dashboard .dokan-variations-container textarea,
    html body.dokan-dashboard .dokan-product-variation-wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
    html body.dokan-dashboard .dokan-product-variation-wrapper select,
    html body.dokan-dashboard .dokan-product-variation-wrapper textarea,
    html body.dokan-dashboard .woocommerce_variation input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
    html body.dokan-dashboard .woocommerce_variation select,
    html body.dokan-dashboard .woocommerce_variation textarea,
    html body.dokan-dashboard .dokan-attribute-variation-options input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
    html body.dokan-dashboard .dokan-attribute-variation-options select,
    html body.dokan-dashboard .dokan-attribute-variation-options textarea,
    html body.dokan-dashboard .wc-pao-addon input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
    html body.dokan-dashboard .wc-pao-addon select,
    html body.dokan-dashboard .wc-pao-addon textarea,
    html body.dokan-dashboard .wc-pao-addons input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
    html body.dokan-dashboard .wc-pao-addons select,
    html body.dokan-dashboard .wc-pao-addons textarea,
    html body.dokan-dashboard input[name^="variable_"],
    html body.dokan-dashboard select[name^="variable_"],
    html body.dokan-dashboard textarea[name^="variable_"],
    html body.dokan-dashboard select[name^="attribute_"],
    html body.dokan-dashboard input[name^="product_addon_"]:not([type="checkbox"]):not([type="radio"]),
    html body.dokan-dashboard select[name^="product_addon_"],
    html body.dokan-dashboard textarea[name^="product_addon_"] {
        font-size: 12px !important;
        padding: 4px !important;
        min-height: 24px !important;
    }
    
    html body.dokan-dashboard .dokan-form-group label,
    html body.dokan-dashboard .dokan-form-label,
    html body.dokan-dashboard .dokan-product-form label,
    html body.dokan-dashboard #dokan-vendor-new-product-form label,
    html body.dokan-dashboard .dokan-product-edit-form label,
    html body.dokan-dashboard .dokan-edit-product-wrap label,
    html body.dokan-dashboard .dokan-product-variation-itmes label,
    html body.dokan-dashboard .dokan-variations-container label,
    html body.dokan-dashboard .dokan-product-variation-wrapper label,
    html body.dokan-dashboard .woocommerce_variation label,
    html body.dokan-dashboard .woocommerce_variations label,
    html body.dokan-dashboard .dokan-attribute-variation-options label,
    html body.dokan-dashboard .wc-pao-addon label,
    html body.dokan-dashboard .wc-pao-addons label,
    html body.dokan-dashboard .wc-pao-addon-name,
    html body.dokan-dashboard .wc-pao-addon-content-option-header {
        font-size: 13px !important;
    }
    
    /* Checkbox labels - 12px on absolute minimum screens */
    html body.dokan-dashboard .dokan-form-group label:has(input[type="checkbox"]),
    html body.dokan-dashboard .dokan-product-form label:has(input[type="checkbox"]),
    html body.dokan-dashboard .dokan-edit-product-wrap label:has(input[type="checkbox"]),
    html body.dokan-dashboard .dokan-product-variation-itmes label:has(input[type="checkbox"]),
    html body.dokan-dashboard .dokan-variations-container label:has(input[type="checkbox"]),
    html body.dokan-dashboard .dokan-product-variation-wrapper label:has(input[type="checkbox"]),
    html body.dokan-dashboard .woocommerce_variation label:has(input[type="checkbox"]),
    html body.dokan-dashboard .dokan-attribute-variation-options label:has(input[type="checkbox"]),
    html body.dokan-dashboard .wc-pao-addon label:has(input[type="checkbox"]),
    html body.dokan-dashboard .wc-pao-addons label:has(input[type="checkbox"]) {
        font-size: 12px !important;
    }
    
    html body.dokan-dashboard .dokan-section-heading,
    html body.dokan-dashboard .dokan-section-heading h2,
    html body.dokan-dashboard .dokan-section-heading h3 {
        font-size: 13px !important;
    }
    
    /* TinyMCE buttons even smaller */
    html body.dokan-dashboard .mce-toolbar .mce-btn,
    html body.dokan-dashboard .mce-toolbar-grp .mce-btn {
        width: 24px !important;
        height: 24px !important;
    }
    
    html body.dokan-dashboard .mce-toolbar .mce-btn.mce-listbox,
    html body.dokan-dashboard .mce-listbox {
        width: auto !important;
        min-width: 60px !important;
        max-width: 100% !important;
        height: auto !important;
    }
}

/* 17. Hide "Add Form" buttons from TinyMCE toolbar (multiple methods for browser compatibility) */
/* Method 1: Hide buttons by aria-label (most specific) */
html body.dokan-dashboard .mce-btn[aria-label*="form"],
html body.dokan-dashboard .mce-btn[aria-label*="MailerLite"],
html body.dokan-dashboard .mce-btn[aria-label*="sign-up"],
html body.dokan-dashboard button[aria-label*="form"],
html body.dokan-dashboard button[aria-label*="MailerLite"] {
    display: none !important;
}

/* Method 2: Hide the last row of toolbar buttons as fallback */
html body.dokan-dashboard .mce-toolbar-grp .mce-stack-layout-item:last-child,
html body.dokan-dashboard .mce-container-body .mce-stack-layout > .mce-container:last-child {
    display: none !important;
}

/* Make sure first toolbar row with formatting buttons stays visible */
html body.dokan-dashboard .mce-toolbar-grp .mce-stack-layout-item:first-child,
html body.dokan-dashboard .mce-toolbar:first-child {
    display: block !important;
    visibility: visible !important;
}

/* 18. Change category selection colors to theme green (#00967d) */
/* Active/selected category items - green background and text */
html body.dokan-dashboard .dokan-product-category-modal .dokan-product-category-li-active,
html body.dokan-dashboard .dokan-product-category-modal li.dokan-product-category-li-active {
    color: #00967d !important;
    background-color: rgba(0, 150, 125, 0.1) !important;
}

/* Active/selected category text (the span inside) - MOST IMPORTANT */
html body.dokan-dashboard .dokan-product-category-modal .dokan-product-category-li-active .dokan-product-category,
html body.dokan-dashboard .dokan-product-category-modal .dokan-product-category-li-active span.dokan-product-category,
html body.dokan-dashboard .dokan-product-category-modal li.dokan-product-category-li-active .dokan-product-category,
html body.dokan-dashboard .dokan-product-category-modal li.dokan-product-category-li-active span.dokan-product-category {
    color: #00967d !important;
}

/* Active/selected category links and all spans */
html body.dokan-dashboard .dokan-product-category-modal .dokan-product-category-li-active a,
html body.dokan-dashboard .dokan-product-category-modal .dokan-product-category-li-active span,
html body.dokan-dashboard .dokan-product-category-modal li.dokan-product-category-li-active a,
html body.dokan-dashboard .dokan-product-category-modal li.dokan-product-category-li-active span {
    color: #00967d !important;
}

/* Selected/checked category items */
html body.dokan-dashboard .dokan-product-category-modal .dokan-product-category-li-selected,
html body.dokan-dashboard .dokan-product-category-modal li.dokan-product-category-li-selected,
html body.dokan-dashboard .dokan-product-category-modal .dokan-cat-item-selected,
html body.dokan-dashboard .dokan-product-category-modal li[class*="selected"] {
    color: #00967d !important;
    background-color: rgba(0, 150, 125, 0.15) !important;
}

/* Hover state for all category items */
html body.dokan-dashboard .dokan-product-category-modal li:hover,
html body.dokan-dashboard .dokan-product-category-modal .dokan-product-category-li:hover {
    background-color: rgba(0, 150, 125, 0.05) !important;
}

/* Hover state text color */
html body.dokan-dashboard .dokan-product-category-modal li:hover .dokan-product-category,
html body.dokan-dashboard .dokan-product-category-modal .dokan-product-category-li:hover .dokan-product-category,
html body.dokan-dashboard .dokan-product-category-modal li:hover span.dokan-product-category,
html body.dokan-dashboard .dokan-product-category-modal .dokan-product-category-li:hover span.dokan-product-category {
    color: #00967d !important;
}

/* Category links hover color */
html body.dokan-dashboard .dokan-product-category-modal a:hover,
html body.dokan-dashboard .dokan-product-category-modal span:hover {
    color: #00967d !important;
}

/* Selected breadcrumb and displayed category */
html body.dokan-dashboard .dokan-selected-category-product,
html body.dokan-dashboard .dokan-select-product-category-title,
html body.dokan-dashboard .dokan-select-product-category-title span {
    color: #00967d !important;
}

/* 19. Make product image upload boxes square (1:1 aspect ratio) */
html body.dokan-dashboard .dokan-feat-image-upload {
    width: 100% !important; /* Ensure it takes full width of column */
    max-width: 350px !important; /* Prevent it from getting too large on tablets */
    margin: 0 0 15px 0 !important; /* Left aligned, with space below */
    height: 0 !important;
    padding-bottom: min(100%, 350px) !important; /* Match height to width up to max-width */
    min-height: unset !important;
    position: relative !important;
    display: block !important;
    overflow: hidden !important;
    background-color: #f7f7f7 !important;
    border-radius: 4px !important;
}

/* Fix the close button (X) so it stays top-right and doesn't cover the whole image */
html body.dokan-dashboard .dokan-feat-image-upload .image-wrap a.close,
html body.dokan-dashboard .dokan-feat-image-upload a.dokan-remove-feat-image {
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #ff0000 !important; /* Red text for visibility */
    border-radius: 4px !important; /* Cube/square shape */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    line-height: 1 !important;
    z-index: 99 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

html body.dokan-dashboard .dokan-feat-image-upload .image-wrap a.close:hover,
html body.dokan-dashboard .dokan-feat-image-upload a.dokan-remove-feat-image:hover {
    background-color: #ff0000 !important;
    color: #ffffff !important;
}

html body.dokan-dashboard .dokan-feat-image-upload .instruction-inside {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body.dokan-dashboard .dokan-feat-image-upload .instruction-inside i.fa-cloud-upload-alt,
html body.dokan-dashboard .dokan-feat-image-upload .instruction-inside a.dokan-feat-image-btn {
    margin: 5px 0 !important; /* Ensure no erratic margins push them off-center */
}

html body.dokan-dashboard .dokan-feat-image-upload .image-wrap {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* Make sure the image behaves like cover (matching WooCommerce catalog) */
html body.dokan-dashboard .dokan-feat-image-upload img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Also make gallery thumbnails square */
html body.dokan-dashboard .dokan-product-gallery .product_images li.image,
html body.dokan-dashboard .dokan-product-gallery .product_images li.add-image {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    width: 80px !important; /* Standard Dokan thumb width, but height auto to match aspect-ratio */
    position: relative !important;
    display: inline-block !important;
    vertical-align: top !important;
}

html body.dokan-dashboard .dokan-product-gallery .product_images li.add-image a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body.dokan-dashboard .dokan-product-gallery .product_images li.add-image a i {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 24px !important; /* Make the + icon slightly larger to fit the square nicely */
}

html body.dokan-dashboard .dokan-product-gallery .product_images li.image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Kinwi: Gallery delete button — small badge in top-right corner (not full overlay) */
html body.dokan-dashboard #dokan-product-images ul.product_images li.image a.action-delete {
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;
    left: auto !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #ff0000 !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    line-height: 1 !important;
    z-index: 10 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    font-weight: bold !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
}

/* Show the badge on hover */
html body.dokan-dashboard #dokan-product-images ul.product_images li.image:hover a.action-delete {
    opacity: 1 !important;
    display: flex !important;
}

/* Badge hover — turns red background with white text */
html body.dokan-dashboard #dokan-product-images ul.product_images li.image a.action-delete:hover {
    background-color: #ff0000 !important;
    color: #ffffff !important;
}

/* Kinwi: Gallery sortable placeholder — dashed border box matching thumbnail size */
html body.dokan-dashboard #dokan-product-images ul.product_images li.dokan-sortable-placeholder {
    aspect-ratio: 1 / 1 !important;
    width: 80px !important;
    height: auto !important;
    border: 2px dashed #00967d !important;
    background-color: rgba(0, 150, 125, 0.05) !important;
    border-radius: 4px !important;
    display: inline-block !important;
    vertical-align: top !important;
    margin: 9px 4px 0 0 !important;
    box-sizing: border-box !important;
    padding: 0 !important;
}

/* Kinwi: Gallery drag helper (clone) — add shadow for visual feedback */
/* CRITICAL: position: absolute is required — the li.image rule sets
   position: relative !important, which the clone inherits. jQuery UI Sortable
   needs absolute positioning on the helper for cursorAt to work correctly. */
html body.dokan-dashboard #dokan-product-images ul.product_images li.image.ui-sortable-helper {
    position: absolute !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    z-index: 1000 !important;
    border: 2px solid #00967d !important;
    border-radius: 4px !important;
    opacity: 1 !important;
    overflow: visible !important;
}

/* Hide delete button on the drag helper clone */
html body.dokan-dashboard #dokan-product-images ul.product_images li.image.ui-sortable-helper a.action-delete {
    display: none !important;
}

/* Kinwi: Grab cursor on gallery images to signal draggability */
html body.dokan-dashboard #dokan-product-images ul.product_images li.image {
    cursor: grab !important;
}
html body.dokan-dashboard #dokan-product-images ul.product_images li.image:active {
    cursor: grabbing !important;
}

/* 42. Kinwi: Change Select2 highlight color to match theme */
html body.dokan-dashboard .select2-container--default .select2-results__option--highlighted[aria-selected],
html body.dokan-dashboard .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #00967d !important;
    color: white !important;
}

/* 43. Kinwi: Change Select2 selected tags/pills to match theme */
html body.dokan-dashboard .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #00967d !important;
    color: white !important;
    border-color: #007a65 !important;
    font-size: 16px !important;
    font-weight: normal !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-break: break-word !important;
}
html body.dokan-dashboard .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: white !important;
}
html body.dokan-dashboard .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #e4e4e4 !important;
}

/* 44. Kinwi: Fix Select2 inner search input overflowing and borders */
html body.dokan-dashboard .select2-container--default .select2-search--inline .select2-search__field {
    min-width: 150px !important;
    max-width: 100% !important;
    border: 1px solid #ccc !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 3px !important;
    padding: 5px !important;
    margin-top: 5px !important;
}

/* 17. Edits for Product Form Header & Success Message */
/* "View Product" button */
html body.dokan-dashboard .dokan-dashboard-header a.dokan-btn[href*="product"],
html body.dokan-dashboard .dokan-dashboard-header .dokan-right a.dokan-btn {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 14px !important;
    font-weight: normal !important;
    font-style: italic !important;
}

/* "Published" label */
html body.dokan-dashboard .dokan-product-status-label,
html body.dokan-dashboard span.dokan-label.dokan-product-status-label,
html body.dokan-dashboard .dokan-dashboard-header .dokan-product-status-label,
html body.dokan-dashboard .dokan-dashboard-wrap .dokan-product-status-label {
    font-family: "Lora upload", "Lora", serif !important;
    font-size: 14px !important;
    font-weight: normal !important;
    font-style: normal !important;
    text-transform: capitalize !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    height: 22px !important;
}

/* Success message green tick and top border */
html body.dokan-dashboard .dokan-message {
    border-top-color: #00967d !important;
}
html body.dokan-dashboard .dokan-message::before {
    background-color: #00967d !important;
}

/* Make the close 'x' icon on success message clearly visible */
html body.dokan-dashboard .dokan-message button.dokan-close,
html body.dokan-dashboard .dokan-message .dokan-close {
    font-size: 24px !important;
    line-height: 1 !important;
    opacity: 0.6 !important;
    position: absolute !important;
    top: 50% !important;
    right: 15px !important;
    transform: translateY(-50%) !important;
    color: #333 !important;
    float: none !important;
}
html body.dokan-dashboard .dokan-message button.dokan-close:hover,
html body.dokan-dashboard .dokan-message .dokan-close:hover {
    opacity: 1 !important;
}

/* 45. SweetAlert2 popup input containment - prevent input from overflowing modal */
.swal2-container .swal2-popup .swal2-input,
.swal2-container .swal2-popup .swal2-file,
.swal2-container .swal2-popup .swal2-textarea,
.swal2-container .swal2-popup input[type="text"].swal2-input,
html body.dokan-dashboard .swal2-container .swal2-popup input[type="text"],
html body.dokan-dashboard .swal2-popup .swal2-input {
    box-sizing: border-box !important;
    width: calc(100% - 4em) !important;
    max-width: calc(100% - 4em) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border-color: #d9d9d9 !important;
}

.swal2-container .swal2-popup .swal2-input:focus,
.swal2-container .swal2-popup .swal2-textarea:focus,
html body.dokan-dashboard .swal2-container .swal2-popup input[type="text"]:focus,
html body.dokan-dashboard .swal2-container .swal2-popup input[type="number"]:focus,
html body.dokan-dashboard .swal2-popup .swal2-input:focus {
    border-color: #00967d !important;
    box-shadow: 0 0 0 1px #00967d !important;
    outline: none !important;
}

/* Re-enable native spin buttons on SweetAlert number inputs (e.g. Variation menu order) */
html body.dokan-dashboard .swal2-container .swal2-popup input[type="number"],
html body.dokan-dashboard .swal2-popup .swal2-input[type="number"],
.swal2-container .swal2-popup input[type="number"],
.swal2-popup .swal2-input[type="number"] {
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
    appearance: auto !important;
    padding-right: 4px !important;
}

html body.dokan-dashboard .swal2-container .swal2-popup input[type="number"]::-webkit-inner-spin-button,
html body.dokan-dashboard .swal2-container .swal2-popup input[type="number"]::-webkit-outer-spin-button,
html body.dokan-dashboard .swal2-popup .swal2-input[type="number"]::-webkit-inner-spin-button,
html body.dokan-dashboard .swal2-popup .swal2-input[type="number"]::-webkit-outer-spin-button,
.swal2-container .swal2-popup input[type="number"]::-webkit-inner-spin-button,
.swal2-container .swal2-popup input[type="number"]::-webkit-outer-spin-button,
.swal2-popup .swal2-input[type="number"]::-webkit-inner-spin-button,
.swal2-popup .swal2-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: auto !important;
    appearance: auto !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 !important;
    cursor: pointer !important;
}

/* 46. Variation number link styling and green hover effect (#00967d) */
html body.dokan-dashboard .dokan-product-variation-itmes h3.variation-topbar-heading,
html body.dokan-dashboard .dokan-variations-container .dokan-product-variation-itmes h3.variation-topbar-heading,
html body.dokan-dashboard .dokan-attribute-variation-options .variation-topbar-heading {
    cursor: pointer !important;
}

html body.dokan-dashboard .dokan-product-variation-itmes h3.variation-topbar-heading strong,
html body.dokan-dashboard .dokan-variations-container .dokan-product-variation-itmes h3.variation-topbar-heading strong,
html body.dokan-dashboard .dokan-attribute-variation-options .variation-topbar-heading strong,
html body.dokan-dashboard .variation-topbar-heading strong {
    cursor: pointer !important;
    transition: color 0.15s ease !important;
}

html body.dokan-dashboard .dokan-product-variation-itmes h3.variation-topbar-heading strong:hover,
html body.dokan-dashboard .dokan-variations-container .dokan-product-variation-itmes h3.variation-topbar-heading strong:hover,
html body.dokan-dashboard .dokan-attribute-variation-options .variation-topbar-heading strong:hover,
html body.dokan-dashboard .variation-topbar-heading strong:hover {
    color: #00967d !important;
}

/* 47. Remove backorder options from product form and variations */
html body.dokan-dashboard select[name^="variable_stock_status"] option[value="onbackorder"],
html body.dokan-dashboard select#_stock_status option[value="onbackorder"],
html body.dokan-dashboard select[name="_stock_status"] option[value="onbackorder"],
html body.dokan-dashboard select[name*="stock_status"] option[value="onbackorder"],
html body.dokan-dashboard select option[value="onbackorder"] {
    display: none !important;
}

/* Hide "Allow backorders?" dropdown across all variations when manage stock is enabled */
html body.dokan-dashboard .dokan-product-variation-itmes div.content-half-part:has(select[name^="variable_backorders"]),
html body.dokan-dashboard .dokan-product-variation-wrapper div.content-half-part:has(select[name^="variable_backorders"]),
html body.dokan-dashboard .dokan-attribute-variation-options div.content-half-part:has(select[name^="variable_backorders"]),
html body.dokan-dashboard select[name^="variable_backorders"] {
    display: none !important;
}

/* 48. Hide plugin migration notices and links from vendor dashboard */
html body.dokan-dashboard a[href*="section=migration"],
html body.dokan-dashboard a[href*="getwooplugins-settings"],
html body.dokan-dashboard .dokan-product-variation-wrapper:has(a[href*="section=migration"]),
html body.dokan-dashboard .dokan-product-variation-itmes div:has(> a[href*="section=migration"]),
html body.dokan-dashboard .dokan-product-variation-itmes p:has(a[href*="section=migration"]),
html body.dokan-dashboard .dokan-attribute-variation-options div:has(> a[href*="section=migration"]),
html body.dokan-dashboard .dokan-attribute-variation-options p:has(a[href*="section=migration"]),
html body.dokan-dashboard div:has(> a[href*="section=migration"]),
html body.dokan-dashboard p:has(> a[href*="section=migration"]),
html body.dokan-dashboard .dokan-alert:has(a[href*="section=migration"]) {
    display: none !important;
}

/* 49. Variation topbar padding and spacing to prevent actions overlapping selection boxes */
html body.dokan-dashboard .dokan-product-variation-itmes .dokan-variation-topbar,
html body.dokan-dashboard .dokan-variations-container .dokan-variation-topbar,
html body.dokan-dashboard .dokan-attribute-variation-options .dokan-variation-topbar,
html body.dokan-dashboard .dokan-product-variation-itmes {
    position: relative !important;
}

html body.dokan-dashboard .dokan-product-variation-itmes .actions,
html body.dokan-dashboard .dokan-variations-container .actions,
html body.dokan-dashboard .dokan-attribute-variation-options .dokan-variation-topbar .actions,
html body.dokan-dashboard .dokan-attribute-variation-options .dokan-product-variation-itmes .actions {
    position: absolute !important;
    top: 12px !important;
    right: 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    z-index: 5 !important;
}

html body.dokan-dashboard .dokan-product-variation-itmes h3.variation-topbar-heading,
html body.dokan-dashboard .dokan-variations-container h3.variation-topbar-heading,
html body.dokan-dashboard .dokan-attribute-variation-options h3.variation-topbar-heading {
    padding: 10px 14px 12px 14px !important;
}

html body.dokan-dashboard .dokan-product-variation-itmes h3.variation-topbar-heading strong,
html body.dokan-dashboard .dokan-variations-container h3.variation-topbar-heading strong,
html body.dokan-dashboard .dokan-attribute-variation-options h3.variation-topbar-heading strong {
    display: inline-block !important;
    line-height: 24px !important;
    margin-bottom: 0 !important;
}

html body.dokan-dashboard .dokan-product-variation-itmes h3.variation-topbar-heading select,
html body.dokan-dashboard .dokan-variations-container h3.variation-topbar-heading select,
html body.dokan-dashboard .dokan-attribute-variation-options h3.variation-topbar-heading select {
    display: block !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    float: none !important;
}

html body.dokan-dashboard .dokan-product-variation-itmes h3.variation-topbar-heading select:first-of-type,
html body.dokan-dashboard .dokan-variations-container h3.variation-topbar-heading select:first-of-type,
html body.dokan-dashboard .dokan-attribute-variation-options h3.variation-topbar-heading select:first-of-type {
    margin-top: 14px !important;
}

html body.dokan-dashboard .dokan-product-variation-itmes h3.variation-topbar-heading select:last-of-type,
html body.dokan-dashboard .dokan-variations-container h3.variation-topbar-heading select:last-of-type,
html body.dokan-dashboard .dokan-attribute-variation-options h3.variation-topbar-heading select:last-of-type {
    margin-bottom: 4px !important;
}

/* 50. Quick Edit drawer/modal field suppression and typography */
/* Hide Tags */
.dataforms-layouts-regular__field:has(#dokan-form-field-product_tag),
.dataforms-layouts-regular__field:has(.dokan-form-field-product_tag),
.dokan-product-product-editor .dataforms-layouts-regular__field:has(#dokan-form-field-product_tag),
.dokan-product-product-editor .dataforms-layouts-regular__field:has(.dokan-form-field-product_tag),
#dokan-form-field-product_tag {
    display: none !important;
}

/* Hide Brands */
.dataforms-layouts-regular__field:has(#dokan-form-field-product_brand),
.dataforms-layouts-regular__field:has(.dokan-form-field-product_brand),
.dokan-product-product-editor .dataforms-layouts-regular__field:has(#dokan-form-field-product_brand),
.dokan-product-product-editor .dataforms-layouts-regular__field:has(.dokan-form-field-product_brand),
#dokan-form-field-product_brand {
    display: none !important;
}

/* Hide Allow Backorders */
.dataforms-layouts-regular__field:has(#dokan-form-field-backorders),
.dataforms-layouts-regular__field:has(.dokan-form-field-backorders),
.dokan-product-product-editor .dataforms-layouts-regular__field:has(#dokan-form-field-backorders),
.dokan-product-product-editor .dataforms-layouts-regular__field:has(.dokan-form-field-backorders),
#dokan-form-field-backorders {
    display: none !important;
}

/* Hide Length, Width, Height (keeps Weight) */
.dataforms-layouts-row__field:has(input[placeholder*="Weight"]) .dataforms-layouts-row__field-control:nth-child(n+2),
.dokan-product-product-editor .dataforms-layouts-row__field:has(input[placeholder*="Weight"]) .dataforms-layouts-row__field-control:nth-child(n+2),
.dataforms-layouts-row__field-control:has(input[placeholder*="Length"]),
.dataforms-layouts-row__field-control:has(input[placeholder*="Width"]),
.dataforms-layouts-row__field-control:has(input[placeholder*="Height"]),
.dokan-product-product-editor .dataforms-layouts-row__field-control:has(input[placeholder*="Length"]),
.dokan-product-product-editor .dataforms-layouts-row__field-control:has(input[placeholder*="Width"]),
.dokan-product-product-editor .dataforms-layouts-row__field-control:has(input[placeholder*="Height"]) {
    display: none !important;
}

/* Hide Catalog Visibility (remains Visible by default with no choice for vendor) */
.dataforms-layouts-regular__field:has(#dokan-form-field-catalog_visibility),
.dataforms-layouts-regular__field:has(.dokan-form-field-catalog_visibility),
.dokan-product-product-editor .dataforms-layouts-regular__field:has(#dokan-form-field-catalog_visibility),
.dokan-product-product-editor .dataforms-layouts-regular__field:has(.dokan-form-field-catalog_visibility),
#dokan-form-field-catalog_visibility {
    display: none !important;
}

/* 50.1 Quick Edit & Bulk Edit Modal Typography to match main product form */
.components-modal__frame h2,
.components-modal__content h2,
.dokan-custom-modal h2,
.components-modal__frame .text-lg,
.components-modal__content .text-lg,
.dokan-custom-modal .text-lg,
.components-modal__frame .dokan-product-product-editor h2,
.components-modal__content .dokan-product-product-editor h2 {
    font-family: "Gabriela upload", serif !important;
    font-size: 20px !important;
    font-weight: 500 !important;
}

.components-modal__frame div[class*="border-b"] p,
.components-modal__content div[class*="border-b"] p,
.dokan-custom-modal div[class*="border-b"] p {
    font-family: "Lora upload", Lora, serif !important;
    font-size: 14px !important;
    font-style: italic !important;
    font-weight: normal !important;
    color: #666 !important;
}

.components-modal__frame .dokan-product-product-editor .dokan-form-field-label,
.components-modal__frame .dokan-product-product-editor .components-input-control__label,
.components-modal__frame .dokan-product-product-editor .components-base-control__label,
.components-modal__frame .dokan-product-product-editor legend,
.components-modal__content .dokan-product-product-editor .dokan-form-field-label,
.components-modal__content .dokan-product-product-editor .components-input-control__label,
.components-modal__content .dokan-product-product-editor .components-base-control__label,
.components-modal__content .dokan-product-product-editor legend,
.dokan-custom-modal .dokan-form-field-label,
.dokan-custom-modal .components-input-control__label,
.dokan-custom-modal .components-base-control__label,
.dokan-custom-modal legend {
    font-family: "Lora upload", Lora, serif !important;
    font-size: 16px !important;
    font-weight: bold !important;
    font-style: normal !important;
    text-transform: capitalize !important;
    color: #1e1e1e !important;
}

.components-modal__frame .dokan-product-product-editor input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.components-modal__frame .dokan-product-product-editor select,
.components-modal__frame .dokan-product-product-editor textarea,
.components-modal__frame .dokan-product-product-editor .components-input-control__input,
.components-modal__frame .dokan-product-product-editor .react-select__single-value,
.components-modal__frame .dokan-product-product-editor .react-select__placeholder,
.components-modal__frame .dokan-product-product-editor .react-select__input,
.components-modal__frame .dokan-product-product-editor .react-select__option,
.components-modal__frame .dokan-product-product-editor .product-editor-price-input,
.components-modal__content .dokan-product-product-editor input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.components-modal__content .dokan-product-product-editor select,
.components-modal__content .dokan-product-product-editor textarea,
.components-modal__content .dokan-product-product-editor .components-input-control__input,
.components-modal__content .dokan-product-product-editor .react-select__single-value,
.components-modal__content .dokan-product-product-editor .react-select__placeholder,
.components-modal__content .dokan-product-product-editor .react-select__input,
.components-modal__content .dokan-product-product-editor .react-select__option,
.components-modal__content .dokan-product-product-editor .product-editor-price-input,
.dokan-custom-modal .product-editor-price-input,
.react-select__menu,
.react-select__menu-list,
.react-select__option,
div[class*="react-select__option"],
.react-select__control,
.react-select__single-value,
.react-select__placeholder,
.react-select__multi-value__label {
    font-family: "Lora upload", Lora, serif !important;
    font-size: 14px !important;
    font-weight: normal !important;
    font-style: italic !important;
}

.react-select__option--is-focused,
div[class*="react-select__option--is-focused"] {
    background-color: #f0fdf9 !important;
    color: #00967d !important;
}

.react-select__option--is-selected,
div[class*="react-select__option--is-selected"] {
    background-color: #00967d !important;
    color: #ffffff !important;
}

.components-modal__frame .dokan-product-product-editor input::placeholder,
.components-modal__content .dokan-product-product-editor input::placeholder,
.components-modal__frame .dokan-product-product-editor textarea::placeholder,
.components-modal__content .dokan-product-product-editor textarea::placeholder,
.dokan-custom-modal input::placeholder,
.dokan-custom-modal textarea::placeholder {
    font-family: "Lora upload", Lora, serif !important;
    font-size: 14px !important;
    font-style: italic !important;
    font-weight: normal !important;
    color: #888 !important;
}

.components-modal__frame .dokan-product-product-editor .components-checkbox-control__label,
.components-modal__frame .dokan-product-product-editor .components-radio-control__label,
.components-modal__frame .dokan-product-product-editor label:has(input[type="checkbox"]),
.components-modal__frame .dokan-product-product-editor label:has(input[type="radio"]),
.components-modal__content .dokan-product-product-editor .components-checkbox-control__label,
.components-modal__content .dokan-product-product-editor .components-radio-control__label,
.components-modal__content .dokan-product-product-editor label:has(input[type="checkbox"]),
.components-modal__content .dokan-product-product-editor label:has(input[type="radio"]),
.dokan-custom-modal .components-checkbox-control__label,
.dokan-custom-modal .components-radio-control__label,
.dokan-custom-modal label:has(input[type="checkbox"]),
.dokan-custom-modal label:has(input[type="radio"]) {
    font-family: "Lora upload", Lora, serif !important;
    font-size: 14px !important;
    font-weight: normal !important;
    font-style: italic !important;
    text-transform: none !important;
}

.components-modal__frame .dokan-product-product-editor p,
.components-modal__frame .dokan-product-product-editor .components-base-control__help,
.components-modal__frame .dokan-product-product-editor span:not([class*="single-value"]):not([class*="placeholder"]):not(.inline-flex),
.components-modal__frame .dokan-product-product-editor .text-xs,
.components-modal__frame .dokan-product-product-editor .text-muted-foreground,
.components-modal__content .dokan-product-product-editor p,
.components-modal__content .dokan-product-product-editor .components-base-control__help,
.components-modal__content .dokan-product-product-editor span:not([class*="single-value"]):not([class*="placeholder"]):not(.inline-flex),
.components-modal__content .dokan-product-product-editor .text-xs,
.components-modal__content .dokan-product-product-editor .text-muted-foreground,
.dokan-custom-modal .dokan-product-product-editor p,
.dokan-custom-modal .dokan-product-product-editor .components-base-control__help,
.dokan-custom-modal .dokan-product-product-editor span:not([class*="single-value"]):not([class*="placeholder"]):not(.inline-flex),
.dokan-custom-modal .dokan-product-product-editor .text-xs,
.dokan-custom-modal .dokan-product-product-editor .text-muted-foreground {
    font-family: "Lora upload", Lora, serif !important;
    font-size: 14px !important;
    font-style: italic !important;
    font-weight: normal !important;
    color: #666 !important;
}

.components-modal__frame div[class*="border-t"] button,
.components-modal__content div[class*="border-t"] button,
.dokan-custom-modal div[class*="border-t"] button,
.dokan-custom-modal button.dokan-btn,
.dokan-custom-modal button.dokan-btn-secondary {
    font-family: "Lora upload", Lora, serif !important;
    font-size: 14px !important;
    font-style: italic !important;
    font-weight: 500 !important;
}

/* Responsive Quick Edit typography for ≤320px */
@media (max-width: 320px) {
    .components-modal__frame .dokan-product-product-editor h2,
    .components-modal__content .dokan-product-product-editor h2,
    .components-modal__frame .dokan-product-product-editor .text-lg,
    .components-modal__content .dokan-product-product-editor .text-lg {
        font-size: 18px !important;
    }

    .components-modal__frame .dokan-product-product-editor .dokan-form-field-label,
    .components-modal__frame .dokan-product-product-editor .components-input-control__label,
    .components-modal__frame .dokan-product-product-editor .components-base-control__label,
    .components-modal__frame .dokan-product-product-editor legend,
    .components-modal__content .dokan-product-product-editor .dokan-form-field-label,
    .components-modal__content .dokan-product-product-editor .components-input-control__label,
    .components-modal__content .dokan-product-product-editor .components-base-control__label,
    .components-modal__content .dokan-product-product-editor legend {
        font-size: 14px !important;
    }

    .components-modal__frame .dokan-product-product-editor input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
    .components-modal__frame .dokan-product-product-editor select,
    .components-modal__frame .dokan-product-product-editor textarea,
    .components-modal__frame .dokan-product-product-editor .components-input-control__input,
    .components-modal__frame .dokan-product-product-editor .react-select__single-value,
    .components-modal__frame .dokan-product-product-editor .react-select__placeholder,
    .components-modal__frame .dokan-product-product-editor .react-select__input,
    .components-modal__frame .dokan-product-product-editor .react-select__option,
    .components-modal__frame .dokan-product-product-editor .product-editor-price-input,
    .components-modal__content .dokan-product-product-editor input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
    .components-modal__content .dokan-product-product-editor select,
    .components-modal__content .dokan-product-product-editor textarea,
    .components-modal__content .dokan-product-product-editor .components-input-control__input,
    .components-modal__content .dokan-product-product-editor .react-select__single-value,
    .components-modal__content .dokan-product-product-editor .react-select__placeholder,
    .components-modal__content .dokan-product-product-editor .react-select__input,
    .components-modal__content .dokan-product-product-editor .react-select__option,
    .components-modal__content .dokan-product-product-editor .product-editor-price-input,
    .components-modal__frame .dokan-product-product-editor .components-checkbox-control__label,
    .components-modal__frame .dokan-product-product-editor .components-radio-control__label,
    .components-modal__content .dokan-product-product-editor .components-checkbox-control__label,
    .components-modal__content .dokan-product-product-editor .components-radio-control__label {
        font-size: 13px !important;
    }
}

/* Responsive Quick Edit typography for ≤260px */
@media (max-width: 260px) {
    .components-modal__frame .dokan-product-product-editor h2,
    .components-modal__content .dokan-product-product-editor h2,
    .components-modal__frame .dokan-product-product-editor .text-lg,
    .components-modal__content .dokan-product-product-editor .text-lg {
        font-size: 16px !important;
    }

    .components-modal__frame .dokan-product-product-editor .dokan-form-field-label,
    .components-modal__frame .dokan-product-product-editor .components-input-control__label,
    .components-modal__frame .dokan-product-product-editor .components-base-control__label,
    .components-modal__frame .dokan-product-product-editor legend,
    .components-modal__content .dokan-product-product-editor .dokan-form-field-label,
    .components-modal__content .dokan-product-product-editor .components-input-control__label,
    .components-modal__content .dokan-product-product-editor .components-base-control__label,
    .components-modal__content .dokan-product-product-editor legend {
        font-size: 13px !important;
    }

    .components-modal__frame .dokan-product-product-editor input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
    .components-modal__frame .dokan-product-product-editor select,
    .components-modal__frame .dokan-product-product-editor textarea,
    .components-modal__frame .dokan-product-product-editor .components-input-control__input,
    .components-modal__frame .dokan-product-product-editor .react-select__single-value,
    .components-modal__frame .dokan-product-product-editor .react-select__placeholder,
    .components-modal__frame .dokan-product-product-editor .react-select__input,
    .components-modal__frame .dokan-product-product-editor .react-select__option,
    .components-modal__frame .dokan-product-product-editor .product-editor-price-input,
    .components-modal__content .dokan-product-product-editor input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
    .components-modal__content .dokan-product-product-editor select,
    .components-modal__content .dokan-product-product-editor textarea,
    .components-modal__content .dokan-product-product-editor .components-input-control__input,
    .components-modal__content .dokan-product-product-editor .react-select__single-value,
    .components-modal__content .dokan-product-product-editor .react-select__placeholder,
    .components-modal__content .dokan-product-product-editor .react-select__input,
    .components-modal__content .dokan-product-product-editor .react-select__option,
    .components-modal__content .dokan-product-product-editor .product-editor-price-input,
    .components-modal__frame .dokan-product-product-editor .components-checkbox-control__label,
    .components-modal__frame .dokan-product-product-editor .components-radio-control__label,
    .components-modal__content .dokan-product-product-editor .components-checkbox-control__label,
    .components-modal__content .dokan-product-product-editor .components-radio-control__label {
        font-size: 12px !important;
    }
}

/* 50.2 Quick Edit Modal Layout, Header Clearance & Responsive Containment */

/* Screen overlay: ensure high z-index and top clearance below fixed site header */
.components-modal__screen-overlay:has(.dokan-product-product-editor),
.components-modal__screen-overlay:has(.dokan-custom-modal) {
    z-index: 99999 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding-top: 125px !important;
    padding-bottom: 25px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
}

@media (max-width: 880px) {
    .components-modal__screen-overlay:has(.dokan-product-product-editor),
    .components-modal__screen-overlay:has(.dokan-custom-modal) {
        padding-top: 100px !important;
        padding-bottom: 20px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

@media (max-width: 640px) {
    .components-modal__screen-overlay:has(.dokan-product-product-editor),
    .components-modal__screen-overlay:has(.dokan-custom-modal) {
        padding-top: 95px !important;
        padding-bottom: 15px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* Modal frame: override absolute top:50% transform centering to prevent going under header */
.dokan-custom-modal.components-modal__frame,
.components-modal__frame:has(.dokan-product-product-editor),
.components-modal__frame.dokan-custom-modal {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 576px !important;
    max-height: calc(100vh - 150px) !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

@media (max-width: 880px) {
    .dokan-custom-modal.components-modal__frame,
    .components-modal__frame:has(.dokan-product-product-editor),
    .components-modal__frame.dokan-custom-modal {
        max-height: calc(100vh - 125px) !important;
    }
}

@media (max-width: 640px) {
    .dokan-custom-modal.components-modal__frame,
    .components-modal__frame:has(.dokan-product-product-editor),
    .components-modal__frame.dokan-custom-modal {
        max-height: calc(100vh - 115px) !important;
        max-width: 100% !important;
    }
}

/* Ensure all children scale responsively and do not blow out modal width */
.components-modal__frame:has(.dokan-product-product-editor) .components-modal__content,
.components-modal__frame:has(.dokan-product-product-editor) .components-modal__children-container,
.components-modal__frame:has(.dokan-product-product-editor) .max-w-xl,
.components-modal__frame:has(.dokan-product-product-editor) .dokan-product-product-editor,
.components-modal__frame:has(.dokan-product-product-editor) .dataforms-layouts__wrapper,
.components-modal__frame:has(.dokan-product-product-editor) .dataforms-layouts-regular__field,
.components-modal__frame:has(.dokan-product-product-editor) .dataforms-layouts-row__field,
.dokan-custom-modal .components-modal__content,
.dokan-custom-modal .components-modal__children-container,
.dokan-custom-modal .max-w-xl,
.dokan-custom-modal .dokan-product-product-editor,
.dokan-custom-modal .dataforms-layouts__wrapper,
.dokan-custom-modal .dataforms-layouts-regular__field,
.dokan-custom-modal .dataforms-layouts-row__field {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.components-modal__frame:has(.dokan-product-product-editor) .components-modal__content,
.dokan-custom-modal .components-modal__content {
    overflow-y: auto !important;
    max-height: 100% !important;
    border-radius: 8px !important;
    background-color: #fff !important;
}

/* Responsive padding on modal inner card on mobile */
@media (max-width: 640px) {
    .components-modal__frame:has(.dokan-product-product-editor) .px-6,
    .dokan-custom-modal .px-6 {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    .components-modal__frame:has(.dokan-product-product-editor) .py-5,
    .dokan-custom-modal .py-5 {
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }
    .components-modal__frame:has(.dokan-product-product-editor) .py-4,
    .dokan-custom-modal .py-4 {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }
}

/* 50.3 Quick View Modal Full Width & Typography */
.components-modal__frame .bg-white.max-w-xl,
.components-modal__frame .bg-white[class*="sm:!w-[500px]"],
.components-modal__frame div[class*="!w-[350px]"],
.dokan-custom-modal div[class*="!w-[350px]"],
.dokan-custom-modal div[class*="sm:!w-[500px]"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.components-modal__frame h2.text-dokan-link,
.dokan-custom-modal h2.text-dokan-link {
    font-family: "Gabriela upload", serif !important;
    font-size: 20px !important;
    font-weight: 500 !important;
}

.components-modal__frame table tr td:first-child,
.dokan-custom-modal table tr td:first-child {
    font-family: "Lora upload", Lora, serif !important;
    font-weight: bold !important;
    color: #1e1e1e !important;
}

.components-modal__frame table tr td:last-child,
.dokan-custom-modal table tr td:last-child {
    font-family: "Lora upload", Lora, serif !important;
    font-style: italic !important;
}

/* =============================================================================
   51. Dokan Product Addons Settings & Category Dropdown
   ============================================================================= */

/* Addons category multiselect container */
.dokan-pa-create-addons .select2-container {
    width: 100% !important;
    max-width: 600px !important;
    box-sizing: border-box !important;
}

/* Category selection pills */
.dokan-pa-create-addons .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #00967d !important;
    border-color: #00967d !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    padding: 2px 8px !important;
    font-family: "Lora upload", Lora, serif !important;
    font-style: italic !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.dokan-pa-create-addons .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #ffffff !important;
    margin-right: 6px !important;
    font-weight: bold !important;
}

.dokan-pa-create-addons .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #ffd1d1 !important;
}

.dokan-pa-create-addons .select2-search__field {
    font-family: "Lora upload", Lora, serif !important;
    font-style: italic !important;
}

/* Category dropdown option styling (overrides global .select2-results__option { font-style: normal !important; }) */
#select2-addon-objects-results .select2-results__option,
#select2-addon-objects-results .select2-results__option[role="option"],
#select2-addon-objects-results .select2-results__group,
ul[id*="addon-objects"] .select2-results__option,
ul[id*="addon-objects"] .select2-results__group,
.select2-dropdown .select2-results__options,
.select2-dropdown .select2-results__group {
    font-family: "Lora upload", Lora, serif !important;
    font-style: italic !important;
}

.select2-results__option .kinwi-cat-option {
    font-family: "Lora upload", Lora, serif !important;
    font-style: italic !important;
    font-size: 14px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.select2-results__option--highlighted[aria-selected] .kinwi-cat-option {
    color: #ffffff !important;
}

.select2-results__option .kinwi-cat-all {
    font-family: "Lora upload", Lora, serif !important;
    font-style: italic !important;
    font-weight: 600;
    color: #00967d;
}

.select2-results__option--highlighted[aria-selected] .kinwi-cat-all {
    color: #ffffff !important;
}

/* Add-on fields toolbar Expand all / Close all links */
html body.dokan-dashboard .wc-pao-toolbar,
html body.dokan-dashboard .wc-pao-toolbar a,
html body.dokan-dashboard .wc-pao-expand-all,
html body.dokan-dashboard .wc-pao-close-all {
    color: #00967d !important;
    font-family: "Lora upload", Lora, serif !important;
    font-size: 14px !important;
    text-decoration: none !important;
}

html body.dokan-dashboard .wc-pao-toolbar a:hover,
html body.dokan-dashboard .wc-pao-expand-all:hover,
html body.dokan-dashboard .wc-pao-close-all:hover {
    color: #007a65 !important;
    text-decoration: underline !important;
}

/* Kinwi: Product Addon form checkboxes & labels alignment and focus styling */
html body.dokan-dashboard .wc-pao-addon label:has(input[type="checkbox"]),
html body.dokan-dashboard .wc-pao-addons label:has(input[type="checkbox"]),
html body.dokan-dashboard .wc-pao-addon label[for*="description-enable"],
html body.dokan-dashboard .wc-pao-addon label[for*="required"],
html body.dokan-dashboard .wc-pao-addon label[for*="restrictions"],
html body.dokan-dashboard .wc-pao-addon label[for*="adjust-price"] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    margin-bottom: 8px !important;
    font-family: "Lora upload", Lora, serif !important;
    font-size: 14px !important;
    font-style: italic !important;
    font-weight: normal !important;
}

html body.dokan-dashboard .wc-pao-addon input[type="checkbox"],
html body.dokan-dashboard .wc-pao-addons input[type="checkbox"],
html body.dokan-dashboard input[type="checkbox"][name^="product_addon_"] {
    width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    border: 1px solid #ccc !important;
    border-radius: 3px !important;
    box-sizing: border-box !important;
    position: relative !important;
    top: -1px !important;
}

html body.dokan-dashboard .wc-pao-addon input[type="checkbox"]:focus,
html body.dokan-dashboard .wc-pao-addons input[type="checkbox"]:focus,
html body.dokan-dashboard input[type="checkbox"][name^="product_addon_"]:focus {
    outline: none !important;
    border-color: #00967d !important;
    box-shadow: 0 0 0 1px #00967d !important;
}

/* Kinwi: Addon option remove X button - consistent closing cross, sizing, and brand theme */
html body.dokan-dashboard .wc-pao-remove-option.dokan-btn {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-style: normal !important;
    font-weight: bold !important;
    font-size: 0 !important;
    color: #ffffff !important;
    background-color: #00967d !important;
    border-color: #00967d !important;
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    border: 1px solid #00967d !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: background-color 0.2s ease, opacity 0.2s ease !important;
}

html body.dokan-dashboard .wc-pao-remove-option.dokan-btn:hover:not(:disabled) {
    background-color: #007a65 !important;
    border-color: #007a65 !important;
    color: #ffffff !important;
}

html body.dokan-dashboard .wc-pao-remove-option.dokan-btn:disabled,
html body.dokan-dashboard .wc-pao-remove-option.dokan-btn[disabled] {
    background-color: #00967d !important;
    border-color: #00967d !important;
    opacity: 0.45 !important;
    cursor: not-allowed !important;
}

html body.dokan-dashboard .wc-pao-remove-option.dokan-btn::after {
    content: "\00d7" !important;
    font-size: 20px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-style: normal !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    line-height: 1 !important;
    display: block !important;
    text-align: center !important;
}

/* Kinwi: Product Edit form - Additional add-ons & Exclude add-ons alignment */
html body.dokan-dashboard .wc-pao-product-global-addon {
    margin-top: 20px !important;
}

html body.dokan-dashboard .wc-pao-product-global-addon strong {
    font-family: "Lora upload", Lora, serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #111111 !important;
}

html body.dokan-dashboard .wc-pao-product-global-addon p {
    font-family: "Lora upload", Lora, serif !important;
    font-size: 14px !important;
    font-style: italic !important;
    margin-top: 6px !important;
    margin-bottom: 12px !important;
}

html body.dokan-dashboard .wc-pao-product-global-addon p a {
    color: #00967d !important;
    text-decoration: none !important;
    font-style: italic !important;
}

html body.dokan-dashboard .wc-pao-product-global-addon p a:hover {
    color: #007a65 !important;
    text-decoration: underline !important;
}

html body.dokan-dashboard .wc-pao-product-global-addon .dokan-form-group {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 0 !important;
}

html body.dokan-dashboard .wc-pao-product-global-addon label.dokan-checkbox-inline {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    font-family: "Lora upload", Lora, serif !important;
    font-size: 14px !important;
    font-style: italic !important;
    font-weight: normal !important;
    line-height: 1 !important;
}

html body.dokan-dashboard .wc-pao-product-global-addon input#_product_addons_exclude_global {
    width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    border: 1px solid #ccc !important;
    border-radius: 3px !important;
    box-sizing: border-box !important;
    position: relative !important;
    top: -1px !important;
}

html body.dokan-dashboard .wc-pao-product-global-addon input#_product_addons_exclude_global:focus {
    outline: none !important;
    border-color: #00967d !important;
    box-shadow: 0 0 0 1px #00967d !important;
}

html body.dokan-dashboard .wc-pao-product-global-addon .description {
    font-family: "Lora upload", Lora, serif !important;
    font-size: 14px !important;
    font-style: italic !important;
    color: #666666 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

/* Kinwi: Guarantee Lora upload on all Dokan vendor dashboard Product Add-ons configuration text/form elements */
html body.dokan-dashboard #product_addons_data,
html body.dokan-dashboard #product_addons_data input,
html body.dokan-dashboard #product_addons_data textarea,
html body.dokan-dashboard #product_addons_data select,
html body.dokan-dashboard #product_addons_data option,
html body.dokan-dashboard #product_addons_data button,
html body.dokan-dashboard #product_addons_data label,
html body.dokan-dashboard #product_addons_data p,
html body.dokan-dashboard #product_addons_data h1,
html body.dokan-dashboard #product_addons_data h2,
html body.dokan-dashboard #product_addons_data h3,
html body.dokan-dashboard #product_addons_data h4,
html body.dokan-dashboard #product_addons_data small,
html body.dokan-dashboard #product_addons_data strong,
html body.dokan-dashboard #product_addons_data em,
html body.dokan-dashboard #product_addons_data a,
html body.dokan-dashboard #product_addons_data span:not([class*="fa"]):not([class*="dashicons"]):not(.wc-pao-addon-sort-handle):not(.wc-pao-addon-toggle),
html body.dokan-dashboard .wc-pao-addons,
html body.dokan-dashboard .wc-pao-addon,
html body.dokan-dashboard .wc-pao-field-header,
html body.dokan-dashboard .wc-pao-addon-content,
html body.dokan-dashboard .wc-pao-addon-main-settings-1,
html body.dokan-dashboard .wc-pao-addon-main-settings-2,
html body.dokan-dashboard .wc-pao-addons-secondary-settings,
html body.dokan-dashboard .wc-pao-addon-option-row,
html body.dokan-dashboard .wc-pao-actions button,
html body.dokan-dashboard .wc-pao-toolbar__import-export button,
html body.dokan-dashboard .wc-pao-import-export-container textarea {
    font-family: "Lora upload", "Lora", serif !important;
}

/* Kinwi: Protect & reinstate Font Awesome drag handles and toggle icons in Product Add-ons */
html body.dokan-dashboard #product_addons_data i.fa,
html body.dokan-dashboard #product_addons_data i.fas,
html body.dokan-dashboard #product_addons_data i.far,
html body.dokan-dashboard #product_addons_data i.fab,
html body.dokan-dashboard #product_addons_data i[class*="fa-"],
html body.dokan-dashboard #product_addons_data span.fa,
html body.dokan-dashboard #product_addons_data span.fas,
html body.dokan-dashboard #product_addons_data span.far,
html body.dokan-dashboard #product_addons_data span.fab,
html body.dokan-dashboard #product_addons_data span[class*="fa-"],
html body.dokan-dashboard #product_addons_data .wc-pao-addon-sort-handle,
html body.dokan-dashboard #product_addons_data .wc-pao-addon-sort-handle:before,
html body.dokan-dashboard #product_addons_data .wc-pao-addon-toggle:before,
html body.dokan-dashboard .wc-pao-addon i.fa,
html body.dokan-dashboard .wc-pao-addon i.fas,
html body.dokan-dashboard .wc-pao-addon i.far,
html body.dokan-dashboard .wc-pao-addon i.fab,
html body.dokan-dashboard .wc-pao-addon i[class*="fa-"],
html body.dokan-dashboard .wc-pao-addon span.fa,
html body.dokan-dashboard .wc-pao-addon span.fas,
html body.dokan-dashboard .wc-pao-addon span.far,
html body.dokan-dashboard .wc-pao-addon span.fab,
html body.dokan-dashboard .wc-pao-addon span[class*="fa-"],
html body.dokan-dashboard .wc-pao-addon .wc-pao-addon-sort-handle,
html body.dokan-dashboard .wc-pao-addon .wc-pao-addon-sort-handle:before,
html body.dokan-dashboard .wc-pao-addon .wc-pao-addon-toggle:before {
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

/* Kinwi: Protect & reinstate Dashicons in Product Add-ons */
html body.dokan-dashboard #product_addons_data span.dashicons,
html body.dokan-dashboard #product_addons_data span[class*="dashicons-"],
html body.dokan-dashboard #product_addons_data i.dashicons,
html body.dokan-dashboard #product_addons_data i[class*="dashicons-"],
html body.dokan-dashboard .wc-pao-addon span.dashicons,
html body.dokan-dashboard .wc-pao-addon span[class*="dashicons-"],
html body.dokan-dashboard .wc-pao-addon i.dashicons,
html body.dokan-dashboard .wc-pao-addon i[class*="dashicons-"] {
    font-family: dashicons !important;
    font-style: normal !important;
    font-weight: normal !important;
}

/* Kinwi: Hide 'Customer Defined Price' from all addon Type dropdowns across all rows */
html body.dokan-dashboard select.wc-pao-addon-type-select option[value="custom_price"],
html body.dokan-dashboard select[id^="wc-pao-addon-content-type-"] option[value="custom_price"],
html body.dokan-dashboard select[name*="product_addon_type"] option[value="custom_price"] {
    display: none !important;
}

/* =============================================================================
   Kinwi: Dokan Product Form - Weight Field Enhancements
   1) Weight input full width across all breakpoints (matching Shipping Class & Title)
   2) Suffix unit indicator (kg) positioned permanently inside the right side of the field
   3) Number spinner plus/minus arrows visible permanently at all times (not only on hover)
   ============================================================================= */

html body.dokan-dashboard .kinwi-weight-input-wrapper {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 10px !important;
}

html body.dokan-dashboard .dokan-shipping-dimention-options {
    position: relative !important;
    width: 100% !important;
}

html body.dokan-dashboard .kinwi-weight-input-wrapper input[name="_weight"],
html body.dokan-dashboard .kinwi-weight-input-wrapper input#_weight,
html body.dokan-dashboard .dokan-shipping-dimention-options input[name="_weight"],
html body.dokan-dashboard .product-edit-new-container .dokan-shipping-container .dokan-shipping-dimention-options input[name="_weight"],
html body.dokan-dashboard input[name="_weight"],
html body.dokan-dashboard input#_weight {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
    padding-right: 66px !important;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
    appearance: none !important;
    box-sizing: border-box !important;
}

/* Hide native browser spinners so clean custom SVG stepper is used consistently */
html body.dokan-dashboard input[name="_weight"]::-webkit-inner-spin-button,
html body.dokan-dashboard input[name="_weight"]::-webkit-outer-spin-button,
html body.dokan-dashboard input#_weight::-webkit-inner-spin-button,
html body.dokan-dashboard input#_weight::-webkit-outer-spin-button,
html body.dokan-dashboard .kinwi-weight-input-wrapper input[type="number"]::-webkit-inner-spin-button,
html body.dokan-dashboard .kinwi-weight-input-wrapper input[type="number"]::-webkit-outer-spin-button,
html body.dokan-dashboard .dokan-shipping-dimention-options input[name="_weight"]::-webkit-inner-spin-button,
html body.dokan-dashboard .dokan-shipping-dimention-options input[name="_weight"]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
    display: none !important;
}

/* Permanent unit indicator inside the field (kg) */
html body.dokan-dashboard .kinwi-weight-unit {
    position: absolute !important;
    right: 34px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #555555 !important;
    font-size: 14px !important;
    font-family: "Lora upload", Lora, serif !important;
    font-style: italic !important;
    font-weight: 600 !important;
    pointer-events: none !important;
    z-index: 2 !important;
    line-height: 1 !important;
    user-select: none !important;
}

/* Custom Weight Stepper buttons (Always visible, works on desktop + mobile + touch) */
html body.dokan-dashboard .kinwi-weight-stepper {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 20px !important;
    height: 28px !important;
    gap: 2px !important;
    z-index: 3 !important;
}

html body.dokan-dashboard .kinwi-weight-step-btn {
    all: unset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 12px !important;
    background: #f3f4f6 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transition: background-color 0.15s ease, border-color 0.15s ease !important;
}

html body.dokan-dashboard .kinwi-weight-step-btn:hover {
    background: #e5e7eb !important;
    border-color: #9ca3af !important;
}

html body.dokan-dashboard .kinwi-weight-step-btn:active {
    background: #d1d5db !important;
}

html body.dokan-dashboard .kinwi-weight-step-btn svg {
    display: block !important;
    width: 8px !important;
    height: 5px !important;
    pointer-events: none !important;
}

html body.dokan-dashboard .kinwi-weight-step-btn:hover svg path {
    stroke: #00967d !important;
}

/* Kinwi: Always show shipping dimension options and shipping class (shipping permanently required for physical goods) */
html body.dokan-dashboard .show_if_needs_shipping {
    display: block !important;
}

/* Hide "This product requires shipping" / "Disable Shipping" checkbox across all Dokan product forms */
html body.dokan-dashboard .dokan-shipping-container .dokan-form-group:has(#_disable_shipping),
html body.dokan-dashboard .dokan-form-group:has(#_disable_shipping),
html body.dokan-dashboard label[for="_disable_shipping"],
html body.dokan-dashboard .dokan-checkbox-inline:has(#_disable_shipping) {
    display: none !important;
}












