/**
 * Foxpay Payment Page Styles - Professional Edition
 */

:root {
  --foxpay-primary: #b71c32;
  --foxpay-secondary: #e6224c;
  --foxpay-accent: #2c3e50;
  --foxpay-background: #f8f9fa;
  --foxpay-background-alt: #ffffff;
  --foxpay-text: #333333;
  --foxpay-text-light: #6c757d;
  --foxpay-border: #e1e5eb;
  --foxpay-error: #dc3545;
  --foxpay-success: #28a745;
  --foxpay-warning: #ffc107;
  --foxpay-shadow: rgba(0, 0, 0, 0.1);
  --foxpay-radius: 3px;
}

/* Hide ninetheme-page-hero element */
.ninetheme-page-hero {
  display: none !important;
}


/* Style for ninetheme-header */
/* .ninetheme-header.bg-light.style-1 { 
  min-width: 100vw !important;
/* }

/* Remove padding from theme container */
body.woocommerce-order-pay .nt-ninetheme-inner-container.section-padding,
#nt-page.nt-ninetheme-inner-container.section-padding {
  padding: 0px !important;
}

/* Center everything on the page including woocommerce elements */
body.woocommerce-order-pay,
.woocommerce-order-pay .woocommerce,
.woocommerce-order-pay .site-main,
.woocommerce-order-pay #main,
.woocommerce-order-pay #primary,
.woocommerce-order-pay .content-area,
.woocommerce-order-pay .site-content,
.woocommerce-order-pay .entry-content,
.woocommerce-order-pay article,
.woocommerce-order-pay .hentry {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  padding: 0 !important;
  margin: 0 auto !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Hide the WooCommerce bullet points */
body.woocommerce-order-pay ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: none !important;
}

/* Hide original order details heading */
body.woocommerce-order-pay .entry-header,
body.woocommerce-order-pay .woocommerce-order-pay-heading,
body.woocommerce-order-pay h1.entry-title,
body.woocommerce-order-pay .page-title,
body.woocommerce-order-pay .wp-block-template-part {
  display: none !important;
}

/* Also hide site logo and header when on payment page */
body.woocommerce-order-pay .site-header,
body.woocommerce-order-pay .site-branding,
body.woocommerce-order-pay .wp-block-template-part,
body.woocommerce-order-pay #masthead {
  text-align: center !important;
}

/* Back to store link - styled as WordPress block template */
.foxpay-back-link {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin: 20px auto 10px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: var(--foxpay-accent) !important;
  text-decoration: none !important;
  width: 100% !important;
  max-width: 800px !important;
  padding: 10px !important;
}

.foxpay-back-link:hover {
  text-decoration: underline !important;
}

.foxpay-back-link .dashicons {
  margin-right: 5px !important;
}

/* WordPress block template styling for the back link */
.foxpay-back-header {
  display: flex !important;
  width: 100% !important;
  max-width: 800px !important;
  margin: 0 auto !important;
  padding: 10px !important;
  box-sizing: border-box !important;
  background-color: var(--foxpay-background-alt) !important;
  border-radius: var(--foxpay-radius) var(--foxpay-radius) 0 0 !important;
  border-bottom: 1px solid var(--foxpay-border) !important;
}

/* Main container */
.foxpay-payment-container {
  width: 100% !important;
  min-width: 100vw !important;
  min-height: 90vh !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
  background-color: var(--foxpay-background-alt) !important;
  color: var(--foxpay-text) !important;
  border-radius: var(--foxpay-radius) !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07) !important;
  overflow: hidden !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  text-align: center !important;
}

/* Hide payment header */
.foxpay-payment-header {
  display: none !important;
}

