/* ShipShap PUP checkout — palette matches jsapp (src/jsapp/src/theme.css). */
.shipshap-pup-blocks-root {
  margin: 0.5rem 0 0;
  padding: 0;
  width: 100%;
}

.shipshap-pup-fulfillment-row {
  display: table-row;
}

.shipshap-pup-fulfillment {
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  position: relative;
}

.woocommerce .shop_table .shipshap-pup-fulfillment .shipshap-pup-heading,
.shipshap-pup-fulfillment .shipshap-pup-heading {
  margin: 0 0 10px;
  padding: 0;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4b5563;
}

.shipshap-pup-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.shipshap-pup-option {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 180px;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.shipshap-pup-option:hover {
  border-color: #1a9b89;
}

.shipshap-pup-option.selected {
  border-color: #1a9b89;
  background: #e6f4f2;
  box-shadow: 0 0 0 1px #1a9b89 inset;
}

.shipshap-pup-option input {
  margin: 0;
  accent-color: #1a9b89;
}

.shipshap-pup-phone-notice[hidden] {
  display: none !important;
}

.shipshap-pup-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #4b5563;
  font-size: 0.875rem;
}

.shipshap-pup-loading[hidden] {
  display: none !important;
}

.shipshap-pup-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #d1d5db;
  border-top-color: #1a9b89;
  border-radius: 50%;
  animation: shipshap-pup-spin 0.7s linear infinite;
}

@keyframes shipshap-pup-spin {
  to {
    transform: rotate(360deg);
  }
}

.shipshap-pup-fulfillment.is-loading .shipshap-pup-options {
  opacity: 0.55;
  pointer-events: none;
}

/* Hide the shipping row until a fulfillment method is chosen when PUP is viable. */
.shipshap-pup-fulfillment-row:not(.has-selection) + .shipping {
  display: none;
}

.shipshap-pup-fulfillment-row.has-selection + .shipping {
  display: table-row;
}
