.pdh-delivery {
  --pdh-green: #729f21;
  --pdh-ink: #294723;

  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin: 12px 0 0;
  padding: 25px 32px;
  background: #f8f6ed;
  border-radius: 16px;
  color: #252925;
}

.pdh-delivery__main {
  flex: 1;
  min-width: 0;
}

.pdh-delivery h2 {
  margin: 0 0 13px;
  font: bold 29px/1.2 Georgia, serif;
  color: var(--pdh-ink);
  text-align: left;
}

.pdh-delivery__controls {
  display: flex;
  max-width: 600px;
}

.pdh-delivery__input {
  position: relative;
  flex: 1;
  min-width: 0;
}

#pdh-place {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  padding: 0 15px;
  border: 1px solid #deded5;
  border-radius: 6px 0 0 6px;
  background: #fff;
  color: #252925;
  font-size: 16px;
}

.pdh-delivery button {
  height: 48px;
  padding: 0 25px;
  border: 0;
  border-radius: 0 6px 6px 0;
  background: var(--pdh-green);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.pdh-delivery button span {
  margin-left: 12px;
}

.pdh-delivery :is(input, button):focus-visible {
  outline: 3px solid #375b24;
  outline-offset: 3px;
}

.pdh-delivery__promise {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
  padding-left: 28px;
  border-left: 1px solid #dfdfd4;
}

.pdh-delivery__promise svg {
  width: 48px;
  height: 48px;
  color: var(--pdh-green);
}

.pdh-delivery__promise strong,
.pdh-delivery__promise span {
  display: block;
  font-size: 16px;
  line-height: 1.4;
}

.pdh-delivery__promise span {
  font-size: 14px;
}

#pdh-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1001;
  box-sizing: border-box;
  width: max(100%, 310px);
  max-width: calc(100vw - 44px);
  max-height: 255px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  border: 1px solid #deded5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px #28351f20;
  list-style: none;
  text-align: left;
}

#pdh-suggestions li {
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.35;
  cursor: pointer;
}

#pdh-suggestions li:hover,
#pdh-suggestions li[aria-selected="true"] {
  background: #eef3e5;
  color: var(--pdh-ink);
}

#pdh-result {
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid #deded5;
  font-size: 16px;
  line-height: 1.5;
}

#pdh-result strong {
  color: var(--pdh-ink);
}

#pdh-result a {
  color: #426c1b;
  text-decoration: underline;
}

#pdh-suggestions[hidden],
#pdh-result[hidden] {
  display: none;
}

.pdh-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

@media (max-width: 767px) {
  .pdh-delivery { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px 18px; margin-top: 0; border-radius: 12px; }
  .pdh-delivery__main { flex: none; width: 100%; }
  .pdh-delivery h2 { font-size: 24px; margin-bottom: 14px; }
  .pdh-delivery__controls { flex-direction: column; gap: 10px; max-width: none; }
  .pdh-delivery__input { flex: none; width: 100%; }
  .pdh-delivery #pdh-place { box-sizing: border-box; width: 100%; height: 46px; padding: 0 13px; border-radius: 6px; font-size: 16px; }
  .pdh-delivery .pdh-delivery__controls > button { width: 100%; height: 44px; border-radius: 6px; font-size: 14px; }
  .pdh-delivery button span { display: none; }
  .pdh-delivery .pdh-delivery__promise { display: flex; flex: none; align-items: center; gap: 8px; box-sizing: border-box; width: 100%; min-width: 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid #dfdfd4; }
  .pdh-delivery .pdh-delivery__promise svg { flex: 0 0 25px; width: 25px; height: 25px; margin: 0; }
  .pdh-delivery .pdh-delivery__promise > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; }
  .pdh-delivery .pdh-delivery__promise strong,
  .pdh-delivery .pdh-delivery__promise span { display: inline; font-size: 12px; line-height: 1.4; }
  #pdh-suggestions { box-sizing: border-box; width: 100%; max-width: 100%; }
  #pdh-result { box-sizing: border-box; font-size: 15px; }
}