/* Content area */
.foxpay-payment-content {
  background-color: var(--foxpay-background-alt) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

/* Payment Status Indicator */
.foxpay-payment-status {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 8px 15px !important;
  border-radius: var(--foxpay-radius) !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
  text-align: center !important;
}

.foxpay-status-pending {
  background-color: #fff1c6 !important;
  color: #1f1b0f !important;
  border: 1px solid rgba(255, 193, 7, 0.3) !important;
}

.foxpay-status-success {
  background-color: rgba(40, 167, 69, 0.15) !important;
  color: #155724 !important;
  border: 1px solid rgba(40, 167, 69, 0.3) !important;
}

.foxpay-status-failed {
  background-color: rgba(220, 53, 69, 0.15) !important;
  color: #721c24 !important;
  border: 1px solid rgba(220, 53, 69, 0.3) !important;
}

.foxpay-status-icon {
  display: inline-block !important;
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  margin-right: 8px !important;
}

.foxpay-status-pending .foxpay-status-icon {
  background-color: var(--foxpay-warning) !important;
  animation: pulse 2s infinite !important;
}

.foxpay-status-success .foxpay-status-icon {
  background-color: var(--foxpay-success) !important;
}

.foxpay-status-failed .foxpay-status-icon {
  background-color: var(--foxpay-error) !important;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* Error display */
.foxpay-error {
  background-color: #fff8f8 !important;
  border-left: 4px solid var(--foxpay-error) !important;
  color: var(--foxpay-error) !important;
  padding: 12px 15px !important;
  margin: 15px 0 !important;
  font-size: 14px !important;
  border-radius: var(--foxpay-radius) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  text-align: left !important;
}

/* QR code section */
.foxpay-qr-code {
  background-color: var(--foxpay-background-alt) !important;
  border-radius: var(--foxpay-radius) !important;
  padding: 20px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  width: 100% !important;
  max-width: 300px !important;
}

/* Remove Pay Online heading */
.foxpay-section-title {
  display: none !important;
}

/* Iframe container */
.foxpay-iframe-container {
  width: 100% !important;
  
  margin: 0 auto !important;
}

/* Make iframe seamless and responsive */
#foxpay-payment-iframe {
  width: 100% !important;
  min-height: 85vh !important;
  height: auto !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove buttons */
.foxpay-buttons {
  display: none !important;
}

/* Footer text styling */
.foxpay-footer-text {
  font-size: 12px !important;
  color: var(--foxpay-text-light) !important;
  margin-top: 20px !important;
  opacity: 0.7 !important;
}

.foxpay-footer-text a {
  color: var(--foxpay-text-light) !important;
  text-decoration: none !important;
}

.foxpay-footer-text a:hover {
  text-decoration: underline !important;
}

.elementor-widget-container {
  padding: 0px !important;
  margin-top: -35px !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

/* Media queries for responsive design */
@media (max-width: 90vw) {
  .foxpay-payment-container {
    margin: -55px auto !important;
  }
  .foxpay-back-link,
  .foxpay-back-header {
    width: 100% !important;
    max-width: 800px !important;
    border-radius: var(--foxpay-radius) !important;
  }

  .foxpay-header-payment-status {
    margin-left: 0 !important;
    margin-top: 10px !important;
    justify-content: flex-start !important;
  }

  #foxpay-payment-iframe {
    min-height: 85vh !important;
  }
}

/* =================================================================
   FOXPAY CHECKOUT - ICON-BASED PAYMENT METHOD DISPLAY
   Enterprise-grade payment method UI similar to credit card displays
   Layout: [Logo] Foxpay | Pay fast and secure with Foxpay [Icons]
           QR-Pay, Bankwire
           [Shield] Secure payment by FoxPay
   ================================================================= */

:root {
  --foxpay-checkout-icon-width: 38px;
  --foxpay-checkout-icon-height: 28px;
  --foxpay-checkout-icon-gap: 6px;
  --foxpay-checkout-icon-bg: #f8fafc;
  --foxpay-checkout-icon-border: #e2e8f0;
  --foxpay-checkout-icon-radius: 6px;
  --foxpay-checkout-pill-bg: #ffffff;
  --foxpay-checkout-pill-border: #e2e8f0;
  --foxpay-checkout-text-primary: #1e293b;
  --foxpay-checkout-text-secondary: #64748b;
  --foxpay-checkout-text-muted: #94a3b8;
  --foxpay-checkout-trust-color: #059669;
  --foxpay-checkout-trust-bg: #ecfdf5;
  --foxpay-checkout-test-bg: #fff7ed;
  --foxpay-checkout-test-border: #fed7aa;
  --foxpay-checkout-test-text: #9a3412;
  --foxpay-checkout-accent: #b71c32;
}

/* Main payment option container */
.foxpay-checkout-option {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  text-align: left;
}

/* Header row: left content + icons on right */
.foxpay-checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

/* Header left: Logo + Title + Separator + Description */
.foxpay-checkout-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

/* Foxpay Logo - bigger */
.foxpay-checkout-logo {
  height: 24px;
  width: auto;
  flex-shrink: 0;
}

/* Foxpay Title - bigger and bolder */
.foxpay-checkout-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--foxpay-checkout-text-primary);
  margin: 0;
  line-height: 1.2;
  flex-shrink: 0;
}

/* Separator pipe */
.foxpay-checkout-separator {
  color: var(--foxpay-checkout-text-muted);
  font-weight: 300;
  font-size: 16px;
  flex-shrink: 0;
  margin: 0 2px;
}

/* Description text */
.foxpay-checkout-description {
  font-size: 13px;
  color: var(--foxpay-checkout-text-secondary);
  line-height: 1.4;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Payment method icons container */
.foxpay-checkout-icons {
  display: flex;
  align-items: center;
  gap: var(--foxpay-checkout-icon-gap);
  flex-wrap: nowrap;
  flex-shrink: 0;
}

/* Individual method icon with CSS tooltip */
.foxpay-checkout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--foxpay-checkout-icon-width);
  height: var(--foxpay-checkout-icon-height);
  background: var(--foxpay-checkout-icon-bg);
  border: 1px solid var(--foxpay-checkout-icon-border);
  border-radius: var(--foxpay-checkout-icon-radius);
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.foxpay-checkout-icon:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.08);
}

.foxpay-checkout-icon--obt {
  width: 84px;
}

.foxpay-checkout-icon--card {
  width: 82px;
}

.foxpay-checkout-icon svg {
  width: 14px;
  height: 14px;
  color: var(--foxpay-checkout-text-secondary);
}

/* CSS Tooltip for icons */
.foxpay-checkout-icon[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  background: #1e293b;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 3px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 1000;
  pointer-events: none;
}

.foxpay-checkout-icon[data-tooltip]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #1e293b;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 1000;
  pointer-events: none;
}

.foxpay-checkout-icon[data-tooltip]:hover::after,
.foxpay-checkout-icon[data-tooltip]:hover::before,
.foxpay-checkout-icon[data-tooltip]:focus-visible::after,
.foxpay-checkout-icon[data-tooltip]:focus-visible::before {
  opacity: 1;
  visibility: visible;
}

