/** Shopify CDN: Minification failed

Line 269:12 Expected ":"

**/
.drawer {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  background-color: rgba(var(--color-foreground), 0.5);
  transition: visibility var(--duration-default) ease;
}

.drawer.active {
  visibility: visible;
}

.drawer__inner {
  height: 100%;
  width: 598px;
  max-width: calc(100vw - 3rem);
  padding: 24px;
  border: 0.1rem solid rgba(var(--color-foreground), 0.2);
  border-right: 0;
  background-color: rgb(var(--color-background));
  overflow-y: auto;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--duration-default) ease;
  position: relative;
  display: flex;
    @media screen and (max-width: 627px){
        width: auto;
        max-width: 100%;
    }
}

@media screen and (min-width: 750px) {
  .drawer__inner {
    width: 100%;
    max-width: 100%;
    padding: 32px;
    box-sizing: border-box;
  }
}

.drawer__inner-empty {
  height: 100%;
  padding: 0 1.5rem;
  background-color: rgb(var(--color-background));
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cart-drawer__warnings {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
}

cart-drawer.is-empty .drawer__inner {
  display: grid;
  grid-template-rows: 1fr;
  align-items: center;
  padding: 0;
}

cart-drawer.is-empty .drawer__header {
  display: none;
}

cart-drawer:not(.is-empty) .cart-drawer__warnings,
cart-drawer:not(.is-empty) .cart-drawer__collection {
  display: none;
}

.cart-drawer__warnings--has-collection .cart__login-title {
  margin-top: 2.5rem;
}

.drawer.active .drawer__inner {
  transform: translateX(0);
}

.drawer__header {
  position: relative;
  background-color: rgb(var(--color-background));
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer__heading {
    height: 28px;
    margin-bottom: 0;
    font-family: var(--font-heading-family);
    font-size: 20px;
    font-weight: 600;
}

.drawer__close {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-block;
  padding: 0;
  min-width: 2.2rem;
  min-height: 4.4rem;
  color: rgba(29, 29, 29, 1);
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.cart-drawer__warnings .drawer__close {
  right: 5px;
}

.drawer__close svg {
  width: 19.2px;
  height: 19.2px;
}

.drawer__contents {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}


cart-drawer-items.is-empty + .drawer__footer {
  display: none;
}

.drawer__footer > details {
  margin-top: -1.5rem;
  border-bottom: 0.1rem solid rgba(var(--color-foreground), 0.2);
}

.drawer__footer > details[open] {
  padding-bottom: 1.5rem;
}

.drawer__footer summary {
  display: flex;
  position: relative;
  line-height: 1;
  padding: 1.5rem 0;
}

.drawer__footer > details + .cart-drawer__footer {
  padding-top: 1.5rem;
}

cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
}

.cart-drawer__overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.cart-drawer__overlay:empty {
  display: block;
}

.cart-drawer__form {
  flex-grow: 1;
  display: block;
  flex-wrap: wrap;
  @media screen and (min-width: 545px){
    display: flex;
    }
}

.cart-drawer__collection {
  margin: 0 2.5rem 1.5rem;
}

.cart-drawer .drawer__cart-items-wrapper {
  flex-grow: 1;
}

.cart-drawer .cart-items,
.cart-drawer tbody {
  display: block;
  width: 100%;
}

.cart-drawer thead {
  display: inline-table;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 2;
  background-color: rgb(var(--color-background));
}

cart-drawer-items {
  flex: 1;
}

@media screen and (max-height: 650px) {
  cart-drawer-items {
    overflow: visible;
  }

  .drawer__inner {
    overflow: scroll;
  }
}

.cart-drawer .cart-item {
  display: grid;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(231, 231, 231, 1);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  position: relative;
  grid-template-columns: fit-content(100%) auto;
}

td.cart-item__details {
    padding: 0 !important;
}

.cart-drawer .cart-items tbody tr:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.cart-drawer .drawer__footer {
  border-top: none;
  margin-top: auto;
}
.cart-drawer .cart-item__media {
  grid-row: 1 / 3;
}

.cart-drawer .cart-items thead {
  margin-bottom: 24px;
}

.cart-drawer .cart-items thead th:first-child,
.cart-drawer .cart-items thead th:last-child {
  width: 0;
  padding: 0;
}

.cart-drawer .cart-items thead th:nth-child(2) {
  width: 50%;
  padding-le%ft: 0;
}

.cart-drawer .cart-items thead tr {
  display: table-row;
  margin-bottom: 0;
}

.cart-drawer .cart-items th {
  border-bottom: 0.1rem solid rgba(var(--color-foreground), 0.08);
  padding-bottom: 8px;
}

.cart-drawer .cart-item:last-child {
  margin-bottom: 1.5rem;
}

.cart-drawer .cart-item .loading-overlay {
  right: 5px;
  padding-top: 2.5rem;
}

.cart-drawer .cart-items td {
  padding-top: 2rem;
  margin-right: 8px;
  padding-left: 0 !important;
  /*  @media screen and (min-width: 750px){
        margin-right: 0;
        margin-left: 0;
    }
*/
}

.cart-drawer .cart-item > td + td {
  padding-left: 1rem;
}

.cart-drawer .cart-item__details {
  width: auto;
  grid-column: 2 / 4;
}

.cart-drawer .cart-item__totals {
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-flow: column;
  min-width: 72px;
}

.cart-drawer.cart-drawer .cart-item__price-wrapper > *:only-child {
    margin-top: 0;
    font-family: 'Lato';
    font-weight: 700;
    font-size: 14px;
    line-height: 150%;
    @media screen and (min-width: 554px){
         font-size: 16px;
         margin-bottom: 0;
    }


}

.cart-drawer .cart-item__price-wrapper .cart-item__discounted-prices {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cart-drawer .unit-price {
  margin-top: 0.6rem;
}

.cart-drawer .cart-items .cart-item__quantity {
  padding-top: 0;
  grid-column: 2 / 5;
}

@media screen and (max-width: 749px) {
  .cart-drawer .cart-item cart-remove-button {
    margin-left: 0;

  }
}

.cart-drawer__footer > * + * {
  margin-top: 1rem;
}

.cart-drawer .totals {
  justify-content: space-between;
}

.cart-drawer .price {
  line-height: 1;
}

.cart-drawer .tax-note {
    margin-top: 12px;
    margin-bottom: 0;
    text-align: center;
    font-family: 'Lato';
    font-size: 14px;
    line-height: 150%;
    color: rgba(93, 93, 93, 1);
    font-style: italic;
}

.cart-drawer .product-option dd {
  word-break: break-word;
}

.cart-drawer details[open] > summary .icon-caret {
  transform: rotate(180deg);
}

.cart-drawer .cart__checkout-button {
    max-width: none;
    margin-top: 24px;
    font-family: 'Lato';
    font-weight: 700;
    font-size: 16px;
    color: rgba(255, 255, 255, 1);
    background-color: rgba(25, 128, 197, 1);
    line-height: 150%;
    padding: 12px 24px;
    height: 48px;
}

.drawer__footer .cart__dynamic-checkout-buttons {
  max-width: 100%;
}

.drawer__footer #dynamic-checkout-cart ul {
  flex-wrap: wrap !important;
  flex-direction: row !important;
  margin: 0.5rem -0.5rem 0 0 !important;
  gap: 0.5rem;
}

.drawer__footer [data-shopify-buttoncontainer] {
  justify-content: flex-start;
}

.drawer__footer #dynamic-checkout-cart ul > li {
  flex-basis: calc(50% - 0.5rem) !important;
  margin: 0 !important;
}

.drawer__footer #dynamic-checkout-cart ul > li:only-child {
  flex-basis: 100% !important;
  margin-right: 0.5rem !important;
}

