/* Customer-only adaptation. Mobile styles remain owned by style.css. */
@media (min-width: 600px) {
  .customer-responsive { --customer-width: 760px; }
  .customer-responsive :is(.neyyi-page, .payment-page, .check-page, .menu-page, .review-write) {
    width: 100%; max-width: var(--customer-width); margin-inline: auto;
    padding-inline: 28px; padding-bottom: 120px;
  }
  .customer-responsive.home-customer-page .neyyi-page { padding-bottom: 260px; }
  .customer-responsive .customer-bottom-nav { max-width: var(--customer-width); }
  .customer-responsive .checkout-bar { max-width: var(--customer-width); padding-inline: 28px; }
  .customer-responsive :is(.payment-card, .check-card, .menu-info-card, .rating-card, .detail-card, .top-card) { padding: 22px; }
  .customer-responsive :is(.field-box input, .whatsapp-field input, .history-input-wrap input) { font-size: 16px; }
  .customer-responsive :is(.field-box label, .whatsapp-field label, .whatsapp-helper) { font-size: 12px; }
  .customer-responsive :is(.menu-detail-sheet) { width: calc(100% - 48px); max-width: 760px; margin: 24px auto; height: auto; max-height: calc(100dvh - 48px); border-radius: 20px; }
  .customer-responsive .menu-detail-overlay { align-items: center; }
  .customer-responsive .menu-detail-content { padding: 24px; min-height: 0; overflow-y: auto; }
  .customer-responsive .menu-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .customer-responsive :is(.menu-item, .menu-button) { height: 100%; margin: 0; }
  .customer-responsive .review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .customer-responsive .review-card { margin: 0; min-width: 0; }
  .customer-responsive .review-write { padding-top: 24px; }
  .customer-responsive .review-write textarea { min-height: 170px; }
}
@media (min-width: 1024px) {
  .customer-responsive { --customer-width: 1120px; }
  .customer-responsive :is(.neyyi-page, .payment-page, .check-page, .menu-page, .review-write) { padding: 20px 40px 112px; }
  .customer-responsive :is(.neyyi-header, .payment-header, .check-header, .menu-header) { min-height: 80px; margin-bottom: 16px; }
  .customer-responsive :is(.payment-title-section, .check-title-section, .menu-title-section) { margin-bottom: 24px; }
  .customer-responsive :is(.payment-title-section h1, .check-title-section h1, .menu-title-section h1) { font-size: 28px; }
  .customer-responsive :is(.payment-title-section p, .check-title-section p, .menu-title-section p) { font-size: 14px; }
  .customer-responsive .customer-bottom-nav { height: 76px; border-inline: 1px solid var(--border); }
  .customer-responsive .bottom-nav-item span { font-size: 13px; }
  .customer-responsive.home-customer-page .neyyi-page {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px;
    min-height: auto; padding-bottom: 24px; align-items: start;
  }
  .customer-responsive.home-customer-page .neyyi-page > :is(.neyyi-header, .transaction-badges, .product-box, .store-summary) { grid-column: 1 / -1; margin-block: 0; }
  .customer-responsive.home-customer-page .home-section { margin: 0; min-width: 0; }
  .customer-responsive.home-customer-page .home-section h2 { font-size: 21px; margin-bottom: 20px; }
  .customer-responsive.home-customer-page .robux-presets button { min-height: 62px; font-size: 16px; }
  .customer-responsive.home-customer-page :is(.custom-robux-title, .custom-robux-info strong) { font-size: 14px; }
  .customer-responsive.home-customer-page .custom-robux-input input { font-size: 16px; }
  .customer-responsive.home-customer-page :is(.field-box, .whatsapp-box) { padding: 14px 16px; }
  .customer-responsive.home-customer-page .checkout-bar {
    position: relative; inset: auto; transform: none; width: 100%; margin: 0 auto 100px;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 32px;
    padding: 24px 40px; border: 1px solid var(--border); border-radius: 16px;
  }
  .customer-responsive.home-customer-page .checkout-total { margin: 0; min-width: 0; }
  .customer-responsive.home-customer-page .checkout-total-info strong { font-size: 16px; }
  .customer-responsive.home-customer-page .checkout-total-info span { font-size: 12px; }
  .customer-responsive.home-customer-page .checkout-total-value { font-size: 26px; }
  .customer-responsive.home-customer-page .checkout-bar > button { align-self: stretch; min-height: 56px; margin: 0; font-size: 16px; }
  .customer-responsive.home-customer-page .checkout-bar > p { grid-column: 1 / -1; margin: 0; }
  .customer-responsive .payment-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 28px; align-content: start; align-items: start; }
  .customer-responsive .payment-page > :is(.payment-header, .payment-title-section) { grid-column: 1 / -1; margin: 0; }
  .customer-responsive .payment-page > section { min-width: 0; margin: 0; }
  .customer-responsive .payment-page > .invoice-card { grid-column: 1; grid-row: 3; }
  .customer-responsive .payment-page > .payment-deadline-card { grid-column: 2; grid-row: 3; }
  .customer-responsive .payment-page > .payment-card:nth-of-type(3) { grid-column: 1; grid-row: 4; }
  .customer-responsive .payment-page > .qris-card { grid-column: 2; grid-row: 4; }
  .customer-responsive .payment-page > .payment-card:nth-of-type(6) { grid-column: 1; grid-row: 5; }
  .customer-responsive #paymentUploadSection { grid-column: 2; grid-row: 5; }
  .customer-responsive .payment-extra-info { grid-column: 1; }
  .customer-responsive .payment-submit-section { grid-column: 2; }
  .customer-responsive :is(.payment-detail-row, .check-detail-row) { gap: 20px; font-size: 14px; padding-block: 13px; }
  .customer-responsive :is(.payment-card-title, .check-card-title) { font-size: 17px; }
  .customer-responsive :is(.payment-instruction-list li, .upload-description) { font-size: 14px; line-height: 1.7; }
  .customer-responsive .check-search-card { max-width: 740px; margin-inline: auto; margin-bottom: 28px; }
  .customer-responsive .check-order-detail { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px 28px; align-items: start; }
  .customer-responsive .check-order-detail > .check-section-heading { grid-column: 1 / -1; font-size: 20px; }
  .customer-responsive .check-order-detail > .check-card:nth-of-type(1) { grid-column: 1; grid-row: 2; }
  .customer-responsive .check-order-detail > .check-card:has(.check-profile) { display: contents; }
  .customer-responsive .check-order-detail .check-profile { grid-column: 1; grid-row: 3; padding: 22px; background: #fff; border: 1px solid var(--border); border-radius: 16px; min-width: 0; }
  .customer-responsive .check-order-detail .check-order-info { grid-column: 2; grid-row: 2; padding: 22px; margin: 0; background: #fff; border: 1px solid var(--border); border-radius: 16px; min-width: 0; }
  .customer-responsive .check-order-detail > .check-card:has(.check-timeline) { grid-column: 2; grid-row: 3; }
  .customer-responsive :is(.continue-payment-prompt, .review-prompt) { grid-column: 2; margin: 0; }
  .customer-responsive .latest-transactions-section { margin-top: 32px; }
  .customer-responsive .menu-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .customer-responsive .menu-detail-sheet { max-width: 920px; }
  .customer-responsive .menu-detail-content { padding: 28px 36px; }
  .customer-responsive .menu-info-card { font-size: 15px; line-height: 1.7; }
  .customer-responsive :is(.menu-info-card p, .menu-step-content p, .menu-rule-list li, .menu-faq-item p) { font-size: 14px; line-height: 1.75; }
  .customer-responsive .history-login-card { max-width: 680px; margin-inline: auto; }
  .customer-responsive .history-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .customer-responsive .history-form > :not(.history-field) { grid-column: 1 / -1; }
  .customer-responsive .history-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .customer-responsive .history-stat-wide { grid-column: auto; }
  .customer-responsive :is(.history-table th, .history-table td) { font-size: 13px; padding: 14px; }
  .customer-responsive .review-summary-card { max-width: 760px; margin: 0 auto 28px; }
  .customer-responsive .review-list { gap: 24px; }
  .customer-responsive .review-card { padding: 20px !important; margin-bottom: 0 !important; }
  .customer-responsive .review-card p { font-size: 14px !important; line-height: 1.7 !important; }
  .customer-responsive .qris-image-wrapper { max-width: 300px; margin-inline: auto; }
  .customer-responsive .qris-image-wrapper img { max-width: 100%; height: auto; object-fit: contain; }
  .customer-responsive .review-write { max-width: 1000px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 28px; align-content: start; }
  .customer-responsive .review-write > :is(.brand, .top-card, .review-unavailable, .anonymous) { grid-column: 1 / -1; margin: 0; }
  .customer-responsive .review-write > .rating-card { margin: 0; }
  .customer-responsive .review-write > .detail-card { grid-column: 1; margin: 0; }
  .customer-responsive .review-write > .btn-review { grid-column: 2; align-self: center; }
}
/* Contain long customer content without masking layout overflow on the whole page. */
.customer-responsive :is(.home-section, .payment-card, .check-card, .menu-info-card, .review-card, .history-table-card) { min-width: 0; }
.customer-responsive :is(.review-card p, .menu-info-card p, .check-detail-row strong, .payment-detail-row strong) { overflow-wrap: anywhere; }
.customer-responsive :is(.history-table-scroll, .latest-table-wrapper) { max-width: 100%; overflow-x: auto; }


/* =====================================================
   NEYYI REVIEW CARD RESPONSIVE FIX
   Desktop/tablet mengikuti struktur mobile
   ===================================================== */

.customer-responsive .review-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.customer-responsive .review-card {
  display: block !important;
  width: 100%;
  padding: 10px !important;
  margin: 0 !important;
  border-radius: 16px !important;
  overflow: hidden;
}

.customer-responsive .review-card-inner,
.customer-responsive .review-mini {
  width: 100%;
}

.customer-responsive .review-mini {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.customer-responsive .review-avatar {
  width: 44px !important;
  height: 44px !important;
  flex: 0 0 44px;
}

.customer-responsive .review-mini-body {
  flex: 1;
  min-width: 0;
}

.customer-responsive .review-mini-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.customer-responsive .review-mini-user {
  font-size: 13px !important;
  line-height: 1.2;
}

.customer-responsive .review-mini-robux {
  white-space: nowrap;
  font-size: 11px !important;
}

.customer-responsive .review-mini-mid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.customer-responsive .review-mini-stars {
  color: #ff6fae !important;
  font-size: 13px !important;
  letter-spacing: 1px;
  font-family: Arial, sans-serif;
}

.customer-responsive .review-mini-date {
  font-size: 11px !important;
  color: #999;
  white-space: nowrap;
}

.customer-responsive .review-mini-body p {
  margin: 6px 0 0 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  color: #444;
}

@media (min-width: 600px) {
  .customer-responsive .review-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .customer-responsive .review-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}
