/**
 * POS Core Styles
 * المتغيرات والمكونات المشتركة
 */

/* ===== Variables ===== */
:root {
    /* Colors - Primary */
    --pos-primary: #2563eb;
    --pos-primary-hover: #1d4ed8;
    --pos-primary-light: #dbeafe;

    /* Colors - Status */
    --pos-success: #059669;
    --pos-success-hover: #047857;
    --pos-success-light: #d1fae5;
    --pos-danger: #dc2626;
    --pos-danger-hover: #b91c1c;
    --pos-danger-light: #fee2e2;
    --pos-warning: #d97706;
    --pos-warning-light: #fef3c7;

    /* Colors - Gray Scale */
    --pos-gray-50: #f9fafb;
    --pos-gray-100: #f3f4f6;
    --pos-gray-200: #e5e7eb;
    --pos-gray-300: #d1d5db;
    --pos-gray-400: #9ca3af;
    --pos-gray-500: #6b7280;
    --pos-gray-600: #4b5563;
    --pos-gray-700: #374151;
    --pos-gray-800: #1f2937;
    --pos-gray-900: #111827;
    --pos-white: #ffffff;

    /* Shadows */
    --pos-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --pos-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --pos-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* Border Radius */
    --pos-radius: 8px;
    --pos-radius-lg: 12px;

    /* Transitions */
    --pos-transition: all 0.2s ease;

    /* Spacing System */
    --pos-space-xs: 4px;
    --pos-space-sm: 8px;
    --pos-space-md: 16px;
    --pos-space-lg: 24px;
    --pos-space-xl: 32px;

    /* Layout - Desktop */
    --pos-header-height: 72px;
    --pos-content-padding: 24px;
    --pos-category-margin-bottom: 16px;
    --pos-category-padding-y: 12px;
    --pos-category-padding-x: 24px;

    /* Layout - Mobile */
    --pos-header-height-mobile: 56px;
    --pos-content-padding-mobile: 16px;
}

/* ===== Reset and Base ===== */
.wc-pos-wrap {
    font-family: 'Noto Sans Arabic', sans-serif;
    direction: rtl;
    text-align: right;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--pos-gray-100);
    margin: 0;
    padding: 0;
}

/* Headings Typography */
.wc-pos-wrap h1,
.wc-pos-wrap h2,
.wc-pos-wrap h3,
.wc-pos-wrap h4,
.wc-pos-wrap h5,
.wc-pos-wrap h6,
.pos-section-title {
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    /* Tajawal looks best bold in headings */
}

.wc-pos-wrap * {
    box-sizing: border-box;
}

/* ===== Mobile App-like Behavior ===== */
* {
    -webkit-tap-highlight-color: transparent !important;
}

.wc-pos-wrap,
.wc-pos-wrap *,
.pos-standalone-body,
.pos-standalone-body * {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
}

.wc-pos-wrap,
.pos-standalone-body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}

.wc-pos-wrap button,
.wc-pos-wrap .pos-icon-btn,
.wc-pos-wrap .pos-category-btn,
.wc-pos-wrap .pos-product-card,
.wc-pos-wrap .pos-payment-option,
.wc-pos-wrap .pos-variation-option,
.wc-pos-wrap .pos-qty-btn,
.wc-pos-wrap .pos-btn,
.wc-pos-wrap .pos-cart-item,
.wc-pos-wrap .pos-mobile-cart-btn,
.wc-pos-wrap .pos-customer-item,
.wc-pos-wrap .pos-list-item {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: none !important;
}

.wc-pos-wrap input,
.wc-pos-wrap textarea,
.wc-pos-wrap select {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

.pos-standalone-body {
    overscroll-behavior-y: contain;
}

/* Force font inheritance */
.wc-pos-wrap button,
.wc-pos-wrap input,
.wc-pos-wrap select,
.wc-pos-wrap textarea,
.pos-home-wrap button {
    font-family: inherit;
}

/* ===== Header ===== */
.pos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    /* Height = base height + system status bar (WiFi/battery/clock) */
    height: calc(var(--pos-header-height) + env(safe-area-inset-top, 0px));
    min-height: calc(var(--pos-header-height) + env(safe-area-inset-top, 0px));
    max-height: calc(var(--pos-header-height) + env(safe-area-inset-top, 0px));
    /* Push content below the status bar so it doesn't hide behind it */
    padding-top: env(safe-area-inset-top, 0px);
    background: var(--pos-white);
    border-bottom: 1px solid var(--pos-gray-200);
    box-shadow: var(--pos-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: hidden;
}

.pos-header-right,
.pos-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pos-header-center {
    flex: 1;
    max-width: 900px;
    margin: 0 32px;
}

.pos-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pos-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    /* Ensure no rigid min/max widths that distort aspect ratio */
}

