:root {
    --hyer-primary: #e30613;
    --hyer-primary-dark: #c9000d;
    --hyer-page-background: #f4f5f7;
    --hyer-app-width: 420px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    background: var(--hyer-page-background);
    color: #171717;
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.pwa-body {
    min-height: 100vh;
    min-height: 100dvh;
}

.pwa-app-shell {
    position: relative;
    width: 100%;
    max-width: var(--hyer-app-width);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    background: #ffffff;
    overflow-x: hidden;
}

/* =====================================================
   SHARED LOADING STATES
===================================================== */

.hyer-loading-host {
    position: relative !important;
}

.hyer-loading-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.18s ease;
    animation: hyer-loader-fade-in 0.18s ease both;
}

.hyer-loading-overlay.is-leaving {
    opacity: 0;
}

.hyer-loading-overlay--body {
    position: fixed;
    z-index: 5000;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100%;
    max-width: var(--hyer-app-width);
    padding: 24px;
    background: rgba(17, 24, 39, 0.44);
    transform: translateX(-50%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.hyer-loading-overlay--section {
    position: absolute;
    z-index: 1000;
    inset: 0;
    min-height: 92px;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.hyer-loading-card {
    display: flex;
    width: min(100%, 292px);
    padding: 24px 22px 21px;
    align-items: center;
    flex-direction: column;
    border: 1px solid rgba(228, 231, 236, 0.9);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    text-align: center;
    box-shadow: 0 20px 45px rgba(16, 24, 40, 0.18);
    animation: hyer-loader-card-in 0.22s ease both;
}

.hyer-loading-overlay--section .hyer-loading-card {
    width: auto;
    max-width: calc(100% - 24px);
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(16, 24, 40, 0.1);
}

.hyer-loading-spinner {
    position: relative;
    display: block;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    flex: 0 0 auto;
    border: 3px solid rgba(227, 6, 19, 0.14);
    border-top-color: var(--hyer-primary);
    border-radius: 50%;
    animation: hyer-loader-spin 0.78s linear infinite;
}

.hyer-loading-spinner::after {
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    background: var(--hyer-primary);
    content: "";
    box-shadow: 0 0 0 5px rgba(227, 6, 19, 0.08);
}

.hyer-loading-overlay--section .hyer-loading-spinner {
    width: 32px;
    height: 32px;
    margin-bottom: 9px;
    border-width: 2px;
}

.hyer-loading-overlay--section .hyer-loading-spinner::after {
    inset: 9px;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.08);
}

.hyer-loading-message {
    color: #171717;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.hyer-loading-hint {
    margin-top: 5px;
    color: #667085;
    font-size: 11px;
    line-height: 1.4;
}

.hyer-loading-overlay--section .hyer-loading-message {
    font-size: 11px;
    font-weight: 600;
}

.hyer-loading-overlay--section .hyer-loading-hint {
    display: none;
}

.hyer-button-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    opacity: 0.9;
    animation: hyer-loader-spin 0.7s linear infinite;
}

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

@keyframes hyer-loader-fade-in {
    from {
        opacity: 0;
    }
}

@keyframes hyer-loader-card-in {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.98);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hyer-loading-overlay,
    .hyer-loading-card {
        animation: none;
        transition: none;
    }

    .hyer-loading-spinner,
    .hyer-button-spinner {
        animation-duration: 1.5s;
    }
}

#NotiflixNotifyWrap {
    right: max(10px, calc((100vw - var(--hyer-app-width)) / 2 + 10px)) !important;
    left: auto !important;
    width: calc(100vw - 20px) !important;
    max-width: 320px !important;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #344054;
    font-size: 13px;
    font-weight: 600;
}

.form-required {
    color: var(--hyer-primary);
}

.form-control,
.form-select {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #d0d5dd;
    border-radius: 9px;
    background-color: #ffffff;
    color: #171717;
    font-size: 14px;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--hyer-primary);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.09);
}

.form-check {
    display: flex;
    min-height: 20px;
    align-items: center;
    gap: 8px;
}

