.gdm-wrap {
  max-width: 1200px;
  margin: 0 auto;
  overflow: visible;
}
.gdm-wrap .wmb-wrapper,
.gdm-wrap .wmb-body,
.gdm-wrap .wmb-catalog {
  overflow: visible;
}
.gdm-wrap .wmb-section-description {
  font-size: 14px;
  color: #666;
  margin: 0 0 20px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid #2d5a3d;
  line-height: 1.5;
}
.gdm-gallery {
  margin: 0 0 10px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden !important;
}
.gdm-wrap:not(.gdm-tab-day) .gdm-gallery { display: none; }
.gdm-gallery .gl-gallery-section,
.gdm-gallery .fd-gallery-container {
  position: relative;
  max-width: 100% !important;
  min-width: 0;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 28px !important;
  box-sizing: border-box;
}
.gdm-gallery .fd-gallery-grid {
  display: flex !important;
  gap: 8px;
  max-width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pinch-zoom;
  scrollbar-width: none;
}
.gdm-gallery .fd-gallery-item {
  flex: 0 0 220px !important;
  min-width: 220px;
  width: 220px;
  margin: 0 !important;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden !important;
  scroll-snap-align: start;
}
@media (max-width: 640px) {
  .gdm-gallery .gl-gallery-section,
  .gdm-gallery .fd-gallery-container { padding: 0 4px !important; }
  .gdm-gallery .fd-gallery-item {
    flex: 0 0 calc(50% - 4px) !important;
    width: calc(50% - 4px);
    min-width: calc(50% - 4px);
  }
}
.gdm-diet-row { display: flex; flex-wrap: wrap; gap: 6px; }
.gdm-diet-row .wmb-dietary-icon { position: static; }

.gdm-day-card .wmb-card-title-new,
.gdm-day-card .wmb-card-desc-new {
  display: block;
  overflow: visible;
  max-height: none;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  text-overflow: unset;
}

.gdm-day-card .wmb-card-title-new { margin-bottom: 4px; }
.gdm-day-card .wmb-card-desc-new { margin-bottom: 8px; }

.gdm-days {
  margin: 0 0 18px;
}

.gdm-day {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border-radius: 12px;
  text-align: left;
}

.gdm-day.is-active {
  background: #2d5a3d;
  border-color: #2d5a3d;
  color: #fff;
}

.gdm-day-until { font-size: 12px; opacity: 0.85; }

.gdm-day-card { height: 100%; }
.gdm-day-card.wmb-card-new { overflow: visible; }
.gdm-day-card.wmb-card-new:hover { transform: none; }
.gdm-card-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-top: auto;
}
.gdm-card-foot .wmb-card-action-bar { width: 100%; margin-top: 8px; }
.gdm-dp-wrap {
  position: relative;
  align-self: flex-start;
  z-index: 2;
}
.gdm-day-card:hover,
.gdm-day-card:focus-within { z-index: 3; }
.gdm-dp-wrap-empty { display: none; }
.gdm-dp-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  border: 1.5px solid #8fa396;
  background: #fff;
  color: #243028;
  border-radius: 999px;
  padding: 4px 6px 4px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}
