.customer-portal .table-repeater-container {
    box-shadow: unset !important;
}

.customer-portal .filepond--drop-label {
    cursor: pointer;
}

.customer-portal .customer-complaint-upload .filepond--item[data-filepond-item-state*='error'],
.customer-portal .customer-complaint-upload .filepond--item[data-filepond-item-state*='invalid'] {
    display: none;
}

.customer-portal .table-repeater-empty-column {
    font-style: normal;
    text-align: left;
    padding: 0px;
    font-size: 15px;
}

.customer-portal td.table-repeater-column {
    padding: 0px;
}

.customer-portal .fi-fo-field-wrp-helper-text {
    font-size: 80%;
}

html:has(.customer-portal) {
    overflow-x: hidden;
    background: #edf2f7;
}

.customer-portal {
    display: flex;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    flex-direction: column;
    overflow-x: hidden;
    background: #edf2f7;
}

.tenant-page {
    width: 100%;
    max-width: 600px;
    min-height: 100vh;
    margin: 0 auto;
    background: #edf2f7;
}

.customer-site-header {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 22px 16px 0;
    box-sizing: border-box;
    text-align: center;
}

.customer-site-header--narrow {
    max-width: 600px;
}

.customer-site-header__logo-link {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.customer-site-header__logo {
    display: block;
    width: auto;
    max-width: min(360px, 72vw);
    max-height: 92px;
    object-fit: contain;
}

.customer-header-strip {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.customer-header-strip::-webkit-scrollbar {
    display: none;
}

.customer-header-strip__track {
    display: inline-flex;
    width: max-content;
    min-width: 100%;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.customer-header-strip__track > * {
    flex: 0 0 auto;
}

.customer-header-strip__track > [aria-hidden="true"] {
    color: #d6d6d6;
    font-weight: 400;
}

.customer-header-strip--categories {
    padding: 3px 0 7px;
}

.customer-header-strip--categories .customer-header-strip__track {
    gap: 10px;
}

.customer-header-strip--categories a {
    padding: 10px 3px;
    border-radius: 5px;
    color: #111827;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 150ms ease;
}

.customer-header-strip--categories a:hover,
.customer-header-strip--categories a:focus-visible {
    background: rgb(255 255 255 / 0.72);
    outline: none;
}

.customer-header-strip--usp {
    border-radius: 15px;
    background: #efedea;
}

.customer-header-strip--usp .customer-header-strip__track {
    gap: 12px;
    padding: 10px 16px;
    box-sizing: border-box;
    color: #111827;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.customer-portal__nav {
    width: calc(100% - 32px);
    max-width: 1000px;
    margin: 8px auto;
}

.customer-navigation {
    overflow: visible;
    border-radius: 15px;
    background: #fff;
    color: #374151;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.03);
}

.customer-navigation__mobile-bar {
    display: none;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
}

.customer-navigation__menu-button,
.customer-navigation__profile-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #111827;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 150ms ease;
}

.customer-navigation__menu-button {
    padding: 8px 10px;
}

.customer-navigation__menu-button:hover,
.customer-navigation__menu-button:focus-visible,
.customer-navigation__profile-button:hover,
.customer-navigation__profile-button:focus-visible {
    background: #f3f4f6;
    outline: none;
}

.customer-navigation__burger {
    position: relative;
    display: flex;
    width: 21px;
    height: 16px;
    flex-direction: column;
    justify-content: space-between;
}

.customer-navigation__burger span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition: transform 180ms ease, opacity 120ms ease;
}

.customer-navigation__burger.is-open span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.customer-navigation__burger.is-open span:nth-child(2) {
    opacity: 0;
}

.customer-navigation__burger.is-open span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

.customer-navigation__customer-name {
    min-width: 0;
    overflow: hidden;
    padding-right: 6px;
    color: #4b5563;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-navigation__mobile-panel {
    border-top: 1px solid #f0f1f2;
    padding: 6px 10px 10px;
}

.customer-navigation__mobile-link {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 9px;
    padding: 10px 12px;
    color: #374151;
    font-size: 15px;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease;
}

.customer-navigation__mobile-link svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: #9ca3af;
}

.customer-navigation__mobile-link:hover,
.customer-navigation__mobile-link:focus-visible,
.customer-navigation__mobile-link.is-active {
    background: #f3f4f6;
    color: #111827;
    outline: none;
}

.customer-navigation__mobile-link.is-active {
    font-weight: 700;
}

.customer-navigation__mobile-link--logout {
    margin-top: 5px;
    border-top: 1px solid #f0f1f2;
    border-radius: 0 0 9px 9px;
    color: #6b7280;
}

.customer-navigation__desktop {
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
}

.customer-navigation__desktop > .relative {
    position: relative;
    flex-shrink: 0;
}

.customer-navigation__links {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
}

