/**
 * Splesh Shipping Popup — Styles
 * Mobile-first responsive layout for the international delivery modal.
 */

/* ---- Overlay ---- */
#splesh-shipping-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Padding keeps the modal off the screen edges on small devices */
  padding: 16px;
  box-sizing: border-box;
  background: rgba(17, 24, 39, 0.55);
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  overflow-y: auto;
}

#splesh-shipping-overlay.ssp-visible {
  opacity: 1;
  visibility: visible;
}

#splesh-shipping-overlay * {
  box-sizing: border-box;
}

/* ---- Modal (mobile-first) ---- */
#splesh-shipping-modal {
  width: 100%;
  max-width: 400px;
  margin: auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1f2937;
}

#splesh-shipping-overlay.ssp-visible #splesh-shipping-modal {
  transform: translateY(0) scale(1);
}

/* ---- Content ---- */
.ssp-icon {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 12px;
}

.ssp-title {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 12px;
  color: #111827;
}

.ssp-body {
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 8px;
  color: #374151;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.ssp-estimate {
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 20px;
  color: #374151;
}

.ssp-estimate strong,
.ssp-body strong {
  color: #111827;
}

/* ---- Button (min 44px touch target) ---- */
.ssp-btn {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  color: #ffffff;
  background: #111827;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.2s ease, transform 0.1s ease;
}

.ssp-btn:hover {
  background: #374151;
}

.ssp-btn:active {
  transform: scale(0.98);
}

.ssp-btn:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.6);
  outline-offset: 2px;
}

/* ---- Larger screens: a touch more breathing room ---- */
@media (min-width: 480px) {
  #splesh-shipping-modal {
    padding: 32px 28px;
  }

  .ssp-icon {
    font-size: 48px;
    margin-bottom: 16px;
  }

  .ssp-title {
    font-size: 24px;
  }

  .ssp-body,
  .ssp-estimate {
    font-size: 16px;
  }
}

/* ---- Very small screens (320px) ---- */
@media (max-width: 360px) {
  #splesh-shipping-overlay {
    padding: 10px;
  }

  #splesh-shipping-modal {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .ssp-title {
    font-size: 18px;
  }
}
