.qm-search-wrap {
    position: relative;
    min-width: 140px;
    max-width: 200px;
    flex-shrink: 0;
}
.qm-search-wrap input[type="text"] {
    width: 100% !important;
    padding: 8px 30px 8px 36px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    background: #fff !important;
    outline: none !important;
    transition: border-color .2s, box-shadow .2s !important;
    height: auto !important;
    line-height: 1.4 !important;
}
.qm-search-wrap input[type="text"]:focus {
    border-color: var(--theme-color-1) !important;
    box-shadow: 0 0 0 3px var(--theme-color-0_15) !important;
}
.qm-search-icon-wrap {
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}
.qm-search-icon-wrap i {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1;
}
.qm-search-clear {
    position: absolute;
    right: 8px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 12px;
    display: none;
    padding: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    z-index: 2;
}
.qm-search-clear:hover { background: #f1f5f9; }
.qm-search-clear.visible { display: flex !important; }

/* Lightweight search dropdown */
.qm-search-drop {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .15s, transform .15s;
}
.qm-search-drop.active {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}
.qm-search-drop-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f8fafc;
    transition: background .15s;
}
.qm-search-drop-item:last-child { border-bottom: none; }
.qm-search-drop-item:hover,
.qm-search-drop-item.active {
    background: #f8fafc;
}
.qm-search-drop-item-name {
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
}
.qm-search-drop-item-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--theme-color-1);
    white-space: nowrap;
}
.qm-search-drop-empty {
    padding: 16px;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .qm-cat-sticky { flex-wrap: wrap; gap: 6px; }
    .qm-search-row { padding: 6px 0 10px; }
    .qm-search-wrap { max-width: 100%; width: 100%; }
    .qm-search-wrap input[type="text"] { padding: 8px 30px 8px 36px !important; font-size: 13px !important; }
}

.qm-item-match { display: block !important; }
.qm-item-hidden { display: none !important; }
.qm-cat-block.has-match { display: block !important; }
.qm-cat-block.no-match { display: none !important; }

/* Hide menu cards while search dropdown is active */
.qm-menu-wrap.qm-search-hidden {
    display: none !important;
}

@keyframes qmFlash {
    0% { box-shadow: 0 0 0 0 var(--theme-color-0_5); }
    50% { box-shadow: 0 0 0 6px var(--theme-color-0_1); }
    100% { box-shadow: 0 0 0 0 transparent; }
}
.qm-flash-highlight {
    animation: qmFlash 1.2s ease-out;
}

/* Name + status inline */
.qm-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.qm-status-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    flex-shrink: 0;
}
.qm-status-inline.qm-status-open { background: #16a34a; color: #fff; }
.qm-status-inline.qm-status-closed { background: #64748b; color: #fff; }
.qm-status-inline i { font-size: 6px; }
.qm-name-row .qm-restaurant-name { margin: 0 !important; }

/* Compact meta pills */
.qm-meta-compact {
    gap: 6px;
    margin-top: 4px;
}
.qm-meta-compact .qm-meta-item {
    font-size: 11.5px;
    padding: 5px 10px;
    border-radius: 999px;
    gap: 5px;
}
.qm-meta-compact .qm-meta-item i { font-size: 11px; }

/* Always show bell label text */
.qm-bell-label { display: inline !important; }

/* Blinking dot for Open status */
@keyframes qmBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.qm-status-dot {
    animation: qmBlink 1.5s ease-in-out infinite;
}

/* Simple spinner for button loaders */
@keyframes qmSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Search row below categories */
.qm-search-row {
    position: sticky;
    top: 60px;
    z-index: 40;
    background: rgba(247, 248, 251, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin: 0 -16px 18px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}
.qm-search-row .qm-search-wrap {
    max-width: 100%;
    width: 100%;
}
.qm-search-row .qm-search-wrap input[type="text"] {
    width: 100% !important;
}

/* Frequent Orders: always show grid cards, hide list rows */
#qm-frequent .menu-list-view { display: none !important; }
#qm-frequent .menu-grid-view { display: block !important; }
#qm-frequent .qm-menu-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}
#qm-frequent .qm-menu-grid > [class*="col-"] {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    padding: 0 8px;
}
#qm-frequent .qm-frequent-body {
    padding-top: 8px;
}
@media (max-width: 575px) {
    #qm-frequent .qm-menu-grid > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Waiter call popup table chips */
.qm-waiter-table-row { margin-bottom: 12px; }
.qm-waiter-table-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.qm-waiter-table-chip {
    position: relative;
    cursor: pointer;
    flex: 0 0 calc((100% - (5 - 1) * 6px) / 5);
    max-width: calc((100% - (5 - 1) * 6px) / 5);
}
.qm-waiter-table-chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.qm-waiter-table-chip span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    font-size: 11px;
    font-weight: 500;
    color: #0f172a;
    transition: all .15s ease;
    text-align: center;
    padding: 0 2px;
}
.qm-waiter-table-chip:hover span {
    border-color: var(--theme-color-1);
    background: #fff8f5;
}
.qm-waiter-table-chip input:checked + span {
    border-color: var(--theme-color-1);
    background: var(--theme-color-1);
    color: #fff;
    box-shadow: 0 2px 8px rgba(var(--theme-color-rgb, 99, 102, 241), 0.22);
}
.qm-waiter-table-chip input:focus-visible + span {
    outline: 2px solid var(--theme-color-1);
    outline-offset: 2px;
}
@keyframes qmFormErrorShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}
.qm-form-error-shake {
    animation: qmFormErrorShake 0.4s ease-in-out;
    border-color: #dc2626 !important;
}

