/**
 * HostMafiya - cart page (cart.php?a=view)  -  loaded after hm-store.css and hm-domain.css
 * Everything is scoped to .hm-cart. The light page look is switched on by body.hm-white
 * (added by the viewcart.tpl script), so no other page is affected.
 */

.hm-cart { --c-red: #D90429; --c-gold: #FFD21F; --c-ink: #1a1a1a; }

/* ---- light page: no red background / racks, soft wave at the bottom ------------------ */
body.hm-white { background: #fff; }
body.hm-white::before, body.hm-white::after { display: none; }
body.hm-white section#main-body {
    padding-bottom: 170px;
    background:
        url("../img/hm-cart-wave.svg") center bottom / 100% 170px no-repeat,
        url("../img/hm-cart-pink.svg") 1% calc(100% - 40px) / 240px auto no-repeat,
        linear-gradient(180deg, #ffffff 0%, #fff6f7 100%);
}
body.hm-white section#footer { border-top: 0; }
.hm-cart.hm-store-shell { padding: 0; background: transparent; border: 0; box-shadow: none; }
.hm-cart #order-standard_cart { color: #333; }

/* sidebar: "View Cart" is the active item (dark red) */
.hm-cart .hm-store-side .panel-sidebar { box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.hm-cart .hm-store-side .panel-sidebar:nth-of-type(2) .list-group-item.active,
.hm-cart .hm-store-side .panel-sidebar:nth-of-type(2) .list-group-item.active:hover { color: #fff; background: #8B0015; }

/* ---- breadcrumb + title ---------------------------------------------------------------- */
.hm-cart #order-standard_cart .header-lined { margin: 0; padding: 0; border: 0; }
.hm-cart #order-standard_cart .header-lined h1 {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 0 18px;
    color: var(--c-ink);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 800;
    border: 0;
}
.hm-cart #order-standard_cart .header-lined h1 .hm-red { color: var(--c-red); }
.hm-cart #order-standard_cart .header-lined h1::after { content: ""; flex: 1 1 auto; height: 2px; background: var(--c-red); opacity: .85; }

/* ---- steps ------------------------------------------------------------------------------- */
.hm-steps { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 26px; padding: 0; list-style: none; }
.hm-steps li { display: flex; align-items: center; gap: 12px; margin: 0; color: #8a8a92; font-size: 17px; font-weight: 600; white-space: nowrap; }
.hm-steps li.active { color: var(--c-ink); }
.hm-steps li:not(.hm-step-line):not(:last-child) .hm-step-tx { text-decoration: underline; text-decoration-color: rgba(217, 4, 41, .55); text-underline-offset: 4px; }
.hm-step-ic {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    color: #8a8a92;
    background: #e8e8ec;
    border: 3px solid #f4f4f6;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
}
.hm-step-ic .hm-ic { width: 24px; height: 24px; }
.hm-steps li.active .hm-step-ic { color: #fff; background: linear-gradient(180deg, #e8072d, #a50020); border-color: #ffd9de; }
.hm-steps .hm-step-line { flex: 1 1 40px; max-width: 130px; height: 3px; background: #dcdce1; border-radius: 3px; }

/* ---- layout: items + promo on the left, order summary on the right ------------------------------- */
.hm-cart .hm-cart-row { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; margin: 0; }
.hm-cart .hm-cart-row::before, .hm-cart .hm-cart-row::after { display: none; }
.hm-cart #order-standard_cart .secondary-cart-body,
.hm-cart #order-standard_cart .secondary-cart-sidebar { float: none; width: auto; padding: 0; margin: 0; }

/* ---- alerts + cart items -------------------------------------------------------------------------- */
.hm-cart #order-standard_cart .alert { border-radius: 10px; }
.hm-cart #order-standard_cart .view-cart-items-header {
    padding: 12px 18px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(180deg, #e8072d, #b00022);
    border-radius: 12px 12px 0 0;
}
.hm-cart #order-standard_cart .view-cart-items {
    margin: 0 0 22px;
    background: #fff;
    border: 1px solid #efd9dc;
    border-top: 0;
    border-bottom: 2px solid var(--c-red);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
    overflow: hidden;
}
.hm-cart #order-standard_cart .view-cart-items .item { padding: 16px 18px; font-size: 14px; background: #fff; border-bottom: 1px solid #f4e8ea; }
.hm-cart #order-standard_cart .view-cart-items .item:nth-child(even) { background: #fffafa; }
.hm-cart #order-standard_cart .view-cart-items .item:last-child { border-bottom: 0; }
.hm-cart #order-standard_cart .view-cart-items .item-title { color: var(--c-ink); font-size: 17px; font-weight: 700; }
.hm-cart #order-standard_cart .view-cart-items .item-group { color: #777; font-size: 13px; }
.hm-cart #order-standard_cart .view-cart-items .item-domain { color: var(--c-red); font-weight: 600; }
.hm-cart #order-standard_cart .view-cart-items .item-price span { color: var(--c-ink); font-size: 18px; font-weight: 800; }
.hm-cart #order-standard_cart .view-cart-items .item-price .cycle { color: #777; font-size: 12px; font-weight: 400; }
.hm-cart #order-standard_cart .view-cart-items a.btn-link { color: var(--c-red); }
.hm-cart #order-standard_cart .btn-remove-from-cart { color: #777; }
.hm-cart #order-standard_cart .btn-remove-from-cart:hover { color: var(--c-red); }
.hm-cart #order-standard_cart .view-cart-empty {
    margin: 0 0 22px;
    padding: 34px 16px;
    color: #777;
    font-size: 16px;
    text-align: center;
    background: #fff;
    border: 1px dashed #ebc9ce;
    border-radius: 12px;
}
.hm-cart #order-standard_cart .view-cart-items-header + .view-cart-items .view-cart-empty { border-radius: 0 0 12px 12px; border-top: 0; margin: 0; }
.hm-cart #order-standard_cart .empty-cart { margin: -12px 4px 14px 0; }
.hm-cart #order-standard_cart .empty-cart .btn { color: var(--c-red); background: transparent; border: 0; }

/* ---- promo banner --------------------------------------------------------------------------------------- */
.hm-promo-banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 126px;
    margin: 0 0 18px;
    padding: 18px 28px 18px 150px;
    overflow: visible;
    color: #fff;
    background: linear-gradient(105deg, #a50018 0%, #d90429 55%, #e5122f 100%);
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(217, 4, 41, .25);
}
.hm-promo-banner::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 170px;
    background: linear-gradient(115deg, transparent 0 44%, rgba(255, 210, 31, .85) 44% 54%, transparent 54% 62%, rgba(255, 210, 31, .5) 62% 66%, transparent 66%);
    border-radius: 0 14px 14px 0;
    pointer-events: none;
}
.hm-promo-gift { position: absolute; left: 22px; bottom: -8px; width: 118px; height: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .3)); }
.hm-promo-copy { position: relative; z-index: 1; }
.hm-promo-copy h3 { margin: 0 0 6px; color: #fff; font-size: 28px; font-weight: 800; }
.hm-promo-copy p { margin: 0; color: #fff; font-size: 15px; }

/* ---- promo / taxes tabs ------------------------------------------------------------------------------------ */
.hm-cart #order-standard_cart .view-cart-tabs { margin: 0 0 22px; }
.hm-cart #order-standard_cart .view-cart-tabs .nav-tabs {
    display: flex;
    padding: 0;
    margin: 0;
    font-size: 17px;
    background: #f1f1f4;
    border: 1px solid #ececf0;
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
}
.hm-cart #order-standard_cart .view-cart-tabs .nav-tabs > li { float: none; flex: 1 1 0; margin: 0; }
.hm-cart #order-standard_cart .view-cart-tabs .nav-tabs > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 58px;
    margin: 0;
    color: var(--c-ink);
    font-weight: 700;
    background: transparent;
    border: 0;
    border-radius: 0;
}
.hm-cart #order-standard_cart .view-cart-tabs .nav-tabs > li > a::before {
    content: "";
    width: 20px; height: 20px;
    background-color: currentColor;
    -webkit-mask: var(--hm-i-calculator) center / contain no-repeat;
            mask: var(--hm-i-calculator) center / contain no-repeat;
}
.hm-cart #order-standard_cart .view-cart-tabs .nav-tabs > li:first-child > a::before { -webkit-mask-image: var(--hm-i-tag); mask-image: var(--hm-i-tag); }
.hm-cart #order-standard_cart .view-cart-tabs .nav-tabs > li.active > a,
.hm-cart #order-standard_cart .view-cart-tabs .nav-tabs > li > a.active,
.hm-cart #order-standard_cart .view-cart-tabs .nav-tabs a[aria-selected=true],
.hm-cart #order-standard_cart .view-cart-tabs .nav-tabs a[aria-expanded=true] {
    color: #fff;
    background: linear-gradient(180deg, #e8072d, #b00022);
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 100%, 0 100%);
}
.hm-cart #order-standard_cart .view-cart-tabs .nav-tabs > li:only-child > a { clip-path: none; }
.hm-cart #order-standard_cart .view-cart-tabs .tab-content {
    padding: 22px;
    background: #fff;
    border: 1px solid #efe3e5;
    border-top: 3px solid var(--c-red);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}
