/**
 * PDP Estimated Delivery Date (EDD) Styles
 * A/B Test Variation - Replaces "In Stock - Ready to Ship" message
 * Matches Figma design with green dot, delivery range, and zip code trigger
 */

/* Container */
.pdp-edd {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  line-height: normal;
  background-color: #FFF;
  font-size: 14px;
  font-weight: 300;
}

/* Status row (green dot + delivery text) */
.pdp-edd__status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdp-edd__status-dot {
  width: 10px;
  height: 10px;
  background-color: #49CA54;
  border-radius: 50%;
  flex-shrink: 0;
}

.pdp-edd__status-text {
  color: #000000;
  letter-spacing: 0.28px;
  font-size: 14px;
}

.pdp-edd__status-text strong {
  color: #29845a;
  font-weight: 600;
}

/* Location row (Deliver to + ZIP) */
.pdp-edd__location {
  position: relative;
}

.pdp-edd__location-content {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #616161;
  letter-spacing: 0.28px;
  font-size: 14px;
}

.pdp-edd__location-label {
  color: #616161;
}

.pdp-edd__location-trigger {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: #0530ad;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}

.pdp-edd__location-trigger:hover {
  color: #041f75;
  text-decoration: underline;
}

.pdp-edd__location-trigger:focus {
  outline: 2px solid #0530ad;
  outline-offset: 2px;
  border-radius: 2px;
}

.pdp-edd .location-tracker-text {
  font-weight: 500;
  color: #0530ad;
  text-decoration: underline;
  cursor: pointer;
}

/* Inline Popover */

/* Override for Location Tracker Popup */
.pdp-edd .location-tracker-popup {
  left: 152px;
  transform: translateX(-50%);
  bottom: calc(100% + 8px);
  top: auto;
}

/* Override tooth position - bottom left instead of top right */
/* border layer */
.pdp-edd .location-tracker-popup::before {
  bottom: -6px !important;
  top: unset !important;
  right: 70% !important;
  left: auto !important;
}

/* fill layer */
.pdp-edd .location-tracker-popup::after {
  bottom: -5px !important;
  top: unset !important;
  right: 70% !important;
  left: auto !important;
}

/* Popover styles */
.pdp-edd__popover {
  width: 300px;
  min-height: 148px;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1050;
  border: 1px solid #E3E3E3;
  cursor: default;
}

.pdp-edd__popover input {
  padding-left: 10px;
  padding-right: 40px;
  background: #FDFDFD;
  border: 1px solid #BBB;
}

.pdp-edd__popover input.is-invalid {
  border-color: #EF4D2F;
}

.pdp-edd__popover .btn-close {
  opacity: 0.5;
}

.pdp-edd__popover .btn-close:hover {
  opacity: 1;
}

@media (max-width: 767px) {
  .pdp-edd__popover {
    right: -16px;
    left: -16px;
    width: auto;
  }
}

@media (min-width: 768px) {
  .pdp-edd__location {
    font-size: 15px;
  }
}
