.cdo-delivery-panel {
  border: 1px solid var(--color-border, #1d2c8c1a);
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
}

.cdo-global-location {
  display: flex;
  align-items: center;
  gap: 6px;
  width: calc(100% - 40px);
  border: 1px solid #1d2c8c1a;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 14px #1d2c8c0a;
  color: inherit;
  cursor: pointer;
  font: inherit;
  margin: 12px 20px 6px;
  min-height: 34px;
  overflow: hidden;
  padding: 6px 10px;
  text-align: left;
}

.cdo-global-location span {
  color: var(--color-muted, #687084);
  flex: 0 0 auto;
  font-size: 0.72rem;
}

.cdo-global-location strong {
  color: var(--color-primary, #1d2c8c);
  flex: 1 1 auto;
  font-size: 0.84rem;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cdo-global-location small {
  color: var(--color-muted, #687084);
  flex: 0 0 auto;
  font-size: 0.72rem;
}

.cdo-delivery-head {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.cdo-delivery-head strong {
  color: var(--color-primary, #1d2c8c);
  font-size: 1rem;
}

.cdo-delivery-head span {
  color: var(--color-muted, #687084);
  font-size: 0.9rem;
  line-height: 1.35;
}

.cdo-location-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid #1d2c8c1f;
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px;
}

.cdo-location-pin {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eaf2ff;
  color: var(--color-primary, #1d2c8c);
  font-size: 1.05rem;
  font-weight: 800;
}

.cdo-location-trigger {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
}

.cdo-location-trigger span {
  color: var(--color-muted, #687084);
  font-size: 0.78rem;
}

.cdo-location-trigger strong {
  color: var(--color-text, #151b2d);
  font-size: 0.98rem;
  line-height: 1.2;
}

.cdo-location-trigger small {
  color: var(--color-primary, #1d2c8c);
  font-size: 0.82rem;
}

.cdo-delivery-hidden-fields {
  display: none;
}

.cdo-delivery-status {
  border: 0;
  border-radius: 8px;
  color: var(--color-muted, #687084);
  font-size: 0.86rem;
  line-height: 1.4;
  margin-top: 8px;
  padding: 8px 2px 0;
}

.cdo-delivery-status.is-loading {
  color: var(--color-primary, #1d2c8c);
  background: #1d2c8c0a;
}

.cdo-delivery-status.is-ok {
  color: #146c2e;
  background: transparent;
}

.cdo-delivery-status.is-error {
  color: var(--color-accent, #e3062b);
  background: #e3062b0d;
  border-color: #e3062b33;
}

.cdo-delivery-status small {
  display: block;
  margin-top: 4px;
}

.cdo-delivery-cost-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}

.cdo-delivery-cost-row.is-total {
  border-top: 1px solid currentColor;
  font-weight: 700;
  padding-top: 6px;
}

.cdo-delivery-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  background: rgba(7, 12, 28, 0.54);
  padding: 18px;
}

.cdo-delivery-modal {
  width: min(100%, 480px);
  max-height: min(82vh, 680px);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(7, 12, 28, 0.26);
  color: var(--color-text, #151b2d);
  padding: 18px;
  overflow: hidden;
}

.cdo-delivery-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.cdo-delivery-modal-head span {
  color: var(--color-primary, #1d2c8c);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cdo-delivery-modal-head h2 {
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 2px 0 0;
}

.cdo-delivery-modal-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f2f4f8;
  color: inherit;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.cdo-delivery-location-list {
  display: grid;
  gap: 8px;
  max-height: 54vh;
  overflow: auto;
  padding-right: 2px;
}

.cdo-delivery-geolocate {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: var(--color-primary, #1d2c8c);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  margin-bottom: 10px;
  padding: 10px 12px;
}

.cdo-delivery-modal-status {
  color: var(--color-muted, #687084);
  font-size: 0.84rem;
  line-height: 1.35;
  margin: -2px 0 10px;
  min-height: 0;
}

.cdo-delivery-modal-status.is-error {
  color: var(--color-accent, #e3062b);
}

.cdo-delivery-location-option {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 1px solid #1d2c8c1a;
  border-radius: 10px;
  background: #ffffff;
  color: inherit;
  cursor: pointer;
  padding: 12px;
  text-align: left;
}

.cdo-delivery-location-option:hover,
.cdo-delivery-location-option:focus {
  border-color: var(--color-primary, #1d2c8c);
  outline: none;
}

.cdo-delivery-location-option strong {
  font-size: 0.96rem;
}

.cdo-delivery-location-option span {
  color: var(--color-muted, #687084);
  font-size: 0.84rem;
}

.cdo-delivery-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.cdo-delivery-modal-primary,
.cdo-delivery-modal-secondary {
  min-height: 42px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  padding: 10px 14px;
}

.cdo-delivery-modal-primary {
  border: 0;
  background: var(--color-primary, #1d2c8c);
  color: #ffffff;
}

.cdo-delivery-modal-primary:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.cdo-delivery-modal-secondary {
  border: 1px solid var(--color-border, #1d2c8c1a);
  background: #ffffff;
  color: inherit;
}

.cdo-order-delivery-summary {
  display: grid;
  gap: 8px;
  border-top: 1px solid #1d2c8c14;
  border-bottom: 1px solid #1d2c8c14;
  margin: 12px 0;
  padding: 12px 0;
}

.cdo-order-delivery-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.cdo-order-delivery-summary > div:not(.is-total) {
  font-size: 0.9rem;
}

.cdo-order-delivery-summary span {
  color: var(--color-muted, #687084);
}

.cdo-order-delivery-summary > div:not(.is-total) strong {
  font-size: 0.92rem;
  font-weight: 700;
}

.cdo-order-delivery-summary .is-total strong {
  color: var(--color-primary, #1d2c8c);
  font-size: 1.08rem;
}

.order-summary button.cdo-checkout-blocked {
  cursor: not-allowed;
  opacity: 0.55;
}

.cdo-delivery-date-helper {
  color: var(--color-muted, #687084);
  display: block;
  font-size: 0.78rem;
  margin-top: 6px;
}

.cdo-address-tools {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.cdo-address-search {
  justify-self: start;
  min-height: 34px;
  border: 1px solid #1d2c8c1f;
  border-radius: 8px;
  background: #ffffff;
  color: var(--color-primary, #1d2c8c);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 7px 10px;
}

.cdo-address-search:hover,
.cdo-address-search:focus {
  border-color: var(--color-primary, #1d2c8c);
  outline: none;
}

.cdo-address-helper {
  color: var(--color-muted, #687084);
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
}

.cdo-address-helper.is-ok {
  color: #146c2e;
}

.cdo-address-suggestions {
  display: grid;
  gap: 6px;
  border: 1px solid #1d2c8c1a;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(7, 12, 28, 0.12);
  max-height: 240px;
  overflow: auto;
  padding: 6px;
}

.cdo-address-suggestion {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 10px;
  text-align: left;
}

.cdo-address-suggestion:hover,
.cdo-address-suggestion:focus {
  background: #eef4ff;
  outline: none;
}

.cdo-address-suggestion strong {
  color: var(--color-text, #151b2d);
  font-size: 0.9rem;
  line-height: 1.25;
}

.cdo-address-suggestion span {
  color: var(--color-muted, #687084);
  font-size: 0.78rem;
  line-height: 1.25;
}

.cdo-address-map {
  width: 100%;
  height: 180px;
  border: 1px solid #1d2c8c1a;
  border-radius: 10px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .cdo-delivery-modal-actions {
    display: grid;
  }
}