@media screen and (min-width: 750px) {
  .drawer__footer #dynamic-checkout-cart ul > li {
    flex-basis: calc(100% / 3 - 0.5rem) !important;
    margin: 0 !important;
  }

  .drawer__footer #dynamic-checkout-cart ul > li:first-child:nth-last-child(2),
  .drawer__footer #dynamic-checkout-cart ul > li:first-child:nth-last-child(2) ~ li,
  .drawer__footer #dynamic-checkout-cart ul > li:first-child:nth-last-child(4),
  .drawer__footer #dynamic-checkout-cart ul > li:first-child:nth-last-child(4) ~ li {
    flex-basis: calc(50% - 0.5rem) !important;
  }
}

cart-drawer-items::-webkit-scrollbar {
  width: 3px;
}

cart-drawer-items::-webkit-scrollbar-thumb {
  background-color: rgba(var(--color-foreground), 0.7);
  border-radius: 100px;
}

cart-drawer-items::-webkit-scrollbar-track-piece {
  margin-top: 31px;
}

.cart-drawer .quantity-popover-container {
  padding: 0;
  border: 1px solid rgba(231, 231, 231, 1);
  border-radius: 4px;
  width: 141px;
  height: 42px;
}

.quantity-icon {
    background: rgba(25, 128, 197, 1);
    border: 1px solid rgba(25, 128, 197, 1);
    width: 36px;
    height: 32px;
    border-radius: 4px;
    pointer-events: none;
}