/* Overflow indicator (+N) */
.foxpay-checkout-overflow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--foxpay-checkout-icon-height);
  padding: 0 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--foxpay-checkout-text-muted);
  background: var(--foxpay-checkout-icon-bg);
  border: 1px solid var(--foxpay-checkout-icon-border);
  border-radius: var(--foxpay-checkout-icon-radius);
}

/* Body section - compact, professional method blocks */
.foxpay-checkout-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-left: 0;
  max-width: 100%;
}

/* Method names text (QR-Pay, Bankwire) */
.foxpay-checkout-methods-text {
  font-size: 12px;
  color: var(--foxpay-checkout-text-muted);
  margin: 0;
}

.foxpay-checkout-method-grid {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

.foxpay-checkout-method-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  max-width: 100%;
  padding: 5px 9px;
  color: var(--foxpay-checkout-text-primary);
  background: var(--foxpay-checkout-pill-bg);
  border: 1px solid var(--foxpay-checkout-pill-border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.foxpay-checkout-method-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--foxpay-checkout-text-secondary);
  flex-shrink: 0;
}

.foxpay-checkout-method-pill-icon svg {
  width: 14px;
  height: 14px;
}

/* Trust badge */
.foxpay-checkout-trust {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--foxpay-checkout-trust-bg);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--foxpay-checkout-trust-color);
  margin: 0;
}

.foxpay-checkout-trust svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* =================================================================
   FOXPAY LABEL ROW - Inline with WooCommerce radio label
   Layout: (Radio) [Logo] Foxpay | Pay fast and secure... [Icons]
   ================================================================= */

/* Label row container - inline with title, icons stick to right */
.foxpay-checkout-label-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
  flex: 1;
  min-width: 0;
  width: 100%;
}

/* Push icons to far right */
.foxpay-checkout-label-row .foxpay-checkout-icons {
  margin-left: auto;
}

/* Make WooCommerce label a flex container */
.wc_payment_method.payment_method_foxpay label[for="payment_method_foxpay"] {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}

.foxpay-checkout-test-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 2px 6px;
  border: 1px solid var(--foxpay-checkout-test-border);
  border-radius: 6px;
  background: var(--foxpay-checkout-test-bg);
  color: var(--foxpay-checkout-test-text);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* Style the icon image in the label */
.wc_payment_method.payment_method_foxpay label img.foxpay-icon,
.wc_payment_method.payment_method_foxpay label img {
  height: 24px !important;
  width: auto !important;
  vertical-align: middle !important;
}

/* Title text styling in label */
.wc_payment_method.payment_method_foxpay label {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--foxpay-checkout-text-primary) !important;
}

/* WooCommerce Classic Checkout Integration */
.wc_payment_method.payment_method_foxpay .payment_box {
  padding: 10px 0 0 0 !important;
  background: transparent !important;
  border: none !important;
}

.wc_payment_method.payment_method_foxpay label[for="payment_method_foxpay"] {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* WooCommerce Blocks Checkout Integration */
.wc-block-components-radio-control-accordion-option input[value="foxpay"] + div {
  width: 100%;
}

.wc-block-components-radio-control-accordion-option input[value="foxpay"] + div .wc-block-components-radio-control__label-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

/* Hide default WooCommerce description in favor of our custom one */
.wc-block-components-radio-control-accordion-content .foxpay-checkout-option + * {
  display: none !important;
}

/* Responsive styles */
@media (max-width: 480px) {
  .foxpay-checkout-label-row {
    flex-wrap: wrap;
    row-gap: 5px;
  }

  .foxpay-checkout-label-row .foxpay-checkout-icons {
    margin-left: 0;
    width: 100%;
  }

  .foxpay-checkout-separator,
  .foxpay-checkout-description {
    display: none;
  }

  .foxpay-checkout-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .foxpay-checkout-icons {
    flex-wrap: wrap;
  }

  .foxpay-checkout-header .foxpay-checkout-description {
    font-size: 12px;
  }

  .foxpay-checkout-icon {
    width: 28px;
    height: 18px;
  }

  .foxpay-checkout-icon svg {
    width: 12px;
    height: 12px;
  }

  .foxpay-checkout-method-pill {
    flex: 1 1 calc(50% - 6px);
    justify-content: flex-start;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --foxpay-checkout-icon-bg: #111827;
    --foxpay-checkout-icon-border: #334155;
    --foxpay-checkout-pill-bg: #0f172a;
    --foxpay-checkout-pill-border: #334155;
    --foxpay-checkout-text-primary: #f8fafc;
    --foxpay-checkout-text-secondary: #cbd5e1;
    --foxpay-checkout-text-muted: #94a3b8;

    /* The trust and test badges are deliberately NOT re-themed here. Both live
       on the Foxpay payment card, and that card is pinned to #ffffff in both
       colour schemes (.wc_payment_method.payment_method_foxpay below), so a
       dark-surface colour lands on a light surface: the TEST badge rendered
       #fdba74 on a translucent brown over white and measured 1.17:1 on staging,
       against the 4.5:1 it needs at 10px. The :root values stay readable on that
       white card in either scheme. The tokens kept above describe surfaces that
       really do darken - the icon and pill backgrounds - so their text follows. */
  }

  .foxpay-checkout-icon:hover {
    background: #1e293b;
    border-color: #475569;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.28);
  }
}

/* =================================================================
   FOXPAY CHECKOUT - METHOD-FIRST PAYMENT BLOCK
   ================================================================= */

.wc-block-components-radio-control-accordion-option:has(input[value="foxpay"]),
.wc-block-components-radio-control-accordion-option input[value="foxpay"] + div,
.wc_payment_method.payment_method_foxpay {
  background: #ffffff !important;
}

.wc-block-components-radio-control-accordion-option input[value="foxpay"] + div {
  border-radius: 6px !important;
}

.wc_payment_method.payment_method_foxpay,
.wc_payment_method.payment_method_foxpay label,
.wc_payment_method.payment_method_foxpay .payment_box,
.foxpay-checkout-label-row,
.foxpay-checkout-body,
.foxpay-checkout-trust,
.foxpay-checkout-test-badge {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

.foxpay-checkout-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  color: #1e293b;
  vertical-align: middle;
}

.foxpay-checkout-lead {
  min-width: 0;
  color: #1f2937;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.foxpay-checkout-full-logo {
  display: block;
  width: 92px;
  height: auto;
  max-height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}

.wc_payment_method.payment_method_foxpay label[for="payment_method_foxpay"] {
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
  color: #1f2937 !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
}

.wc_payment_method.payment_method_foxpay label[for="payment_method_foxpay"] .foxpay-checkout-full-logo {
  width: 92px !important;
  height: auto !important;
  max-height: 22px !important;
  margin-left: auto;
}

.foxpay-checkout-brand-wordmark {
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.foxpay-checkout-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  padding: 0;
  color: #1e293b;
  text-align: left;
}

.foxpay-checkout-body-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.foxpay-checkout-icons--primary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.foxpay-checkout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 30px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #64748b;
  cursor: help;
  flex-shrink: 0;
  position: relative;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.foxpay-checkout-icons--primary .foxpay-checkout-icon--obt {
  width: 84px;
}

.foxpay-checkout-icons--primary .foxpay-checkout-icon--card {
  width: 82px;
}

.foxpay-checkout-icon:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.08);
}

