/* Main Order Styles - Desktop & Responsive */

/* Form Order */
body.order-page {
  background-image: url("/static/images/order/bg-main.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
#form-order {
  width: 100%;
  margin: 0 auto;
  min-height: var(--vh, 100vh);
}

/* Mở rộng main full width, giữ content max-width 1440 ở bên trong */
.order_distribution {
  max-width: 100%;
}

/* Header: logo trái + banner preorder giữa + nút đóng phải */
.form-order-header {
  display: flex;
  height: 6.25rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #fff;
  position: relative;
  overflow: hidden;
}

.header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  z-index: 2;
  padding-left: 5rem;
}

.header-logo img {
  height: 1.5rem;
  width: 150px;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.header-banner-preorder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  width: 100%;
}

.header-banner-left {
  flex: 1;
  height: 3.75rem;
  z-index: 2;
  object-fit: contain;
  object-position: left;
  user-select: none;
  pointer-events: none;
}

.header-banner-right {
  flex: 1;
  padding-right: 0.1875rem;
  height: 6.25rem;
  z-index: 2;
  object-fit: contain;
  object-position: right;
  user-select: none;
  pointer-events: none;
}

.header-banner-title {
  flex: auto;
  max-width: 880px;
  height: 5.625rem;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.form-order-header-mb {
  display: none;
  height: auto;
  padding: 1rem;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 2px solid white;
  flex-direction: column;
  gap: 0.75rem;
}

.header-mb-background {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("/static/images/order/header-leaf-mobile.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.header-mb-logo {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-mb-logo img {
  height: 1.125rem;
  width: auto;
  object-fit: contain;
}

.header-mb-title {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-mb-title img {
  width: 100%;
  max-width: 343px;
  height: auto;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

/* Banner Promo Section */
.banner-promo-section {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
  padding: 0 5rem;
  max-width: 1440px;
  margin: 0 auto;
}

.banner-promo-section-mobile {
  display: none;
  margin-top: 10px;
  position: relative;
  background-image: url("/static/images/order/leaf-mobile.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.banner-mobile-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
}

.banner-mobile-preorder {
  width: 100%;
  max-width: 343px;
  position: relative;
  z-index: 2;
  aspect-ratio: 943/107;
}

.banner-mobile-preorder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.banner-mobile-limited {
  width: 100%;
  max-width: 360px;
  height: 5rem;
  position: relative;
  z-index: 2;
  margin-top: 0;
}

.banner-mobile-limited img {
  width: 100%;
  height: 5.9375rem;
  object-fit: contain;
  display: block;
  transform: translateY(-10px);
}

.banner-promo-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-promo-item.banner-countdown {
  width: calc((100% - 24px) * 2 / 3);
  height: 8.75rem;
  padding: 0 2.5rem;
}

.banner-promo-item.banner-limited {
  width: calc((100% - 24px) * 1 / 3);
  height: 8.75rem;
}

.banner-promo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.info {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

/* Checkout Page Layout */
.checkout-page {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
  gap: 1.75rem;
  padding: 0 5rem 0.625rem;
  height: 100%;
}

.left-column {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0.5rem;
  position: relative;
}

/* Form Section */
.checkout-page .form-section {
  grid-column: 1 / 2;
  grid-row: 1;
  background: white;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 0 16px rgba(137, 94, 0, 0.1);
}

/* Promo Info Section */
.promo-info-section {
  margin-top: 0;
  width: 100%;
  position: relative;
}

/* Desktop: hide all mobile-specific elements */
.mobile-screen-1,
.mobile-address-banner,
.mobile-terms,
.mobile-action-buttons,
.mobile-next-order {
  display: none;
}

/* Desktop: show promo info desktop */
.promo-info-desktop {
  display: block;
}

.promo-info-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  height: 13.4375rem;
  gap: 1rem;
}

/* Gift banner left side */
.promo-gift-absolute {
  position: relative;
  width: 35%;
  height: 100%;
  z-index: 10;
}

/* Gift banner right side */
.promo-info-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

/* Top row with 25 chai and 01 don */
.promo-info-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding-top: 1.25rem;
}

/* Đảm bảo các banner promo giữ tỉ lệ ổn định khi load */
.promo-25-chai {
  width: 100%;
  aspect-ratio: 230 / 120;
}

.promo-01-don {
  width: 110%;
  aspect-ratio: 260 / 120;
  transform: translateY(-3px);
}

/* Banner địa chỉ bên dưới */
.promo-info-bottom-row {
  width: 100%;
  height: auto;
  aspect-ratio: 580 / 60;
}

/* Divider between banners */
.promo-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0;
  position: relative;
  padding: 1.25rem;
}

.promo-divider-line {
  width: 112px;
  height: 0.1875rem;
  background: #fff;
  transform: rotate(90deg);
  position: absolute;
}

/* Bottom row - apply location */
.promo-info-bottom-row {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.promo-info-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
}

.promo-gift-absolute .promo-info-img {
  width: 90%;
  position: absolute;
  height: auto;
  top: -39%;
}

.form-section-title {
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 0;
}

/* Summary Section */
.checkout-page .summary-section {
  grid-column: 2 / 3;
  grid-row: 1;
  background: rgba(255, 255, 255, 0.7);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 0 16px rgba(137, 94, 0, 0.1);
  position: relative;
  align-self: flex-start;
  width: 100%;
}

/* Progress bar */
.summary-progress-bar {
  position: absolute;
  top: -1.5px;
  left: 23px;
  width: 265px;
  height: 0.25rem;
  display: flex;
  align-items: center;
}

.summary-progress-fill {
  width: 60px;
  height: 0.375rem;
  background: linear-gradient(90deg, #e60041 0%, #fb64b6 100%);
  border-radius: 25px;
}

/* Product header */
.summary-product-header {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.summary-product-title {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 2rem;
  color: #e60041;
  margin: 0;
  padding: 0;
}

.summary-product-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.625rem;
}

.summary-product-left {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: 1;
}

.summary-product-image {
  width: 123px;
  height: 3.375rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.summary-product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.summary-product-image.inactive {
  opacity: 0.5;
}

.summary-product-price-info.inactive span {
  color: #999;
}

.summary-product-price-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.summary-price-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #4a5565;
}

.summary-price-value {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
}

.summary-product-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.summary-product-right .qty-label {
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.5);
  text-align: center;
  white-space: nowrap;
}

/* Dual section (gift + remaining) */
.summary-dual-section {
  display: flex;
  gap: 0.375rem;
}

/* Gift box */
.summary-gift-box {
  flex: 1;
  background: linear-gradient(158.61deg, #fdf2f8 0%, #ffffff 50%, #fff7ed 100%);
  border: 1px dashed #e60041;
  border-radius: 16px;
  padding: 0.625rem;
  position: relative;
  overflow: hidden;
}

.summary-gift-content {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  position: relative;
  z-index: 2;
}

.summary-gift-image-wrapper {
  position: relative;
  flex-shrink: 0;
}

.summary-gift-glow {
  position: absolute;
  width: 96px;
  height: 6rem;
  background: #e60041;
  opacity: 0.2;
  filter: blur(24px);
  border-radius: 14px;
  top: 0;
  left: 0;
}

.summary-gift-image {
  position: relative;
  width: 74px;
  height: 4.625rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.summary-gift-image img {
  width: 97px;
  height: 6.8125rem;
  object-fit: cover;
}

.summary-gift-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.summary-gift-header {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.summary-gift-label {
  display: flex;
  flex-direction: column;
  font-size: 0.875rem;
  color: #e60041;
}

.summary-gift-label strong {
  font-weight: 700;
}

.summary-gift-label span {
  font-weight: 700;
}

/* Remaining quantity box */
.summary-remaining-box {
  width: 106px;
  background: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 0.375rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

.summary-remaining-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.summary-remaining-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0 0.125rem;
}

.summary-remaining-icon {
  width: 7px;
  height: 0.625rem;
  object-fit: contain;
}

.summary-remaining-label {
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #4a5565;
  text-align: center;
}

.summary-remaining-number {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.4;
  color: #e60041;
  text-align: center;
}

.summary-remaining-text {
  font-weight: 400;
  font-size: 0.625rem;
  line-height: 1.4;
  color: #4a5565;
  text-align: center;
  width: 88px;
}

.summary-remaining-progress {
  width: 100%;
  height: 0.5rem;
  background: #e5e7eb;
  border-radius: 25px;
  overflow: hidden;
  position: relative;
}

.summary-remaining-progress-fill {
  width: 41px;
  height: 0.5rem;
  background: linear-gradient(90deg, #ff8904 0%, #e60041 100%);
  opacity: 0.59;
  border-radius: 25px;
}

/* Total section */
.summary-total-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid var(--color-primary);
  padding-top: 0.625rem;
}

.summary-total-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.summary-total-label {
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.5rem;
  color: #e60041;
}

.summary-total-right {
  display: flex;
  align-items: center;
}

.summary-total-price {
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: #e60041;
  text-align: right;
}

/* Delivery section */
.summary-delivery-section {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
}

.summary-delivery-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  justify-content: center;
}

.summary-delivery-icon {
  width: 64px;
  height: 4rem;
  flex-shrink: 0;
}

.summary-delivery-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.summary-delivery-info {
  display: flex;
  flex-direction: column;
  gap: 0.3125rem;
}

.summary-delivery-label {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  color: #e60041;
}

.summary-delivery-date {
  background: white;
  border: 1px solid #e60041;
  border-radius: 50px;
  padding: 0.125rem 1.25rem;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.4;
  color: #e60041;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
}

/* Terms text */
.summary-terms p {
  font-size: 0.875rem;
  line-height: 1.4;
  color: #000000;
  margin: 0;
}

.summary-terms strong {
  font-weight: 600;
}

.summary-terms a {
  color: #e60041;
  text-decoration: none;
}

/* Order button */
.summary-order-button {
  width: 100%;
}

.summary-order-button .order-btn {
  width: 100%;
  min-height: 3rem;
  border-radius: 33554400px;
  background: linear-gradient(180deg, #e8315b 0%, #ff5a7c 100%);
  box-shadow: 0 10px 15px -3px rgba(252, 206, 232, 0.5),
    0 4px 6px -4px rgba(252, 206, 232, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1rem 1.25rem;
  border: none;
  cursor: pointer;
}

.summary-order-button .order-btn .order-now-text {
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.4;
  color: white;
  display: inline-block;
}

.summary-section .qty-label {
  font-weight: 400;
  color: rgba(0, 0, 0, 0.5);
}

/* Quantity Control */
.checkout-page .summary-section .quantity-control {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 36px;
  position: relative;
  height: 1.875rem;
}

.checkout-page .summary-section .quantity-control .quantity-btn {
  background: white;
  border: 0px solid;
  font-size: 0.9375rem;
  cursor: pointer;
  color: #927619;
  border-radius: 50%;
  width: 30px;
  height: 1.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.checkout-page .summary-section .quantity-control .quantity-btn.minus::before {
  content: "";
  display: block;
  width: 10px;
  height: 0.125rem;
  background: #927619;
  border-radius: 2px;
}

.checkout-page .summary-section .quantity-control .quantity-btn.plus::after {
  content: "";
  height: 0.125rem;
  width: 10px;
  background: #927619;
  border-radius: 2px;
  position: absolute;
}

.checkout-page .summary-section .quantity-control .quantity-btn.plus::before {
  content: "";
  display: block;
  width: 2px;
  height: 0.625rem;
  background: #927619;
  border-radius: 2px;
  position: absolute;
}

.checkout-page .summary-section .quantity-control .quantity-input {
  width: 40px;
  height: 1.875rem;
  text-align: center;
  border: none;
  outline: none;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  background: transparent;
  appearance: textfield;
}

.checkout-page
  .summary-section
  .quantity-control
  .quantity-input::-webkit-outer-spin-button,
.checkout-page
  .summary-section
  .quantity-control
  .quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Grid Form */
.grid-form {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 0.625rem;
  row-gap: 0.625rem;
}

.grid-form select,
.grid-form .form-group input,
.grid-form .form-group textarea {
  height: 2.375rem;
  padding-left: 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #e9c4b3;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
}

.grid-form .form-group textarea {
  height: 5rem;
  padding-top: 0.625rem;
  resize: none;
}

.grid-form .form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.grid-form .form-group .error-msg,
.grid-form .form-group-2 .error-msg {
  color: red;
  font-size: 0.75rem;
  margin-top: 4px;
  display: none;
}

.grid-form .form-group-2 {
  grid-column: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.grid-form .form-group {
  grid-column: span 3;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.grid-form .form-group label,
.grid-form .form-group-2 label {
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  height: 2.375rem;
  display: flex;
  align-items: center;
  color: #826b63;
  pointer-events: none;
  font-size: 0.875rem;
  transition: opacity 0.2s;
  font-weight: normal;
}

/* Select chưa chọn: chỉ hiện label (ẩn chữ option placeholder của select) */
.grid-form .form-group-2:not(.has-value) select {
  color: transparent;
}

.grid-form .form-group-2 select option {
  color: #333;
}

/* Ẩn label khi select đã có value (để label đóng vai placeholder custom) */
.grid-form .form-group-2.has-value label {
  opacity: 0;
}

.grid-form .form-group label span,
.grid-form .form-group-2 label span {
  color: #e60041;
}

.grid-form .form-group input:not(:placeholder-shown) + label,
.grid-form .form-group-2 input:not(:placeholder-shown) + label,
.grid-form .form-group textarea:not(:placeholder-shown) + label {
  opacity: 0;
}

.grid-form .full-row {
  grid-column: 1 / -1;
}

textarea:focus {
  outline: none;
  outline-offset: 0;
  box-shadow: none;
}

/* Native select trong form địa chỉ - luôn hiện icon mũi tên ở cuối */
.grid-form .form-group-2 select {
  background-color: white;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23826B63' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  border: 1px solid #e9c4b3;
  border-radius: 8px;
  min-height: 2.375rem;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  font-size: 0.875rem;
  color: #826b63;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.grid-form .form-group-2 select:focus {
  border-color: #e9c4b3;
  outline: none;
}

.grid-form .form-group-2 select:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
  opacity: 1;
}

.mobile-action-buttons {
  display: flex;
  gap: 0.625rem;
  width: 100%;
}

.mobile-action-buttons .order-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-prev-btn {
  flex: 1;
  background: white;
  border: 1px solid #f03e66;
  box-shadow: 0px 10px 15px 0px rgba(252, 206, 232, 0.5),
    0px 4px 6px 0px rgba(252, 206, 232, 0.5);
  padding: 0.625rem;
}

.mobile-prev-btn span {
  color: #e9335d;
  font-weight: 700;
  font-size: 1rem;
}

.mobile-prev-btn img {
  width: 1.0625rem;
  height: 1.0625rem;
}

.mobile-order-btn {
  flex: 1;
  background: linear-gradient(180deg, #e8315b 0%, #ff5a7c 100%);
  box-shadow: 0px 10px 15px 0px rgba(252, 206, 232, 0.5),
    0px 4px 6px 0px rgba(252, 206, 232, 0.5);
  padding: 0.625rem;
}

.mobile-order-btn span {
  color: white;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
}

.mobile-order-btn img {
  width: 1.0625rem;
  height: 1.0625rem;
}

.order-btn img {
  display: inline-block;
}

.summary-section .summary-section-info {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.checkout-page .summary-section .product-content-init p {
  font-size: clamp(1.2rem, 1.4vw, 1.6rem);
}

.popup-product-content > p {
  font-size: 14px;
}

/* Responsive */
@media screen and (max-width: 1366px) {
  .popup-product-content > p {
    font-size: 14px;
  }

  .header-banner-title {
    max-width: 50%;
  }

  .banner-promo-item.banner-countdown,
  .banner-promo-item.banner-limited {
    height: 6.5rem;
    padding: 0.75rem 0;
  }

  .promo-info-container {
    height: 11rem;
    max-width: 95%;
  }

  .summary-product-title {
    font-size: 1.25rem;
    line-height: 1.375rem;
  }

  .promo-gift-absolute .promo-info-img {
    width: 80%;
  }
}

@media screen and (max-width: 1280px) {
  .form-order-header {
    height: 4.5rem;
  }

  .header-logo {
    padding-left: 2.5rem;
  }

  .header-logo img {
    height: 1.25rem;
    width: 120px;
  }

  .header-banner-left {
    height: 3rem;
  }

  .header-banner-right {
    height: 4.5rem;
    padding-right: 0.125rem;
  }

  .header-banner-title {
    max-width: 45%;
    height: 4.375rem;
  }

  /* Banner promo: giảm kích thước ảnh & khoảng cách */
  .banner-promo-section {
    padding: 0 2.5rem;
    gap: 0.875rem;
  }

  /* Checkout: giảm padding, margin, gap */
  .checkout-page {
    padding: 0 2.5rem 0.5rem;
    gap: 1rem;
  }

  .checkout-page .form-section,
  .checkout-page .summary-section {
    padding: 1rem;
    border-radius: 16px;
  }

  /* Summary: giảm font & kích thước ảnh */
  .summary-section .summary-section-info {
    gap: 0.625rem;
  }

  .summary-product-header {
    gap: 0.5rem;
  }

  .summary-product-title {
    font-size: 1.25rem;
    line-height: 1.625rem;
  }

  .summary-product-image {
    width: 100px;
    height: 2.75rem;
  }

  .summary-price-label {
    font-size: 0.8125rem;
  }

  .summary-price-value {
    font-size: 0.875rem;
  }

  .summary-product-right .qty-label {
    font-size: 0.6875rem;
  }

  .summary-dual-section {
    gap: 0.25rem;
  }

  .summary-gift-box {
    padding: 0.5rem;
  }

  .summary-gift-content {
    gap: 0.5rem;
  }

  .summary-gift-glow {
    width: 72px;
    height: 4.5rem;
    filter: blur(18px);
  }

  .summary-gift-image {
    width: 58px;
    height: 3.625rem;
    border-radius: 12px;
  }

  .summary-gift-image img {
    width: 74px;
    height: 5.25rem;
  }

  .summary-gift-label {
    font-size: 0.75rem;
  }

  .summary-remaining-box {
    width: 88px;
    padding: 0.25rem;
    gap: 0.25rem;
  }

  .summary-remaining-label,
  .summary-remaining-text {
    font-size: 0.625rem;
  }

  .summary-remaining-number {
    font-size: 1.0625rem;
  }

  .summary-total-section {
    padding-top: 0.5rem;
  }

  .summary-total-label,
  .summary-total-price {
    font-size: 1rem;
    line-height: 1.375rem;
  }

  .summary-delivery-content {
    padding: 0.5rem 0;
    gap: 0.5rem;
  }

  .summary-delivery-icon {
    width: 48px;
    height: 3rem;
  }

  .summary-delivery-label {
    font-size: 0.875rem;
  }

  .summary-delivery-date {
    font-size: 0.875rem;
    padding: 0.125rem 0.875rem;
  }

  .summary-terms p {
    font-size: 0.8125rem;
  }

  .summary-order-button .order-btn {
    min-height: 2.625rem;
    padding: 0.75rem 1rem;
  }

  .summary-order-button .order-btn .order-now-text {
    font-size: 1rem;
  }

  .checkout-page .summary-section .quantity-control {
    height: 1.625rem;
  }

  .checkout-page .summary-section .quantity-control .quantity-btn {
    width: 26px;
    height: 1.625rem;
    font-size: 0.875rem;
  }

  .checkout-page .summary-section .quantity-control .quantity-input {
    width: 36px;
    font-size: 0.875rem;
  }

  .summary-progress-bar {
    width: 220px;
  }

  /* Promo info desktop (vùng 1280 vẫn dùng desktop layout) */
  .promo-info-container {
    gap: 0.75rem;
  }

  .promo-info-top-row {
    padding-top: 1rem;
  }

  .promo-divider-line {
    width: 80px;
  }

  .promo-info-right {
    gap: 0.75rem;
  }
}

@media screen and (max-width: 1199px) {
  .promo-info-container {
    height: 9rem;
  }

  .banner-promo-item.banner-countdown,
  .banner-promo-item.banner-limited {
    height: 5.5rem;
    padding: 0.5rem 0;
  }
}

@media screen and (max-width: 1024px) {
  .banner-promo-section {
    padding: 0 1.25rem;
    gap: 1rem;
  }

  .checkout-page {
    padding: 0 1.25rem;
    gap: 1rem;
  }

  .promo-gift-absolute {
    width: 30%;
  }

  .promo-gift-absolute .promo-info-img {
    width: 104%;
  }

  .promo-divider-line {
    width: 5.625rem;
  }
}

@media screen and (max-width: 992px) {
  .popup-product-content > p {
    font-size: 12px;
  }

  body.order-page {
    background-image: url("/static/images/order/bg-mobile.png");
    background-attachment: scroll;
  }

  #form-order {
    min-height: var(--vh, 100vh);
    /* Safe-area cho thiết bị có notch (iPhone X+) */
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
  }

  .info {
    max-width: 480px;
  }

  .form-order-header {
    display: none;
  }

  .banner-promo-section {
    display: none;
  }

  .banner-promo-section-mobile {
    display: block !important;
  }

  .form-order-header-mb {
    display: flex !important;
  }

  .checkout-page .summary-section {
    grid-column: 1 / 3;
    display: block;
    order: 1;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 16px rgba(137, 94, 0, 0.1);
    border-radius: 20px;
    padding: 0.625rem;
  }

  .checkout-page .form-section {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 16px rgba(137, 94, 0, 0.1);
    padding: 0.625rem;
    border-radius: 20px;
    max-height: 100%;
  }

  .form-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #e60041;
  }

  .grid-form {
    grid-template-columns: 1fr 1fr;
    grid-gap: 0.625rem;
  }

  /* Họ tên và SĐT: mỗi field chiếm 1 cột */
  .grid-form .form-group:nth-child(1),
  .grid-form .form-group:nth-child(2) {
    grid-column: span 1;
  }

  /* Tỉnh/TP và Quận/Huyện: mỗi field chiếm 1 cột */
  .grid-form .form-group-2:nth-child(3),
  .grid-form .form-group-2:nth-child(4) {
    grid-column: span 1;
  }

  /* Phường/xã: chiếm full width */
  .grid-form .form-group-ward {
    grid-column: span 2;
  }

  /* Địa chỉ: chiếm full width */
  .grid-form .form-group-address {
    grid-column: span 2;
  }

  /* Textarea ghi chú: chiếm full width */
  .grid-form textarea.full-row {
    grid-column: span 2;
  }

  /* Mobile: Ẩn textarea, hiện input cho ghi chú */
  .form-group-note .note-desktop,
  .form-group-note .label-desktop {
    display: none !important;
  }

  .form-group-note .note-mobile,
  .form-group-note .label-mobile {
    display: flex !important;
  }

  .mobile-next-order {
    display: block !important;
  }

  .mobile-next-btn {
    width: 100%;
    min-height: 2.5625rem;
    border-radius: 50px;
    background: linear-gradient(180deg, #e8315b 0%, #ff5a7c 100%);
    box-shadow: 0 10px 15px -3px rgba(252, 206, 232, 0.5),
      0 4px 6px -4px rgba(252, 206, 232, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.625rem 1.25rem;
    border: none;
    cursor: pointer;
    color: white;
    font-weight: 700;
    font-size: 1rem;
  }

  .no-mobile {
    display: none;
  }

  .checkout-page {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Desktop promo info - hide on mobile */
  .promo-info-desktop {
    display: none;
  }

  /* Mobile Screen 1: Summary view (default) - show summary and promo banners */
  .checkout-page .left-column {
    display: none !important;
    order: 2;
  }

  .checkout-page .mobile-screen-1 {
    display: block !important;
    order: 3;
    width: 100%;
  }

  /* Mobile Screen 2: Form view (when "Tiếp theo" clicked) */
  .checkout-page.show-form .summary-section {
    display: none !important;
  }

  .checkout-page.show-form .left-column {
    display: flex !important;
    order: 1;
  }

  .checkout-page.show-form .mobile-screen-1 {
    display: none !important;
  }

  .checkout-page.show-form .mobile-address-banner {
    display: flex !important;
    order: 2;
  }

  /* When back button clicked - return to Screen 1 */
  .checkout-page.show-summary .left-column {
    display: none;
  }

  .checkout-page.show-summary .summary-section {
    display: block;
    order: 1;
  }

  .checkout-page.show-summary .mobile-screen-1 {
    display: block;
    order: 3;
  }

  .checkout-page.show-summary .mobile-address-banner {
    display: none;
  }

  .summary-section .summary-section-info {
    gap: 0.625rem;
  }

  /* Mobile Promo Banners (Screen 1) - Layout ngang */
  .mobile-promo-banners {
    display: flex;
    gap: 0;
    padding: 0.625rem;
    position: relative;
    width: 100%;
    height: 100%;
  }

  .mobile-promo-gift {
    width: 50%;
    height: 100%;
    position: relative;
  }

  .mobile-promo-gift img {
    position: absolute;
    width: 80%;
    height: auto;
    object-fit: contain;
    transform: translateY(-15%);
  }

  .mobile-promo-rules {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 50%;
  }

  .mobile-promo-rule img {
    width: 100%;
    height: 3.75rem;
    object-fit: contain;
    display: block;
  }

  .mobile-promo-divider {
    width: 100%;
    height: 0.1875rem;
    background: white;
    margin: 0;
  }

  /* Mobile Address Banner (Screen 2) */
  .mobile-address-banner {
    width: 100%;
    display: none;
    justify-content: center;
  }

  .mobile-address-banner img {
    padding: 0 0.625rem;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .checkout-page .banner-section {
    display: none;
  }

  /* Hide desktop order button on mobile Screen 1 */
  .summary-order-button {
    display: none;
  }

  /* Show mobile action buttons only on Screen 2 */
  .mobile-action-buttons {
    display: none;
    padding-top: 0.5rem;
  }

  .checkout-page.show-form .mobile-action-buttons {
    display: flex !important;
  }

  /* Show mobile terms only on Screen 2 */
  .summary-section .summary-section-info .info2-mobile {
    justify-content: space-between;
    background: white;
    border-radius: 12px;
    padding: 0.625rem;
  }

  .mobile-banner {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
  }

  .mobile-terms {
    display: block !important;
    padding: 0.5rem 0 0.625rem;
    font-size: 0.75rem;
    line-height: 1.4;
    text-align: left;
    color: #000000;
  }

  .mobile-terms a {
    color: #e60041;
    text-decoration: none;
    font-weight: 600;
  }

  .grid-form .form-group-2 select {
    min-height: 2.375rem;
    padding: 0.5rem 2.25rem 0.5rem 0.75rem;
    font-size: 0.8125rem;
    border: 1px solid white;
    background-color: white;
    background-position: right 12px center;
    color: #4a5565;
  }

  .grid-form .form-group label,
  .grid-form .form-group-2 label {
    font-size: 0.8125rem;
    color: #4a5565;
  }

  /* Promo info section mobile */
  .promo-info-section {
    margin-top: 0.625rem;
  }

  .promo-gift-absolute {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    margin-bottom: 0.625rem;
  }

  .promo-info-right {
    max-width: 100%;
    gap: 0.625rem;
  }

  .promo-info-top-row {
    flex-direction: column;
    gap: 0.625rem;
    padding-top: 0;
  }

  .promo-25-chai,
  .promo-01-don {
    width: 100%;
    height: 3.75rem;
  }

  .promo-divider {
    display: none;
  }

  .promo-info-bottom-row {
    height: auto;
    min-height: 2.5rem;
  }

  .promo-info-bottom-row img {
    object-fit: contain;
  }

  /* Mobile styles for new summary design */
  .summary-progress-bar {
    display: none;
  }

  .summary-product-header {
    background: transparent;
    border-radius: 0;
    padding: 0;
  }

  .summary-product-title {
    font-size: 1rem;
    line-height: 1.375rem;
  }

  .summary-product-left {
    flex-direction: row;
    align-items: center;
    width: auto;
  }

  .summary-product-image {
    width: 123px;
    height: 3.375rem;
    background: transparent;
    padding: 0;
    border-radius: 8px;
  }

  .summary-price-label {
    font-size: 0.875rem;
  }

  .summary-price-value {
    font-size: 1rem;
  }

  .summary-product-right {
    width: auto;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
  }

  .summary-product-right .quantity-control {
    height: 1.875rem;
  }

  .summary-product-right .qty-label {
    font-size: 0.75rem;
  }

  .summary-dual-section {
    flex-direction: row;
    gap: 0.375rem;
  }

  .summary-remaining-box {
    width: 100px;
    flex-shrink: 0;
  }

  .summary-gift-box {
    flex: 1;
    padding: 0.625rem;
  }

  .summary-gift-image {
    width: 70px;
    height: 4.375rem;
  }

  .summary-gift-image img {
    width: 89px;
    height: 6.25rem;
  }

  .summary-gift-label {
    font-size: 0.75rem;
  }

  .summary-delivery-section {
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 10px;
  }

  .summary-delivery-content {
    justify-self: center;
  }

  .summary-delivery-icon {
    width: 40px;
    height: 2.5rem;
  }

  .summary-delivery-label {
    font-size: 0.75rem;
  }

  .summary-delivery-date {
    font-size: 1rem;
    font-weight: 800;
    padding: 0.125rem 1.25rem;
  }

  .summary-total-section {
    background: transparent;
    border-radius: 0;
    padding-top: 0.375rem;
    border-top: 1.5px solid #e60052;
    margin-bottom: 0;
  }

  .summary-total-label {
    font-size: 1.125rem;
  }

  .summary-total-price {
    font-size: 1.125rem;
  }

  .summary-remaining-number {
    font-size: 1rem;
  }

  /* Success Popup Mobile */
  .success-popup-overlay {
    padding: 0.625rem;
  }

  .success-popup-dialog {
    max-width: 440px;
  }

  .success-popup-title {
    font-size: 0.875rem;
  }

  .delivery-label,
  .delivery-date {
    font-size: 0.875rem;
  }

  .success-popup-subtitle {
    font-size: 0.8125rem;
    padding: 0 0.9375rem;
  }

  .success-order-card {
    padding: 0.5rem;
    gap: 0.625rem;
  }

  .order-icon {
    width: 32px;
    height: 2rem;
  }

  .order-icon svg {
    width: 18px;
    height: 1.125rem;
  }

  .order-id-label {
    font-size: 0.75rem;
  }

  .order-id-value {
    font-size: 0.875rem;
  }

  .detail-row {
    font-size: 0.75rem;
    gap: 0.5rem;
  }

  .gift-badge-text {
    font-size: 0.75rem;
  }

  /* Error Popup Mobile */
  .error-popup-dialog {
    max-width: 100%;
  }

  .error-icon-container {
    width: 56px;
    height: 3.5rem;
  }

  .error-icon-img {
    width: 56px;
    height: 3.5rem;
  }

  .error-popup-title {
    font-size: 1rem;
  }

  .error-popup-message {
    font-size: 0.8125rem;
  }

  .error-popup-btn {
    height: 2.75rem;
    font-size: 0.875rem;
  }
}

@media screen and (max-width: 430px) {
  .info {
    padding: 0 0.625rem;
  }

  .banner-promo-section-mobile {
    margin-top: 0.25rem;
  }

  .form-order-header-mb {
    gap: 0;
    padding: 0.5rem;
  }

  .header-mb-title img {
    max-width: 260px;
    height: 6.25rem;
  }

  .banner-mobile-preorder {
    height: 2rem;
  }

  .banner-mobile-limited {
    height: 4.5rem;
  }

  .mobile-next-btn {
    font-size: 0.8125rem;
  }

  .mobile-next-btn img {
    width: 0.8125rem;
    height: 0.8125rem;
  }

  .mobile-next-btn,
  .mobile-action-buttons .order-btn {
    padding: 0.5rem 0.375rem;
    gap: 0.375rem;
    min-height: unset;
  }

  .mobile-prev-btn span,
  .mobile-order-btn span {
    font-size: 0.8125rem;
  }

  .mobile-prev-btn img,
  .mobile-order-btn img {
    width: 0.8125rem;
    height: 0.8125rem;
  }

  .gift-badge-icon {
    width: 1.125rem;
    height: 1.125rem;
  }

  .mobile-promo-banners {
    padding: 0.375rem;
  }

  .mobile-promo-rules {
    gap: 0.5rem;
  }

  .mobile-promo-rule img {
    height: 3.125rem;
  }

  .mobile-promo-gift img {
    width: 75%;
  }

  .summary-product-header {
    gap: 0.25rem;
  }

  .summary-gift-box {
    padding: 0.125rem;
  }

  .summary-gift-image {
    width: 60px;
    height: 3.75rem;
  }

  .summary-gift-image img {
    height: 5rem;
  }

  .summary-remaining-box {
    padding: 0.125rem;
  }

  .summary-remaining-progress {
    height: 0.375rem;
  }

  .checkout-page .summary-section {
    padding: 0.625rem;
  }

  .summary-section .summary-section-info {
    gap: 0.375rem;
  }

  .success-popup-overlay {
    padding: 0.5rem;
  }

  .gift-badge-text span {
    font-size: 0.675rem;
  }
}

@media screen and (max-width: 375px) {
  .gift-badge-text span {
    font-size: 0.625rem;
  }

  .summary-product-title {
    line-height: 1.125rem;
  }

  .summary-product-header {
    gap: 0;
  }

  .summary-product-image {
    width: 6.25rem;
    height: 2.8125rem;
  }

  .summary-total-label {
    font-size: 1rem;
  }

  .summary-total-section {
    padding-top: 0.125rem;
  }

  .summary-delivery-content {
    padding: 0.375rem 0;
  }

  .summary-delivery-date {
    font-size: 0.875rem;
  }

  .mobile-promo-rule img {
    height: 2.75rem;
  }

  .mobile-promo-gift img {
    height: 8.4375rem;
  }
}