.form-check-input {
    width: 17px;
    height: 17px;
    margin: 0;
    border-color: #b9c0ca;
}

.form-check-input:checked {
    border-color: var(--hyer-primary);
    background-color: var(--hyer-primary);
}

.btn {
    display: inline-flex;
    min-height: 44px;
    padding: 10px 16px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

a.btn:hover,
a.btn:focus {
    text-decoration: none;
}

a.nx-confirm-button-ok,
a.nx-confirm-button-ok:hover,
a.nx-confirm-button-ok:focus,
#NXConfirmButtonOk,
#NXConfirmButtonOk:hover,
#NXConfirmButtonOk:focus,
.nx-confirm-button-cancel,
.nx-confirm-button-cancel:hover,
.nx-confirm-button-cancel:focus {
    text-decoration: none !important;
}

.btn-lg {
    min-height: 52px;
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 15px;
}

.btn-hyer,
.btn-primary {
    border-color: var(--hyer-primary);
    background-color: var(--hyer-primary);
    color: #ffffff;
}

.btn-hyer:hover,
.btn-hyer:focus,
.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--hyer-primary-dark);
    background-color: var(--hyer-primary-dark);
    color: #ffffff;
}

.invalid-feedback {
    margin-top: 6px;
    color: #d92d20;
    font-size: 12px;
}

/* =====================================================
   PWA INSTALL BANNER
===================================================== */

.pwa-install-banner {
    position: fixed;
    z-index: 1080;
    top: 0;
    left: 50%;

    width: 100%;
    max-width: var(--hyer-app-width);
    padding:
        calc(12px + env(safe-area-inset-top)) 12px 0;

    pointer-events: none;
    transform: translateX(-50%);
}

.pwa-install-banner.d-none {
    display: none !important;
}

