/**
 * 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: 8px;
  padding: 12px 16px;
  background-color: #f8f8f8;
  border-radius: 8px;
  font-family: var(--galls-font-gt-america-standard, Arial, sans-serif);
}

/* Status row (green dot + delivery text) */
.pdp-edd__status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdp-edd__status-dot {
  width: 8px;
  height: 8px;
  background-color: #2ecc71;
  border-radius: 50%;
  flex-shrink: 0;
}

.pdp-edd__status-text {
  font-size: 14px;
  line-height: 1.4;
  color: #333;
}

.pdp-edd__status-text strong {
  font-weight: 600;
  color: #2ecc71;
}

/* Location row (Deliver to + ZIP) */
.pdp-edd__location {
  position: relative;
}

.pdp-edd__location-content {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.pdp-edd__location-label {
  color: #666;
}

.pdp-edd__location-trigger {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #0066cc;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}

.pdp-edd__location-trigger:hover {
  color: #004499;
  text-decoration: none;
}

.pdp-edd__location-trigger:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Inline Popover */
.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;
}

/* Mobile adjustments for popover */
@media (max-width: 767px) {
  .pdp-edd__popover {
    right: -16px;
    left: -16px;
    width: auto;
  }
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .pdp-edd {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
  }

  .pdp-edd__status-text {
    font-size: 15px;
  }

  .pdp-edd__location {
    font-size: 15px;
  }
}

/* Match original pdp__status-pill styling for consistency */
.pdp-edd {
  /* Ensure similar visual weight to original in-stock pill */
  min-height: 44px;
}