.foxpay-method-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.foxpay-method-card svg {
  width: 17px;
  height: 17px;
}

.foxpay-method-card--qr {
  color: #2b85f3;
}

.foxpay-method-card--sepa {
  color: #334155;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
}

.foxpay-bank-logo-stack,
.foxpay-card-brand-stack {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
}

.foxpay-bank-logo-stack img {
  display: block;
  width: 22px;
  height: 22px;
  margin-left: -7px;
  border: 1.5px solid #ffffff;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.foxpay-bank-logo-stack img:first-child {
  margin-left: 0;
}

.foxpay-card-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 22px;
  margin-left: -5px;
  border: 1.5px solid #ffffff;
  border-radius: 3px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.foxpay-card-brand:first-child {
  margin-left: 0;
}

.foxpay-card-brand svg,
.foxpay-card-brand img {
  display: block;
  width: 32px;
  height: 22px;
}

.foxpay-card-count,
.foxpay-bank-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: -5px;
  padding: 0 4px;
  border: 1.5px solid #ffffff;
  border-radius: 999px;
  background: #eaf2ff;
  color: #2b85f3;
  font-size: 8.5px;
  font-weight: 750;
  line-height: 1;
}

.foxpay-bank-count {
  min-width: 28px;
  font-size: 7.4px;
}

.foxpay-checkout-trust {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  max-width: 52%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #059669;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  text-align: right;
  white-space: normal;
}

.foxpay-checkout-trust svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

@media (max-width: 480px) {
  .foxpay-checkout-label-row {
    align-items: flex-start;
    gap: 8px;
  }

  .foxpay-checkout-lead {
    font-size: 12px;
  }

  .foxpay-checkout-full-logo {
    width: 78px;
    max-height: 19px;
  }

  .wc_payment_method.payment_method_foxpay label[for="payment_method_foxpay"] .foxpay-checkout-full-logo {
    width: 78px !important;
    max-height: 19px !important;
  }

  .foxpay-checkout-body-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .foxpay-checkout-icon {
    width: 40px;
    height: 29px;
  }

  .foxpay-checkout-icon--obt {
    width: 82px;
  }

  .foxpay-checkout-icon--card {
    width: 80px;
  }

  .foxpay-checkout-trust {
    justify-content: flex-start;
    max-width: 100%;
    text-align: left;
  }
}

/* =================================================================
   FOXPAY CHECKOUT - COMPACT METHOD-FIRST RADIO BLOCK
   ================================================================= */

.wc-block-components-radio-control-accordion-option:has(input[value="foxpay"]),
.wc-block-components-radio-control-accordion-option input[value="foxpay"] + div,
.wc_payment_method.payment_method_foxpay {
  background: #ffffff !important;
}

.wc-block-components-radio-control-accordion-option:has(input[value="foxpay"]),
.wc_payment_method.payment_method_foxpay {
  border-radius: 6px !important;
}

.wc-block-components-radio-control-accordion-option input[value="foxpay"] + div {
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden;
}