.customer-navigation__link {
    border-radius: 9px;
    padding: 10px 12px;
    color: #374151;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease;
}

.customer-navigation__link:hover,
.customer-navigation__link:focus-visible,
.customer-navigation__link.is-active {
    background: #f3f4f6;
    color: #111827;
    outline: none;
}

.customer-navigation__link.is-active {
    font-weight: 600;
}

.customer-navigation__profile-button {
    max-width: 220px;
    padding: 9px 10px;
    color: #374151;
    font-weight: 400;
}

.customer-navigation__profile-button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-navigation__profile-button svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: #6b7280;
    transition: transform 150ms ease;
}

.customer-navigation__profile-menu {
    position: absolute;
    z-index: 50;
    top: calc(100% + 8px);
    right: 0;
    width: 176px;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    padding: 4px;
    box-shadow: 0 12px 30px rgb(15 23 42 / 0.12);
}

.customer-navigation__profile-menu a {
    display: block;
    border-radius: 7px;
    padding: 9px 12px;
    color: #374151;
    font-size: 14px;
    text-decoration: none;
}

.customer-navigation__profile-menu a:hover,
.customer-navigation__profile-menu a:focus-visible {
    background: #f3f4f6;
    outline: none;
}

.customer-portal__content,
.tenant-page__content {
    width: calc(100% - 32px);
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
}

.customer-portal__content--card,
.tenant-page__content {
    border-radius: 15px;
    background: #fff;
    padding: 30px;
}

.tenant-page__content {
    max-width: 600px;
}

.customer-portal__content input,
.customer-portal__content select,
.customer-portal__content textarea,
.tenant-page__content input,
.tenant-page__content select,
.tenant-page__content textarea {
    max-width: 100%;
}