.quantity__button svg {
    pointer-events: none;
    width: 15px;
    color: white;
    height: 15px;
    align-items: center;
    top: 5px;
    position: relative;
}

.cart-drawer .quantity-popover__info.global-settings-popup {
  transform: translateY(0);
  right: 0;
}

.cart-drawer .cart-item__error {
  margin-top: 0.8rem;
}

.cart-drawer .quantity-popover__info + .cart-item__error {
  margin-top: 0.2rem;
}

.cart-info-cards {
  display: flex;
  gap: 8px;
  padding-top: 50px;
  @media screen and (min-width: 544px){
    gap: 12px;
    }
}
.subtitle{
    font-size: 14px;
    font-weight: 500;
    line-height: 150%;
    letter-spacing: 0;
    color: #1980c5;
}
.info-card {
  flex: 1 1 calc(50% - 0.5rem);
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 8px 12px;
  background-color: rgba(242, 248, 253, 1);
  border: 1px solid rgba(138, 200, 239, 1);
  border-radius: 8px;
  min-height: 72px;
  box-sizing: border-box;
  font-family: 'Lato', system-ui, sans-serif;
}

@media screen and (min-width: 750px) {
  .cart-drawer .cart-item__quantity--info quantity-popover > * {
    padding-left: 0;
  }

  .cart-drawer .cart-item__error {
    margin-left: 0;
  }
.cart-item__top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
}

.cart-item__remove-button {
  margin-left: auto;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: start;
}


.info-card .icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-card .text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-card .title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: rgba(29,29,29,1);
}

.info-card .subtitle {
    font-size: 16px;
    font-weight: 500;
    line-height: 150%;
    color: rgba(25, 128, 197, 1);
    margin-top: 8px;
}

@media (max-width: 600px) {
  .info-card { flex: 1 1 100%; }
}

/* === Responsive overrides — đặt sau cùng, không sửa code gốc === */

/* Fix typo in original that might break layout */
.cart-drawer .cart-items thead th:nth-child(2) {
  padding-left: 0; /* was padding-le%ft: 0; */
}

/* Make drawer behaves better on small widths/heights */
@media (max-width: 1023px) {
  .drawer__heading {
    font-size: 18px;
  }
/*
  .cart-drawer .cart-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .cart-drawer .cart-item__details {
    grid-column: auto;
    width: 100%;
  }

*/
  .cart-drawer .cart-item__quantity {
    grid-column: auto;
  }
/**
  .cart-drawer .cart-item__totals {
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 8px;
  }
**/
  .cart-drawer .cart-item__price-wrapper {
    font-size: 14px;
  }
}

/* Very small screens: stack footer buttons and reduce paddings */
@media (max-width: 749px) {
  .drawer__footer {
    flex-direction: column;
  }

  .drawer__footer #dynamic-checkout-cart ul {
    flex-direction: column !important;
  }

  .drawer__footer #dynamic-checkout-cart ul > li {
    flex-basis: 100% !important;
    margin-bottom: 0.5rem !important;
  }

  .cart-drawer .cart__checkout-button {
    width: 100%;
    padding: 12px;
    font-size: 15px;
  }

  .info-card {
    flex: 1 1 100%;
  }
}

td.cart-item__quantity {
    padding-left: 0 !important;
}

/* Ensure scrollbars don't obscure content on short viewports */
@media (max-height: 650px) {
  .drawer__inner {
    overscroll-behavior: contain;
  }

  cart-drawer-items {
    max-height: 100%;
  }
}

/* Accessibility tweak: increase tap target / spacing on mobile */
@media (pointer: coarse) {
  .drawer__close,
  .cart-item__remove-button {
    min-touch-size: 44px;
  }

  .cart-drawer .cart__checkout-button {
    padding: 16px 24px;
  }
}

/* Optional: collapse non-essential info on very narrow widths */
@media (max-width: 500px) {
  .cart-info-cards {
    flex-direction: column;
  }

  .cart-drawer .cart-item {
    padding-bottom: 0.5rem;
  }

  .drawer__heading {
    font-size: 16px;
  }
}

}
