/* HIKMAT Cart: formatted stylesheet. Rule order preserves existing overrides. */
:root {
    --hmcc-ink: #24221f;
    --hmcc-muted: #77716b;
    --hmcc-line: #e7e1da;
    --hmcc-paper: #fff;
    --hmcc-soft: #f7f4ef;
    --hmcc-accent: #a9927d;
}

.hmcc-cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    margin: 0;
    padding: 0;
    overflow: visible;
    color: inherit;
    line-height: 1;
    text-decoration: none;
    vertical-align: middle;
}

@media (min-width: 1025px) {
    .hmcc-cart-icon {
        width: 20px !important;
        height: 20px !important;
    }

}

.hmcc-cart-icon:hover, .hmcc-cart-icon:focus, .hmcc-cart-icon:active {
    color: inherit;
    text-decoration: none;
}

.hmcc-cart-icon:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 4px;
}

.hmcc-cart-icon-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    pointer-events: none;
}

.hmcc-count {
    position: absolute;
    top: -7px;
    right: -9px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border-radius: 999px;
    box-sizing: border-box;
    background: #000;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

.hmcc-count[hidden] {
    display: none !important;
}

/* Reset theme button defaults while retaining the Wishlist geometry. */
.hmcc-cart-icon {
    background: transparent!important;
    border: 0!important;
    padding: 0!important;
    min-width: 0;
    min-height: 0;
    cursor: pointer;
    font: inherit;
    box-shadow: none!important;
}

.hmcc-lock {
    overflow: hidden!important;
}

.hmcc-drawer {
    inset: 0 0 0 auto;
    margin: 0;
    width: min(460px,100%);
    height: 100%;
    height: 100dvh;
    max-height: none;
    max-width: 100%;
    padding: 0;
    border: 0;
    color: var(--hmcc-ink);
    background: var(--hmcc-paper);
    box-shadow: -10px 0 50px #0002;
    overflow: auto;
    overscroll-behavior: contain;
}

.hmcc-drawer::backdrop {
    background: #19171366;
    animation: hmcc-backdrop-in .5s ease both;
}

.hmcc-drawer[open] {
    display: flex;
    flex-direction: column;
    animation: hmcc-enter .5s ease both;
}

.hmcc-drawer[open].is-closing {
    animation: hmcc-exit .5s ease both;
}

.hmcc-drawer.is-closing::backdrop {
    animation: hmcc-backdrop-out .5s ease both;
}

.hmcc-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--hmcc-line);
    flex-shrink: 0;
}

.hmcc-drawer-header small {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--hmcc-muted);
}

.hmcc-drawer-header h2 {
    font-size: 21px;
    line-height: 1.4;
    font-weight: 400;
    margin: 6px 0 0;
}

.hmcc-close {
    border: 0!important;
    background: none!important;
    color: var(--hmcc-ink)!important;
    font-size: 30px!important;
    width: 44px;
    height: 44px;
    padding: 0!important;
    cursor: pointer;
}

.hmcc-status {
    padding: 0 24px;
    font-size: 13px;
    color: var(--hmcc-muted);
}

.hmcc-status:not(:empty) {
    padding-top: 14px;
    padding-bottom: 10px;
}

.hmcc-mini-content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.hmcc-mini-items {
    padding: 0 24px;
}

.hmcc-item {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 18px;
    padding: 24px 0;
    border-bottom: 1px solid var(--hmcc-line);
}

.hmcc-item-image img {
    width: 88px;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
}

.hmcc-item-name {
    font-size: 15px;
    line-height: 1.5;
    color: var(--hmcc-ink);
    text-decoration: none;
}

.hmcc-item-details dl {
    font-size: 12px;
    color: var(--hmcc-muted);
    margin: 0px 0;
}

.hmcc-item-details dt,.hmcc-item-details dd {
    display: inline;
    margin: 0 4px 0 0;
}

.hmcc-item-details dd p {
    display: inline;
}

.hmcc-item-price {
    font-size: 14px;
    margin: 8px 0;
}

.hmcc-item-controls {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    justify-content: space-between;
}

