.amurweb-header-cart {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 100%;
    justify-content: flex-end;
    line-height: 1.2;
}

.amurweb-header-cart *,
.amurweb-header-cart *::before,
.amurweb-header-cart *::after {
    box-sizing: border-box;
}

.amurweb-header-cart__trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 40px;
    padding: 8px 10px;
    border: 0 solid transparent;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.amurweb-header-cart .amurweb-header-cart__trigger:hover,
.amurweb-header-cart .amurweb-header-cart__trigger:focus {
    background-color: transparent;
    border-color: transparent;
    box-shadow: none;
}

.amurweb-header-cart__trigger:focus-visible,
.amurweb-header-cart__close:focus-visible,
.amurweb-header-cart__remove:focus-visible,
.amurweb-header-cart__button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.amurweb-header-cart__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 24px;
    transition: color .2s ease;
}

.amurweb-header-cart__icon i,
.amurweb-header-cart__icon svg {
    display: block;
    transition: fill .2s ease;
}

.amurweb-header-cart__count {
    position: absolute;
    z-index: 2;
    top: -4px;
    left: 17px;
    display: inline-block;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border: 0 solid transparent;
    border-radius: 999px;
    background: #f36a21;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 19px;
    text-align: center;
    white-space: nowrap;
}

.amurweb-header-cart__price {
    display: inline-flex;
    align-items: center;
    color: #20242a;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: color .2s ease;
}

.amurweb-header-cart--hide-count .amurweb-header-cart__count,
.amurweb-header-cart--hide-price .amurweb-header-cart__price,
.amurweb-header-cart--hide-product-image .amurweb-header-cart__thumb {
    display: none !important;
}

.amurweb-header-cart__panel {
    --amurweb-cart-offset-x: 0px;
    --amurweb-cart-offset-y: 12px;
    position: absolute;
    z-index: 99999;
    top: 100%;
    width: 420px;
    max-width: calc(100vw - 24px);
    overflow: hidden;
    border: 1px solid rgba(30, 34, 40, .10);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 60px rgba(20, 24, 30, .16);
    color: #20242a;
    text-align: left;
}

.amurweb-header-cart--panel-right .amurweb-header-cart__panel {
    right: 0;
    left: auto;
    transform: translate(var(--amurweb-cart-offset-x), var(--amurweb-cart-offset-y));
}

.amurweb-header-cart--panel-left .amurweb-header-cart__panel {
    right: auto;
    left: 0;
    transform: translate(var(--amurweb-cart-offset-x), var(--amurweb-cart-offset-y));
}

.amurweb-header-cart__panel[hidden] {
    display: none !important;
}

.amurweb-header-cart__panel.is-open {
    animation: amurwebCartIn .18s ease-out both;
}

@keyframes amurwebCartIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.amurweb-header-cart__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 20px 14px;
    border-bottom: 1px solid rgba(30, 34, 40, .08);
}

.amurweb-header-cart__panel-title {
    color: #16191e;
    font-size: 20px;
    font-weight: 700;
}

.amurweb-header-cart__close,
.amurweb-header-cart__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0 solid transparent;
    background: transparent;
    color: #757b84;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, opacity .18s ease;
}

.amurweb-header-cart .amurweb-header-cart__close:hover,
.amurweb-header-cart .amurweb-header-cart__remove:hover {
    background-color: transparent;
}

.amurweb-header-cart__close {
    width: 34px;
    height: 34px;
    margin: -5px -7px -5px 0;
    border-radius: 50%;
    font-size: 27px;
    line-height: 1;
}

.amurweb-header-cart__panel-body {
    display: block;
}

.amurweb-header-cart__items {
    max-height: 440px;
    margin: 0;
    padding: 4px 20px;
    overflow-y: auto;
    list-style: none;
    scrollbar-width: thin;
}

.amurweb-header-cart__item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin: 0;
    padding: 15px 30px 15px 0;
    border: 0;
    border-bottom: 1px solid rgba(30, 34, 40, .07);
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.amurweb-header-cart__item:last-child {
    border-bottom: 0;
}

.amurweb-header-cart__thumb {
    flex: 0 0 68px;
    width: 68px;
}

.amurweb-header-cart__thumb a,
.amurweb-header-cart__thumb img {
    display: block;
}