.wc_payment_method.payment_method_foxpay label[for="payment_method_foxpay"] {
  display: flex !important;
  align-items: flex-start !important;
  width: 100% !important;
  min-width: 0 !important;
  gap: 0 !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

.foxpay-checkout-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  color: #0f172a;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

.foxpay-checkout-label-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
  flex: 1 1 auto;
}

.foxpay-checkout-lead-method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
  border: 1px solid #dbe3ee;
  border-radius: 6px;
  background: #f8fafc;
  color: #58708f;
  flex: 0 0 auto;
}

.foxpay-checkout-lead-method .foxpay-method-card svg {
  width: 15px;
  height: 15px;
}

.foxpay-checkout-lead-method .foxpay-bank-logo-stack img {
  width: 18px;
  height: 18px;
  margin-left: -8px;
}

.foxpay-checkout-lead-method .foxpay-card-brand-stack {
  height: 18px;
}

.foxpay-checkout-lead-method .foxpay-card-brand {
  width: 24px;
  height: 17px;
  margin-left: -7px;
}

.foxpay-checkout-lead-method .foxpay-card-brand svg,
.foxpay-checkout-lead-method .foxpay-card-brand img {
  width: 24px;
  height: 17px;
}

.foxpay-checkout-lead-method .foxpay-card-count {
  display: none;
}

.foxpay-checkout-label-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.foxpay-checkout-lead {
  color: #0f172a;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0;
}