.hmcc-qty-label {
    font-size: 11px;
    color: var(--hmcc-muted);
}

.hmcc-qty {
    display: block;
    width: 72px!important;
    padding: 7px!important;
    margin-top: 4px;
    border: 1px solid var(--hmcc-line)!important;
    border-radius: 4px!important;
    background: white;
    color: var(--hmcc-ink);
}

.hmcc-remove {
    background: none!important;
    border: 0!important;
    border-bottom: 1px solid var(--hmcc-line)!important;
    color: var(--hmcc-muted)!important;
    font-size: 12px!important;
    padding: 4px 0!important;
    cursor: pointer;
}

.hmcc-mini-footer {
    margin-top: auto;
    padding: 24px;
    background: var(--hmcc-soft);
}

.hmcc-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 15px;
}

.hmcc-note {
    font-size: 12px;
    color: var(--hmcc-muted);
    line-height: 1.6;
    margin: 12px 0 20px;
}

.hmcc-button {
    display: block;
    text-align: center;
    padding: 14px 18px;
    background: var(--hmcc-ink);
    border: 1px solid var(--hmcc-ink);
    border-radius: 5px;
    color: white!important;
    text-decoration: none!important;
    font-size: 13px;
    margin-top: 10px;
}

.hmcc-secondary {
    background: transparent;
    color: var(--hmcc-ink)!important;
}

.hmcc-empty {
    text-align: center;
    padding: 60px 24px;
}

.hmcc-empty p {
    margin-bottom: 26px;
}

.hmcc-drawer :focus-visible,.hmcc-cart-icon:focus-visible,.hmcc-cart-page :focus-visible {
    outline: 2px solid var(--hmcc-accent);
    outline-offset: 4px;
}

.hmcc-cart-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    color: var(--hmcc-ink);
}

.hmcc-page-header {
    margin-bottom: 34px;
}

.hmcc-page-header>span {
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--hmcc-muted);
}

.hmcc-page-header h1 {
    font-size: clamp(26px,3vw,38px);
    font-weight: 400;
    margin: 12px 0;
    line-height: 1.25;
}

.hmcc-cart-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 340px;
    gap: 36px;
    align-items: start;
}

.hmcc-cart-page .hmcc-table {
    border: 0;
    border-collapse: collapse;
    margin: 0;
}

.hmcc-cart-page .hmcc-table th {
    padding: 12px 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    border-bottom: 1px solid var(--hmcc-line);
}

.hmcc-cart-page .hmcc-table td {
    border: 0;
    border-bottom: 1px solid var(--hmcc-line);
    padding: 24px 8px;
    background: transparent;
}

.hmcc-cart-page .hmcc-table td.product-thumbnail {
    width: 82px;
}

.hmcc-cart-page .hmcc-table td.product-thumbnail img {
    width: 72px;
    height: 98px;
    object-fit: cover;
    border-radius: 5px;
    max-width: none;
}

.hmcc-cart-name>a {
    font-size: 14px;
    color: var(--hmcc-ink);
    text-decoration: none;
}

.hmcc-cart-name dl {
    font-size: 12px;
    color: var(--hmcc-muted);
}

.hmcc-cart-page a.hmcc-cart-remove {
    display: block;
    font-size: 12px;
    color: var(--hmcc-muted);
    margin-top: 12px;
    text-decoration: underline;
}

.hmcc-cart-price,.hmcc-cart-subtotal {
    font-size: 13px;
    white-space: nowrap;
}

.hmcc-cart-page .quantity .qty {
    width: 60px;
    padding: 8px 3px;
    border: 1px solid var(--hmcc-line);
    border-radius: 4px;
}

.hmcc-cart-page .cart-collaterals {
    width: auto;
    padding: 26px;
    background: var(--hmcc-soft);
    border-radius: 8px;
}

.hmcc-cart-page .cart-collaterals .cart_totals {
    width: 100%;
    float: none;
}

.hmcc-cart-page .cart_totals h2 {
    font-size: 22px;
    font-weight: 400;
    margin: 0 0 20px;
}

.hmcc-cart-page .cart_totals table {
    border: 0;
    font-size: 13px;
}

