/* Hero + order — stacked layout (photo top, text + form below) */

html.mb-ordering-disabled [data-mb-order-cta],
html.mb-ordering-disabled #order {
  display: none !important;
}

.section-2.home-hero.mb-hero-with-order {
  min-height: auto !important;
  max-height: none !important;
  height: auto !important;
  display: block !important;
  flex-flow: column !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 24px 0 64px !important;
  overflow: visible !important;
}

.mb-hero-with-order .container-default-3 {
  margin-top: 0 !important;
  max-width: 800px !important;
  padding-left: 24px;
  padding-right: 24px;
  display: block !important;
  float: none !important;
}

.mb-hero-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.mb-hero-photo {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-height: 360px;
}

.mb-hero-photo--portrait {
  aspect-ratio: 985 / 1024;
  max-height: none;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.mb-hero-photo__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mb-hero-photo--portrait .mb-hero-photo__img {
  object-fit: cover;
  object-position: center top;
}

.mb-hero-content {
  width: 100%;
}

.mb-hero-with-order .heading-4 {
  margin-bottom: 16px;
}

.mb-hero-with-order .mg-bottom-40px-2-home {
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  width: auto !important;
  font-size: 1.0625rem !important;
  line-height: 1.65;
}

.mb-order {
  scroll-margin-top: 96px;
}

.mb-order--inline {
  margin-top: 40px;
}

.mb-order__title {
  margin-top: 0;
  margin-bottom: 8px;
}

.mb-order__intro {
  margin-bottom: 24px;
  color: var(--neutral-600, #5c5855);
  font-size: 1rem;
  line-height: 1.55;
}

.mb-order__optional {
  font-weight: 400;
}

.mb-order__card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(22, 20, 18, 0.08);
  width: 100%;
}

.mb-order__label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
}

.mb-order__days {
  border: none;
  padding: 0;
  margin: 0 0 28px;
}

.mb-order__pickup-wrap {
  display: flex;
  justify-content: center;
}

.mb-order__pickup-section {
  text-align: center;
  width: 100%;
  padding-bottom: 28px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--secondary-2, #f3ede3);
}

.mb-order__pickup-section .mb-order__label {
  margin-bottom: 14px;
}

