/* ta-delivery-check: a small pincode or country lookup. */

.ta-dc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 30em;
}

/* used alone, for example inside a Custom Liquid block on the product page */
.ta.ta-dc--inline {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--ta-line);
  border-radius: var(--ta-r-card, 0);
  background-color: var(--ta-tint);
  background-image: none;
}

.ta-dc__title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ta-fg);
  font-weight: 600;
}

.ta-dc__title .ta-icon {
  color: var(--ta-accent);
}

.ta-dc__form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ta-dc__row {
  display: flex;
  gap: 8px;
}

.ta-dc__row .ta-input {
  flex: 1 1 auto;
  min-width: 0;
}

.ta-dc__row .ta-btn {
  flex: none;
}

.ta-dc__all summary {
  display: inline-block;
  padding: 4px 0;
  color: var(--ta-link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.ta-dc__all ul {
  margin-top: 6px;
  border-top: 1px solid var(--ta-line);
}

.ta-dc__all li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid var(--ta-line);
}

/* the section version: text on one side, the check on the other */
.ta-dcs__grid {
  display: grid;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}

.ta-dcs__grid .ta-head {
  margin-bottom: 0;
}

.ta-dcs__panel {
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--ta-line);
  border-radius: var(--ta-r-card, 0);
  background: var(--ta-tint);
}

.ta-dcs__panel .ta-dc {
  max-width: none;
}

@media (min-width: 990px) {
  .ta-dcs__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