.pos-logo .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pos-primary);
}

.pos-logo h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--pos-gray-800);
    margin: 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
    /* Remove fixed height/line-height to allow font to center naturally */
}

/* ===== Search ===== */
.pos-search-wrap {
    display: flex;
    align-items: center;
    background: var(--pos-gray-100);
    border: 2px solid var(--pos-gray-200);
    border-radius: 50px;
    padding: 0 16px;
    overflow: hidden;
    transition: var(--pos-transition);
}

.pos-search-wrap:focus-within {
    border-color: var(--pos-primary);
    background: var(--pos-white);
    box-shadow: 0 0 0 3px var(--pos-primary-light);
}

.pos-search-wrap .dashicons {
    color: var(--pos-gray-400);
    margin-left: 8px;
}

.pos-search-wrap input {
    flex: 1;
    align-self: stretch;
    height: 100%;
    border: none !important;
    border-radius: inherit;
    background: transparent !important;
    padding: 12px 8px;
    font-size: 16px;
    outline: none;
    box-shadow: none !important;
}

.pos-search-wrap input:focus {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.pos-search-wrap input::placeholder {
    color: var(--pos-gray-400);
}

/* ===== Icon Button ===== */
.pos-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--pos-gray-100);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--pos-transition);
}

.pos-icon-btn:hover {
    background: var(--pos-gray-200);
}

.pos-icon-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: var(--pos-gray-600);
}

.pos-icon-btn.pos-btn-danger:hover {
    background: var(--pos-danger-light);
}

.pos-icon-btn.pos-btn-danger:hover .dashicons {
    color: var(--pos-danger);
}

/* ===== User Info ===== */
.pos-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--pos-gray-100);
    border-radius: 8px;
}

.pos-user-info .dashicons {
    color: var(--pos-gray-500);
}

.pos-username {
    font-size: 14px;
    font-weight: 600;
    color: var(--pos-gray-700);
}

/* ===== Buttons ===== */
.pos-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--pos-radius);
    cursor: pointer;
    transition: var(--pos-transition);
}

.pos-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pos-btn-primary {
    background: var(--pos-success-hover);
    color: var(--pos-white);
}

.pos-btn-primary:hover:not(:disabled) {
    background: color-mix(in srgb, var(--pos-success-hover) 88%, black 12%);
}

.pos-btn-secondary {
    background: var(--pos-gray-200);
    color: var(--pos-gray-700);
}

.pos-btn-secondary:hover:not(:disabled) {
    background: var(--pos-gray-300);
}

.pos-btn-warning {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: #1f2937 !important;
}

.pos-btn-warning:hover:not(:disabled) {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

/* ===== Active States for Touch Feedback ===== */
.wc-pos-wrap .pos-icon-btn:active,
.wc-pos-wrap .pos-btn:active,
.wc-pos-wrap .pos-category-btn:active {
    transform: scale(0.95);
    opacity: 0.8;
}

/* ===== Modals ===== */
.pos-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 110000;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Sans Arabic', sans-serif !important;
}

.pos-modal *:not(.dashicons) {
    font-family: inherit !important;
}

.pos-modal .dashicons {
    font-family: 'dashicons' !important;
}

.pos-modal h3,
.pos-modal-title {
    font-weight: 700 !important;
}

.pos-modal p,
.pos-modal-body {
    font-weight: 400;
}

.pos-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 110001;
}

.pos-modal-content {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    z-index: 110002;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Confirmation Modal */
#pos-confirm-modal .pos-modal-content {
    text-align: center;
}

#pos-confirm-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--pos-gray-800);
    margin: 0 0 12px;
}

#pos-confirm-message {
    font-size: 16px;
    color: var(--pos-gray-600);
    margin: 0 0 32px;
    line-height: 1.5;
}

.pos-success-content {
    text-align: center;
}

.pos-success-icon {
    width: 80px;
    height: 80px;
    background: var(--pos-success-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.pos-success-icon .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: var(--pos-success);
}

.pos-success-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--pos-gray-800);
    margin: 0 0 16px;
}

.pos-order-info {
    background: var(--pos-gray-50);
    padding: 16px;
    border-radius: var(--pos-radius);
    margin-bottom: 24px;
}

