.av-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #ece7ea;
}

.av-header__inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 56px;
    padding: 0 24px;
}

.av-header__menu {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #8d1633;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
}

.av-header__menu:hover {
    background: #f5faf8;
}

.av-header__brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.av-header__brand-text {
  color: #86132f;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.av-header__nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.av-header__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #4c5972;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.av-header__link--favorites {
    position: relative;
    padding-right: 18px;
}

.av-header__link i {
    font-size: 16px;
    color: #68758c;
}

.av-header__link--btn {
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.av-header__link:hover,
.av-header__link:hover i {
    color: var(--accent);
}

.av-header__actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: 6px;
}

.av-header__theme {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid #e9e3e6;
    border-radius: 999px;
    background: #fff;
}

.av-header__theme-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #6d7890;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
}

.av-header__theme-btn.is-active {
    background: #fff0b8;
    color: #7c1029;
}

.av-header__login {
    color: #4c5972;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.av-header__cta {
    min-height: 40px;
    padding: 0 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), #971939);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.av-user-dropdown {
    position: relative;
}

.av-header__badge {
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.av-header__badge--favorites {
    position: absolute;
    top: -8px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
}

.av-notify-dropdown {
    position: relative;
}

.av-notify-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 360px;
    max-width: min(360px, 92vw);
    border: 1px solid #e6ebf2;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    display: none;
    z-index: 130;
}

.av-notify-dropdown.is-open .av-notify-menu {
    display: block;
}

