

/* Parent wrapper */
.atoa-logos {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px !important;
}

 @media (min-width: 768px) {

    .atoa-logos img {
        width: 32px !important;
        height: 25px !important;
    }
}

/* ======================================
   MOBILE FIX FOR ATOA
====================================== */

@media (max-width: 767px) {

  /* Card padding smaller */
  .wc_payment_method.payment_method_atoa_bank,
  .wc_payment_method.payment_method_atoa_card {
      padding: 20px 12px !important;
      overflow: hidden;
  }

  /* Make header row properly aligned */
  .wc_payment_method.payment_method_atoa_bank > label,
  .wc_payment_method.payment_method_atoa_card > label {
      display: flex !important;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      width: 100%;
  }

  /* Prevent text breaking weirdly */
  .wc_payment_method.payment_method_atoa_bank > label,
  .wc_payment_method.payment_method_atoa_card > label {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
  }

  /* Title font size slightly smaller */
  .wc_payment_method.payment_method_atoa_bank > label,
  .wc_payment_method.payment_method_atoa_card > label {
      font-size: 15px;
  }

  /* Logos slightly smaller */
  .atoa-logos img {
      width: 28px;
      height: 28px;
  }

  .atoa-more {
      width: 28px;
      height: 28px;
      font-size: 12px;
  }

  /* Fix radio position */
  .wc_payment_method input[type="radio"] {
      transform: scale(1.1);
      margin-top: 2px;
  }

  /* Description spacing fix */
  .payment_box {
      padding: 10px 0 0 28px !important;
  }

}

/* +5 trigger */
.atoa-more {
    position: relative;
    cursor: pointer;
    font-weight: 500;
}
 
/* Black hover popup */
.atoa-hover-box {
    display: none;
    position: absolute;
    bottom: 42px;
    left: 45%;
    transform: translateX(-50%);
    background: #000;
    padding: 10px 12px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
 
    display: none;
    grid-template-columns: repeat(3, auto);
    gap: 8px;
    
    max-width: 80px;      /* box control width */
    width: max-content;
 
    z-index: 9999;
}
 
/* Show only on +5 hover */
.atoa-more:hover .atoa-hover-box {
    display: grid;
}
 
/* Logo styling */
.atoa-hover-box img {
    height: 26px;
    width: auto;
    display: block;
    margin: 0 auto;
    background: transparent !important;
}


/* =========================================
   CARD BASE
========================================= */

.wc_payment_method.payment_method_atoa_bank,
.wc_payment_method.payment_method_atoa_card {
    background: #fff; /* light grey inactive */
    border: 1.5px solid #E5E7EB;
    border-radius: 20px;
    padding: 22px 26px;
    margin-bottom: 16px;
    transition: all 0.25s ease;
}

/* Active card */
.wc_payment_method.payment_method_atoa_bank.active,
.wc_payment_method.payment_method_atoa_card.active {
    background: #FFFFFF;
    border: 2px solid #111111;
}

/* =========================================
   FIX LAYOUT STRUCTURE
========================================= */

/* Make LI flex container */
.wc_payment_method.payment_method_atoa_bank,
.wc_payment_method.payment_method_atoa_card {
    display: flex;
    flex-direction: column;
}

/* Top row container */
.wc_payment_method.payment_method_atoa_bank > input,
.wc_payment_method.payment_method_atoa_card > input {
    position: absolute;
    margin-top: 6px;
}

/* Make label full width row */
.wc_payment_method.payment_method_atoa_bank > label,
.wc_payment_method.payment_method_atoa_card > label {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-left: 30px; /* space for radio */
    margin: 0;
}

/* Title text */
.wc_payment_method.payment_method_atoa_bank > label,
.wc_payment_method.payment_method_atoa_card > label {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

/* =========================================
   LOGOS RIGHT SIDE
========================================= */
#add_payment_method #payment ul.payment_methods li, .woocommerce-cart #payment ul.payment_methods li, .woocommerce-checkout #payment ul.payment_methods li {
    margin: 15px auto !important;
}

.woocommerce-checkout #payment ul.payment_methods li input{
    margin-top: 5px !important;
}

.atoa-logos {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 30px;
}

.atoa-logos img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 2px solid #fff;
}

/* +5 bubble */
.atoa-more {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E5E7EB;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   MODERN BLACK RADIO STYLE
========================================= */

.wc_payment_method input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #C9CED6;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
}

.wc_payment_method input[type="radio"]:checked {
    border: 6px solid #111111;
}

/* =========================================
   DESCRIPTION
========================================= */
.atoa-desc {
    font-size: 14px;
    color: #4b5563;
}
.payment_box {
    background: transparent !important;
    border: none !important;
    padding: 10px 0 0 30px !important;
    margin: 0 !important;
}

.woocommerce-checkout .payment_box::before {
    display: none !important;
}