.nfds-paypal-fields {
  margin-top: 8px;
}
.nfds-paypal-intro {
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 13px;
}
.nfds-paypal-errors {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  font-size: 13px;
}
.nfds-paypal-express-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nfds-paypal-express-slot {
  min-height: 42px;
}
.nfds-paypal-express-errors {
  padding: 10px 12px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  border-radius: 8px;
  font-size: 13px;
}

body.nfds-paypal-has-busy {
  cursor: progress;
}

.nfds-paypal-global-busy {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: block;
}

.nfds-paypal-global-busy__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.48);
  backdrop-filter: blur(2px);
}

.nfds-paypal-global-busy__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 420px);
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
  padding: 18px 18px 16px;
  border: 1px solid rgba(17,24,39,.08);
  text-align: center;
}

.nfds-paypal-global-busy__track {
  position: relative;
  height: 56px;
  margin: 2px 4px 12px;
  overflow: hidden;
}

.nfds-paypal-global-busy__road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 8px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, #cbd5e1 0 18px, transparent 18px 28px),
    #e5e7eb;
  background-size: auto, auto;
  animation: nfds-road-dash 1.1s linear infinite;
}

.nfds-paypal-global-busy__truck {
  position: absolute;
  bottom: 12px;
  left: -68px;
  width: 62px;
  height: 28px;
  animation: nfds-truck-drive 2.3s ease-in-out infinite;
}

.nfds-paypal-global-busy__truck-emoji {
  position: absolute;
  left: -52px;
  bottom: 10px;
  font-size: 28px;
  line-height: 1;
  animation: nfds-truck-emoji-drive 2.3s ease-in-out infinite;
  transform: scaleX(-1);
  transform-origin: center center;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.15));
  will-change: transform;
}

.nfds-paypal-sepa-wrap {
  margin-top: 10px;
}

.nfds-paypal-sepa-unavailable {
  border: 1px solid #e3e3e3;
  background: #fafafa;
  border-radius: 8px;
  padding: 12px 14px;
}

.nfds-paypal-sepa-unavailable {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #555;
}

.nfds-paypal-global-busy__truck .box {
  position: absolute;
  left: 14px;
  top: 3px;
  width: 34px;
  height: 16px;
  border-radius: 4px;
  background: #ff7a00;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.08);
}

.nfds-paypal-global-busy__truck .cab {
  position: absolute;
  left: 45px;
  top: 6px;
  width: 14px;
  height: 13px;
  border-radius: 3px 4px 4px 3px;
  background: #1f2937;
}

.nfds-paypal-global-busy__truck .cab::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 6px;
  height: 5px;
  border-radius: 2px;
  background: #bfdbfe;
}

.nfds-paypal-global-busy__truck .wheel {
  position: absolute;
  bottom: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111827;
  box-shadow: inset 0 0 0 2px #6b7280;
  animation: nfds-wheel-spin .45s linear infinite;
}

.nfds-paypal-global-busy__truck .wheel-a { left: 19px; }
.nfds-paypal-global-busy__truck .wheel-b { left: 48px; }

.nfds-paypal-global-busy__title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.nfds-paypal-global-busy__text {
  font-size: 12px;
  color: #4b5563;
}

.nfds-paypal-busy-overlay {
  position: absolute;
  inset: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: all;
}

.nfds-paypal-busy-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  border-top-color: #ff7a00;
  animation: nfds-paypal-spin .8s linear infinite;
}

.nfds-paypal-busy-text {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  text-align: center;
}

#nfds-paypal-sidebar-ui.is-busy > *:not(.nfds-paypal-busy-overlay) {
  opacity: .55;
}

@keyframes nfds-paypal-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes nfds-road-dash {
  from { background-position: 0 0, 0 0; }
  to { background-position: -28px 0, 0 0; }
}

@keyframes nfds-truck-drive {
  0% { transform: translateX(0) translateY(0); }
  45% { transform: translateX(155px) translateY(-1px); }
  55% { transform: translateX(185px) translateY(0); }
  100% { transform: translateX(360px) translateY(-1px); }
}

@keyframes nfds-truck-emoji-drive {
  0% { transform: translateX(0) translateY(0) scaleX(-1); }
  45% { transform: translateX(155px) translateY(-1px) scaleX(-1); }
  55% { transform: translateX(185px) translateY(0) scaleX(-1); }
  100% { transform: translateX(360px) translateY(-1px) scaleX(-1); }
}