.foxpay-checkout-subline {
  color: #64748b;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.foxpay-checkout-full-logo,
.wc_payment_method.payment_method_foxpay label[for="payment_method_foxpay"] .foxpay-checkout-full-logo {
  display: block;
  width: 68px !important;
  height: auto !important;
  max-height: 17px !important;
  margin-left: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

.foxpay-checkout-body {
  gap: 7px;
  padding: 0;
}

.wc_payment_method.payment_method_foxpay .payment_box {
  padding: 8px 0 0 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
}

.foxpay-checkout-body-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.foxpay-checkout-icons--primary {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex-wrap: nowrap;
}

.foxpay-checkout-icon {
  width: 34px;
  height: 25px;
  border-radius: 6px;
  background: #f8fafc;
  border-color: #dbe3ee;
  color: #58708f;
}

.foxpay-checkout-icons--primary .foxpay-checkout-icon--obt {
  width: 82px;
}

.foxpay-checkout-icons--primary .foxpay-checkout-icon--card {
  width: 80px;
}

.foxpay-method-card svg {
  width: 15px;
  height: 15px;
}

.foxpay-method-card--sepa {
  color: #243653;
  font-size: 8.5px;
  font-weight: 800;
}

.foxpay-bank-logo-stack,
.foxpay-card-brand-stack {
  height: 20px;
}

.foxpay-bank-logo-stack img {
  width: 20px;
  height: 20px;
  margin-left: -7px;
}

.foxpay-card-brand {
  width: 29px;
  height: 20px;
  margin-left: -5px;
}

.foxpay-card-brand svg,
.foxpay-card-brand img {
  width: 29px;
  height: 20px;
}

.foxpay-card-count,
.foxpay-bank-count {
  min-width: 19px;
  height: 19px;
  margin-left: -5px;
  padding: 0 4px;
  font-size: 7.8px;
}

.foxpay-bank-count {
  min-width: 27px;
  font-size: 7px;
}

.foxpay-checkout-trust {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  max-width: 48%;
  color: #008f68;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
  white-space: normal;
}

.foxpay-checkout-trust svg {
  width: 12px;
  height: 12px;
}

@media (max-width: 480px) {
  .foxpay-checkout-label-row {
    gap: 8px;
  }

  .foxpay-checkout-label-main {
    gap: 8px;
  }

  .foxpay-checkout-lead-method {
    width: 32px;
    height: 26px;
  }

  .foxpay-checkout-lead {
    font-size: 12.5px;
  }

  .foxpay-checkout-subline {
    font-size: 10px;
    max-width: 205px;
  }

  .foxpay-checkout-full-logo,
  .wc_payment_method.payment_method_foxpay label[for="payment_method_foxpay"] .foxpay-checkout-full-logo {
    width: 60px !important;
    max-height: 15px !important;
  }

  .foxpay-checkout-body-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .foxpay-checkout-icons--primary {
    gap: 4px;
  }

  .foxpay-checkout-icon {
    width: 34px;
    height: 25px;
  }

  .foxpay-checkout-icons--primary .foxpay-checkout-icon--obt {
    width: 80px;
  }

  .foxpay-checkout-icons--primary .foxpay-checkout-icon--card {
    width: 78px;
  }

  .foxpay-bank-logo-stack img {
    width: 19px;
    height: 19px;
  }

  .foxpay-card-brand {
    width: 27px;
    height: 19px;
  }

  .foxpay-card-brand svg,
  .foxpay-card-brand img {
    width: 27px;
    height: 19px;
  }

  .foxpay-card-count,
  .foxpay-bank-count {
    min-width: 18px;
    height: 18px;
  }

  .foxpay-bank-count {
    min-width: 26px;
    font-size: 6.8px;
  }

  .foxpay-checkout-trust {
    justify-content: flex-start;
    max-width: 100%;
    font-size: 10.5px;
    text-align: left;
  }
}

/* Simplified WooCommerce checkout block: methods first, no brand/trust chrome. */
.foxpay-checkout-lead-method,
.foxpay-checkout-full-logo,
.foxpay-checkout-brand-wordmark,
.foxpay-checkout-trust {
  display: none !important;
}

.foxpay-checkout-label-row {
  justify-content: flex-start !important;
}

.foxpay-checkout-label-main {
  gap: 0 !important;
  flex: 1 1 auto;
  max-width: 100%;
}

.foxpay-checkout-label-copy {
  width: 100%;
  gap: 1px;
}

.foxpay-checkout-body-row {
  justify-content: flex-start !important;
}

.wc-block-components-radio-control-accordion-option input[value="foxpay"] + div .wc-block-components-radio-control-accordion-content,
.wc-block-components-radio-control-accordion-option input[value="foxpay"] + div .wc-block-components-radio-control__description {
  margin-top: 5px !important;
  padding-top: 0 !important;
}

.foxpay-checkout-body {
  gap: 5px;
}

.foxpay-checkout-icons--primary {
  gap: 4px;
}

.foxpay-checkout-icon {
  width: 33px;
  height: 24px;
  padding: 0;
  color: #243653;
  background: #ffffff;
}

.foxpay-checkout-icons--primary .foxpay-checkout-icon--obt {
  width: 78px;
}

.foxpay-checkout-icons--primary .foxpay-checkout-icon--card {
  width: 76px;
}

.foxpay-method-card--qr {
  color: #111827 !important;
}

.foxpay-method-card svg {
  width: 14px;
  height: 14px;
}

.wc_payment_method.payment_method_foxpay {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 2px;
  align-items: flex-start;
}

.wc_payment_method.payment_method_foxpay > input[type="radio"],
.wc_payment_method.payment_method_foxpay > input.input-radio {
  grid-column: 1;
  grid-row: 1;
  width: 18px;
  height: 18px;
  margin: 1px 0 0 0 !important;
}

.wc_payment_method.payment_method_foxpay label[for="payment_method_foxpay"] {
  grid-column: 2;
  grid-row: 1;
}

.wc_payment_method.payment_method_foxpay .payment_box {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  padding: 1px 0 0 0 !important;
}

@media (max-width: 480px) {
  .foxpay-checkout-label-row,
  .foxpay-checkout-label-main {
    gap: 0 !important;
  }

  .foxpay-checkout-subline {
    max-width: 100%;
  }

.wc-block-components-radio-control-accordion-option input[value="foxpay"] + div .wc-block-components-radio-control-accordion-content,
.wc-block-components-radio-control-accordion-option input[value="foxpay"] + div .wc-block-components-radio-control__description {
  margin-top: 4px !important;
}

  .foxpay-checkout-icons--primary {
    gap: 4px;
  }

  .foxpay-checkout-icon {
    width: 32px;
    height: 24px;
  }

  .foxpay-checkout-icons--primary .foxpay-checkout-icon--obt {
    width: 76px;
  }

  .foxpay-checkout-icons--primary .foxpay-checkout-icon--card {
    width: 74px;
  }
}

/* Final WooCommerce checkout payment-method block rules. */
.wc-block-components-radio-control-accordion-option:has(input[value="foxpay"]),
.wc-block-components-radio-control-accordion-option input[value="foxpay"] + div,
.wc_payment_method.payment_method_foxpay {
  /* Stores can override the method surface while light stores get a clear card. */
  background: var(--foxpay-checkout-method-surface, #ffffff) !important;
  border-radius: 0 !important;
}

.wc_payment_method.payment_method_foxpay {
  padding-top: 4px !important;
}

.wc-block-components-radio-control-accordion-option input[value="foxpay"] + div {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
  position: relative !important;
  z-index: 2 !important;
}

.wc-block-components-radio-control-accordion-option:has(input[value="foxpay"]) .wc-block-components-radio-control__option {
  padding-bottom: 6px !important;
}

.wc-block-components-radio-control-accordion-option:has(input[value="foxpay"]) .wc-block-components-radio-control-accordion-content {
  padding-bottom: 10px !important;
}

.wc_payment_method.payment_method_foxpay,
.wc_payment_method.payment_method_foxpay label,
.wc_payment_method.payment_method_foxpay .payment_box,
.foxpay-checkout-label-row,
.foxpay-checkout-label-main,
.foxpay-checkout-label-copy,
.foxpay-checkout-body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  letter-spacing: 0 !important;
}

.wc_payment_method.payment_method_foxpay label[for="payment_method_foxpay"] {
  display: flex !important;
  align-items: flex-start !important;
  width: 100% !important;
  min-width: 0 !important;
  gap: 0 !important;
  color: inherit !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

.foxpay-checkout-label-row {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-width: 0 !important;
  gap: 0 !important;
  color: inherit !important;
}

.foxpay-checkout-label-main {
  display: flex !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  gap: 0 !important;
}

.foxpay-checkout-label-copy {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  min-width: 0 !important;
  gap: 3px !important;
}

.foxpay-checkout-lead {
  color: inherit !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
}

.foxpay-checkout-subline {
  max-width: 100% !important;
  color: inherit !important;
  font-size: 10.5px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  opacity: 0.72 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.foxpay-checkout-instant-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  flex: 0 0 auto !important;
  margin: 1px 0 0 8px !important;
  padding: 2px 5px !important;
  color: #115e59 !important;
  background: #ccfbf1 !important;
  border: 1px solid #2dd4bf !important;
  border-radius: 3px !important;
  font-size: 8px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: 0.04em !important;
  white-space: nowrap !important;
  cursor: help !important;
  position: relative !important;
  z-index: 1001 !important;
}

.foxpay-checkout-instant-check {
  font-size: 9px !important;
  line-height: 1 !important;
}

.foxpay-checkout-instant-badge[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: max-content;
  max-width: min(220px, 80vw);
  padding: 4px 8px;
  color: #ffffff;
  background: #1e293b;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 1002;
  pointer-events: none;
}

.foxpay-checkout-icons--primary .foxpay-checkout-icon:first-child[data-tooltip]::after {
  left: 0;
  transform: none;
}

.foxpay-checkout-icons--primary .foxpay-checkout-icon:first-child[data-tooltip]::before {
  left: 13px;
}

.foxpay-checkout-instant-badge[data-tooltip]::before {
  content: '';
  position: absolute;
  right: 8px;
  top: calc(100% + 2px);
  border: 4px solid transparent;
  border-bottom-color: #1e293b;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 1002;
  pointer-events: none;
}

.foxpay-checkout-instant-badge[data-tooltip]:hover::after,
.foxpay-checkout-instant-badge[data-tooltip]:hover::before,
.foxpay-checkout-instant-badge[data-tooltip]:focus-visible::after,
.foxpay-checkout-instant-badge[data-tooltip]:focus-visible::before {
  opacity: 1;
  visibility: visible;
}

.foxpay-checkout-lead-method,
.foxpay-checkout-full-logo,
.foxpay-checkout-brand-wordmark,
.foxpay-checkout-trust {
  display: none !important;
}

.foxpay-checkout-body {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 5px !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  color: inherit !important;
  text-align: left !important;
}

.wc_payment_method.payment_method_foxpay .payment_box {
  padding: 1px 0 0 0 !important;
  margin: 0 !important;
  color: inherit !important;
  background: transparent !important;
  border: none !important;
}

.foxpay-checkout-body-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
}

.foxpay-checkout-icons--primary {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 4px !important;
  min-width: 0 !important;
}

.foxpay-checkout-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 33px !important;
  height: 24px !important;
  padding: 0 !important;
  color: #243653 !important;
  background: #ffffff !important;
  border: 1px solid #dbe3ee !important;
  border-radius: 3px !important;
  cursor: help !important;
  flex-shrink: 0 !important;
  position: relative !important;
}

.foxpay-checkout-icon:hover,
.foxpay-checkout-icon:focus-visible {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.18) !important;
}