.av-notify-head {
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.av-notify-head-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.av-notify-head strong {
    font-size: 15px;
    font-weight: 500;
    color: #111827;
}

.av-notify-head-copy span {
    font-size: 12px;
    color: #64748b;
}

.av-notify-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.av-notify-count-pill {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.av-notify-readall {
    border: 0;
    background: transparent;
    color: #0ea5e9;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.av-notify-list {
    max-height: 320px;
    overflow: auto;
}

.av-notify-item {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
}

.av-notify-item:hover {
    background: #f8fafc;
}

.av-notify-item.is-unread {
    background: #f8fafc;
}

.av-notify-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #eef2ff;
    color: #6366f1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.av-notify-copy {
    min-width: 0;
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.av-notify-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.av-notify-title {
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.av-notify-time {
    margin-left: auto;
    color: #94a3b8;
    font-size: 11px;
    flex: 0 0 auto;
}

.av-notify-sub {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.av-notify-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #f97316;
    flex: 0 0 auto;
    margin-top: 6px;
}

.av-notify-empty {
    padding: 24px 14px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

.av-notify-empty i {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
}

.av-notify-footer {
    padding: 10px 14px;
    background: #fff;
    border-top: 1px solid #eef2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.av-notify-footer span {
    color: #94a3b8;
    font-size: 12px;
}

.av-notify-footer a {
    text-decoration: none;
    color: #0ea5e9;
    font-size: 13px;
    font-weight: 500;
}

.av-notify-footer a:hover {
    text-decoration: underline;
}

.av-user-trigger {
    min-width: 56px;
    height: 40px;
    padding: 0 10px 0 6px;
    border: 1px solid #e7e2e6;
    border-radius: 999px;
    background: #fff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.av-user-trigger.is-open i {
    transform: rotate(180deg);
}

.av-user-trigger i {
    transition: transform .16s ease;
}

.av-user-avatar,
.av-user-menu__avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(135deg, #22c55e, #06b6d4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.av-user-menu__avatar {
    width: 48px;
    height: 48px;
}

.av-user-avatar img,
.av-user-menu__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.av-user-avatar__fallback {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.av-user-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 278px;
    padding: 14px;
    border: 1px solid #e6ebf2;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff, #fbfdff);
    display: none;
    z-index: 120;
}

.av-user-dropdown.is-open .av-user-menu {
    display: block;
}

.av-user-menu__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf2f7;
}

.av-user-menu__copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.av-user-menu__copy strong {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
}

.av-user-menu__copy span {
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.av-user-menu__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 10px;
}

.av-user-menu__form {
    margin: 0;
}

.av-user-menu__item {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 14px;
    border: 0;
    background: transparent;
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
}

.av-user-menu__item:hover {
    background: #f7fafc;
}

.av-user-menu__item i {
    color: #64748b;
    font-size: 17px;
}

.av-user-menu__item--button {
    font: inherit;
}

.av-header__mobile-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.mobile_search_button {
    display: none;
}
.av-header__icon-btn {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
}

.av-header__icon-btn--shortcut {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(180deg, #a53427 0%, #8f241f 100%);
    border: 1px solid rgba(122, 16, 41, 0.16);
    color: #fff;
}

.av-header--mobile {
    display: none;
}

@media (max-width: 991px) {
    .av-header--desktop {
        display: none;
    }

    .av-header--mobile {
        display: block;
    }

    .av-header__inner {
        min-height: 70px;
        padding: 0 18px;
        gap: 12px;
    }

    .av-header__brand-text {
        font-size: 18px;
        letter-spacing: -0.02em;
    }

    .av-header__menu {
        width: 34px;
        height: 34px;
        font-size: 30px;
    }

    .av-header__mobile-actions {
        gap: 10px;
    }
}

.av-header__icon-btn--calculator {
    background: linear-gradient(180deg, #a53427 0%, #8f241f 100%);
    border: 1px solid rgba(122, 16, 41, 0.16);
}

.customs-modal[hidden] {
    display: none;
}

.customs-modal {
    position: fixed;
    inset: 0;
    z-index: 180;
}

.customs-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(17, 24, 39, 0.38);
}

.customs-modal__dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(760px, calc(100vw - 32px));
    max-height: min(84vh, 920px);
    transform: translate(-50%, -50%);
    border-radius: 32px;
    background: linear-gradient(180deg, #fffdfd 0%, #f8f6fb 100%);
    overflow: hidden;
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.24);
    display: flex;
    flex-direction: column;
}

.customs-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 22px;
    border-bottom: 1px solid #efe8ed;
    background: rgba(255, 255, 255, 0.92);
}

.customs-modal__back,
.customs-modal__reset {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.customs-modal__back {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #7a8494;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.customs-modal__title {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.04em;
    color: #101828;
}

.customs-modal__reset {
    color: #b3242e;
    font-size: 16px;
    font-weight: 500;
}

.customs-modal__body {
    min-height: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.customs-modal__content {
    padding: 10px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.customs-card,
.customs-summary {
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfbff 100%);
    border: 1px solid #f0ebf0;
    box-shadow: 0 12px 40px rgba(140, 74, 96, 0.06);
    padding: 8px;
}

.customs-field-group + .customs-field-group,
.customs-section + .customs-section {
    margin-top: 6px;
}

.customs-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1.5px solid #eadfe5;
    border-radius: 18px;
    background: #fff;
    padding: 7px 10px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.customs-field--soft {
    background: #fafbff;
}

.customs-field:focus-within {
    border-color: #dc2141;
    box-shadow: 0 0 0 4px rgba(220, 33, 65, 0.09);
}

.customs-field.is-error {
    border-color: #e26b86;
    background: #fff4f7;
}

.customs-field__label {
    color: #8c97aa;
    font-size: 12px;
    font-weight: 500;
}

.customs-field input {
    width: 100%;
    border: 0;
    background: transparent;
    outline: none;
    padding: 0;
    color: #172033;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.03em;
    min-height: 28px;
}

.customs-field input::placeholder {
    color: #b2bac8;
    font-weight: 400;
}

.customs-field__error {
    min-height: 20px;
    margin: 1px 0 0;
    color: #dc2141;
    font-size: 12px;
}

.customs-section__title {
    margin: 0 0 6px;
    color: #111827;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.customs-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.customs-chip {
    position: relative;
}

.customs-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.customs-chip span {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: #f5f6fb;
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.customs-chip input:checked + span {
    background: #d90f1d;
    color: #fff;
    box-shadow: 0 10px 22px rgba(217, 15, 29, 0.24);
}

.customs-radio-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.customs-radio {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 1px 0;
}

.customs-radio__copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.customs-radio__copy strong {
    color: #1f2937;
    font-size: 16px;
    font-weight: 500;
}

.customs-radio__copy small {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.35;
}

.customs-radio__control {
    position: relative;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
}

.customs-radio__control input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.customs-radio__dot {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1.5px solid #ebeaf0;
    background: #fff;
    position: relative;
}

.customs-radio__dot::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 999px;
    background: transparent;
    transition: background-color .2s ease;
}

.customs-radio__control input:checked + .customs-radio__dot {
    border-color: #d90f1d;
}

.customs-radio__control input:checked + .customs-radio__dot::after {
    background: #d90f1d;
}

.customs-summary__hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #efe8ed;
}

.customs-summary__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #8c1733;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.customs-summary__hero strong,
.customs-summary__total-note strong {
    display: block;
    color: #111827;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.customs-summary__hero small,
.customs-summary__total-note span {
    display: block;
    margin-top: 6px;
    color: #667085;
    font-size: 12px;
}

.customs-summary__total-note {
    text-align: right;
}

.customs-summary__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-top: 8px;
}

.customs-summary__meta-item {
    border-radius: 16px;
    background: #faf7f9;
    border: 1px solid #eee6eb;
    padding: 8px;
}

.customs-summary__meta-item span {
    display: block;
    color: #667085;
    font-size: 13px;
    margin-bottom: 8px;
}

.customs-summary__meta-item strong {
    color: #111827;
    font-size: 15px;
    font-weight: 500;
}

.customs-summary__list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.customs-summary__note {
    margin: 6px 0 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
}

.customs-summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #efe8ed;
    padding: 7px 9px;
}

.customs-summary__row.is-total {
    background: linear-gradient(135deg, #8f0f2e, #c51f31);
    border-color: transparent;
    color: #fff;
}

.customs-summary__row-copy {
    min-width: 0;
}

.customs-summary__row-copy strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
}

.customs-summary__row-copy span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #667085;
}

.customs-summary__row.is-total .customs-summary__row-copy span {
    color: rgba(255, 255, 255, 0.72);
}

.customs-summary__row-value {
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.customs-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px 18px;
    border-top: 1px solid #efe8ed;
    background: rgba(255, 255, 255, 0.96);
}

.customs-modal__status {
    margin: 0;
    min-height: 20px;
    color: #6b7280;
    font-size: 14px;
}

.customs-modal__status.is-error {
    color: #dc2626;
}

.customs-modal__status.is-success {
    color: #0f766e;
}

.customs-modal__submit {
    min-width: 160px;
    min-height: 50px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, #d90f1d 0%, #c80f1f 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 16px 32px rgba(201, 16, 32, 0.22);
}

.customs-modal__submit[disabled] {
    opacity: 0.6;
    cursor: wait;
}

body.customs-modal-open {
    overflow: hidden;
}

@media (max-width: 991px) {
    .customs-modal__dialog {
        inset: 0;
        width: 100%;
        max-height: 100%;
        transform: none;
        border-radius: 0;
    }

    .customs-modal__header {
        padding: 14px 16px;
    }

    .customs-modal__title {
        font-size: 22px;
        text-align: center;
        flex: 1;
    }

    .customs-modal__back,
    .customs-modal__reset {
        flex: 0 0 auto;
    }

    .customs-modal__content {
        padding: 8px 6px 92px;
        gap: 6px;
    }

    .customs-card,
    .customs-summary {
        border-radius: 22px;
        padding: 8px;
    }

    .customs-field {
        min-height: 64px;
        border-radius: 18px;
        padding: 7px 10px;
        gap: 3px;
    }

    .customs-field__label {
        font-size: 11px;
    }

    .customs-field input {
        font-size: 16px;
        min-height: 22px;
    }

    .customs-section__title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .customs-chip-grid {
        gap: 5px;
    }

    .customs-chip span {
        min-height: 36px;
        padding: 0 14px;
        font-size: 13px;
    }

    .customs-radio__copy strong {
        font-size: 15px;
    }

    .customs-radio__copy small {
        font-size: 12px;
    }

    .customs-summary__hero {
        flex-direction: column;
    }

    .customs-summary__total-note {
        text-align: left;
    }

    .customs-summary__meta {
        grid-template-columns: 1fr;
    }

    .customs-modal__footer {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 10px 10px;
        background: linear-gradient(180deg, rgba(248, 246, 251, 0.2) 0%, #ffffff 32%);
        border-top: 0;
        gap: 6px;
    }

    .customs-modal__status {
        order: 2;
        text-align: center;
        font-size: 11px;
        min-height: 16px;
        line-height: 1.35;
    }

    .customs-modal__submit {
        width: 100%;
        min-height: 48px;
        border-radius: 16px;
        font-size: 16px;
    }
}