.hmcc-cart-page .cart_totals td,.hmcc-cart-page .cart_totals th {
    padding: 12px 0;
    border-top: 1px solid var(--hmcc-line);
    background: none;
}

.hmcc-cart-page .cart_totals td {
    text-align: right;
}

.hmcc-cart-page .button,.hmcc-cart-page a.checkout-button {
    background: var(--hmcc-ink)!important;
    color: white!important;
    border-radius: 5px;
    border: 0;
    padding: 13px 16px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

.hmcc-cart-page .button:disabled {
    opacity: .45;
}

.hmcc-cart-page .coupon {
    display: flex;
    gap: 8px;
    align-items: center;
}

.hmcc-cart-page .coupon .input-text {
    width: 140px!important;
    min-width: 0;
    border: 1px solid var(--hmcc-line);
    padding: 11px;
    border-radius: 4px;
    font-size: 13px;
}

.hmcc-cart-page .cross-sells {
    width: 100%!important;
    float: none!important;
}

.hmcc-cart-page .woocommerce-shipping-calculator {
    text-align: left;
}

.hmcc-cart-page .woocommerce-notices-wrapper {
    font-size: 14px;
}

@keyframes hmcc-enter {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }

}

@keyframes hmcc-exit {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }

}

@keyframes hmcc-backdrop-in {
    from {
        background: transparent;
    }

    to {
        background: #19171366;
    }

}

@keyframes hmcc-backdrop-out {
    from {
        background: #19171366;
    }

    to {
        background: transparent;
    }

}

@media(max-width:1000px) {
    .hmcc-cart-layout {
        grid-template-columns: 1fr;
    }

    .hmcc-cart-page .cart-collaterals {
        max-width: none;
    }

}

@media(max-width:768px) {
    .hmcc-cart-page {
        padding: 28px 16px;
    }

    .hmcc-cart-page .hmcc-table thead {
        display: none;
    }

    .hmcc-cart-page .hmcc-table tr.hmcc-cart-item {
        display: grid;
        grid-template-columns: 80px 1fr;
        border-bottom: 1px solid var(--hmcc-line);
        padding: 18px 0;
        gap: 10px;
    }

    .hmcc-cart-page .hmcc-table tr.hmcc-cart-item td {
        display: block;
        border: 0;
        padding: 0!important;
        text-align: left!important;
        background: none!important;
    }

    .hmcc-cart-page .hmcc-table tr.hmcc-cart-item td:before {
        display: none;
    }

    .hmcc-cart-page .hmcc-table td.product-thumbnail {
        display: block!important;
        grid-row: span 4;
    }

    .hmcc-cart-page .hmcc-table td.product-name {
        grid-column: 2;
    }

    .hmcc-cart-page .hmcc-table td.product-price,.hmcc-cart-page .hmcc-table td.product-quantity,.hmcc-cart-page .hmcc-table td.product-subtotal {
        grid-column: 2;
    }

    .hmcc-cart-page .hmcc-table td.product-subtotal:before {
        display: inline!important;
        content: attr(data-title) ': ';
        float: none;
        font-weight: 400;
    }

    .hmcc-cart-page .hmcc-table td.actions {
        padding: 20px 0;
    }

    .hmcc-cart-page .coupon {
        float: none!important;
        margin-bottom: 12px;
    }

    .hmcc-cart-page .coupon input {
        flex: 1;
    }

    .hmcc-cart-page .hmcc-update-cart {
        width: 100%;
    }

    .hmcc-drawer-header {
        padding: 20px;
    }

    .hmcc-mini-items {
        padding: 0 20px;
    }

}

@media(prefers-reduced-motion:reduce) {
    .hmcc-drawer[open],.hmcc-drawer[open].is-closing,.hmcc-drawer::backdrop {
        animation: none!important;
    }

}