@keyframes nfds-wheel-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* NFDS checkout sidebar: let PayPal popup/zoid containers escape clipping contexts */
html body #wcc-checkout-container .wcc-order-summary-section,
html body #wcc-checkout-container .wcc-order-summary-sticky,
html body #wcc-checkout-container .wcc-order-summary,
html body #wcc-checkout-container .nfds-paypal-sidebar-ui,
html body #wcc-checkout-container .nfds-paypal-paynow-wrap,
html body #wcc-checkout-container .nfds-paypal-paylater-wrap,
html body #wcc-checkout-container .nfds-paypal-card-button-wrap,
html body #wcc-checkout-container .wcc-place-order-section {
  overflow: visible !important;
  position: relative;
}

html body #wcc-checkout-container .nfds-paypal-sidebar-ui {
  z-index: 40 !important;
}

html body #wcc-checkout-container .nfds-paypal-sidebar-ui .zoid-container,
html body #wcc-checkout-container .nfds-paypal-sidebar-ui .zoid-component-frame,
html body #wcc-checkout-container .nfds-paypal-sidebar-ui .zoid-outlet,
html body #wcc-checkout-container .nfds-paypal-sidebar-ui iframe,
html body #wcc-checkout-container .nfds-paypal-sidebar-ui [data-funding-source] {
  overflow: visible !important;
  position: relative;
  z-index: 41 !important;
  pointer-events: auto !important;
}

html body #wcc-checkout-container .nfds-paypal-sidebar-ui > div {
  overflow: visible !important;
}
.nfds-paypal-mode-switch {
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
}
.nfds-paypal-mode-btn {
  flex: 1;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
}
.nfds-paypal-mode-btn.is-active {
  border-color: #111827;
  background: #111827;
  color: #fff;
}
.nfds-paypal-mode-btn.is-disabled {
  opacity: .45;
  cursor: not-allowed;
}
.nfds-paypal-mode-panel {
  display: none;
}
.nfds-paypal-mode-panel.is-active {
  display: block;
}
.nfds-paypal-paynow-wrap,
.nfds-paypal-paylater-wrap,
.nfds-paypal-card-wrap {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}
.nfds-paypal-section-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #111827;
  font-size: 13px;
}
.nfds-paypal-paylater-message {
  margin-bottom: 8px;
}
.nfds-paypal-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.nfds-paypal-card-grid > #nfds-paypal-card-number {
  grid-column: 1 / -1;
}
.nfds-paypal-card-label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: -2px;
  padding-left: 4px;
}
.nfds-paypal-card-field {
  min-height: 46px;
  height: 46px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
}
.nfds-paypal-card-submit {
  width: 100%;
}
.nfds-paypal-card-submit.is-loading {
  opacity: .7;
  pointer-events: none;
}

/* Keep radio vertically aligned to the label row when NFDS PayPal card fields expand below. */
html body #wcc-checkout-container .wcc-payment-methods .payment_method_nfds_paypal,
html body #wcc-checkout-container .wcc-payment-methods .payment_method_nfds_paypal_card {
  position: relative !important;
}

html body #wcc-checkout-container .wcc-payment-methods .payment_method_nfds_paypal > label,
html body #wcc-checkout-container .wcc-payment-methods .payment_method_nfds_paypal_card > label {
  min-height: 44px !important;
  align-items: center !important;
  padding: 15px 20px 15px 45px !important;
  position: relative !important;
}

html body #wcc-checkout-container .wcc-payment-methods .payment_method_nfds_paypal > input[type="radio"],
html body #wcc-checkout-container .wcc-payment-methods .payment_method_nfds_paypal_card > input[type="radio"] {
  left: 15px !important;
  top: 18px !important;
  transform: none !important;
  margin: 0 !important;
  position: absolute !important;
  z-index: 5 !important;
}

html body #wcc-checkout-container .wcc-payment-methods li.payment_method_nfds_paypal_card > input.input-radio,
html body #wcc-checkout-container .wcc-payment-methods li.payment_method_nfds_paypal_card > input[type="radio"]#payment_method_nfds_paypal_card {
  position: absolute !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  left: 0 !important;
  top: 0 !important;
  transform: none !important;
  z-index: -1 !important;
}

html body #wcc-checkout-container .wcc-payment-methods li.payment_method_nfds_paypal_card > label::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  border: 2px solid #9ca3af;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
}

