/* Checkout only: keep form controls independent from the address map's height. */
html.cdo-pedido-page,
html.cdo-pedido-page body,
html.cdo-pedido-page #root {
  overflow-x: clip;
  overflow-y: visible;
}

html.cdo-pedido-page .app-main {
  max-width: 1232px;
  margin-inline: auto;
  padding-top: 28px;
  width: 100%;
}

html.cdo-pedido-page .app-main > .page-stack {
  align-items: start;
  gap: 24px;
}

html.cdo-pedido-page .page-stack > .compact-hero {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #25324b;
  gap: 7px;
  min-height: 0;
  padding: 0 0 4px;
}

html.cdo-pedido-page .compact-hero > span {
  background: transparent;
  border: 0;
  color: #667085;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0;
}

html.cdo-pedido-page .compact-hero h1 {
  color: #25324b;
  font-size: clamp(1.625rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

html.cdo-pedido-page .compact-hero .cdo-checkout-subtitle {
  color: #667085;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

html.cdo-pedido-page :is(.order-list, .form-panel, .order-summary) {
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 16px;
  box-shadow: 0 3px 12px #182b4c04;
  min-width: 0;
  padding: 22px;
}

html.cdo-pedido-page :is(.cdo-order-list-title, .cdo-order-summary-title, .section-header h2) {
  color: #25324b;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
  margin: 0;
}

html.cdo-pedido-page .form-panel .section-header {
  margin-bottom: 6px;
}

html.cdo-pedido-page .form-panel .section-header span {
  display: none;
}

html.cdo-pedido-page .order-item {
  align-items: start;
  background: transparent;
  border: 0;
  border-radius: 0;
  gap: 16px;
  grid-template-columns: 80px minmax(0, 1fr);
  padding: 4px 0 0;
}

html.cdo-pedido-page .order-item:not(:last-child) {
  border-bottom: 1px solid #eef0f4;
  padding-bottom: 18px;
}

html.cdo-pedido-page .order-item > img {
  background: #f6f7f9;
  border-radius: 10px;
  height: 80px;
  min-height: 0;
  object-fit: contain;
  width: 80px;
}

html.cdo-pedido-page .order-item-head {
  align-items: start;
}

html.cdo-pedido-page .order-item h2 {
  color: #344054;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
}

html.cdo-pedido-page .order-item-head span {
  font-size: 0.6875rem;
}

html.cdo-pedido-page .order-item-head > button {
  background: transparent;
  border-radius: 8px;
  color: #98a2b3;
  flex-shrink: 0;
  height: 36px;
  width: 36px;
}

html.cdo-pedido-page .order-item-head > button:hover {
  background: #fff1f3;
  color: #c91d3c;
}

html.cdo-pedido-page .order-item-actions {
  margin-top: 10px;
}

html.cdo-pedido-page .order-item-actions > strong {
  color: #344054;
  font-size: 0.9375rem;
  font-weight: 650;
  white-space: nowrap;
}

html.cdo-pedido-page .order-item textarea {
  border-color: #e4e7ec;
  border-radius: 8px;
  font-size: 0.75rem;
  height: 40px;
  min-height: 40px;
  padding: 10px;
}

html.cdo-pedido-page .form-grid {
  align-items: start;
  gap: 18px 14px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

html.cdo-pedido-page .form-grid > label {
  align-self: start;
  color: #475467;
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  font-weight: 500;
  gap: 7px;
  grid-column: span 2;
  min-width: 0;
}

html.cdo-pedido-page .form-grid > label > input {
  border-color: #dfe3ea;
  border-radius: 8px;
  color: #344054;
  flex: 0 0 auto;
  font-size: 0.8125rem;
  font-weight: 400;
  height: 44px;
  min-height: 44px;
  padding: 0 11px;
}

html.cdo-pedido-page .form-grid > label:has(> input[data-cdo-address-enhanced]),
html.cdo-pedido-page .form-grid > label:has(> textarea),
html.cdo-pedido-page .form-grid > .cdo-delivery-panel {
  grid-column: 1 / -1;
}

html.cdo-pedido-page .form-grid > label > textarea {
  border-color: #dfe3ea;
  border-radius: 8px;
  color: #344054;
  font-size: 0.8125rem;
  font-weight: 400;
  min-height: 72px;
  padding: 10px 11px;
}

html.cdo-pedido-page .form-grid .segmented-control {
  align-self: start;
  gap: 8px;
  grid-column: span 4;
}

html.cdo-pedido-page .segmented-control legend {
  color: #475467;
  font-size: 0.75rem;
  font-weight: 500;
}

html.cdo-pedido-page .segmented-control button {
  border-color: #e4e7ec;
  border-radius: 8px;
  color: #667085;
  font-size: 0.8125rem;
  font-weight: 500;
  min-height: 44px;
}

html.cdo-pedido-page .segmented-control button.is-active {
  background: #eef1fc;
  border-color: #cbd3f2;
  color: #1d2c8c;
}

html.cdo-pedido-page .cdo-address-tools {
  gap: 7px;
  margin-top: 0;
}

html.cdo-pedido-page .cdo-address-map {
  border-color: #e4e7ec;
  border-radius: 8px;
  height: 144px;
}

html.cdo-pedido-page .cdo-address-suggestions[hidden] {
  display: none;
}

html.cdo-pedido-page .cdo-address-search {
  background: #f8f9fc;
  border-color: #e4e7ec;
  font-size: 0.75rem;
  font-weight: 500;
}

html.cdo-pedido-page :is(.cdo-address-helper, .cdo-delivery-date-helper) {
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.45;
}

html.cdo-pedido-page .cdo-delivery-panel {
  border-color: #e6e9ef;
  border-radius: 10px;
  box-shadow: none;
  padding: 14px;
}

html.cdo-pedido-page .cdo-location-card {
  background: #f8f9fc;
  border-color: #e6e9ef;
}

html.cdo-pedido-page .order-summary {
  align-self: start;
  backdrop-filter: none;
  bottom: auto;
  gap: 18px;
  position: static;
}

html.cdo-pedido-page .order-summary > div:first-of-type > span {
  font-size: 0.8125rem;
  font-weight: 400;
}

html.cdo-pedido-page .order-summary > div:first-of-type > strong {
  color: #344054;
  font-size: 1.375rem;
  font-weight: 650;
}

html.cdo-pedido-page .order-summary small {
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.5;
}

html.cdo-pedido-page .cdo-order-delivery-summary {
  border-color: #e8ebf1;
  margin: 0;
  padding: 12px 0;
}

html.cdo-pedido-page .cdo-order-delivery-summary :is(span, strong) {
  font-size: 0.8125rem;
  font-weight: 500;
}

html.cdo-pedido-page .cdo-order-delivery-summary .is-total {
  align-items: center;
  margin-top: 8px;
}

html.cdo-pedido-page .cdo-order-delivery-summary .is-total strong {
  font-size: 1.375rem;
  font-weight: 700;
}

html.cdo-pedido-page .order-summary > .button {
  border-radius: 9px;
  box-shadow: none;
  font-size: 0.8125rem;
  font-weight: 600;
  min-height: 46px;
}

html.cdo-pedido-page .order-summary > .button-secondary {
  background: #f3f5fa;
  border: 1px solid #e0e5ef;
  color: #344054;
}

html.cdo-pedido-page .order-summary > .button-secondary :is(span, svg) {
  color: inherit;
}

html.cdo-pedido-page .order-summary > .cdo-checkout-consent:not(.cdo-payment-methods) {
  background: transparent;
  border: 0;
  margin: 0;
  padding: 0;
}

html.cdo-pedido-page .order-summary .cdo-checkout-consent label,
html.cdo-pedido-page .order-summary .cdo-checkout-consent label > span {
  color: #667085;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.5;
  text-transform: none;
}

html.cdo-pedido-page .order-summary .cdo-checkout-consent input[type="checkbox"] {
  flex-basis: 1rem;
  height: 1rem;
  min-height: 1rem;
  width: 1rem;
}

html.cdo-pedido-page .order-summary .cdo-checkout-consent small {
  margin-top: 8px;
}

html.cdo-pedido-page .app-main > .empty-state {
  margin: 12px auto 0;
  min-height: 280px;
  padding: 40px 24px;
  width: 100%;
}

html.cdo-pedido-page :is(input, textarea, button, a, summary):focus-visible {
  outline: 2px solid #1d2c8c;
  outline-offset: 3px;
}

@media (min-width: 1040px) {
  html.cdo-pedido-page .app-main > .page-stack {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  html.cdo-pedido-page .page-stack > .compact-hero {
    grid-column: 1;
  }

  html.cdo-pedido-page .page-stack > :is(.order-list, .form-panel) {
    grid-column: 1;
  }

  html.cdo-pedido-page .page-stack > .order-summary {
    grid-column: 2;
    grid-row: 1 / span 3;
    position: sticky;
    top: 90px;
  }
}

@media (max-width: 679px) {
  html.cdo-pedido-page .app-main {
    padding-top: 20px;
  }

  html.cdo-pedido-page .app-main > .page-stack {
    gap: 18px;
  }

  html.cdo-pedido-page :is(.order-list, .form-panel, .order-summary) {
    border-radius: 12px;
    padding: 16px;
  }

  html.cdo-pedido-page .form-grid {
    gap: 16px;
    grid-template-columns: minmax(0, 1fr);
  }

  html.cdo-pedido-page .form-grid > label,
  html.cdo-pedido-page .form-grid > .segmented-control {
    grid-column: 1;
  }

  html.cdo-pedido-page .order-item {
    gap: 10px;
    grid-template-columns: 60px minmax(0, 1fr);
  }

  html.cdo-pedido-page .order-item > img {
    height: 60px;
    width: 60px;
  }

  html.cdo-pedido-page .order-item-head > button {
    height: 32px;
    width: 28px;
  }

  html.cdo-pedido-page .order-item h2 {
    font-size: 0.75rem;
  }
}
