.scroll-down {
    opacity: 1;
    -webkit-transition: all 0.5s ease-in 3s;
    transition: all 0.5s ease-in 3s;
}

.scroll-down {
    /* position: absolute; */
    bottom: 25px;
    left: 45%;
    margin-left: -16px;
    z-index: 2;
    -webkit-animation: bounce 2s infinite 2s;
    animation: bounce 2s infinite 2s;
    -webkit-transition: all 0.2s ease-in;
    transition: all 0.2s ease-in;
    transform: scale(1);
}

@keyframes bounce {
    0%,
    100%,
    20%,
    50%,
    80% {
        -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
        transform: translateY(0);
    }
    40% {
        -webkit-transform: translateY(-10px);
        -ms-transform: translateY(-10px);
        transform: translateY(-10px);
    }
    60% {
        -webkit-transform: translateY(-5px);
        -ms-transform: translateY(-5px);
        transform: translateY(-5px);
    }
}

.item-custom {
    min-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.item-custom .footer-btn {
    display: block;
    margin-top: auto;
}

.body-qr {
    display: flex;
    flex-wrap: wrap;
}
.body-qr .item-left {
    flex: 40%;
    background: linear-gradient(134deg, #04a468 0%, #0d788c 100%);
    border-radius: 10px;
    padding: 15px;
}
.body-qr .item-left p {
    font-size: 15px;
    color: #fff;
    font-weight: 500;
    border-bottom: 1px dotted #fff;
}
.body-qr .item-left p span {
    font-weight: 700;
    font-size: 17px;
    margin-left: 10px;
}
.body-qr .item-left p:first-child span {
    margin-left: unset;
}
.body-qr .item-left p:last-child {
    border-bottom: unset;
}
.body-qr .item-left p a {
    color: #ffbc0e;
    font-weight: 700;
}
.body-qr .item-left h3 {
    font-size: 20px;
    color: #fff;
    text-align: center;
    font-weight: 700;
}
.body-qr .item-right {
    flex: 60%;
    padding: 30px;
}
.body-qr .item-right h3 {
    font-size: 20px;
    color: #111036;
    text-align: center;
    font-weight: 700;
}
.body-qr .item-right p {
    font-size: 15px;
    margin: 10px 0 5px 0;
    color: #04a468;
    font-weight: 500;
}
.body-qr .item-right p span {
    font-weight: 700;
    font-size: 17px;
}
.body-qr .item-right .img-item img {
    border-radius: unset;
    position: relative;
    width: 100%;
    background-color: unset;
}
@media (max-width: 992px) {
    .body-qr .item-left,
    .body-qr .item-right {
        flex: 100%;
        padding: 0;
    }
    .body-qr .item-left p,
    .body-qr .item-right p {
        font-size: 12px;
    }
    .body-qr .item-left p span,
    .body-qr .item-right p span {
        font-size: 14px;
    }
    .body-qr .item-left p.content-sub,
    .body-qr .item-right p.content-sub {
        font-size: 10px;
    }
    .body-qr .item-left h3,
    .body-qr .item-right h3 {
        font-size: 17px;
    }
    .body-qr .item-left .img-item,
    .body-qr .item-right .img-item {
        text-align: center;
    }
    .body-qr .item-left .img-item img,
    .body-qr .item-right .img-item img {
        width: 60%;
    }
    .body-qr .item-right {
        padding-top: 20px;
    }
    .body-qr .item-left {
        padding: 5px;
    }
    .body-qr .item-left p {
        padding: 5px;
    }
}

.selectpackage {
    cursor: pointer;
    border: 1px solid black;
    background: #fff;
    margin-bottom: 30px;
    transition: 0.5s;
    border-radius: 0.55rem;
    position: relative;
    width: 100%;
}

.item.item-circle {
    border-radius: 50%;
    border: 2px solid black;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    transition: opacity 0.25s ease-out, -webkit-transform 0.25s ease-out;
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
    transition: opacity 0.25s ease-out, transform 0.25s ease-out,
        -webkit-transform 0.25s ease-out;
}

.selectpackage:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
}

.custom-control-success .custom-control-label::before {
    background-color: #bd4928;
}

/* ============================================================
   Product list redesign (display_product = 'list')
   ============================================================ */
.pl-section{ margin-bottom:22px; border-radius:.5rem; overflow:hidden; box-shadow:0 1px 6px rgba(16,24,40,.08); background:#fff; }
.pl-section__head{
  display:grid; grid-template-columns:40px minmax(0,1fr) 88px 124px 165px; gap:20px; align-items:center;
  color:#fff; padding:14px 18px; background:#022954; border-left:4px solid #0665d0;
  grid-template-areas:"ttl ttl stock price act";
}
.pl-section__title{ grid-area:ttl; display:flex; align-items:center; gap:10px; margin:0;
  font-weight:700; letter-spacing:.4px; text-transform:uppercase; font-size:15px; color:#fff; }
.pl-section__title .ic{ font-size:18px; color:#5aa6ff; }
.pl-sec-ic{ width:26px; height:auto; border-radius:3px; }
.pl-h-stock{ grid-area:stock; text-align:left; font-size:11.5px; font-weight:600; letter-spacing:.6px; text-transform:uppercase; opacity:.92; }
.pl-h-price{ grid-area:price; text-align:left; font-size:11.5px; font-weight:600; letter-spacing:.6px; text-transform:uppercase; opacity:.92; }

.pl-row{
  display:grid; grid-template-columns:40px minmax(0,1fr) 88px 124px 165px; gap:20px; align-items:center;
  grid-template-areas:"flag info stock price act";
  background:#fff; padding:13px 18px; border-bottom:1px solid #e4e7ec; min-height:62px;
}
.pl-row:last-child{ border-bottom:0; }
.pl-row:nth-of-type(even){ background:#fafbfc; }
.pl-row:hover{ background:#eef4fc; }
.pl-row.group-start{ box-shadow:inset 0 2px 0 -1px #cfe0f5; }
.pl-flag{ grid-area:flag; width:28px; height:auto; border-radius:3px; box-shadow:0 0 0 1px rgba(0,0,0,.12); }
.pl-flag-ic{ grid-area:flag; font-size:22px; color:#5b6675; box-shadow:none; }
.pl-info{ grid-area:info; min-width:0; padding-right:24px; }
.pl-name{ font-weight:700; color:#495057; margin:0 0 3px; font-size:16px; }
.pl-cc{ font-size:10.5px; color:#0665d0; font-weight:700; text-transform:uppercase; margin-left:6px; background:#e7f0fb; padding:1px 7px; border-radius:10px; }
.pl-desc{ font-size:12.5px; color:#6c757d; margin:0; line-height:1.5; display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.pl-sep{ color:#c0c6cd; margin:0 6px; font-size:9px; vertical-align:middle; }
.pl-stock{ grid-area:stock; text-align:left; }
.pl-stock b{ color:#495057; font-size:16px; }
.pl-stock.low b{ color:#9a6a12; }
.pl-stock.zero b{ color:#e04f1a; }
.pl-price{ grid-area:price; text-align:left; line-height:1.25; }
.pl-price .pl-from{ font-size:11px; color:#6b7280; }
.pl-price .pl-val{ font-weight:600; color:#e04f1a; font-size:16px; }
.pl-act{ grid-area:act; display:flex; align-items:center; justify-content:flex-end; gap:8px; }
.pl-iconbtn{ width:40px; height:40px; padding:0; display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; }
.pl-buy{ min-width:84px; height:40px; display:inline-flex; align-items:center; justify-content:center; color:#fff; font-weight:700; border:0; border-radius:.25rem; padding:0 14px; letter-spacing:.4px; text-transform:uppercase; font-size:13px; white-space:nowrap; background:#0665d0; }
.pl-buy:hover{ background:#0557b3; color:#fff; }
.pl-buy[disabled]{ background:#c4ccd4; color:#fff; cursor:not-allowed; }
.pl-out{ display:inline-flex; align-items:center; justify-content:center; height:40px; padding:0 12px; border-radius:.25rem; background:#e9ecef; color:#98a0aa; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.3px; white-space:nowrap; }
@media (max-width:767.98px){
  .pl-section__head{ grid-template-columns:1fr; grid-template-areas:"ttl"; }
  .pl-h-stock,.pl-h-price{ display:none; }
  .pl-row{ grid-template-columns:40px auto 1fr auto; grid-template-areas:"flag info info info" "stock stock price act"; row-gap:10px; padding:14px; }
  .pl-stock,.pl-price{ text-align:left; align-self:center; }
  .pl-stock::before{ content:"In stock: "; font-size:11px; color:#6b7280; font-weight:600; }
}

/* ===== Buy modal (js-buy-modal) ===== */
.bm-modal .modal-content{ border:0; border-radius:.5rem; overflow:hidden; }
.bm-modal .bm-close{ position:absolute; right:14px; top:10px; z-index:5; width:30px; height:30px; border-radius:50%; background:#fff; opacity:1; box-shadow:0 1px 5px rgba(0,0,0,.18); display:inline-flex; align-items:center; justify-content:center; font-size:20px; line-height:1; color:#333; border:0; }
.bm-modal .bm-close:hover{ background:#f1f3f5; }
.bm-left{ padding:0; }
.bm-head, .bm-ttl{ font-weight:700; letter-spacing:.5px; padding:14px 22px; border-bottom:1px solid #e4e7ec; color:#022954; font-size:14px; }
.bm-body{ padding:22px; }
.bm-name{ font-weight:700; font-size:19px; color:#495057; margin:0 0 12px; line-height:1.3; }
.bm-meta{ display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; padding-bottom:14px; border-bottom:1px solid #e4e7ec; }
.bm-badge-stock{ background:#0665d0; color:#fff; font-weight:700; letter-spacing:.5px; padding:5px 10px; border-radius:.25rem; font-size:12px; }
.bm-unit-block{ text-align:right; }
.bm-unit-lbl{ display:block; font-size:10px; color:#6b7280; text-transform:uppercase; letter-spacing:.4px; }
.bm-unit{ font-size:22px; font-weight:700; color:#e04f1a; line-height:1.1; }
.bm-feats{ list-style:none; padding:0; margin:16px 0 0; }
.bm-feats li{ padding:5px 0; font-size:13.5px; color:#3a4250; line-height:1.45; }
.bm-feats li i{ color:#46c37b; margin-right:9px; }
.bm-right{ background:#f6f7f9; }
.bm-line{ display:flex; align-items:center; padding:12px 22px; border-bottom:1px solid #edf0f3; }
.bm-line .bm-k{ width:128px; color:#6c757d; font-size:13.5px; }
.bm-line .bm-v{ flex:1; text-align:right; font-weight:500; color:#495057; }
.bm-line .bm-v.bal{ color:#0665d0; }
.bm-line .bm-v.total{ color:#e04f1a; font-size:18px; font-weight:700; }
.bm-stepper{ display:flex; align-items:center; justify-content:flex-end; }
.bm-stepper button{ width:40px; height:40px; border:0; background:#e4e7eb; font-size:20px; line-height:1; color:#495057; }
.bm-stepper button:hover{ background:#d4d9df; }
.bm-stepper button:first-child{ border-radius:.25rem 0 0 .25rem; }
.bm-stepper button:last-child{ border-radius:0 .25rem .25rem 0; }
.bm-stepper input{ width:64px; height:40px; text-align:center; border:0; background:#022954; color:#fff; font-weight:700; -moz-appearance:textfield; }
.bm-stepper input::-webkit-outer-spin-button,.bm-stepper input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.bm-tier{ font-size:12px; color:#6c757d; padding:8px 22px; background:#eef5fd; border-bottom:1px solid #edf0f3; }
.bm-tier b{ color:#e04f1a; }
.bm-tier .on{ background:#fff; border-radius:4px; padding:1px 6px; box-shadow:0 0 0 1px #bcd7f5; color:#0665d0; }
.bm-warn{ display:none; font-size:12.5px; color:#e04f1a; padding:8px 22px; background:#fdecea; }
.bm-pay{ width:100%; min-height:44px; border-radius:.375rem; padding:13px; font-weight:700; letter-spacing:.5px; text-transform:uppercase; background:#022954; color:#fff; border:0; }
.bm-pay:hover:not([disabled]){ background:#04376f; color:#fff; }
.bm-pay[disabled]{ background:#c4ccd4; cursor:not-allowed; }
.bm-pay-wrap{ padding:18px 22px; }

/* ===== Bảng -> thẻ trên mobile (history_buy / donhang) ===== */
@media (max-width:767.98px){
  .pl-table-cards thead{ display:none; }
  .pl-table-cards tbody tr{ display:block; border:1px solid #e4e7ec; border-radius:.375rem; margin-bottom:10px; padding:6px 10px; background:#fff; }
  .pl-table-cards tbody td{ display:flex; justify-content:space-between; align-items:center; gap:12px; border:0!important; text-align:right!important; padding:7px 4px; white-space:normal!important; }
  .pl-table-cards tbody td::before{ content:attr(data-label); font-weight:600; color:#6c757d; text-align:left; flex:0 0 auto; }
  .pl-table-cards tbody td:not([data-label]){ justify-content:center; }
  .pl-table-cards tbody td .text-truncate{ max-width:60vw!important; }
}