.pwa-install-card {
    display: flex;
    width: 100%;
    padding: 14px;

    align-items: flex-start;
    gap: 12px;

    border: 1px solid #e4e7ec;
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 12px 30px rgba(16, 24, 40, 0.14),
        0 2px 8px rgba(16, 24, 40, 0.06);

    opacity: 0;
    pointer-events: auto;
    transform: translateY(-18px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/*
 * Add this class from JavaScript after removing d-none.
 */
.pwa-install-banner.pwa-install-banner-visible .pwa-install-card {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   INSTALL ICON
===================================================== */

.pwa-install-icon-wrap {
    display: inline-flex;
    width: 48px;
    min-width: 48px;
    height: 48px;

    align-items: center;
    justify-content: center;

    overflow: hidden;
    border: 1px solid #eaecf0;
    border-radius: 12px;

    background: #ffffff;
}

.pwa-install-icon {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
}

/* =====================================================
   INSTALL CONTENT
===================================================== */

.pwa-install-body {
    min-width: 0;
    flex: 1;
}

.pwa-install-title {
    margin: 1px 0 4px;

    color: #171717;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.pwa-install-text {
    margin: 0 0 11px;

    color: #667085;
    font-size: 11px;
    line-height: 1.5;
}

/* =====================================================
   INSTALL ACTIONS
===================================================== */

.pwa-install-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.pwa-install-actions .btn {
    min-height: 34px;
    padding: 6px 12px;

    border-radius: 8px;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.pwa-install-actions .btn-outline-secondary {
    border-color: #d0d5dd;
    background: #ffffff;
    color: #475467;
}

.pwa-install-actions .btn-outline-secondary:hover,
.pwa-install-actions .btn-outline-secondary:focus {
    border-color: #98a2b3;
    background: #f9fafb;
    color: #344054;
}

.pwa-install-actions .btn-hyer {
    border-color: var(--hyer-primary);
    background: var(--hyer-primary);
    color: #ffffff;
}

.pwa-install-actions .btn-hyer:hover,
.pwa-install-actions .btn-hyer:focus {
    border-color: var(--hyer-primary-dark);
    background: var(--hyer-primary-dark);
    color: #ffffff;
}

/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 360px) {
    .pwa-install-banner {
        padding-right: 8px;
        padding-left: 8px;
    }

    .pwa-install-card {
        padding: 12px;
        gap: 10px;
    }

    .pwa-install-icon-wrap {
        width: 44px;
        min-width: 44px;
        height: 44px;
    }

    .pwa-install-icon {
        width: 38px;
        height: 38px;
    }

    .pwa-install-actions {
        justify-content: flex-start;
    }
}

/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {
    .pwa-install-card {
        transition: none;
    }
}

@media (min-width: 421px) {
    .pwa-app-shell {
        box-shadow: 0 0 30px rgba(16, 24, 40, 0.08);
    }
}

/* =====================================================
   AUTHENTICATED APPLICATION SHELL
===================================================== */

.app-layout-body {
    background: #eef0f3;
}

.app-layout-shell {
    padding-bottom: env(safe-area-inset-bottom);
}

.app-header {
    z-index: 1030;
    display: grid;
    min-height: calc(64px + env(safe-area-inset-top));
    padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.app-header-button {
    width: 42px;
    min-height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #171717;
    font-size: 26px;
}

.app-header-logout-form {
    display: flex;
    justify-content: flex-end;
    margin: 0;
}

.app-header-logout {
    color: var(--hyer-primary);
    font-size: 20px;
}

.app-header-logout:hover,
.app-header-logout:focus-visible {
    background: rgba(227, 6, 19, 0.08);
    color: var(--hyer-primary-dark);
}

.app-header-title {
    min-width: 0;
    padding: 0 8px;
}

.app-header-brand {
    display: block;
    width: 78px;
    height: auto;
    margin: 0 auto;
}

.app-header-spacer {
    display: block;
    width: 42px;
    height: 42px;
}

.app-header-title strong,
.app-header-title small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-header-title strong {
    color: #171717;
    font-size: 15px;
    line-height: 1.3;
}

.app-header-title small {
    color: #667085;
    font-size: 10px;
}

.app-user-avatar {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(227, 6, 19, 0.1);
    color: var(--hyer-primary);
    font-size: 14px;
    font-weight: 700;
}

.app-main-content {
    min-height: calc(100vh - 64px);
    min-height: calc(100dvh - 64px);
}

.app-has-bottom-navigation .app-main-content {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
}

.app-main-content>.flash-messages {
    padding: 16px 20px 0;
}

.app-navigation {
    --bs-offcanvas-width: min(86vw, 340px);
}

@media (min-width: 421px) {
    .app-layout-shell>.app-navigation.offcanvas-start {
        left: calc(50vw - 210px);
    }
}

.app-navigation-header {
    min-height: calc(70px + env(safe-area-inset-top));
    padding-top: calc(16px + env(safe-area-inset-top));
    border-bottom: 1px solid #eaecf0;
}

.app-navigation-brand img {
    display: block;
    width: 92px;
    height: auto;
}

.app-navigation-link {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 12px;
    color: #344054;
    font-size: 14px;
    font-weight: 600;
}

.app-navigation-link i {
    width: 22px;
    font-size: 19px;
    text-align: center;
}

.app-navigation .nav-pills .app-navigation-link.active,
.app-navigation .nav-pills .app-navigation-link:active {
    background: #171717;
    color: #ffffff;
}

.app-navigation-footer {
    padding: 18px;
    border-top: 1px solid #eaecf0;
    background: #f9fafb;
}

.app-navigation-user {
    display: flex;
    min-width: 0;
    margin-bottom: 16px;
    align-items: center;
    gap: 11px;
}

.app-navigation-user strong,
.app-navigation-user small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-navigation-user strong {
    color: #171717;
    font-size: 13px;
}

.app-navigation-user small {
    color: #667085;
    font-size: 11px;
}

.min-w-0 {
    min-width: 0;
}

/* =====================================================
   PRIMARY BOTTOM NAVIGATION
===================================================== */

.bottom-navigation {
    position: fixed;
    z-index: 1020;
    right: 50%;
    bottom: 0;
    display: grid;
    width: 100%;
    max-width: var(--hyer-app-width);
    min-height: 68px;
    padding-bottom: env(safe-area-inset-bottom);
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.98);
    transform: translateX(50%);
    box-shadow: 0 -6px 18px rgba(16, 24, 40, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.bottom-navigation-item {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    color: #667085;
    border: 0;
    background: transparent;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
}

.bottom-navigation-item:hover,
.bottom-navigation-item:focus-visible,
.bottom-navigation-item.active {
    color: var(--hyer-primary);
}

.bottom-navigation-item:focus-visible {
    outline: 2px solid rgba(227, 6, 19, 0.28);
    outline-offset: -4px;
}

.bottom-navigation-item i {
    font-size: 20px;
    line-height: 1;
}

.bottom-navigation-more {
    padding: 0;
    font-family: inherit;
}

.empty-feature-page {
    min-height: calc(100dvh - 132px - env(safe-area-inset-bottom));
    padding: 70px 24px 30px;
    background: #fff;
    text-align: center;
}

.empty-feature-icon {
    display: inline-flex;
    width: 62px;
    height: 62px;
    margin-bottom: 16px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(227, 6, 19, .08);
    color: var(--hyer-primary);
    font-size: 27px;
}

.empty-feature-page h1 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
}

.empty-feature-page p {
    margin: 0;
    color: #667085;
    font-size: 12px;
}

.orders-landing-page {
    min-height: calc(100dvh - 132px - env(safe-area-inset-bottom));
    background: #ffffff;
}

/* =====================================================
   NEW ORDER — DETAILS
===================================================== */

.order-page {
    position: relative;
    min-height: calc(100dvh - 64px);
    padding: 18px 18px calc(98px + env(safe-area-inset-bottom));
    background: #ffffff;
}

.order-flow-heading {
    margin-bottom: 20px;
    padding: 0 2px;
}

.order-flow-heading h1 {
    margin: 0 0 3px;
    color: #171717;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.order-flow-heading p {
    margin: 0 0 10px;
    color: #344054;
    font-size: 11px;
    font-weight: 500;
}

.order-flow-heading .progress {
    height: 2px;
    border-radius: 0;
    background: #e4e7ec;
}

.order-flow-heading .progress-bar {
    background: var(--hyer-primary);
}

.order-progress {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.order-progress-step {
    display: flex;
    width: 42px;
    flex: 0 0 42px;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #98a2b3;
}

.order-progress-step span {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d0d5dd;
    border-radius: 50%;
    background: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.order-progress-step small {
    font-size: 9px;
    font-weight: 600;
}

.order-progress-step.active {
    color: var(--hyer-primary);
}

.order-progress-step.active span {
    border-color: var(--hyer-primary);
    background: var(--hyer-primary);
    color: #ffffff;
}

.order-progress-step.complete {
    color: #067647;
}

.order-progress-step.complete span {
    border-color: #12b76a;
    background: #ecfdf3;
    color: #067647;
}

.order-progress-line {
    height: 1px;
    margin-top: 14px;
    flex: 1 1 auto;
    background: #d0d5dd;
}

.order-progress-line.complete {
    background: #12b76a;
}

.order-card {
    border-color: #e4e7ec;
    border-radius: 14px;
}

.order-eyebrow,
.dashboard-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--hyer-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.customer-results {
    position: absolute;
    z-index: 1050;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(16, 24, 40, 0.14);
}

.customer-results.is-loading {
    min-height: 88px;
}

.customer-result {
    padding: 11px 13px;
}

.selected-customer {
    color: #067647;
    font-size: 12px;
    font-weight: 600;
}

.sticky-order-action {
    position: fixed;
    z-index: 1020;
    right: 50%;
    bottom: 0;
    width: 100%;
    max-width: var(--hyer-app-width);
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.96);
    transform: translateX(50%);
    box-shadow: 0 -8px 24px rgba(16, 24, 40, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.sticky-order-action--split {
    display: flex;
    gap: 10px;
}

/* =====================================================
   NEW ORDER — ITEMS & SIZES
===================================================== */

.selected-styles-section {
    margin-bottom: 16px;
}

.selected-unit-summary {
    color: #475467;
    font-size: 10px;
    font-weight: 600;
}

.selected-styles-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.selected-styles-empty {
    padding: 14px;
    border: 1px dashed #d0d5dd;
    border-radius: 9px;
    color: #667085;
    font-size: 11px;
    text-align: center;
}

.selected-style-card {
    position: relative;
    display: grid;
    min-width: 0;
    padding: 9px 25px 9px 8px;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    border: 1px solid #e4e7ec;
    border-radius: 9px;
    background: #ffffff;
}

.selected-style-thumb {
    display: inline-flex;
    width: 42px;
    height: 52px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: transparent;
    color: #475467;
    font-size: 18px;
}

.selected-style-main {
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.selected-style-main strong,
.selected-style-main small,
.selected-style-main span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-style-main strong {
    padding-right: 2px;
    color: #171717;
    font-size: 12px;
    line-height: 1.35;
}

.selected-style-main small {
    margin-top: 1px;
    color: #667085;
    font-size: 11px;
}

.selected-style-main span {
    margin-top: 3px;
    color: #344054;
    font-size: 10px;
    font-weight: 600;
}

.selected-style-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #667085;
    font-size: 10px;
}

.inventory-search-input .input-group-text,
.inventory-search-input .form-control,
.inventory-search-input .btn {
    min-height: 44px;
}

.order-customer-summary {
    padding: 12px 14px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #ffffff;
}

.order-customer-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(227, 6, 19, 0.08);
    color: var(--hyer-primary);
    font-size: 17px;
}

.inventory-results {
    display: grid;
    gap: 0;
    min-height: 1px;
}

.inventory-results.is-loading {
    min-height: 88px;
}

.inventory-search-panel {
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.inventory-search-result {
    display: flex;
    min-height: 68px;
    padding: 7px 2px;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f0f1f3;
}

.inventory-search-result:last-child {
    border-bottom: 0;
}

.inventory-search-result-icon {
    display: inline-flex;
    width: 46px;
    height: 54px;
    overflow: hidden;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: transparent;
    color: #475467;
    font-size: 17px;
}

.product-main-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.inventory-search-result-body {
    min-width: 0;
    flex: 1;
}

.inventory-search-result .inventory-card-meta {
    margin-top: 3px;
}

.inventory-add-button {
    display: inline-flex;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
    box-shadow: none;
}

.inventory-add-button:hover,
.inventory-add-button:focus,
.inventory-add-button:active {
    border: 0;
    box-shadow: none !important;
}

.inventory-search-empty {
    min-height: 84px;
    padding: 12px;
}

.inventory-search-empty>i {
    font-size: 21px;
}

.inventory-card {
    display: flex;
    padding: 14px;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(16, 24, 40, 0.04);
}

.inventory-card-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #f2f4f7;
    color: #344054;
    font-size: 20px;
}

.inventory-card-body {
    min-width: 0;
    flex: 1;
}

.inventory-style {
    display: block;
    margin-top: 1px;
    color: #667085;
    font-size: 13px;
    font-weight: 500;
}

.inventory-name {
    margin: 0;
    color: #171717;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.inventory-price {
    flex: 0 0 auto;
    color: #171717;
    font-size: 13px;
}

.inventory-card-meta {
    display: flex;
    margin-top: 7px;
    flex-wrap: wrap;
    gap: 5px 12px;
    color: #667085;
    font-size: 12px;
}

.order-empty-state {
    display: flex;
    min-height: 112px;
    padding: 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #667085;
    text-align: center;
}

.order-empty-state>i {
    color: #98a2b3;
    font-size: 28px;
}

.selected-items-list {
    display: grid;
    gap: 12px;
}

.selected-item-group {
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 11px;
}

.selected-item-group-header {
    display: flex;
    padding: 11px 12px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    background: #f9fafb;
}

.selected-item-group-header span {
    display: block;
    color: var(--hyer-primary);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.selected-item-group-header h3 {
    margin: 2px 0 0;
    color: #171717;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.selected-size-row {
    display: flex;
    min-height: 54px;
    padding: 9px 11px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #f0f1f3;
}

.selected-size-row strong,
.selected-size-row small {
    display: block;
}

.selected-size-row strong {
    color: #344054;
    font-size: 12px;
}

.selected-size-row small {
    margin-top: 2px;
    color: #667085;
    font-size: 10px;
}

.selected-size-row .btn {
    width: 34px;
    min-height: 34px;
    padding: 0;
}

.selected-item-group-total {
    padding: 7px 12px;
    border-top: 1px solid #e4e7ec;
    background: #fcfcfd;
    color: #475467;
    font-size: 10px;
    font-weight: 700;
    text-align: right;
}

.offcanvas.inventory-variant-sheet {
    --bs-offcanvas-height: min(86dvh, 760px);
    right: 0;
    left: 0;
    width: min(100%, var(--hyer-app-width));
    margin-right: auto;
    margin-left: auto;
    border-radius: 18px 18px 0 0;
}

.inventory-sheet-handle {
    width: 44px;
    height: 4px;
    margin: 7px auto 0;
    border-radius: 999px;
    background: #98a2b3;
}

.inventory-variant-sheet .offcanvas-header {
    padding-top: 10px;
    padding-bottom: 14px;
}

.inventory-variant-sheet .offcanvas-body {
    padding: 16px;
}

.inventory-detail-product {
    display: grid;
    margin-bottom: 16px;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

.inventory-detail-image {
    display: flex;
    width: 96px;
    height: 122px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #475467;
    font-size: 28px;
}

.inventory-detail-info {
    min-width: 0;
}

.inventory-detail-info h3 {
    margin: 0 0 3px;
    color: #171717;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.inventory-detail-info p {
    margin: 0 0 3px;
    color: #344054;
    font-size: 12px;
    line-height: 1.35;
}

.inventory-detail-info .inventory-detail-style {
    font-weight: 600;
}

.inventory-detail-info .inventory-detail-msrp strong {
    color: var(--hyer-primary);
    font-size: 14px;
}

.inventory-detail-status {
    margin-top: 3px;
    font-size: 9px;
}

.size-matrix-title {
    margin: 0 0 7px;
    color: #171717;
    font-size: 13px;
    font-weight: 700;
}

.variant-list {
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 6px;
}

.variant-table-header {
    display: grid;
    min-height: 32px;
    padding: 7px 9px;
    grid-template-columns: 48px minmax(0, 1fr) 112px;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #d0d5dd;
    background: #f9fafb;
    color: #475467;
    font-size: 10px;
    font-weight: 700;
}

.variant-table-header span:last-child {
    text-align: center;
}

.variant-row {
    display: grid;
    min-height: 48px;
    padding: 6px 9px;
    grid-template-columns: 48px minmax(0, 1fr) 112px;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f0f1f3;
}

.variant-row:last-child {
    border-bottom: 0;
}

.variant-size strong,
.variant-availability strong,
.variant-availability small {
    display: block;
}

.variant-size strong,
.variant-availability strong {
    color: #171717;
    font-size: 12px;
}

.variant-availability small {
    margin-top: 2px;
    color: #667085;
    font-size: 9px;
}

.variant-availability .variant-backorder {
    color: var(--hyer-primary);
    font-weight: 700;
}

.variant-quantity-control {
    width: 112px;
}

.variant-quantity-control .btn {
    min-height: 30px;
    padding: 3px 7px;
}

.variant-quantity {
    min-height: 30px;
    padding: 3px 2px;
    text-align: center;
    -moz-appearance: textfield;
}

.variant-quantity::-webkit-inner-spin-button,
.variant-quantity::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.inventory-variant-footer {
    display: flex;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #ffffff;
}

/* =====================================================
   NEW ORDER - REVIEW
===================================================== */

.order-review-page {
    padding-bottom: calc(122px + env(safe-area-inset-bottom));
}

.review-order-card {
    overflow: hidden;
    margin-bottom: 16px;
}

.review-section-header,
.review-items-header {
    display: flex;
    min-height: 48px;
    padding: 10px 12px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.review-section-header h2,
.review-items-header h2 {
    margin: 0;
    color: #171717;
    font-size: 14px;
    font-weight: 700;
}

.review-section-header .btn {
    min-height: 30px;
    padding: 4px 10px;
    font-size: 12px;
}

.review-details-list {
    display: grid;
    margin: 0;
    padding: 0 12px 12px;
    gap: 7px;
}

.review-details-list>div {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 58%);
    gap: 10px;
}

.review-details-list dt,
.review-details-list dd {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
}

.review-details-list dt {
    color: #475467;
    font-weight: 600;
}

.review-details-list dd {
    color: #171717;
    font-weight: 500;
    white-space: pre-line;
}

.review-items-header {
    border-top: 1px solid #e4e7ec;
    border-bottom: 1px solid #e4e7ec;
}

.review-items-header>span {
    color: #667085;
    font-size: 12px;
    font-weight: 600;
}

.review-items-list {
    display: grid;
}

.review-item {
    display: grid;
    min-width: 0;
    padding: 11px 10px;
    grid-template-columns: 52px minmax(0, 1fr) 68px;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid #f0f1f3;
}

.review-item:last-child {
    border-bottom: 0;
}

.review-item-image {
    display: flex;
    width: 52px;
    height: 68px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    color: #475467;
    font-size: 22px;
}

.review-item-body {
    min-width: 0;
}

.review-item-body h3 {
    overflow: hidden;
    margin: 0;
    color: #171717;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-item-body>p {
    margin: 1px 0 0;
    color: #667085;
    font-size: 11px;
}

.review-item-sizes {
    margin-top: 5px;
}

.review-item-sizes>strong {
    display: block;
    margin-bottom: 2px;
    color: #475467;
    font-size: 11px;
}

.review-item-sizes>div {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 7px;
}

.review-size-qty {
    color: #171717;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.review-item-backorder {
    display: block;
    margin-top: 3px;
    color: var(--hyer-primary);
    font-size: 10px;
    font-weight: 700;
}

.review-item-total {
    display: grid;
    min-width: 0;
    justify-items: end;
    gap: 2px;
    text-align: right;
}

.review-item-total span {
    color: #475467;
    font-size: 11px;
}

.review-item-total strong {
    color: #171717;
    font-size: 12px;
}

.review-item-total a {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    color: #344054;
    text-decoration: none;
}

.review-promo-section {
    margin-bottom: 12px;
}

.review-promo-section .form-label {
    margin-bottom: 5px;
    font-size: 12px;
}

.review-promo-section .form-control,
.review-promo-section .btn {
    min-height: 42px;
    font-size: 12px;
}

.review-totals {
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #ffffff;
}

.review-totals>div {
    display: flex;
    min-height: 38px;
    padding: 9px 12px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #344054;
    font-size: 12px;
}

.review-totals>div+div {
    border-top: 1px solid #f0f1f3;
}

.review-totals strong {
    color: #171717;
}

.review-totals .review-estimated-total {
    font-weight: 700;
}

.review-estimated-total strong {
    color: var(--hyer-primary);
    font-size: 15px;
}

.review-action-note {
    margin: 7px 0 0;
    color: #667085;
    font-size: 10px;
    text-align: center;
}

@media (max-width: 360px) {
    .order-page {
        padding-right: 14px;
        padding-left: 14px;
    }

    .order-progress-step {
        width: 38px;
        flex-basis: 38px;
    }

    .review-item {
        grid-template-columns: 46px minmax(0, 1fr) 62px;
        gap: 7px;
    }

    .review-item-image {
        width: 46px;
        height: 62px;
    }
}