.hm-cart #order-standard_cart .view-cart-tabs .promo .form-group { margin-bottom: 14px; }
.hm-cart #order-standard_cart .view-cart-tabs .field-icon i { display: none; }
.hm-cart #order-standard_cart .view-cart-tabs .field-icon::before {
    content: "";
    position: absolute;
    top: 50%; left: 20px;
    width: 22px; height: 22px;
    margin-top: -11px;
    background-color: #1a1a1a;
    -webkit-mask: var(--hm-i-tag) center / contain no-repeat;
            mask: var(--hm-i-tag) center / contain no-repeat;
}
.hm-cart #order-standard_cart .view-cart-tabs .form-control,
.hm-cart #order-standard_cart .view-cart-tabs .field {
    height: 50px;
    color: #222;
    font-size: 16px;
    background-color: #fff;
    border: 1px solid #e0e0e6;
    border-radius: 8px;
    box-shadow: none;
}
.hm-cart #order-standard_cart .view-cart-tabs .prepend-icon .field { padding-left: 58px; }
.hm-cart #order-standard_cart .view-cart-tabs .form-control:focus { border-color: var(--c-red); box-shadow: 0 0 0 3px rgba(217, 4, 41, .15); }
.hm-cart #order-standard_cart .view-cart-tabs .control-label { color: var(--c-ink); font-weight: 700; }
.hm-cart #order-standard_cart .view-cart-tabs .btn-default {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    background: linear-gradient(180deg, #e8072d, #a50020);
    border: 0;
    border-radius: 8px;
    box-shadow: none;
}
.hm-cart #order-standard_cart .view-cart-tabs .btn-default:hover { filter: brightness(1.1); }
.hm-cart #order-standard_cart .view-cart-tabs .promo .btn-block::before {
    content: "";
    width: 22px; height: 22px;
    background-color: #fff;
    -webkit-mask: var(--hm-i-check-circle) center / contain no-repeat;
            mask: var(--hm-i-check-circle) center / contain no-repeat;
}
.hm-cart #order-standard_cart .view-cart-promotion-code { color: var(--c-ink); font-weight: 600; background: #fff8f8; border: 1px dashed var(--c-red); border-radius: 8px; }