/* Fixed Wishlist header geometry; defeat theme/Elementor button and image sizing. */
button.hmcc-cart-icon {
    --hmcc-icon-size: 17px;
    box-sizing: border-box!important;
    width: var(--hmcc-icon-size)!important;
    height: var(--hmcc-icon-size)!important;
    min-width: var(--hmcc-icon-size)!important;
    min-height: var(--hmcc-icon-size)!important;
    max-width: var(--hmcc-icon-size)!important;
    max-height: var(--hmcc-icon-size)!important;
    flex: 0 0 var(--hmcc-icon-size)!important;
    display: inline-flex!important;
    position: relative!important;
    border-radius: 0!important;
    appearance: none;
    -webkit-appearance: none;
    overflow: visible!important;
    vertical-align: middle!important;
}

button.hmcc-cart-icon>img.hmcc-cart-icon-image {
    display: block!important;
    position: static!important;
    inset: auto!important;
    width: var(--hmcc-icon-size)!important;
    height: var(--hmcc-icon-size)!important;
    min-width: 0!important;
    min-height: 0!important;
    max-width: var(--hmcc-icon-size)!important;
    max-height: var(--hmcc-icon-size)!important;
    flex: none!important;
    margin: 0!important;
    padding: 0!important;
    object-fit: contain!important;
    border: 0!important;
    box-shadow: none!important;
}

@media(min-width:1025px) {
    button.hmcc-cart-icon {
        --hmcc-icon-size: 20px;
    }

}

.hmcc-errors {
    border: 1px solid #e5cccc!important;
    border-left: 3px solid #963f3f!important;
    border-radius: 5px!important;
    background: #fff8f8!important;
    color: #782b2b!important;
    padding: 14px 18px!important;
    list-style: none!important;
    font-size: 13px;
    line-height: 1.6;
}

.hmcc-errors::before {
    display: none!important;
}

.hmcc-errors li {
    margin: 0!important;
    padding: 0!important;
}

/* Mini cart v0.4: sticky header, four-column lines and a separate footer. */
.hmcc-drawer .hmcc-drawer-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: var(--hmcc-paper);
}

.hmcc-drawer .hmcc-drawer-header h2 {
    margin: 0;
    text-align: left;
    font-size: 20px;
    flex: 1;
}

.hmcc-drawer .hmcc-close {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    line-height: 1;
    margin: 0 -6px 0 0;
}