.mb-order__pickup-section.is-closed .mb-order__pickup {
  border-color: var(--secondary-2, #f3ede3);
  background: #f5f3ef;
}

.mb-order__field--loaves {
  margin-bottom: 24px;
}

.mb-order__field--loaves .mb-order__label {
  margin-bottom: 16px;
}

.mb-order__pickup {
  padding: 18px 24px;
  border: 2px solid var(--primary-1, #ff7629);
  border-radius: 14px;
  background: var(--secondary-1, #fff9f3);
  text-align: center;
  width: 100%;
  max-width: 380px;
}

.mb-order__pickup-date {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--neutral-800, #161412);
}

.mb-order__pickup-cutoff {
  font-size: 0.9rem;
  color: var(--neutral-600, #5c5855);
}

.mb-order__day {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 2px solid var(--secondary-2, #f3ede3);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.mb-order__day:hover {
  border-color: var(--primary-1, #ff7629);
}

.mb-order__day.is-selected {
  border-color: var(--primary-1, #ff7629);
  background: var(--secondary-1, #fff9f3);
}

.mb-order__day input {
  accent-color: var(--primary-1, #ff7629);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.mb-order__day-text strong {
  display: block;
}

.mb-order__day-text span {
  font-size: 0.9rem;
  color: var(--neutral-600, #5c5855);
}

.mb-order__loaf-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mb-order__loaf-card {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--secondary-2, #f3ede3);
  border-radius: 14px;
  background: var(--secondary-1, #fff9f3);
}

.mb-order__loaf-media {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #eee8df;
}

.mb-order__loaf-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mb-order__loaf-body {
  min-width: 0;
}

.mb-order__loaf-name {
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 6px;
  line-height: 1.3;
}

.mb-order__loaf-desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--neutral-600, #5c5855);
}

.mb-order__loaf-qty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mb-order__qty-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--neutral-600, #5c5855);
}

.mb-order__qty {
  width: 72px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--secondary-2, #f3ede3);
  border-radius: 8px;
  font-size: 1rem;
  text-align: center;
  flex-shrink: 0;
  background: #fff;
}

.mb-order__field {
  margin-bottom: 20px;
}

.mb-order__field .input {
  width: 100%;
  min-height: 48px;
}

.mb-order__field .text-area {
  min-height: 96px;
}

.mb-order__notes {
  font-size: 0.9rem;
  color: var(--neutral-600, #5c5855);
  margin-bottom: 24px;
  line-height: 1.5;
}

.mb-order__error {
  display: none;
  color: #b42318;
  background: #fef3f2;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.mb-order__error.is-visible {
  display: block;
}

.mb-order__pickup.is-closed {
  border-color: var(--secondary-2, #f3ede3);
  background: #f5f3ef;
}

.mb-order__pickup.is-closed .mb-order__pickup-date {
  color: var(--neutral-600, #5c5855);
}

.mb-order__closed-banner {
  display: none;
  padding: 14px 18px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--secondary-2, #f3ede3);
  text-align: center;
  font-weight: 600;
  color: var(--neutral-800, #161412);
}

.mb-order__closed-banner p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.mb-order__card.is-closed .mb-order__closed-banner {
  display: block;
}

.mb-order__form-area.is-dimmed {
  opacity: 0.45;
  filter: grayscale(0.25);
  pointer-events: none;
  user-select: none;
}

.mb-order__closed {
  padding: 16px 0;
  color: var(--neutral-600, #5c5855);
}

.mb-order .w-form-done,
.mb-order .w-form-fail {
  margin-top: 16px;
}

.mb-order .button-primary {
  width: 100%;
  min-height: 52px;
}

@media (max-width: 767px) {
  .section-2.home-hero.mb-hero-with-order {
    padding: 16px 0 48px !important;
  }

  .mb-hero-with-order .container-default-3 {
    padding-left: 20px;
    padding-right: 20px;
  }

  .mb-hero-stack {
    gap: 24px;
  }

  .mb-hero-photo {
    border-radius: 16px;
    max-height: 280px;
    aspect-ratio: 3 / 2;
  }

  .mb-hero-photo--portrait {
    max-height: none;
    max-width: 100%;
    aspect-ratio: 985 / 1024;
  }

  .mb-hero-with-order .mg-bottom-40px-2-home {
    font-size: 1rem !important;
  }

  .mb-order--inline {
    margin-top: 32px;
  }

  .mb-order__card {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .mb-order__loaf-card {
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
  }

  .mb-order__loaf-media {
    width: 72px;
    height: 72px;
    grid-row: span 2;
  }

  .mb-order__loaf-qty {
    grid-column: 2;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
  }
}

@media (max-width: 479px) {
  .mb-hero-with-order .container-default-3 {
    padding-left: 16px;
    padding-right: 16px;
  }

  .mb-hero-photo {
    max-height: 220px;
  }

  .mb-hero-photo--portrait {
    max-height: none;
  }

  .mb-order__qty {
    width: 64px;
  }
}

@media (max-width: 380px) {
  .mb-order__loaf-card {
    grid-template-columns: 1fr;
  }

  .mb-order__loaf-media {
    width: 100%;
    height: 160px;
    grid-row: auto;
  }

  .mb-order__loaf-qty {
    grid-column: 1;
  }
}

@media (min-width: 768px) {
  .mb-hero-with-order .container-default-3 {
    max-width: 960px !important;
  }

  .mb-order__loaf-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .mb-order__loaf-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    align-items: stretch;
    gap: 12px;
    padding: 18px;
    height: 100%;
  }

  .mb-order__loaf-media {
    width: 100%;
    height: 130px;
  }

  .mb-order__loaf-body {
    text-align: center;
  }

  .mb-order__loaf-qty {
    flex-direction: row;
    justify-content: center;
    margin-top: auto;
    padding-top: 4px;
  }
}

@media (min-width: 992px) {
  .mb-hero-with-order .container-default-3 {
    max-width: 1120px !important;
  }

  .mb-order__loaf-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .mb-order__loaf-media {
    height: 150px;
  }

  .mb-hero-photo {
    max-height: 420px;
    aspect-ratio: 16 / 9;
  }

  .mb-hero-photo--portrait {
    max-height: none;
    max-width: 640px;
    aspect-ratio: 985 / 1024;
  }
}