.gdm-dp-toggle:focus-visible {
  outline: 2px solid #2d5a3d;
  outline-offset: 2px;
}
.gdm-dp-switch {
  position: relative;
  width: 34px;
  height: 18px;
  flex: 0 0 34px;
  border-radius: 999px;
  background: #b7c2bb;
}
.gdm-dp-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease;
}
.gdm-dp-toggle.is-on {
  background: #fdeaea;
  border-color: #b32d2e;
  color: #b32d2e;
}
.gdm-dp-toggle.is-on .gdm-dp-switch { background: #b32d2e; }
.gdm-dp-toggle.is-on .gdm-dp-switch::after { transform: translateX(16px); }
.gdm-dp-note {
  display: none;
  position: absolute;
  z-index: 5;
  left: 0;
  bottom: calc(100% + 6px);
  width: max-content;
  max-width: 220px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #f3d0d0;
  border-radius: 10px;
  background: #fff;
  color: #7a2e2e;
  box-shadow: 0 8px 20px rgba(28, 20, 20, 0.12);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.gdm-dp-toggle.is-tip + .gdm-dp-note,
.gdm-dp-toggle:focus-visible + .gdm-dp-note { display: block; }
.gdm-dp-wrap:has(.is-tip) { z-index: 300; }
.gdm-day-card:has(.is-tip) { z-index: 30; }
@media (pointer: coarse), (max-width: 768px) {
  .gdm-dp-note {
    bottom: calc(100% + 52px);
    top: auto;
    max-width: min(240px, calc(100vw - 48px));
  }
}
@media (max-width: 768px) {
  .gdm-day-card .gdm-diet-row:empty,
  .gdm-day-card .wmb-card-nutrition-new:empty { display: none; }
}
@media (min-width: 769px) {
  .gdm-day-card .wmb-card-title-new {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
    line-height: 1.25;
    min-height: calc(1.25em * 4);
    max-height: calc(1.25em * 4);
    margin: 0 0 8px;
  }
  .gdm-day-card .gdm-diet-row,
  .gdm-day-card .gdm-diet-row:empty {
    display: flex;
    align-items: center;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    margin: 0 0 8px;
    overflow: hidden;
  }
  .gdm-day-card .wmb-card-nutrition-new,
  .gdm-day-card .wmb-card-nutrition-new:empty {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    box-sizing: content-box;
    min-height: calc(1.35em * 2);
    max-height: calc(1.35em * 2);
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #1c3d2e;
  }
  .gdm-day-card .gdm-dp-wrap { min-height: 34px; }
  .gdm-dp-wrap-empty { display: block; }
}
.gdm-dp-badge {
  display: inline-block;
  margin: 0 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #b32d2e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.5;
  vertical-align: 1px;
}
.gdm-day-card .wmb-card-content-new {
  min-height: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: flex-start;
}
.gdm-day-card .wmb-card-action-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.gdm-day-card .wmb-card-price-new,
.gdm-day-card .wmb-price-value {
  overflow: visible !important;
  text-overflow: unset;
  flex: 0 0 auto;
  min-width: 0;
}
.gdm-day-card .wmb-price-value { font-size: 20px; }
.gdm-day-card .wmb-card-info-btn,
.gdm-day-card .gdm-info-inline {
  position: static !important;
  top: auto !important;
  left: auto !important;
  flex: 0 0 auto;
  margin-left: 2px;
}
.gdm-day-card .wmb-quantity-controls,
.gdm-day-card .wmb-add-btn { margin-left: auto; flex: 0 0 auto; }
.gdm-day-card .wmb-quantity-controls { min-width: 0; }
.gdm-day-card .wmb-dec-btn,
.gdm-day-card .wmb-inc-btn { width: 32px; height: 32px; }

body > .gdm-sheet {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

body > .gdm-sheet[hidden] { display: none !important; }

body > .gdm-sheet .gdm-sheet-back {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.5);
}

body > .gdm-sheet .gdm-sheet-card {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 32px));
  max-width: 100%;
  max-height: min(86vh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
  background: #fff;
  border-radius: 16px;
  box-sizing: border-box;
}

.gdm-sheet-head {
  display: flex;
  justify-content: flex-end;
  padding: 10px 10px 0;
  flex: 0 0 auto;
}

.gdm-sheet-body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 4px 20px 24px;
  min-height: 0;
}