/* ---- order summary ------------------------------------------------------------------------------------------- */
.hm-cart #order-standard_cart .order-summary {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: #f6f6f8;
    border: 1px solid #f0d3d8;
    border-bottom: 1px solid #f0d3d8;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(217, 4, 41, .14);
}
.hm-cart #order-standard_cart .order-summary h2 {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    margin: 0;
    padding: 16px 22px;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    text-align: left;
    background: linear-gradient(110deg, #d90429 0%, #8B0015 100%);
}
.hm-cart #order-standard_cart .order-summary h2 .hm-ic { width: 26px; height: 26px; }
.hm-cart #order-standard_cart .order-summary h2::after {
    content: "";
    position: absolute;
    top: -2px; right: 6px;
    width: 92px; height: 70px;
    background: url("../img/hm-cart-servers.svg") right top / contain no-repeat;
    pointer-events: none;
}
.hm-cart #order-standard_cart .order-summary .loader { position: absolute; top: 16px; right: 16px; height: auto; padding: 0; z-index: 2; color: #fff; }
.hm-cart #order-standard_cart .summary-container { padding: 6px 22px 20px; font-size: 15px; background: transparent; border-radius: 0; }
.hm-cart #order-standard_cart .order-summary .subtotal,
.hm-cart #order-standard_cart .order-summary .bordered-totals > div { padding: 12px 0; color: var(--c-ink); font-size: 17px; border-bottom: 1px solid #e1e1e6; }
.hm-cart #order-standard_cart .order-summary .bordered-totals { margin: 0; padding: 0; border: 0; }
.hm-cart #order-standard_cart .order-summary .recurring-totals { margin: 12px 0 0; color: var(--c-ink); font-size: 17px; font-weight: 700; }
.hm-cart #order-standard_cart .order-summary .recurring-charges { color: #666; font-size: 14px; font-style: normal; font-weight: 600; }
.hm-cart #order-standard_cart .order-summary .total-due-today-padded { margin: 6px 0 18px; }
.hm-cart #order-standard_cart .order-summary .total-due-today span { color: var(--c-ink); font-size: 17px; font-weight: 500; }
.hm-cart #order-standard_cart .order-summary .total-due-today .amt { color: var(--c-red); font-size: 40px; font-weight: 800; line-height: 1.1; }
.hm-cart #order-standard_cart .order-summary .text-right { text-align: center; }
.hm-cart #order-standard_cart .btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 58px;
    padding: 0 20px;
    color: #1a1a1a;
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(180deg, #ffd21f, #f0b400);
    border: 0;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(240, 180, 0, .35);
    transition: filter .2s, transform .2s;
}
.hm-cart #order-standard_cart .btn-checkout::before {
    content: "";
    width: 24px; height: 24px;
    background-color: currentColor;
    -webkit-mask: var(--hm-i-shopping-cart) center / contain no-repeat;
            mask: var(--hm-i-shopping-cart) center / contain no-repeat;
}
.hm-cart #order-standard_cart .btn-checkout:hover { color: #1a1a1a; filter: brightness(1.05); transform: translateY(-1px); }
.hm-cart #order-standard_cart .btn-checkout.disabled { opacity: .55; box-shadow: none; }
.hm-cart #order-standard_cart .order-summary .btn-continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--c-ink);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}
.hm-cart #order-standard_cart .order-summary .btn-continue-shopping::before {
    content: "";
    width: 16px; height: 16px;
    background-color: currentColor;
    -webkit-mask: var(--hm-i-lock) center / contain no-repeat;
            mask: var(--hm-i-lock) center / contain no-repeat;
}