/* Waiter call request options */
.qm-waiter-options {
    display: grid;
    gap: 8px;
    margin-top: 6px;
    grid-template-columns: repeat(3, 1fr);
}
.qm-waiter-options-2 { grid-template-columns: repeat(2, 1fr); }
.qm-waiter-options-4 { grid-template-columns: repeat(2, 1fr); }
.qm-waiter-option {
    position: relative;
}
.qm-waiter-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.qm-waiter-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 8px 4px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    color: #0f172a;
    transition: all .15s ease;
    text-align: center;
    min-height: 56px;
}
.qm-waiter-option label:hover {
    border-color: var(--theme-color-1);
    background: #fff8f5;
}
.qm-waiter-option input:checked + label {
    border-color: #16a34a;
    background: rgba(22, 163, 74, 0.10);
    color: #16a34a;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.15);
}
.qm-waiter-option input:checked + label::after {
    content: '\e92b';
    font-family: 'Feather-Icons';
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 8px;
    width: 13px;
    height: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #16a34a;
    color: #fff;
    border-radius: 50%;
}
.qm-waiter-option .qm-waiter-icon {
    font-size: 14px;
    line-height: 1;
}
.qm-waiter-option .qm-waiter-label {
    font-size: 10px;
    line-height: 1.1;
}
.qm-waiter-custom label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}
.qm-waiter-custom textarea {
    width: 100%;
    resize: vertical;
    min-height: 72px;
    border-radius: 10px;
}
.qm-waiter-custom textarea:focus {
    border-color: var(--theme-color-1);
    box-shadow: 0 0 0 3px var(--theme-color-0_15);
}
.qm-waiter-option-error label {
    border-color: #dc2626 !important;
    background: #fff !important;
    box-shadow: 0 0 0 1px #dc2626, 0 2px 8px rgba(220, 38, 38, 0.10) !important;
}
@media (max-width: 360px) {
    .qm-waiter-options {
        gap: 6px;
    }
    .qm-waiter-option label {
        padding: 6px 3px;
        min-height: 52px;
    }
    .qm-waiter-option .qm-waiter-icon {
        font-size: 13px;
    }
    .qm-waiter-option .qm-waiter-label {
        font-size: 9px;
    }
}