.foxpay-checkout-icons--primary .foxpay-checkout-icon--obt {
  width: 78px !important;
}

.foxpay-checkout-icons--primary .foxpay-checkout-icon--card {
  width: 76px !important;
}

.foxpay-method-card {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}

.foxpay-method-card svg,
.foxpay-method-card img {
  display: block !important;
  width: 15px !important;
  height: 15px !important;
}

.foxpay-method-card--qr {
  color: #020617 !important;
}

.foxpay-method-card--qr img {
  width: 16px !important;
  height: 16px !important;
}

.foxpay-method-card--sepa {
  color: #243653 !important;
  font-size: 8.5px !important;
  font-weight: 800 !important;
}

.foxpay-bank-logo-stack,
.foxpay-card-brand-stack {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 20px !important;
}

.foxpay-bank-logo-stack img {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  margin-left: -7px !important;
  border: 1.5px solid #ffffff !important;
  border-radius: 999px !important;
  object-fit: cover !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12) !important;
}

.foxpay-bank-logo-stack img:first-child {
  margin-left: 0 !important;
}

.foxpay-card-brand {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 29px !important;
  height: 20px !important;
  margin-left: -5px !important;
  border: 1.5px solid #ffffff !important;
  border-radius: 3px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12) !important;
  overflow: hidden !important;
}

.foxpay-card-brand:first-child {
  margin-left: 0 !important;
}

.foxpay-card-brand svg,
.foxpay-card-brand img {
  display: block !important;
  width: 29px !important;
  height: 20px !important;
}

.foxpay-card-count,
.foxpay-bank-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 19px !important;
  height: 19px !important;
  margin-left: -5px !important;
  padding: 0 4px !important;
  border: 1.5px solid #ffffff !important;
  border-radius: 999px !important;
  background: #eaf2ff !important;
  color: #2b85f3 !important;
  font-size: 7.8px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
}

.foxpay-bank-count {
  min-width: 27px !important;
  font-size: 7px !important;
}

.wc_payment_method.payment_method_foxpay {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) !important;
  column-gap: 10px !important;
  row-gap: 2px !important;
  align-items: flex-start !important;
}

.wc_payment_method.payment_method_foxpay > input[type="radio"],
.wc_payment_method.payment_method_foxpay > input.input-radio {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 18px !important;
  height: 18px !important;
  margin: 1px 0 0 0 !important;
}