.gdm-sheet-x {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f3f3f3;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.gdm-lines li span:first-child { min-width: 0; overflow-wrap: anywhere; }

.gdm-req { color: #a15c07; }

.gdm-sheet-card label { display: block; margin: 10px 0; font-size: 14px; }
.gdm-sheet-card .gdm-fulfill { display: flex; gap: 8px; margin: 8px 0 4px; }
.gdm-sheet-card .gdm-fulfill label {
  flex: 1;
  margin: 0;
  border: 1px solid #d5d8d2;
  border-radius: 999px;
  text-align: center;
  padding: 10px 8px;
  cursor: pointer;
  font-weight: 700;
  background: #fff;
}
.gdm-sheet-card .gdm-fulfill label.is-on { background: #17815e; color: #fff; border-color: #17815e; }
.gdm-sheet-card .gdm-fulfill input { position: absolute; opacity: 0; pointer-events: none; }
.gdm-pickup-note { margin: 4px 0 10px; color: #17815e; font-weight: 700; }
.gdm-sheet-card input,
.gdm-sheet-card textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  font: inherit;
  padding: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-sizing: border-box;
}

.gdm-lines { list-style: none; margin: 0; padding: 0; }
.gdm-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.gdm-total { display: flex; justify-content: space-between; font-size: 18px; }
.gdm-form-msg { min-height: 1.2em; color: #2d5a3d; }
.gdm-min { margin: 0; color: #a15c07; font-size: 13px; }
.gdm-sticky-hint {
  flex: 1 0 100%;
  text-align: center;
}
@media (max-width: 768px) {
  .gdm-wrap .wmb-wrapper { padding-bottom: 168px; }
}
.wmb-sticky .gdm-min { font-size: 12px; line-height: 1.35; }
.gdm-note { color: #444; font-size: 14px; }

.gdm-success {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}
.gdm-success-back {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
}
.gdm-success-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow: auto;
  padding: 32px 24px 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  text-align: center;
  box-sizing: border-box;
}
.gdm-success-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f3f3f3;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.gdm-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  font-size: 2rem;
  font-weight: 700;
  line-height: 64px;
}
.gdm-success-card h2 { margin: 0 0 12px; font-size: 1.35rem; color: #111827; }
.gdm-success-order { margin: 0 0 8px; font-weight: 600; color: #4f46e5; }
.gdm-success-card p { margin: 0; color: #4b5563; line-height: 1.5; }
.gdm-success-shot {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  text-align: left;
  color: #92400e;
  font-size: 0.9rem;
}
.gdm-success-details { margin-top: 16px; text-align: left; }
.gdm-success-details h3 { margin: 0 0 8px; font-size: 1rem; color: #111827; }

.gdm-gallery-note {
  margin: 6px 0 10px;
  color: #5c6b62;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}
.gdm-day-rule {
  margin: 4px 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f3f7f4;
  color: #1f3d2e;
  font-size: 15px;
  line-height: 1.5;
}
.gdm-day-rule a { color: #2d5a3d; font-weight: 700; }
.gdm-help {
  margin: 28px 0 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f4f7f5;
  color: #3d4a44;
  font-size: 14px;
  line-height: 1.45;
}
.gdm-help p { margin: 0 0 6px; }
.gdm-help p:last-child { margin: 0; }
.gdm-help a { color: #2d5a3d; font-weight: 700; }
.gdm-ask {
  margin: 0 0 12px;
  color: #5c6b62;
  font-size: 13px;
  line-height: 1.4;
}
.gdm-ask a { color: #2d5a3d; font-weight: 700; }
.gdm-confirm {
  position: fixed;
  inset: 0;
  z-index: 100002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
}
.gdm-confirm-card {
  width: min(420px, 100%);
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.gdm-confirm-card p { margin: 0 0 14px; color: #1f2933; line-height: 1.45; }
.gdm-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; }
.gdm-confirm-actions button {
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
}
.gdm-confirm-actions [data-no] { background: #f3f4f6; color: #374151; }
.gdm-confirm-actions [data-yes] { background: #2d5a3d; color: #fff; }
.gdm-lead {
  margin: 0 0 14px;
  border: 1px solid #e4eee7;
  border-radius: 10px;
  background: #fff;
}
.gdm-lead summary {
  padding: 8px 12px;
  cursor: pointer;
  color: #2d5a3d;
  font-size: 14px;
  font-weight: 700;
}
.gdm-lead summary:hover { background: #f7faf8; }
.gdm-lead > :not(summary) { margin: 0 12px 10px; }
.gdm-lead a { color: #2d5a3d; text-decoration: underline; }
.gdm-tabs-slot { min-height: 0; }
.gdm-wrap .gdm-pin-tabs,
body > .gdm-pin-tabs {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 0 10px !important;
  padding: 4px !important;
  background: #fff;
  border: 1px solid #d5e3da !important;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(28, 58, 42, 0.05);
  box-sizing: border-box;
}
body > .gdm-pin-tabs.is-pinned {
  margin: 0 !important;
  box-shadow: 0 10px 28px rgba(28, 58, 42, 0.16);
}
.gdm-wrap .gdm-pin-tabs .wmb-tab,
body > .gdm-pin-tabs .wmb-tab {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 !important;
  padding: 8px 8px !important;
  border: 1px solid #c5d5cb !important;
  border-radius: 9px !important;
  background: #f4f8f5 !important;
  color: #24523a !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.2;
}
.gdm-wrap .gdm-pin-tabs .wmb-tab-active,
body > .gdm-pin-tabs .wmb-tab-active {
  background: #2d5a3d !important;
  border-color: #2d5a3d !important;
  color: #fff !important;
}
.gdm-tab-count {
  min-width: 1.5em;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(36, 82, 58, 0.12);
  font-size: 13px;
  font-weight: 700;
}
.wmb-tab-active .gdm-tab-count { background: rgba(255, 255, 255, 0.24); }
.gdm-tabs-hint {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #3d6b52;
}
@media (max-width: 640px) {
  .gdm-wrap .gdm-pin-tabs .wmb-tab,
  body > .gdm-pin-tabs .wmb-tab {
    padding: 7px 6px !important;
    font-size: 14px !important;
  }
  .gdm-tabs-hint {
    display: block;
    padding: 2px 6px 4px;
    font-size: 11px;
    line-height: 1.3;
  }
}
.gdm-also {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.gdm-diet-tip {
  position: fixed;
  z-index: 100001;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.gdm-diet-tip.is-on { opacity: 1; }
#gdm-info-modal .wmb-modal-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: 500px;
  width: min(500px, calc(100vw - 32px));
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
#gdm-info-modal h3 { margin: 0 0 16px; font-size: 20px; font-weight: 700; }
#gdm-info-modal .wmb-item-info-section h4 { margin: 0 0 8px; color: #2d5a3d; font-size: 16px; }
#gdm-info-modal .wmb-item-info-section p { margin: 0; color: #666; line-height: 1.6; }
#gdm-info-modal .wmb-item-info-allergens {
  background: #fff3cd;
  border-left: 4px solid #ff9800;
  padding: 12px;
  border-radius: 8px;
}
#gdm-photo-modal,
#gdm-info-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

#gdm-photo-modal.open,
#gdm-info-modal.open { display: flex; }

#gdm-photo-img { width: 100%; border-radius: 12px; }