/* Receipt modal */
.qm-receipt-popup { max-width: 420px; }
.qm-receipt-wrap {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}
.qm-receipt {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    background: #fff;
    color: #1a1a1a;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 13px;
    line-height: 1.45;
    padding: 22px 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 1px dashed #d1d5db;
}
.qm-receipt-header { text-align: center; margin-bottom: 10px; }
.qm-receipt-logo {
    width: 48px; height: 48px; object-fit: cover; border-radius: 8px;
    margin-bottom: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.qm-receipt-header h4 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 17px; font-weight: 800; margin: 0 0 4px; color: #111;
}
.qm-receipt-header p {
    font-size: 11px; color: #4b5563; margin: 0 0 2px;
}
.qm-receipt-divider {
    text-align: center;
    font-size: 12px;
    letter-spacing: 1px;
    color: #6b7280;
    margin: 10px 0;
}
.qm-receipt-meta { margin-bottom: 8px; }
.qm-receipt-row {
    display: flex; justify-content: space-between; gap: 10px;
    margin-bottom: 4px;
}
.qm-receipt-row span:first-child { color: #4b5563; }
.qm-receipt-row span:last-child,
.qm-receipt-row strong:last-child { text-align: right; }
.qm-receipt-items { width: 100%; margin: 8px 0; }
.qm-receipt-items .qm-receipt-header {
    display: flex; justify-content: space-between; font-size: 11px;
    font-weight: 700; color: #6b7280; text-transform: uppercase;
    padding-bottom: 5px; border-bottom: 1px dashed #d1d5db;
}
.qm-receipt-item {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 10px; padding: 5px 0; border-bottom: 1px dashed #e5e7eb;
}
.qm-receipt-item:last-child { border-bottom: none; }
.qm-receipt-item-name {
    font-weight: 600; color: #111827;
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px;
    flex: 1; min-width: 0;
}
.qm-receipt-item-name span { white-space: nowrap; }
.qm-receipt-item-name small {
    font-size: 11px; color: #6b7280; font-weight: 400;
}
.qm-receipt-item-qty { font-size: 12px; color: #6b7280; }
.qm-receipt-item-price {
    font-weight: 600; color: #111827; white-space: nowrap;
    text-align: right;
}
.qm-receipt-item-extra {
    display: flex; justify-content: space-between; gap: 10px;
    padding: 1px 0 1px 12px; font-size: 11px; color: #6b7280;
    border-bottom: 1px dashed #e5e7eb;
}
.qm-receipt-item-extra:last-child { border-bottom: 1px dashed #e5e7eb; }
.qm-receipt-item-extra span:first-child { flex: 1; }
.qm-receipt-item-extra span:last-child { white-space: nowrap; font-weight: 400; }
.qm-receipt-totals { margin-top: 4px; }
.qm-receipt-total-row { font-size: 15px; margin-top: 8px; padding-top: 6px; border-top: 1px dashed #d1d5db; }
.qm-receipt-footer { text-align: center; margin-top: 12px; font-size: 11px; color: #4b5563; }
.qm-receipt-footer p { margin: 0 0 3px; }
.qm-receipt-actions { display: flex; gap: 10px; justify-content: center; }
.qm-receipt-actions .qm-btn { flex: 1; justify-content: center; }

/* Download bill button in recent orders list */
.qm-recent-row-actions { flex-wrap: wrap; }
.qm-recent-row-bill,
.qm-recent-btn-bill {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff7ed; color: #c2410c; border-color: #fed7aa;
}
.qm-recent-row-bill { width: 100%; justify-content: center; margin-top: 8px; }
.qm-recent-row-bill:hover,
.qm-recent-btn-bill:hover { background: #ffedd5; color: #9a3412; }
.qm-recent-row-status.qm-recent-status-served,
.qm-recent-row-status.qm-recent-status-completed { font-weight: 700; }

/* Google Review Booster rating modal */
.qm-review-popup-body { text-align: center; }
.qm-review-text { margin: 0 0 14px; font-size: 15px; color: #334155; }
.qm-review-stars {
    display: flex; justify-content: center; gap: 8px;
    margin-bottom: 18px;
}
.qm-review-stars button {
    background: none; border: none; padding: 0;
    font-size: 34px; line-height: 1; color: #cbd5e1;
    cursor: pointer; transition: color .15s, transform .15s;
}
.qm-review-stars button:hover,
.qm-review-stars button.qm-active {
    color: #f59e0b; transform: scale(1.08);
}
.qm-review-error {
    color: #dc2626; font-size: 13px; margin: -8px 0 12px;
}
.qm-review-thanks p {
    margin: 0; font-size: 15px; color: #059669; font-weight: 600;
}
.qm-review-submit { width: 100%; justify-content: center; }

/* Write review action on the recent-order card and list */
.qm-review-action {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    color: #f59e0b; font-weight: 600; font-size: 13px;
    background: none; border: none; padding: 0; cursor: pointer;
}
.qm-review-action:hover { color: #d97706; }
.qm-review-action i { font-size: 14px; }

/* Write a review button in the floating recent-order card */
.qm-recent-card .qm-review-action {
    margin: 6px auto 0;
}

/* Write a review button in the "view all recent orders" list */
.qm-recent-row-review {
    margin-top: 8px;
    width: 100%; justify-content: center;
}

/* Out of stock items */
.qm-item-out-of-stock .qm-item-card,
.qm-item-out-of-stock .qm-list-card { position: relative; }
.qm-item-out-of-stock .qm-item-media,
.qm-item-out-of-stock .qm-list-media { position: relative; overflow: hidden; }
.qm-item-out-of-stock .qm-item-media img,
.qm-item-out-of-stock .qm-list-media img,
.qm-item-out-of-stock .qm-item-placeholder { filter: grayscale(.55); opacity: .55; }
.qm-item-out-of-stock .qm-item-card,
.qm-item-out-of-stock .qm-list-card { opacity: .85; pointer-events: none; }
.qm-item-out-of-stock .qm-item-body,
.qm-item-out-of-stock .qm-list-body { pointer-events: none; }
.qm-item-overlay {
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, .35);
    border-radius: inherit;
    z-index: 3;
}
.qm-item-media .qm-item-overlay,
.qm-list-media .qm-item-overlay { border-radius: 12px; }
.qm-oos-pill {
    display: inline-flex;
    align-items: center;
    background: #fee2e2;
    color: #991b1b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    line-height: 1;
    margin-left: 8px;
    flex-shrink: 0;
    border: 1px solid #fecaca;
}
.qm-list-head .qm-oos-pill { margin-left: 6px; }
.qm-item-out-of-stock .qm-item-price,
.qm-item-out-of-stock .qm-list-price { text-decoration: line-through; color: #9ca3af; }
.qm-item-out-of-stock .qm-list-add,
.qm-item-out-of-stock .qm-item-add { display: none !important; }

/* Floating category navigator button */
.qm-cat-navigator {
    position: fixed;
    left: 50%;
    bottom: 86px;
    transform: translateX(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--theme-color-1);
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease;
}
.qm-cat-navigator:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.24);
}
.qm-cat-navigator i { font-size: 22px; }

/* Category navigator popup */
.qm-cat-modal .modal-dialog { max-width: 280px; margin: 12px auto; }
.qm-cat-modal .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
}
.qm-cat-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f1f3f7;
}
.qm-cat-modal-head h5 { margin: 0; font-size: 14px; font-weight: 700; color: #1f2330; }
.qm-cat-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background .15s ease, color .15s ease;
}
.qm-cat-modal-close:hover { background: #f1f3f7; color: #64748b; }
.qm-cat-modal-body {
    max-height: 55vh;
    overflow-y: auto;
    padding: 8px 12px 12px;
}
.qm-cat-modal-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: var(--theme-color-0_08);
    border-radius: 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-color-1);
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, color .2s ease;
    margin-bottom: 6px;
}
.qm-cat-modal-item:last-child { margin-bottom: 0; }
.qm-cat-modal-item:hover,
.qm-cat-modal-item:focus {
    background: var(--theme-color-1);
    color: #fff;
    transform: translateY(-1px);
    outline: none;
}
.qm-cat-modal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--theme-color-1);
    flex-shrink: 0;
    transition: background .2s ease;
}
.qm-cat-modal-item:hover .qm-cat-modal-dot,
.qm-cat-modal-item:focus .qm-cat-modal-dot { background: #fff; }
.qm-cat-modal-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.qm-cat-modal-backdrop.show { opacity: .45; }

/* Flash highlight on a category after navigator scroll */
@keyframes qmCatFlash {
    0% { background: transparent; }
    25% { background: var(--theme-color-0_2); }
    100% { background: transparent; }
}
.qm-cat-block.qm-cat-flash > details > .qm-cat-head {
    animation: qmCatFlash 1.4s ease-out;
    border-radius: 12px;
}
@media (max-width: 360px) {
    .qm-cat-modal .modal-dialog { max-width: calc(100% - 24px); }
    .qm-cat-navigator { width: 48px; height: 48px; bottom: 82px; }
    .qm-cat-navigator i { font-size: 20px; }
}
/* Minimal Bootstrap-modal shim so the floating category navigator works
   without loading the entire Bootstrap CSS framework. */
.modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    overflow: hidden;
    outline: 0;
}
.modal.show { display: block; }
.modal.fade .modal-dialog {
    transition: transform .3s ease-out;
    transform: translate(0, -25%);
}
.modal.show .modal-dialog { transform: translate(0, 0); }
.modal-dialog {
    position: relative;
    width: auto;
    margin: 12px auto;
    pointer-events: none;
}
.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 24px);
}
.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    outline: 0;
}
.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #000;
    opacity: 0;
}
.modal-backdrop.show { opacity: .45; }