.wc_payment_method.payment_method_foxpay label[for="payment_method_foxpay"] {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

.wc_payment_method.payment_method_foxpay .payment_box {
  grid-column: 2 !important;
  grid-row: 2 !important;
}

@media (max-width: 480px) {
  .foxpay-checkout-label-row {
    flex-wrap: nowrap !important;
    row-gap: 0 !important;
  }

  .foxpay-checkout-lead {
    font-size: 12.5px !important;
  }

  .foxpay-checkout-subline {
    font-size: 10px !important;
  }

  .foxpay-checkout-icons--primary {
    gap: 4px !important;
  }

  .foxpay-checkout-icon {
    width: 32px !important;
    height: 24px !important;
  }

  .foxpay-checkout-icons--primary .foxpay-checkout-icon--obt {
    width: 76px !important;
  }

  .foxpay-checkout-icons--primary .foxpay-checkout-icon--card {
    width: 74px !important;
  }
}

/* Keep the payment icons left-aligned under the method copy. */
.foxpay-checkout-body,
.foxpay-checkout-body-row {
  align-items: flex-start !important;
  text-align: left !important;
}

.foxpay-checkout-body-row {
  display: block !important;
  width: 100% !important;
}

.foxpay-checkout-icons--primary {
  display: inline-flex !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  margin-inline: 0 !important;
  align-self: flex-start !important;
  justify-self: flex-start !important;
}

.foxpay-checkout-icons--primary .foxpay-checkout-icon--obt {
  width: 92px !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
  box-sizing: border-box !important;
}

.foxpay-bank-logo-stack {
  width: auto !important;
  padding: 0 1px !important;
}

.foxpay-bank-count {
  min-width: 32px !important;
  padding-left: 5px !important;
  padding-right: 5px !important;
  margin-left: -3px !important;
}

@media (max-width: 480px) {
  .foxpay-checkout-icons--primary .foxpay-checkout-icon--obt {
    width: 90px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
}

/* Final dark-store overrides follow the detected store surface, not OS preference. */
.wc-block-components-radio-control-accordion-option.foxpay-store-theme-dark,
.wc-block-components-radio-control-accordion-option.foxpay-store-theme-dark input[value="foxpay"] + div,
.wc_payment_method.payment_method_foxpay.foxpay-store-theme-dark {
  --foxpay-checkout-method-surface: #0f172a;
  color: #f8fafc !important;
}

.foxpay-store-theme-dark .foxpay-checkout-icon {
  color: #243653 !important;
  background: #ffffff !important;
  border-color: #64748b !important;
}

.foxpay-store-theme-dark .foxpay-checkout-icon:hover,
.foxpay-store-theme-dark .foxpay-checkout-icon:focus-visible {
  background: #f8fafc !important;
  border-color: #2dd4bf !important;
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.28), 0 3px 9px rgba(0, 0, 0, 0.42) !important;
}

/* The TEST badge is a standalone sibling that sits ABOVE the icon row inside
   .foxpay-checkout-body, and the override above pins that row to
   display: block; width: 100%. The badge therefore always took a line of its
   own between the method copy and the payment icons, which read as a stray
   element rather than a status marker. Put it at the end of the icon row so it
   lines up under the INSTANT badge on the right edge, where the other status
   marker already lives. !important is required here only because the block
   above uses it. */
.foxpay-checkout-body {
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  column-gap: 10px !important;
  row-gap: 8px !important;
}

.foxpay-checkout-body-row {
  display: flex !important;
  width: auto !important;
  flex: 0 1 auto !important;
  align-items: center !important;
}

.foxpay-checkout-test-badge {
  order: 2 !important;
  flex: 0 0 auto !important;
  margin-left: auto !important;
}

/* The PayPal asset is a wordmark (300x85), not a square glyph like the QR icon
   or a card-shaped mark like Visa. The shared `.foxpay-method-card img` rule
   pins every icon to 15x15, and with the default object-fit: fill that squashed
   the wordmark to a third of its width - it rendered as an unreadable smudge
   next to a correctly sized QR icon.

   Size it by height and let the width follow the ratio, and widen its chip the
   way --obt and --card are already widened for their stacks. !important is
   required here only because the blocks above use it. */
.foxpay-checkout-icon--paypal,
.foxpay-checkout-icons--primary .foxpay-checkout-icon--paypal {
  width: 58px !important;
}

.foxpay-method-card--paypal img {
  width: auto !important;
  height: 13px !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

@media (max-width: 480px) {
  .foxpay-checkout-icon--paypal,
  .foxpay-checkout-icons--primary .foxpay-checkout-icon--paypal {
    width: 52px !important;
  }

  .foxpay-method-card--paypal img {
    height: 11.5px !important;
  }
}

/* The checkout lead now carries a padlock in front of the words. Flex so the
   icon and the text share a centre line and a real gap, rather than the icon
   dropping onto the text's baseline. The SVG strokes in currentColor, so it
   follows the lead's colour into a dark store without a second rule. */
.foxpay-checkout-lead {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.foxpay-checkout-lock {
  flex: 0 0 auto !important;
}

/* SEPA is a card mark like Visa and Mastercard, so it sits at their height -
   20px, not the 17px it first shipped at. Rendered side by side at 20px it is
   no less legible than the Visa mark; at 17px the letters turned to mush. The
   chip widens to keep a margin around a 3:2 mark. Sized by height with the
   width following, scoped past WooCommerce's `.woocommerce img { height: auto }`,
   which outranks a single class - the same rule that squashed the PayPal mark. */
.foxpay-checkout-icon--manual,
.foxpay-checkout-icons--primary .foxpay-checkout-icon--manual {
  width: 44px !important;
}

.foxpay-method-card--sepa img {
  display: block !important;
  width: auto !important;
  height: 20px !important;
  max-width: 100% !important;
  object-fit: contain !important;
}