.pos-order-info p {
    margin: 8px 0;
    font-size: 16px;
    color: var(--pos-gray-600);
}

.pos-order-info strong {
    color: var(--pos-gray-800);
}

.pos-modal-actions {
    display: flex;
    gap: 12px;
}

.pos-modal-actions .pos-btn {
    flex: 1;
}

/* ===== Empty State ===== */
.pos-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--pos-gray-500);
}

.pos-empty-icon {
    font-size: 64px;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    color: var(--pos-gray-300);
}

.pos-empty-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--pos-gray-600);
}

/* ===== Install Banner - Hidden ===== */
#pos-install-banner {
    display: none !important;
}

/* ===== Print Styles ===== */
@media print {

    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Hide everything by default */
    body * {
        visibility: hidden !important;
    }

    /* Show only print area and its contents */
    #pos-print-area,
    #pos-print-area * {
        visibility: visible !important;
    }

    /* Position print area at top left */
    #pos-print-area {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: flex-start !important;
        background: white !important;
        margin: 0 !important;
        padding: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Hide modals during print */
    .pos-modal,
    .pos-modal-overlay {
        display: none !important;
    }

    /* Receipt specific styles */
    .pos-receipt {
        font-family: 'Courier New', monospace !important;
        font-size: 12pt !important;
        color: black !important;
        background: white !important;
        margin: 0 !important;
        padding: 10px 12px 12px !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .pos-receipt h2,
    .pos-receipt p {
        margin-top: 0 !important;
    }

    .pos-receipt table {
        width: 100% !important;
        border-collapse: collapse !important;
    }

    .pos-receipt th,
    .pos-receipt td {
        padding: 8px !important;
        border-bottom: 1px solid #ddd !important;
    }

    .pos-receipt img {
        display: block !important;
        max-width: 100% !important;
        height: auto !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Page settings */
    @page {
        size: auto;
        margin: 0;
    }
}

/* ===== Safe Area Support ===== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .wc-pos-wrap .pos-checkout-btn {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }

    .wc-pos-wrap .pos-mobile-cart-btn {
        bottom: calc(24px + env(safe-area-inset-bottom));
    }

    .wc-pos-wrap .pos-cart-section {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ===== Loading ===== */
.pos-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--pos-gray-500);
}

.pos-loading .spinner {
    margin-bottom: 12px;
}

.pos-hidden.pos-hidden {
    display: none;
}

/* ===== Form Elements ===== */
.pos-form-group {
    margin-bottom: 16px;
}

.pos-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--pos-gray-700);
}

:where(.wc-pos-wrap) .pos-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: var(--pos-gray-700);
    font-size: 14px;
}

:where(.wc-pos-wrap) .pos-form-group .required {
    color: color-mix(in srgb, var(--pos-danger) 75%, var(--pos-theme-text, var(--pos-gray-900)) 25%);
}

:where(.wc-pos-wrap) #pos-add-customer-form .required {
    color: color-mix(in srgb, var(--pos-danger) 75%, var(--pos-theme-text, var(--pos-gray-900)) 25%) !important;
}

#pos-add-customer-form .required {
    color: color-mix(in srgb, var(--pos-danger) 75%, var(--pos-theme-text, var(--pos-gray-900)) 25%) !important;
}

:where(.wc-pos-wrap) .pos-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--pos-gray-300);
    border-radius: var(--pos-radius);
    font-size: 16px;
    transition: var(--pos-transition);
    color: var(--pos-gray-800);
    background: var(--pos-white);
}

:where(.wc-pos-wrap) .pos-input:focus {
    border-color: var(--pos-primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--pos-primary-light);
}

:where(.wc-pos-wrap) .pos-select-with-arrow {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 32px !important;
}

/* ===== Toast Notification ===== */
#pos-toast {
    visibility: hidden;
    min-width: 280px;
    max-width: 460px;
    background-color: var(--pos-white);
    color: var(--pos-gray-800);
    border-radius: 12px;
    padding: 12px 18px;
    position: fixed;
    z-index: 120000;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 20px) scale(0.95);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--pos-gray-200);
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 12px;
    /* pointer-events enabled so undo button inside toast is clickable */
    pointer-events: auto;
}

#pos-toast.show {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    bottom: max(24px, env(safe-area-inset-bottom));
}

#pos-toast .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#pos-toast .pos-toast-text {
    flex: 1;
    text-align: right;
    line-height: 1.4;
}

/* Toast States */
#pos-toast.success {
    border-right: 4px solid var(--pos-success);
}