.qm-floating-label {
    position: relative;
    margin-bottom: 0;
}
.qm-floating-label input.with-border,
.qm-floating-label textarea.with-border {
    width: 100%;
    padding: 18px 16px 6px 16px !important;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    height: 50px;
}
.qm-floating-label textarea.with-border {
    height: auto;
    min-height: 56px;
    padding-top: 20px !important;
    resize: vertical;
}
.qm-floating-label input.with-border::placeholder,
.qm-floating-label textarea.with-border::placeholder {
    color: transparent;
}
/* Default state for input/textarea labels: centered like a placeholder */
.qm-floating-label label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    font-weight: 400 !important;
    pointer-events: none;
    transition: all .2s ease;
    background: #fff;
    padding: 0 4px !important;
    line-height: 1;
    margin: 0 !important;
    z-index: 3;
}
/* Textareas are taller, so start the label near the top */
.qm-floating-label textarea.with-border ~ label {
    top: 18px;
    transform: translateY(0);
}
/* Float labels up when focused or filled */
.qm-floating-label input.with-border:focus ~ label,
.qm-floating-label input.with-border:not(:placeholder-shown) ~ label,
.qm-floating-label textarea.with-border:focus ~ label,
.qm-floating-label textarea.with-border:not(:placeholder-shown) ~ label {
    top: 0;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--theme-color-1);
    font-weight: 600 !important;
}
.qm-floating-label input.with-border:focus,
.qm-floating-label textarea.with-border:focus {
    border-color: var(--theme-color-1);
    box-shadow: 0 0 0 3px var(--theme-color-0_15);
}
.qm-form-row.qm-floating-label {
    margin-bottom: 12px;
}
.qm-form-row.qm-floating-label > label,
.qm-form-row.qm-floating-select .qm-select-box > label {
    border-left: none !important;
    border-right: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* Floating select box: label + select inside one relative wrapper */
.qm-form-row.qm-floating-select {
    margin-bottom: 12px;
}
.qm-form-row.qm-floating-select .qm-select-box {
    position: relative;
}
.qm-form-row.qm-floating-select .qm-select-box > label {
    position: absolute;
    left: 16px;
    top: 0;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 600 !important;
    color: var(--theme-color-1);
    background: #fff;
    padding: 0 4px !important;
    margin: 0 !important;
    pointer-events: none;
    z-index: 5;
    line-height: 1;
}
.rtl .qm-form-row.qm-floating-select .qm-select-box > label {
    left: auto;
    right: 16px;
}

/* Select row */
html body .qm-form-row.qm-floating-select .qm-select-box .bootstrap-select,
html body .qm-form-row.qm-floating-select .qm-select-box .bootstrap-select.btn-group {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}
/* Make the .qm-select-box wrapper itself the visible bordered box.
   The bootstrap-select button is transparent/borderless so the container supplies the border. */
html body .qm-form-row.qm-floating-select .qm-select-box {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #fff !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 40px 0 16px !important;
    position: relative !important;
    transition: border-color .2s, box-shadow .2s !important;
}
html body .qm-form-row.qm-floating-select .qm-select-box .bootstrap-select,
html body .qm-form-row.qm-floating-select .qm-select-box .bootstrap-select.btn-group,
html body .qm-form-row.qm-floating-select .qm-select-box > select.with-border,
html body .qm-form-row.qm-floating-select .qm-select-box > input.with-border {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    height: 100% !important;
}
html body .qm-form-row.qm-floating-select .qm-select-box .bootstrap-select.qm-select-btn,
html body .qm-form-row.qm-floating-select .qm-select-box .bootstrap-select.qm-select-btn.btn-group {
    width: 100% !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}
html body .qm-form-row.qm-floating-select .qm-select-box .bootstrap-select.qm-select-btn > .dropdown-toggle {
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    height: 100% !important;
    font-size: 14px !important;
    color: #0f172a !important;
    line-height: 1.4 !important;
}
html body .qm-form-row.qm-floating-select .qm-select-box .bootstrap-select.qm-select-btn > .dropdown-toggle .filter-option {
    line-height: 1.4 !important;
    height: auto !important;
    padding-top: 2px !important;
    padding-left: 0 !important;
    color: #0f172a !important;
}
html body .qm-form-row.qm-floating-select .qm-select-box:focus-within {
    border-color: var(--theme-color-1) !important;
    box-shadow: 0 0 0 3px var(--theme-color-0_15) !important;
    outline: none !important;
}
.rtl html body .qm-form-row.qm-floating-select .qm-select-box {
    padding: 0 16px 0 40px !important;
}

/* Prevent the hidden native <select> inside bootstrap-select from covering the
   styled dropdown-toggle in .qm-form-row. The .qm-form-row select.with-border
   rule sets width:100% !important with higher specificity than bootstrap-select's
   own width:.5px rule, so clicks hit the invisible native select instead of the
   bootstrap-select dropdown. This restores bootstrap-select's hidden-select sizing. */
.qm-form-row .qm-select-box .bootstrap-select > select.with-border,
.qm-form-row .qm-select-box .bootstrap-select > select.selectpicker {
    width: 0.5px !important;
    height: 100% !important;
    padding: 0 !important;
    opacity: 0 !important;
    border: none !important;
    background: none !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
}
