/* ============================================================
   Sweet Delivery Estimator — modal "¿Cuándo llega?"
   Prefijo: sde-
   ============================================================ */

.sde-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.7);
}

.sde-overlay[hidden] { display: none; }

.sde-modal {
  position: relative;
  width: 100%;
  max-width: 320px;
  background: #fff;
  border: 2px solid #3b3b3b;
  box-shadow: 8px 8px 0 #3b3b3b;
  border-radius: 0px;
  padding: 28px 22px 22px;
  font-family: 'Urbanist', sans-serif;
  color: #3b3b3b;
}

.sde-close-x {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #3b3b3b;
  cursor: pointer;
}

.sde-title {
  font-family: 'Rubik', sans-serif;
  font-weight: 900;
  font-size: 19px;
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: 0.3px;
}

.sde-rule {
  display: block;
  width: 40px;
  height: 3px;
  background: #ffbcfd;
  border-radius: 3px;
  margin: 0 auto 20px;
}

.sde-label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin: 14px 0 6px;
}

.sde-select-wrap {
  position: relative;
}

.sde-select-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 16px;
  width: 9px;
  height: 9px;
  border-right: 2px solid #3b3b3b;
  border-bottom: 2px solid #3b3b3b;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.sde-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border: 2px solid #3b3b3b;
  border-radius: 10px;
  padding: 12px 38px 12px 14px;
  font-family: 'Urbanist', sans-serif;
  line-height: 1.4!important;
  height:auto;
  font-size: 14px;
  color: #3b3b3b;
  cursor: pointer;
}

.sde-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sde-result {
  margin-top: 22px;
  border: 2px solid #3b3b3b;
  border-radius: 12px;
  background: #fdf2fe;
  padding: 18px 16px;
  text-align: left;
}

.sde-result-prompt {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #3b3b3b;
}

.sde-result-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 8px 0;
  font-size: 14px;
}

.sde-result-head {
  font-weight: 700;
}

.sde-result-eta {
  font-family: 'Rubik', sans-serif;
  font-weight: 900;
  font-size: 18px;
  margin: 8px 0;
}

.sde-result-note {
  font-size: 13px;
  color: #3b3b3b;
}

.sde-ico {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: block;
}

.sde-close-link {
  display: block;
  margin: 20px auto 0;
  background: none;
  border: none;
  font-family: 'Urbanist', sans-serif;
  font-size: 15px;
  color: #3b3b3b;
  text-decoration: none;
  cursor: pointer;
}

@media (max-width: 600px) {
  .sde-overlay {
    padding: 14px;
  }
  .sde-modal {
    max-width: 100%;
  }
}