.site-document {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 20px 64px;
}

.document-breadcrumb {
  margin-bottom: 24px;
  color: #666;
  font-size: .85rem;
}

.document-breadcrumb span {
  margin-inline: .4rem;
}

.document-card {
  max-width: 850px;
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid #e5e5e5;
  border-radius: 10px;
}

.document-card h2,
.checkout-form legend {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 8px;
}

.document-card section + section {
  margin-top: 24px;
}

.document-notice {
  background: #f5f5f5;
  padding: 10px 14px;
  border-radius: 6px;
}

.checkout-columns,
.checkout-fields {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 20px;
}

.checkout-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-form {
  display: grid;
  gap: 18px;
}

.checkout-form fieldset label {
  display: block;
  margin: 0 0 8px;
}

.checkout-next {
  align-self: start;
  background: #f5f5f5;
}

.checkout-next ol {
  padding-left: 1.2rem;
}

@media (max-width: 767px) {
  .checkout-columns,
  .checkout-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

.checkout-steps {
  display: grid;
  gap: 20px;
}

.checkout-step p,
.checkout-next p:last-child {
  margin-bottom: 0;
}

.checkout-step-number {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  margin-right: .35rem;
  border-radius: 50%;
  background: var(--porto-primary-color, #0056ad);
  color: #fff;
  font-size: .85rem;
}

@media (min-width: 768px) {
  .checkout-next {
    position: sticky;
    top: 20px;
  }
}

.checkout-option {
  display: flex !important;
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  cursor: pointer;
}

.checkout-option input {
  margin-top: .5em;
}

.checkout-option small {
  display: block;
  color: #666;
}

.checkout-form label > .form-control,
.checkout-form label > .form-select {
  margin-top: 4px;
}

.checkout-help {
  color: #666;
  font-size: .9rem;
  margin-bottom: 0;
}

.checkout-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #dedede;
}

.checkout-totals dt {
  font-weight: 500;
}

.checkout-totals dd {
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.checkout-totals .checkout-grand-total {
  color: var(--porto-primary-color, #0056ad);
  font-size: 1.1rem;
  font-weight: 700;
}

.receipt-banner {
  background: #eef5fb;
  padding: clamp(20px, 4vw, 40px);
  border-radius: 10px;
  margin-bottom: 20px;
}

.checkout-page .page-wrapper {
  overflow: clip;
}

.checkout-progress {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 6px;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}

.checkout-progress a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 4px;
  border-radius: 5px;
  color: #222529;
  font-size: clamp(.72rem, 2.5vw, .9rem);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.checkout-progress a span {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.checkout-progress a[aria-current="step"] {
  background: var(--porto-primary-color, #0056ad);
  color: #fff;
}

.checkout-page .checkout-form {
  scroll-margin-top: 66px;
}

@media (min-width: 768px) {
  .checkout-page .checkout-next {
    top: 70px;
  }
}

@media (max-width: 380px) {
  .checkout-progress a {
    gap: 3px;
    padding-inline: 1px;
  }

  .checkout-progress a span {
    width: 1rem;
    height: 1rem;
  }
}

.delivery-picker {
  position: relative;
}

.delivery-picker-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
}

.delivery-picker-toggle::after {
  content: '';
  width: 8px;
  height: 8px;
  margin-left: 12px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}

.delivery-calendar {
  width: min(100%, 340px);
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #fff;
}

.delivery-calendar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.delivery-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
}

.delivery-calendar button {
  min-height: 34px;
  padding: 0 3px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #222529;
  background: #f4f5f6;
}

.delivery-calendar-heading button {
  min-width: 34px;
}

.delivery-calendar button:disabled {
  color: #767676;
  background: transparent;
}

.delivery-calendar-grid button:not(:disabled) {
  color: #19572a;
  background: #dff3e3;
  cursor: pointer;
}

.delivery-calendar-grid button[aria-pressed="true"],
.delivery-calendar-grid button:not(:disabled):hover {
  border-color: #32894d;
}