.hmcc-drawer .hmcc-mini-items {
    padding: 0 20px;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-item {
    display: grid;
    grid-template-columns: 18px 72px minmax(0,1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 20px 0;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-item-check {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 3px;
    margin: 0;
}

:is(.hmcc-drawer,.hmcc-cart-surface) input[type=checkbox] {
    appearance: auto;
    -webkit-appearance: checkbox;
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin: 0;
    accent-color: #24221f;
    cursor: pointer;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-item-image {
    display: block;
    min-width: 0;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-item-image img {
    display: block;
    width: 72px!important;
    height: 100px!important;
    max-width: 100%;
    object-fit: cover;
    border-radius: 0;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-item-details {
    min-width: 0;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-item-name {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-variant-quantity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-item-variant {
    font-size: 11px;
    color: var(--hmcc-muted);
    overflow-wrap: anywhere;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-quantity-box {
    display: inline-flex;
    align-items: center;
    height: 28px;
    border: 1px solid var(--hmcc-line);
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    min-width: 0;
    height: 26px;
    border: 0!important;
    border-radius: 0;
    background: transparent!important;
    color: var(--hmcc-ink)!important;
    padding: 0!important;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-step:disabled {
    opacity: .35;
    cursor: default;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-quantity-box .hmcc-qty {
    appearance: textfield;
    -moz-appearance: textfield;
    display: block;
    box-sizing: border-box;
    width: 30px!important;
    min-width: 0;
    height: 26px;
    margin: 0!important;
    padding: 0!important;
    border: 0!important;
    border-radius: 0!important;
    text-align: center;
    font-size: 12px;
    box-shadow: none;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-qty::-webkit-inner-spin-button,:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-item-price {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: 14px;
    line-height: 1.6;
    margin: 8px 0 0;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-item-price del {
    color: var(--hmcc-muted);
    font-size: 12px;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-item-price ins {
    background: none;
    color: var(--hmcc-ink);
    text-decoration: none;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-remove {
    align-self: start;
    white-space: nowrap;
    font-size: 10px!important;
    line-height: 1.5;
    margin: 0;
    padding: 2px 0!important;
}

.hmcc-drawer .hmcc-mini-footer {
    padding: 20px;
    background: var(--hmcc-paper);
    border-top: 1px solid var(--hmcc-line);
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-free-shipping {
    font-size: 12px;
    line-height: 1.6;
    margin: 0 0 12px;
    color: #3b6348;
}

.hmcc-drawer .hmcc-note {
    font-size: 11px;
    line-height: 1.7;
    margin: 0 0 18px;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-select-all-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 18px;
    cursor: pointer;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-checkout-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(110px,1fr);
    align-items: center;
    gap: 16px;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-subtotal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 12px;
    overflow-wrap: anywhere;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-subtotal strong {
    font-weight: 600;
    font-size: 15px;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-checkout-selected {
    margin: 0;
    cursor: pointer;
    width: 100%;
    line-height: 1.5;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-checkout-selected:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.hmcc-drawer .hmcc-view-cart {
    display: block;
    width: fit-content;
    margin: 10px auto 0;
    text-align: center;
    text-decoration: underline!important;
    text-underline-offset: 4px;
    font-size: 12px;
    color: var(--hmcc-ink);
}

.hmcc-drawer[aria-busy=true] .hmcc-mini-content {
    pointer-events: none;
}

@media(max-width:360px) {
    .hmcc-drawer .hmcc-mini-items {
        padding: 0 12px;
    }

    : is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-item {
        grid-template-columns: 16px 58px minmax(0,1fr) auto;
        gap: 7px;
    }

    : is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-item-image img {
        width: 58px!important;
        height: 84px!important;
    }

    : is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-item-name {
        font-size: 12px;
    }

    .hmcc-drawer .hmcc-mini-footer {
        padding: 18px 12px;
    }

}

/* v0.4.1: content-height thumbnail and a full-width checkout action. */
:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-item {
    align-items: stretch;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-item-check {
    align-self: center;
    padding: 0;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-item-image {
    position: relative;
    align-self: stretch;
    height: auto;
    min-height: 0;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-item-image img {
    position: absolute;
    inset: 0;
    width: 100%!important;
    height: 100%!important;
    max-height: none;
    object-fit: cover;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-item-details {
    display: flex;
    flex-direction: column;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-variant-quantity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 0px 0;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-item-price {
    margin: 0;
    line-height: 1.5;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-checkout-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-subtotal {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    text-align: left;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-subtotal strong {
    text-align: right;
    margin-left: auto;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-checkout-selected {
    width: 100%;
    text-transform: uppercase;
    color: #fff!important;
    background: #000!important;
    border: 0!important;
    box-shadow: none!important;
    opacity: 1;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-checkout-selected:disabled {
    color: #fff!important;
    background: #555!important;
    border: 0!important;
    opacity: 1;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-free-shipping[hidden] {
    display: none!important;
}

/* v0.4.2: fixed panel chrome; only the product list scrolls. */
.hmcc-drawer {
    overflow: hidden;
    box-sizing: border-box;
}

.hmcc-drawer .hmcc-drawer-header {
    position: relative;
    flex: 0 0 auto;
}

.hmcc-drawer .hmcc-status {
    flex: 0 0 auto;
    max-height: 20dvh;
    overflow: auto;
}

.hmcc-drawer .hmcc-mini-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hmcc-drawer .hmcc-mini-items {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.hmcc-drawer .hmcc-mini-footer {
    flex: 0 0 auto;
    margin-top: auto;
    padding-bottom: max(20px,env(safe-area-inset-bottom));
    background: var(--hmcc-paper);
    max-height: 65dvh;
    overflow-y: auto;
}

.hmcc-drawer .hmcc-empty {
    overflow-y: auto;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-selected-count {
    position: relative;
    top: -.35em;
    font-size: .7em;
    line-height: 0;
    vertical-align: baseline;
    font-weight: 600;
    margin-left: 2px;
}

:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-selected-count[hidden] {
    display: none!important;
}

@media(max-width:1024px) {
    .hmcc-drawer {
        inset: 0!important;
        width: 100%!important;
        max-width: none!important;
        height: 100vh!important;
        height: 100dvh!important;
        max-height: none!important;
        margin: 0!important;
        border-radius: 0!important;
    }

    .hmcc-drawer .hmcc-drawer-header {
        padding-top: max(16px,env(safe-area-inset-top));
    }

}

/* Custom appearance: typography, prices, and remove action. */
.hmcc-drawer-header {
    font-size: 16px !important;
    font-weight: 400 !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.hmcc-remove {
    padding: 0px !important;
    color: #000 !important;
    border: 0 !important;
    font-size: 14px !important;
}

.hmcc-item-name {
    font-size: 16px !important;
    padding: 0 !important;
}

.hmcc-item-variant {
    font-size: 14px !important;
}

.hmcc-item-price {
    padding-top: 7px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
}

.hmcc-cart-table-head,.hmcc-unit-price,.hmcc-trash,.hmcc-cart-summary-title {
    display: none;
}

.hmcc-remove-text
{
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 2px;
    color: #000 !important;
}



/* Shared member address book: one saved address per row. No extra asset request. */
.hmab .hmab-list{grid-template-columns:minmax(0,1fr)}
.hmab .hmab-list > .hmab-card{min-width:0}

/* v0.6.16: match checkout quantity controls in cart and drawer. */
:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-quantity-box {
    display: inline-flex; align-items: center; height: auto; max-width: 100%;
    gap: 0 3px; border: 0; border-radius: 0; overflow: visible;
    background: transparent; font-size: 14px; line-height: 1.5;
}
:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-quantity-box .hmcc-step {
    display: flex; justify-content: center; align-items: center;
    flex: 0 0 28px; width: 28px; height: 32px; min-height: 32px;
    padding: 0 !important; border: 1px solid #000 !important;
    border-radius: 0; background: #000 !important; color: #fff !important;
    font: inherit; cursor: pointer; box-sizing: border-box;
}
:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-quantity-box input.hmcc-qty[type=number] {
    width: 36px !important; min-width: 0; height: 32px; min-height: 32px;
    padding: 0 !important; margin: 0 !important;
    border: 1px solid #b4b4b4 !important; border-radius: 0 !important;
    background: transparent; color: inherit; text-align: center; font: inherit;
    appearance: textfield; -moz-appearance: textfield; box-sizing: border-box;
}
:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-quantity-box .hmcc-step:disabled {
    opacity: .35; cursor: default;
}


@media (min-width: 1025px) {
    .hmcc-cart-surface .hmcc-variant-quantity {
        align-self: stretch;
    }

    .hmcc-cart-surface .hmcc-quantity-box {
        margin-top: auto;
    }
}

.hmcc-unit-price
{
    margin-top: 10px !important;
}




/* v0.6.17: proportional thumbnails and bottom-aligned stacked prices. */
:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-item {
    grid-template-columns: 18px var(--hmcc-image-width,72px) minmax(0,1fr) auto;
}
:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-item-image {
    width: var(--hmcc-image-width,72px); height: var(--hmcc-image-height,90px);
    min-height: 0; align-self: start; aspect-ratio: 4 / 5;
}
:is(.hmcc-drawer,.hmcc-cart-surface) .hmcc-item-image img {
    width: 100% !important; height: 100% !important; object-fit: cover;
}
.hmcc-unit-price > del,.hmcc-unit-price > ins { display: block; }
.hmcc-unit-price > del { color: #888; font-size: 12px; }
.hmcc-unit-price > ins { color: #000; text-decoration: none; background: none; }
.hmcc-drawer .hmcc-item-details { min-height: var(--hmcc-image-height,90px); }
.hmcc-drawer .hmcc-item-price {
    flex-direction: column !important; align-items: flex-start !important;
    margin-top: auto; gap: 0;
}
@media (max-width: 1024px) {
    .hmcc-cart-surface .hmcc-item-details { min-height: var(--hmcc-image-height,90px); }
    .hmcc-cart-surface .hmcc-item-price {
        flex-direction: column !important; align-items: flex-start !important;
        margin-top: auto; gap: 0;
    }
}