.amurweb-header-cart__thumb img {
    width: 68px;
    height: 68px;
    margin: 0;
    border-radius: 10px;
    object-fit: cover;
}

.amurweb-header-cart__item-main {
    min-width: 0;
    flex: 1 1 auto;
}

.amurweb-header-cart__item-name {
    display: block;
    margin: 1px 0 7px;
    color: #20242a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none !important;
    transition: color .18s ease;
}

.amurweb-header-cart__item-data,
.amurweb-header-cart__item-data dl,
.amurweb-header-cart__item-data p {
    margin: 0 0 6px;
    color: #7d838c;
    font-size: 12px;
}

.amurweb-header-cart__item-data dt,
.amurweb-header-cart__item-data dd {
    display: inline;
    float: none;
    margin: 0 3px 0 0;
    padding: 0;
}

.amurweb-header-cart__item-data dd::after {
    content: " ";
    display: block;
}

.amurweb-header-cart__item-meta {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 13px;
}

.amurweb-header-cart__qty {
    color: #818791;
}

.amurweb-header-cart__line-total {
    color: #16191e;
    font-weight: 700;
}

.amurweb-header-cart__remove {
    position: absolute;
    top: 12px;
    right: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
}

.amurweb-header-cart__remove.is-loading {
    opacity: .45;
    cursor: wait;
}

/* Compact list */
.amurweb-header-cart--layout-compact .amurweb-header-cart__item {
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

.amurweb-header-cart--layout-compact .amurweb-header-cart__thumb,
.amurweb-header-cart--layout-compact .amurweb-header-cart__thumb img {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
}

.amurweb-header-cart--layout-compact .amurweb-header-cart__item-name {
    margin-bottom: 3px;
}

.amurweb-header-cart--layout-compact .amurweb-header-cart__item-data {
    display: none;
}

/* Cards */
.amurweb-header-cart--layout-cards .amurweb-header-cart__items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.amurweb-header-cart--layout-cards .amurweb-header-cart__item {
    display: block;
    padding: 12px 34px 12px 12px;
    border: 1px solid rgba(30, 34, 40, .08);
    border-radius: 12px;
}

.amurweb-header-cart--layout-cards .amurweb-header-cart__thumb {
    width: 100%;
    margin-bottom: 10px;
}

.amurweb-header-cart--layout-cards .amurweb-header-cart__thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
}

.amurweb-header-cart--layout-cards .amurweb-header-cart__remove {
    top: 8px;
    right: 8px;
}

.amurweb-header-cart__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-top: 1px solid rgba(30, 34, 40, .08);
}

.amurweb-header-cart__summary-label {
    color: #727983;
    font-size: 13px;
}

.amurweb-header-cart__summary-total {
    color: #16191e;
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
}

.amurweb-header-cart__actions {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 10px;
    padding: 0 20px 20px;
}

.amurweb-header-cart--buttons-stack .amurweb-header-cart__actions {
    grid-template-columns: 1fr;
}

.amurweb-header-cart__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 11px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    transition: transform .15s ease, opacity .15s ease, color .15s ease, background-color .15s ease, border-color .15s ease;
}

.amurweb-header-cart__button:hover {
    transform: translateY(-1px);
}

.amurweb-header-cart__button--cart {
    background: #f1f3f5;
    color: #20242a;
}

.amurweb-header-cart__button--checkout {
    background: #f36a21;
    color: #fff;
}

.amurweb-header-cart__empty {
    padding: 34px 22px 36px;
    color: #747b85;
    text-align: center;
}

.amurweb-header-cart__empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    border: 1px solid rgba(30, 34, 40, .14);
    border-radius: 50%;
    font-size: 26px;
}

.amurweb-header-cart__empty p {
    margin: 0;
    font-size: 14px;
}

@media (max-width: 767px) {
    .amurweb-header-cart__panel {
        position: fixed;
        z-index: 999999;
        top: 12px;
        right: 12px !important;
        bottom: auto;
        left: 12px !important;
        width: auto !important;
        max-width: none;
        max-height: calc(100vh - 24px);
        transform: none !important;
        overflow-y: auto;
    }

    .amurweb-header-cart__items {
        max-height: calc(100vh - 260px);
    }
}

@media (max-width: 520px) {
    .amurweb-header-cart--layout-cards .amurweb-header-cart__items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .amurweb-header-cart__actions {
        grid-template-columns: 1fr;
    }
}
