/* PF Delivery Routes — Checkout Styles */

#pfdr-checkout-block {
  margin: 0 0 20px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #b7dfc5;
  font-size: 14px;
  line-height: 1.5;
}

/* ── Resolved / matched, and UPS ── */
.pfdr-block-matched,
.pfdr-block-ups {
  background: #d8f3dc;
}
.pfdr-block-matched .pfdr-block-header,
.pfdr-block-ups .pfdr-block-header {
  background: #2d6a4f;
  color: #fff;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pfdr-block-matched .pfdr-block-body,
.pfdr-block-ups .pfdr-block-body {
  padding: 14px 16px;
  color: #1a2e1a;
}
/* UPS block has no cooler section — trim the trailing detail margin */
.pfdr-block-ups .pfdr-delivery-detail:last-child { margin-bottom: 0; }
.pfdr-block-ups .pfdr-cutoff-note { margin-bottom: 0; }

.pfdr-delivery-detail {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.pfdr-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pfdr-detail-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #40916c;
}
.pfdr-detail-value {
  font-size: 15px;
  font-weight: 600;
  color: #1a2e1a;
}

.pfdr-cutoff-note {
  font-size: 12px;
  color: #3a5a3a;
  margin-bottom: 14px;
  padding: 8px 10px;
  background: rgba(255,255,255,.5);
  border-radius: 4px;
}

/* ── Cooler arrangement ── */
.pfdr-cooler-ack {
  background: #fff;
  border: 1px solid #b7dfc5;
  border-radius: 4px;
  padding: 10px 14px;
  margin-top: 4px;
}
.pfdr-cooler-prompt {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1a2e1a;
}
.pfdr-cooler-optional {
  font-weight: 400;
  color: #6b7c6b;
  font-size: 12px;
}
.pfdr-cooler-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #1a2e1a;
  line-height: 1.4;
}
.pfdr-cooler-option:last-child { margin-bottom: 0; }
.pfdr-cooler-option input[type="radio"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  accent-color: #2d6a4f;
  cursor: pointer;
}

/* ── Low confidence ── */
.pfdr-block-low {
  background: #fff8e1;
  border-color: #ffe082;
}
.pfdr-block-low .pfdr-block-header {
  background: #f59e0b;
  color: #fff;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pfdr-block-low .pfdr-block-body {
  padding: 14px 16px;
  color: #5a4000;
  font-size: 13px;
}

/* ── Loading state ── */
.pfdr-block-loading {
  background: #f7f9f7;
  border-color: #dde3dd;
  padding: 12px 16px;
  color: #6b7c6b;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pfdr-spinner-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #40916c;
  border-radius: 50%;
  animation: pfdr-pulse 1.2s ease-in-out infinite;
}
@keyframes pfdr-pulse {
  0%, 100% { opacity: .3; transform: scale(.8); }
  50%       { opacity: 1;  transform: scale(1.1); }
}

/* Hidden fields */
#pfdr-hidden-fields { display: none; }