/* ---- responsive ------------------------------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .hm-cart .hm-cart-row { grid-template-columns: minmax(0, 1fr); }
    .hm-cart #order-standard_cart .secondary-cart-sidebar { margin: 0 auto; width: 100%; max-width: 520px; }
    body.hm-white section#main-body { background-size: 100% 130px, 150px auto, auto; padding-bottom: 140px; }
}
@media (max-width: 767px) {
    .hm-step-ic { width: 46px; height: 46px; }
    .hm-step-ic .hm-ic { width: 20px; height: 20px; }
    .hm-steps { gap: 8px; }
    .hm-steps li { gap: 8px; font-size: 13px; }
    .hm-steps li:not(.active) .hm-step-tx { display: none; }
    .hm-steps .hm-step-line { flex: 1 1 24px; }
    .hm-promo-banner { padding: 16px 16px 16px 112px; min-height: 108px; }
    .hm-promo-gift { left: 12px; width: 88px; }
    .hm-promo-copy h3 { font-size: 21px; }
    .hm-promo-copy p { font-size: 13.5px; }
    .hm-promo-banner::after { width: 70px; opacity: .8; }
    .hm-cart #order-standard_cart .view-cart-tabs .nav-tabs { font-size: 15px; }
    .hm-cart #order-standard_cart .view-cart-tabs .nav-tabs > li > a { gap: 6px; height: 52px; }
    .hm-cart #order-standard_cart .view-cart-tabs .tab-content { padding: 16px; }
}

/* empty cart: no red table header, just a clean message card */
.hm-cart #order-standard_cart form:has(.view-cart-empty) .view-cart-items-header { display: none; }
.hm-cart #order-standard_cart .view-cart-items:has(.view-cart-empty) { margin: 0 0 18px; background: transparent; border: 0; box-shadow: none; overflow: visible; }
.hm-cart #order-standard_cart .view-cart-items:has(.view-cart-empty) .view-cart-empty { margin: 0; border: 1px dashed #ebc9ce; border-radius: 12px; }