#pos-toast.success .dashicons {
    color: var(--pos-success);
}

#pos-toast.error {
    border-right: 4px solid var(--pos-danger);
}

#pos-toast.error .dashicons {
    color: var(--pos-danger);
}

#pos-toast.warning {
    border-right: 4px solid var(--pos-warning);
}

#pos-toast.warning .dashicons {
    color: var(--pos-warning);
}

#pos-toast.info {
    border-right: 4px solid var(--pos-primary);
}

#pos-toast.info .dashicons {
    color: var(--pos-primary);
}

/* ===== Offline Connection Indicator ===== */
.pos-connection-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 120001;
    padding: 8px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.pos-connection-bar.offline {
    display: flex;
    background: var(--pos-warning);
    color: #fff;
}

.pos-connection-bar.syncing {
    display: flex;
    background: var(--pos-primary);
    color: #fff;
}

.pos-connection-bar.synced {
    display: flex;
    background: var(--pos-success);
    color: #fff;
    animation: fadeOutUp 2s forwards;
    animation-delay: 2s;
}

@keyframes fadeOutUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-100%);
        display: none;
    }
}

.pos-connection-bar .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Adjust header when connection bar is visible */
body.pos-offline .pos-header {
    top: 36px;
}

/* Spinner for syncing state */
.pos-sync-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Mobile Responsive Override ===== */
@media (max-width: 991px) {

    /* ─── إزالة padding الـ WordPress Admin على الموبايل ─── */
    html,
    body,
    #wpwrap,
    #wpbody,
    #wpbody-content,
    #wpcontent,
    .wp-admin #wpcontent,
    .wp-admin #wpbody-content {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* ─── إخفاء قضبان WordPress الجانبية والعلوية ─── */
    #adminmenumain,
    #adminmenuback,
    #adminmenuwrap,
    #wpadminbar:not(.mobile) {
        display: none !important;
    }

    /* ─── التطبيق يشغل الشاشة كاملاً ─── */
    .wc-pos-wrap {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
        overflow-x: hidden !important;
    }

    :root {
        --pos-header-height: 56px;
        --pos-safe-area-top: env(safe-area-inset-top, 0px);
    }

    .pos-header {
        padding: 0 12px;
        padding-top: var(--pos-safe-area-top);
        height: calc(var(--pos-header-height) + var(--pos-safe-area-top));
        min-height: calc(var(--pos-header-height) + var(--pos-safe-area-top));
        max-height: calc(var(--pos-header-height) + var(--pos-safe-area-top));
    }

    .pos-logo img {
        height: 36px;
        width: auto;
    }

    .pos-logo h1 {
        font-size: 17px;
        line-height: 1.2;
        height: auto;
        min-height: 0;
    }

    .pos-header-right,
    .pos-header-left {
        gap: 8px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }

    #pos-desktop-search-container {
        display: none;
    }
}

/* =========================================
   Global Orientation Lock (Phone Only)
   ========================================= */
@media screen and (max-width: 950px) and (orientation: landscape) and (max-height: 600px) {

    /* Hide the main wrapper on all internal pages */
    .wc-pos-wrap,
    .pos-main,
    .pos-offline-indicator,
    #pos-cashier-app,
    .pos-settings-wrap,
    .pos-reports-wrap,
    .pos-customers-wrap,
    .pos-products-wrap {
        display: none !important;
    }

    /* Lock body scroll and set background */
    body {
        overflow: hidden !important;
        background: #1f2937 !important;
        height: 100vh !important;
        width: 100vw !important;
    }

    /* Show the rotation message */
    body::after {
        content: "يرجى تدوير الجهاز للوضع العمودي";
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #1f2937;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Noto Sans Arabic', sans-serif;
        font-size: 20px;
        font-weight: bold;
        z-index: 999999;
        text-align: center;
        padding: 20px;
        white-space: pre-wrap;
    }
}

/* =========================================
   Mobile/Tablet Header Alignment Fix
   ========================================= */
@media (max-width: 1024px) {
    .pos-logo h1 {
        /* Fix vertical centering relative to icon */
        padding-top: 3px;
        /* Nudge for Arabic font baseline */
        line-height: 1;
        align-self: center;
        display: flex;
        align-items: center;
        height: auto;
        margin: 0;
    }

    .pos-header-left .pos-icon-btn {
        align-self: center;
    }

    .pos-logo .dashicons,
    .pos-logo img {
        align-self: center;
        display: flex;
        align-items: center;
    }
}