html body #wcc-checkout-container .wcc-payment-methods li.payment_method_nfds_paypal_card > input.input-radio:checked + label::before,
html body #wcc-checkout-container .wcc-payment-methods li.payment_method_nfds_paypal_card > input[type="radio"]#payment_method_nfds_paypal_card:checked + label::before {
  border-color: #1e88e5;
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 8px #1e88e5;
}

html body #wcc-checkout-container .wcc-payment-methods .payment_method_nfds_paypal_card .payment_box,
html body #wcc-checkout-container .wcc-payment-methods .payment_method_nfds_paypal .payment_box {
  overflow: visible !important;
  margin-top: 0 !important;
}

html body #wcc-checkout-container .wcc-payment-methods .payment_method_nfds_paypal_card .payment_box {
  padding: 12px 14px 14px !important;
  background: #f8f8f8 !important;
  border-top: 1px solid #e5e5e5 !important;
}

html body #wcc-checkout-container .wcc-payment-methods .payment_method_nfds_paypal_card .payment_box * {
  box-sizing: border-box !important;
}

html body #wcc-checkout-container .wcc-payment-methods .payment_method_nfds_paypal_card .payment_box label {
  display: block !important;
  position: static !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  transform: none !important;
  font-weight: 600 !important;
  cursor: default !important;
}

html body #wcc-checkout-container .wcc-payment-methods .payment_method_nfds_paypal_card .payment_box .nfds-paypal-card-left-ui,
html body #wcc-checkout-container .wcc-payment-methods .payment_method_nfds_paypal_card .payment_box .nfds-paypal-card-wrap {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

html body #wcc-checkout-container .wcc-payment-methods .payment_method_nfds_paypal_card .payment_box .nfds-paypal-card-grid {
  gap: 8px !important;
  margin-bottom: 8px !important;
  grid-auto-rows: auto !important;
}

html body #wcc-checkout-container .wcc-payment-methods .payment_method_nfds_paypal_card .payment_box .nfds-paypal-card-label {
  display: none !important;
}

html body #wcc-checkout-container .wcc-payment-methods .payment_method_nfds_paypal_card .payment_box #nfds-paypal-card-number,
html body #wcc-checkout-container .wcc-payment-methods .payment_method_nfds_paypal_card .payment_box #nfds-paypal-card-expiry,
html body #wcc-checkout-container .wcc-payment-methods .payment_method_nfds_paypal_card .payment_box #nfds-paypal-card-cvv {
  min-height: 58px !important;
  height: auto !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

html body #wcc-checkout-container .wcc-payment-methods .payment_method_nfds_paypal_card .payment_box .nfds-paypal-card-field {
  min-height: 58px !important;
  height: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow: visible !important;
  align-items: stretch !important;
}

/* PayPal CardFields inject helper description elements inside each mount point.
   They can become visible in the NFDS checkout due to global label/input styles. */
html body #wcc-checkout-container .nfds-paypal-card-wrap [id$="-field-description"],
html body #wcc-checkout-container .nfds-paypal-card-wrap [class*="field-description"],
html body #wcc-checkout-container .nfds-paypal-card-wrap [id$="-field-description"] *,
html body #wcc-checkout-container .nfds-paypal-card-wrap [class*="field-description"] * {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

html body #wcc-checkout-container .wcc-payment-methods .payment_method_nfds_paypal_card .payment_box .nfds-paypal-card-submit {
  margin-top: 6px !important;
  min-height: 40px !important;
  height: 40px !important;
  line-height: 40px !important;
  padding: 0 12px !important;
  border-radius: 6px !important;
}

html body #wcc-checkout-container .wcc-payment-methods .payment_method_nfds_paypal_card > label {
  min-height: 44px !important;
}

html body #wcc-checkout-container .wcc-payment-methods .payment_method_nfds_paypal_card > input[type="radio"]:checked + label,
html body #wcc-checkout-container .wcc-payment-methods .payment_method_nfds_paypal_card > label:hover {
  background: var(--wcc-background-light) !important;
}
@media (max-width: 767px) {
  .nfds-paypal-card-grid {
    grid-template-columns: 1fr;
  }
  .nfds-paypal-card-grid .nfds-paypal-card-label,
  .nfds-paypal-card-grid .nfds-paypal-card-field {
    grid-column: 1 / -1 !important;
  }
}