.customer-portal__content .overflow-x-auto {
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.customer-portal__content table {
    overflow-wrap: normal;
    word-break: normal;
}

.customer-portal__content table th {
    overflow-wrap: normal;
    word-break: normal;
    white-space: nowrap;
}

.customer-portal__content .overflow-x-auto > table {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
}

.customer-portal__content .overflow-x-auto > table.customer-data-table {
    width: 100%;
}

.customer-data-table--shipments {
    min-width: 42rem !important;
}

.customer-data-table--items {
    min-width: 46rem !important;
}

.customer-context-link,
.customer-inline-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 6px;
    color: rgb(37 99 235);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.customer-context-link {
    margin: 0 0 12px;
    padding: 0 4px;
}

.customer-context-link svg,
.customer-inline-link svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.customer-context-link:hover,
.customer-context-link:focus-visible,
.customer-inline-link:hover,
.customer-inline-link:focus-visible {
    color: rgb(29 78 216);
    text-decoration: underline;
    outline: none;
}

.customer-record-list {
    display: grid;
    gap: 10px;
}

.customer-record {
    display: flex;
    width: 100%;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    background: #fff;
    padding: 15px;
    box-sizing: border-box;
    color: #111827;
    text-decoration: none;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.03);
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

button.customer-record {
    font: inherit;
    cursor: pointer;
}

.customer-record:hover,
.customer-record:focus-visible {
    border-color: #cbd5e1;
    box-shadow: 0 5px 18px rgb(15 23 42 / 0.08);
    outline: none;
    transform: translateY(-1px);
}

.customer-record__topline {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.customer-record__topline .rounded-full {
    margin-right: 0;
}

.customer-record__eyebrow {
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.customer-record__title {
    margin-top: 5px;
    color: #111827;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}

.customer-record__details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    margin-top: 15px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.customer-record__details--single {
    grid-template-columns: 1fr;
    gap: 10px;
}

.customer-record__details > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.customer-record__details small {
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
}

.customer-record__meta {
    margin-top: 12px;
    color: #6b7280;
    font-size: 12px;
}

.customer-record__action {
    display: flex;
    min-height: 44px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    color: rgb(37 99 235);
    font-size: 13px;
    font-weight: 700;
}

.customer-record__action svg,
.customer-table-action svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.customer-record__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 15px;
}

.customer-record__primary-action,
.customer-record__secondary-action,
.customer-table-action {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 9px;
    padding: 8px 12px;
    box-sizing: border-box;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.customer-record__primary-action,
.customer-table-action {
    border: 1px solid rgb(37 99 235);
    background: rgb(37 99 235);
    color: #fff;
}

.customer-record__secondary-action {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
}

.customer-table-action {
    min-height: 38px;
    padding: 6px 10px;
}

.customer-portal .fi-ta-ctn {
    overflow: hidden;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.375rem !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.05) !important;
}

.customer-portal .customer-view-action.fi-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    border: 1px solid rgb(var(--primary-200)) !important;
    border-radius: 0.375rem !important;
    background: #fff !important;
    padding: 0.5rem 1rem !important;
    color: rgb(var(--primary-600)) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    line-height: 1rem !important;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.05) !important;
    transition: background-color 150ms ease, box-shadow 150ms ease !important;
}

.customer-portal .customer-view-action.fi-btn:hover {
    background: rgb(var(--primary-50)) !important;
}

.customer-portal .customer-view-action.fi-btn:focus-visible {
    outline: none !important;
    box-shadow:
        0 0 0 2px #fff,
        0 0 0 4px rgb(var(--primary-600)),
        0 1px 2px rgb(15 23 42 / 0.05) !important;
}

/*.customer-portal button:not([disabled]),*/
/*.customer-portal input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),*/
/*.customer-portal select,*/
/*.customer-portal label[for][class*="cursor-pointer"] {*/
/*    min-height: 44px;*/
/*}*/

.customer-support__back {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 6px;
    border: 0;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    padding: 8px 16px;
    color: rgb(37 99 235);
    font-size: 14px;
    font-weight: 700;
    text-align: left;
}

.customer-support__back svg {
    width: 18px;
    height: 18px;
}

.customer-modal-panel {
    max-height: min(90dvh, calc(100dvh - 24px));
}

.customer-flow-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.customer-flow-steps li {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
}

.customer-flow-steps li span {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    color: rgb(37 99 235);
    font-size: 11px;
    box-shadow: inset 0 0 0 1px #dbeafe;
}

@media (max-width: 1023px) {
    .customer-header-strip {
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
    }

    .customer-portal input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
    .customer-portal select,
    .customer-portal textarea {
        font-size: 16px;
    }

    .customer-support__list.is-mobile-hidden {
        display: none;
    }

    .customer-support__detail {
        display: none;
        min-height: min(42rem, calc(100svh - 150px));
    }

    .customer-support__detail.is-mobile-visible {
        display: flex;
    }
}

.customer-portal__footer {
    width: 100%;
    margin-top: auto;
    padding: 30px 12px 12px;
    box-sizing: border-box;
    background: #f3f3f3;
    color: #4b5563;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 767px) {
    .customer-site-header {
        padding: 15px 0 0;
    }

    .customer-site-header__logo-link {
        margin-bottom: 2px;
        padding: 0 16px;
    }

    .customer-site-header__logo {
        max-width: min(300px, 68vw);
        max-height: 74px;
    }

    .customer-header-strip__track {
        min-width: max-content;
        justify-content: flex-start;
    }

    .customer-header-strip__track::before,
    .customer-header-strip__track::after {
        width: 16px;
        height: 1px;
        flex: 0 0 16px;
        content: '';
    }

    .customer-header-strip--categories {
        padding-bottom: 5px;
        scroll-snap-type: inline proximity;
    }

    .customer-header-strip--categories .customer-header-strip__track {
        gap: 9px;
    }

    .customer-header-strip--categories a {
        min-height: 38px;
        padding: 12px 2px;
        box-sizing: border-box;
        scroll-snap-align: start;
    }

    .customer-header-strip--usp {
        border-radius: 0;
        scroll-snap-type: inline proximity;
    }

    .customer-header-strip--usp .customer-header-strip__track {
        gap: 12px;
        padding: 11px 0;
    }

    .customer-header-strip--usp .customer-header-strip__track > span:not([aria-hidden="true"]) {
        scroll-snap-align: start;
    }

    .customer-portal__nav {
        width: calc(100% - 24px);
        margin: 10px auto 8px;
    }

    .customer-navigation__mobile-bar {
        display: flex;
    }

    .customer-navigation__desktop {
        display: none;
    }

    .customer-portal__content,
    .tenant-page__content {
        width: calc(100% - 24px);
    }

    .customer-portal__content--card,
    .tenant-page__content {
        padding: 20px 18px;
    }

    .customer-portal__content h1.text-2xl,
    .customer-portal__content h2.text-2xl,
    .tenant-page__content h1.text-2xl,
    .tenant-page__content h2.text-2xl {
        font-size: 1.35rem;
        line-height: 1.3;
    }

    .customer-portal__footer {
        padding-top: 24px;
    }

    .customer-modal-panel {
        max-height: calc(100dvh - 16px);
        border-radius: 12px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .customer-navigation__mobile-bar {
        display: flex;
    }

    .customer-navigation__desktop {
        display: none;
    }
}

@media (min-width: 1024px) {
    .customer-record-list--mobile {
        display: none;
    }

    .customer-navigation__mobile-panel {
        display: none !important;
    }

    .customer-support__back {
        display: none;
    }

    .customer-flow-steps {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .customer-navigation__burger span,
    .customer-navigation__profile-button svg,
    .customer-navigation__mobile-link,
    .customer-navigation__link {
        transition-duration: 0.01ms !important;
    }
}
