/* ZERTI — WooCommerce coupon editor (settings-style tabs, no card shell) */

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    max-width: none;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-list {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    max-width: none;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-editor {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    width: 100%;
    max-width: none;
    align-self: stretch;
    box-sizing: border-box;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-editor-bar {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    margin-bottom: 0.5rem !important;
    justify-content: space-between;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-editor-bar-start {
    flex: 1 1 auto;
    min-width: 0;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-editor-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-editor-actions {
    flex: 0 0 auto;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-delete-btn.btn-outline-danger {
    background-color: color-mix(in srgb, var(--bs-danger, #dc3545) 18%, var(--zerti-docs-subtle-bg));
    border-color: color-mix(in srgb, var(--bs-danger, #dc3545) 45%, var(--zerti-docs-border));
    color: #ea868f;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-delete-btn.btn-outline-danger:hover,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-delete-btn.btn-outline-danger:focus-visible {
    background-color: color-mix(in srgb, var(--bs-danger, #dc3545) 28%, var(--zerti-docs-subtle-bg));
    border-color: color-mix(in srgb, var(--bs-danger, #dc3545) 55%, var(--zerti-docs-border));
    color: var(--zerti-docs-text);
}

#zertiAdmin[data-bs-theme='light'] .zerti-component-financial-coupons .zerti-coupons-delete-btn.btn-outline-danger {
    background-color: #f8d7da;
    border-color: #f1aeb5;
    color: #842029;
}

#zertiAdmin[data-bs-theme='light'] .zerti-component-financial-coupons .zerti-coupons-delete-btn.btn-outline-danger:hover,
#zertiAdmin[data-bs-theme='light'] .zerti-component-financial-coupons .zerti-coupons-delete-btn.btn-outline-danger:focus-visible {
    background-color: #f1aeb5;
    border-color: #ea868f;
    color: #58151c;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-editor-scroll {
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-sizing: border-box;
    padding-bottom: 0.5rem;
    position: relative;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-editor-scroll.zerti-coupons-editor-scroll--loading {
    overflow: hidden;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-editor-scroll.zerti-coupons-editor-scroll--loading .zerti-coupons-editor-slot {
    opacity: 0.35;
    pointer-events: none;
    user-select: none;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-editor-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
    background: transparent;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupons-editor-slot {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    width: 100%;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 9pt;
    line-height: 1.35;
    color: var(--zerti-docs-text);
}

/* —— Native inputs (all tabs + basics) —— */
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-control,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-select,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .zerti-admin-select,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-field input:not([type='checkbox']):not([type='radio']):not([type='hidden']),
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-field select,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-field textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 1.55rem;
    padding: 0.12rem 0.45rem;
    font-family: inherit;
    font-size: 9pt;
    font-weight: 500;
    line-height: 1.35;
    color: var(--zerti-docs-text);
    background-color: var(--zerti-docs-subtle-bg);
    border: 1px solid var(--zerti-docs-border);
    border-radius: 0.5rem;
    box-shadow: none;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form textarea.form-control,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-field textarea {
    min-height: 3.25rem;
    padding-block: 0.35rem;
    height: auto;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-control::placeholder,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-field input::placeholder,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-field textarea::placeholder {
    color: var(--zerti-docs-muted);
    opacity: 1;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-control:hover,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-select:hover,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .zerti-admin-select:hover,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-field input:not([type='checkbox']):not([type='radio']):hover,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-field select:hover,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-field textarea:hover {
    border-color: color-mix(in srgb, var(--zerti-bs-purple) 35%, var(--zerti-docs-border));
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-control:focus,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-select:focus,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .zerti-admin-select:focus,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-control:focus-visible,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-select:focus-visible,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .zerti-admin-select:focus-visible,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-field input:not([type='checkbox']):not([type='radio']):focus,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-field select:focus,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-field textarea:focus,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-field input:not([type='checkbox']):not([type='radio']):focus-visible,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-field select:focus-visible,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-field textarea:focus-visible {
    outline: 0;
    color: var(--zerti-docs-text);
    background-color: var(--zerti-docs-subtle-bg);
    border-color: color-mix(in srgb, var(--zerti-bs-purple) 55%, var(--zerti-docs-border));
    box-shadow: 0 0 0 0.15rem color-mix(in srgb, var(--zerti-bs-purple) 22%, transparent);
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-control:disabled,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-control[readonly],
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-field input:not([type='checkbox']):disabled,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-field input:not([type='checkbox'])[readonly] {
    color: color-mix(in srgb, var(--zerti-docs-text) 72%, var(--zerti-docs-muted));
    background-color: color-mix(in srgb, var(--zerti-docs-subtle-bg) 82%, var(--zerti-docs-border));
    opacity: 1;
    cursor: default;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-select,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .zerti-admin-select,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-field select:not(.select2-hidden-accessible) {
    padding-inline-start: var(--zerti-select-pad-inline-start, 0.45rem);
    padding-inline-end: var(--zerti-select-pad-inline-end, 1.85rem);
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%236b7280' d='M4.2 6.2a.75.75 0 0 1 1.06 0L8 8.94l2.74-2.74a.75.75 0 1 1 1.06 1.06L8.53 10.53a.75.75 0 0 1-1.06 0L4.2 7.26a.75.75 0 0 1 0-1.06Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: var(--zerti-select-chevron-pos, left 0.45rem center);
    background-size: 0.75rem;
    appearance: none;
    cursor: pointer;
}

#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupon-form .form-select,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupon-form .zerti-admin-select,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupon-form .form-field select:not(.select2-hidden-accessible) {
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23adb5bd' d='M4.2 6.2a.75.75 0 0 1 1.06 0L8 8.94l2.74-2.74a.75.75 0 1 1 1.06 1.06L8.53 10.53a.75.75 0 0 1-1.06 0L4.2 7.26a.75.75 0 0 1 0-1.06Z'/%3E%3C/svg%3E");
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-select option,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .zerti-admin-select option,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .form-field select option {
    background-color: var(--zerti-docs-bg);
    color: var(--zerti-docs-text);
}

#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupon-form .form-control,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupon-form .form-select,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupon-form .zerti-admin-select,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupon-form .form-field input:not([type='checkbox']):not([type='radio']):not([type='hidden']),
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupon-form .form-field select,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupon-form .form-field textarea {
    color: var(--zerti-docs-text);
    background-color: var(--zerti-docs-subtle-bg);
    border-color: var(--zerti-docs-border);
}

#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupon-form .form-control::placeholder,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupon-form .form-field input::placeholder,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupon-form .form-field textarea::placeholder {
    color: var(--zerti-docs-muted);
}

#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupon-form .form-control:focus,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupon-form .form-select:focus,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupon-form .zerti-admin-select:focus,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupon-form .form-control:focus-visible,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupon-form .form-select:focus-visible,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupon-form .zerti-admin-select:focus-visible,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupon-form .form-field input:not([type='checkbox']):not([type='radio']):focus,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupon-form .form-field select:focus,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupon-form .form-field textarea:focus,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupon-form .form-field input:not([type='checkbox']):not([type='radio']):focus-visible,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupon-form .form-field select:focus-visible,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupon-form .form-field textarea:focus-visible {
    color: var(--zerti-docs-text);
    background-color: var(--zerti-docs-subtle-bg);
    border-color: color-mix(in srgb, var(--zerti-bs-purple) 55%, var(--zerti-docs-border));
    box-shadow: 0 0 0 0.15rem color-mix(in srgb, var(--zerti-bs-purple) 22%, transparent);
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form-basics .form-label,
#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .form-field > label {
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .form-field .description,
#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .form-field span.description {
    font-size: 8pt;
    color: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .woocommerce-help-tip,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .help_tip {
    color: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-code-row {
    display: flex;
    align-items: stretch;
    gap: 0.45rem;
    direction: ltr;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-code-row .form-control {
    flex: 1 1 auto;
    min-width: 0;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-code-row .zerti-coupon-generate-code.btn {
    margin-top: 0;
    box-sizing: border-box;
    min-height: 1.55rem;
    height: auto;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.12rem 0.45rem;
    line-height: 1.35;
    font-size: 8pt;
    border-radius: 0.5rem;
    flex: 0 0 auto;
    white-space: nowrap;
    --bs-btn-padding-y: 0.12rem;
    --bs-btn-padding-x: 0.45rem;
    --bs-btn-line-height: 1.35;
    --bs-btn-border-radius: 0.5rem;
    --bs-btn-font-size: 8pt;
}

/* —— Select2 / SelectWoo (product, category, customer search) —— */
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .select2-container {
    width: 100% !important;
    max-width: none;
    font-family: inherit;
    font-size: 9pt;
    font-weight: 500;
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .select2-container .select2-selection--single,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .select2-container .select2-selection--multiple {
    min-height: 1.55rem;
    background-color: var(--zerti-docs-subtle-bg);
    border: 1px solid var(--zerti-docs-border);
    border-radius: 0.5rem;
    box-shadow: none;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .select2-container .select2-selection--single {
    height: auto;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0.12rem 1.75rem 0.12rem 0.45rem;
    font-size: 9pt;
    line-height: 1.35;
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .select2-container .select2-selection--single .select2-selection__placeholder {
    color: var(--zerti-docs-muted);
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .select2-container .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 0;
    right: 0.35rem;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .select2-container .select2-selection--multiple {
    min-height: 2.125rem;
    height: auto;
    padding: 0.3rem 0.45rem;
    cursor: text;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .select2-container .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
    padding: 0;
    margin: 0;
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .select2-container .select2-selection--multiple .select2-selection__placeholder {
    color: var(--zerti-docs-muted);
    font-size: 9pt;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .select2-container .select2-selection--multiple .select2-selection__choice {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0.05rem 0.4rem;
    font-size: 9pt;
    color: var(--zerti-docs-text);
    background-color: color-mix(in srgb, var(--zerti-bs-purple) 12%, var(--zerti-docs-subtle-bg));
    border: 1px solid color-mix(in srgb, var(--zerti-bs-purple) 30%, var(--zerti-docs-border));
    border-radius: 0.35rem;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .select2-container .select2-search--inline .select2-search__field {
    font-family: inherit;
    font-size: 9pt;
    color: var(--zerti-docs-text);
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 0;
    min-height: 1.35rem;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .select2-container.select2-container--focus .select2-selection--single,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .select2-container.select2-container--open .select2-selection--single,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .select2-container.select2-container--focus .select2-selection--multiple,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form .select2-container.select2-container--open .select2-selection--multiple {
    border-color: color-mix(in srgb, var(--zerti-bs-purple) 55%, var(--zerti-docs-border));
    box-shadow: 0 0 0 0.15rem color-mix(in srgb, var(--zerti-bs-purple) 22%, transparent);
    outline: 0;
}

#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupon-form .select2-container .select2-selection--single,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupon-form .select2-container .select2-selection--multiple {
    background-color: var(--zerti-docs-subtle-bg);
    border-color: var(--zerti-docs-border);
}

#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupon-form .select2-container .select2-selection--single .select2-selection__rendered,
#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupon-form .select2-container .select2-selection--multiple .select2-selection__choice__display {
    color: var(--zerti-docs-text);
}

#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupon-form .select2-container .select2-selection--multiple .select2-selection__choice {
    background-color: color-mix(in srgb, var(--zerti-bs-purple) 18%, var(--zerti-docs-subtle-bg));
    border-color: color-mix(in srgb, var(--zerti-bs-purple) 35%, var(--zerti-docs-border));
    color: var(--zerti-docs-text);
}

#zertiAdmin[data-bs-theme='dark'] .zerti-component-financial-coupons .zerti-coupon-form .select2-container .select2-selection--multiple .select2-selection__choice__remove {
    color: var(--zerti-docs-muted);
}

/* Select2 dropdown while coupon editor is open (appended to body). */
body.toplevel_page_zerti-admin:has(#zertiAdmin .zerti-coupon-form) .select2-dropdown {
    background-color: var(--zerti-docs-bg);
    border: 1px solid var(--zerti-docs-border);
    border-radius: 0.5rem;
    color: var(--zerti-docs-text);
    font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 9pt;
    box-shadow: 0 0.35rem 1rem color-mix(in srgb, var(--zerti-docs-text) 12%, transparent);
}

body.toplevel_page_zerti-admin:has(#zertiAdmin .zerti-coupon-form) .select2-dropdown .select2-results__option {
    color: var(--zerti-docs-text);
    padding: 0.35rem 0.55rem;
}

body.toplevel_page_zerti-admin:has(#zertiAdmin .zerti-coupon-form) .select2-dropdown .select2-results__option--highlighted {
    background-color: color-mix(in srgb, var(--zerti-bs-purple) 48%, var(--zerti-docs-subtle-bg));
    color: var(--zerti-docs-text);
}

body.toplevel_page_zerti-admin:has(#zertiAdmin .zerti-coupon-form) .select2-dropdown .select2-search--dropdown .select2-search__field {
    font-family: inherit;
    font-size: 9pt;
    color: var(--zerti-docs-text);
    background-color: var(--zerti-docs-subtle-bg);
    border: 1px solid var(--zerti-docs-border);
    border-radius: 0.35rem;
}

body.toplevel_page_zerti-admin:has(#zertiAdmin[data-bs-theme='dark']) .select2-dropdown:has(.select2-results) {
    background-color: var(--zerti-docs-bg);
    border-color: var(--zerti-docs-border);
    color: var(--zerti-docs-text);
}

body.toplevel_page_zerti-admin:has(#zertiAdmin[data-bs-theme='dark']) .select2-dropdown .select2-results__option[aria-selected='true'],
body.toplevel_page_zerti-admin:has(#zertiAdmin[data-bs-theme='dark']) .select2-dropdown .select2-results__option--selected {
    background-color: color-mix(in srgb, var(--zerti-bs-purple) 34%, var(--zerti-docs-bg));
    color: var(--zerti-docs-text);
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form #expiry_date.zerti-admin-date-input {
    width: 100%;
    max-width: none;
    min-width: 0;
    text-align: inherit;
    letter-spacing: 0.02em;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form > .zerti-settings-layout {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: none;
    margin-bottom: 0;
    align-self: stretch;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form > .alert {
    flex: 0 0 auto;
    margin-bottom: 0.5rem;
    padding-block: 0.35rem;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form-basics {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    margin-bottom: 0.65rem;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-form-basics .form-label {
    margin-bottom: 0.2rem;
    font-size: 9pt;
    font-weight: 600;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-wc-meta .coupon_data_tabs,
#zertiAdmin .zerti-component-financial-coupons .zerti-coupon-wc-meta .wc-tabs-back {
    display: none !important;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .woocommerce_options_panel {
    float: none;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .options_group {
    float: none;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .options_group + .options_group {
    margin-top: 0.5rem;
    padding-top: 0;
    border-top: 0;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .options_group {
    border-top: 0 !important;
    border-bottom: 0 !important;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .hr-section,
#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .hr-section-coupon_restrictions {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    min-height: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .hr-section::before,
#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .hr-section::after,
#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .hr-section-coupon_restrictions::before,
#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .hr-section-coupon_restrictions::after {
    display: none !important;
    content: none !important;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .woocommerce_options_panel p.form-field,
#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .woocommerce_options_panel fieldset.form-field {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .woocommerce_options_panel label,
#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .woocommerce_options_panel legend {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .woocommerce_options_panel input:not([type='checkbox']):not([type='radio']):not([type='hidden']),
#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .woocommerce_options_panel select,
#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .woocommerce_options_panel textarea,
#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .woocommerce_options_panel .short {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    box-sizing: border-box;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .woocommerce_options_panel .select2-container {
    float: none !important;
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    box-sizing: border-box;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .woocommerce_options_panel .form-field .description {
    display: block;
    clear: both;
    margin: 0.25rem 0 0;
    float: none;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .woocommerce_options_panel .form-field .woocommerce-help-tip {
    float: none;
    display: inline-block;
    vertical-align: middle;
    margin-inline-start: 0.25rem;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel #general_coupon_data,
#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .options_group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.65rem;
    align-items: start;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel #general_coupon_data {
    margin-top: 5px;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel #general_coupon_data > .discount_type_field {
    grid-column: 1;
    grid-row: 1;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel #general_coupon_data > .coupon_amount_field {
    grid-column: 2;
    grid-row: 1;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel #general_coupon_data > .free_shipping_field {
    grid-column: 1;
    grid-row: 2;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel #general_coupon_data > .expiry_date_field {
    grid-column: 2;
    grid-row: 2;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel #general_coupon_data > .discount_type_field,
#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel #general_coupon_data > .coupon_amount_field {
    display: grid;
    grid-template-rows: auto auto;
    gap: 0.2rem;
    align-self: stretch;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel #general_coupon_data > .coupon_amount_field {
    grid-template-columns: max-content auto;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel #general_coupon_data > .coupon_amount_field > label {
    grid-column: 1;
    grid-row: 1;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel #general_coupon_data > .coupon_amount_field > .woocommerce-help-tip {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin: 0;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel #general_coupon_data > .coupon_amount_field > input {
    grid-column: 1 / -1;
    grid-row: 2;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel #general_coupon_data > .discount_type_field > label {
    grid-row: 1;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel #general_coupon_data > .discount_type_field > select {
    grid-row: 2;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel[data-zerti-coupon-panel='usage-limit'] .options_group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel[data-zerti-coupon-panel='usage-restriction'] .options_group:last-of-type {
    grid-template-columns: minmax(0, 1fr);
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .form-field:has(.wc-product-search),
#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .form-field:has(.wc-customer-search),
#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .form-field:has(select[multiple]) {
    grid-column: 1 / -1;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .form-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
    align-items: start;
    margin: 0;
    padding: 0;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .form-field > label {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    font-size: 9pt;
    font-weight: 600;
    line-height: 1.3;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .form-field input[type='checkbox'] {
    width: auto !important;
    min-height: 0;
    margin: 0;
    flex: 0 0 auto;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .form-field:has(input[type='checkbox']) {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem 0.5rem;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .form-field:has(input[type='checkbox']) input[type='checkbox'] {
    order: 1;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .form-field:has(input[type='checkbox']) > label {
    order: 2;
    flex: 0 1 auto;
    width: auto;
    max-width: none;
    font-weight: 500;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .form-field:has(input[type='checkbox']) .woocommerce-help-tip {
    order: 3;
    flex: 0 0 auto;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .form-field:has(input[type='checkbox']) .description {
    order: 4;
    flex: 0 0 100%;
    width: 100%;
    margin: 0.15rem 0 0;
    display: block;
}

#zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .form-field:has(input[type='checkbox']) input[type='hidden'] {
    order: 0;
    flex: 0 0 auto;
}

@media (max-width: 767.98px) {
    #zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel #general_coupon_data,
    #zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .options_group {
        grid-template-columns: minmax(0, 1fr);
    }

    #zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel #general_coupon_data > .discount_type_field,
    #zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel #general_coupon_data > .coupon_amount_field,
    #zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel #general_coupon_data > .free_shipping_field,
    #zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel #general_coupon_data > .expiry_date_field {
        grid-column: auto;
        grid-row: auto;
    }

    #zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .form-field:has(.wc-product-search),
    #zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .form-field:has(.wc-customer-search),
    #zertiAdmin .zerti-component-financial-coupons .zerti-settings-panel .form-field:has(select[multiple]) {
        grid-column: auto;
    }
}
