#cardholder-name,
#billing-zip,
#billing-address {
    width: 100% !important;
    border-radius: 5px;
}

#stripe-card-element {
    width: 60%;
    min-width: 330px;
}

#card-title-name{
    padding-top: 20px !important;
}

#stripevault-button{
    border: none !important;
    overflow: visible;
    display: inline-block;
    background: #444;
    width: auto;
    font-size: 85.714% !important;
    margin: 0;
    cursor: pointer;
    height: auto;
    line-height: inherit;
    white-space: nowrap;
    text-transform: uppercase;
    font-weight: 400;
    position: relative;
    color: #fff !important;
    text-decoration: none !important;
}

#title-new-card{
    padding-bottom: 25px !important;
}

.stripevault .option-header {
    border-radius: 8px;
    padding: 16px 24px 16px 8px;
    color: white;
    text-align-last: center;
    height: 56px;
    background: #000;
    display: block;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    cursor: pointer;
    width: 80% !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
  }
  .stripevault .option-body {
    border-top: none;
    border-radius: 0 0 .5rem .5rem;
    padding: 1rem;
    width: 80% !important;

    @media (max-width: 768px) {
      width: 100% !important;
    }
  }

  .stripevault .option-body .action.primary {
    border-radius: 8px;
    color: white !important;
    padding: 8px 24px 16px 24px;
    background: #111111;
    margin-top: 16px;
  }

  .stripevault .arrow {
    transition: transform .2s;
  }
  .stripevault .arrow.rotated {
    transform: rotate(180deg);
  }
  .stripevault .option-body-title {
    color: #111111;
    font-size: 12px;
    font-weight: 700;
  }
  .stripevault .select-cards {
    font-style: italic;
    background-color: #5F5E5E24;
  }
  .stripevault .checkout-agreements-block .checkout-agreement {
    display: flex;
    align-items: flex-start;
    margin-top: 20px !important;
  }
  
  .stripevault .checkout-agreements-block .checkout-agreement input[type="checkbox"] {
    margin: 10px 0.5rem 0 0;
  }
  
  .stripevault .checkout-agreements-block .checkout-agreement .action-show {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
  }
  
  .stripevault .checkout-agreements-block .checkout-agreement .action-show span {
    font-size: 14px;
    color: #111111;
    text-transform: none;
    word-break: break-word;
  }

  .text-input {
    font-size: 12px;
    color: #111;
    font-weight: 700;
    padding-top: 10px;
  }

  #stripe-card-number,
  #stripe-card-expiry,
  #stripe-card-cvc{
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    background: #fff;
    color: #111;
    border-radius: 5px;
  }

.address-card {
  display: flex;
  align-items: center;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  padding: 16px;
  margin-bottom: 12px;
}
.address-card--active {
  background: #000;
  color: #fff;
}
.address-card__radio {
  margin-right: 12px;
}
.address-card__body {
  flex: 1;
}
.address-card__title {
  font-weight: bold;
  display: flex;
  align-items: center;
}
.address-card__badge {
  background: #f00;
  color: #fff;
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 8px;
  font-size: 12px;
}
.address-card__details {
  margin-top: 4px;
  font-size: 14px;
  color: #666;
}
.address-card__edit {
  background: none;
  border: none;
  cursor: pointer;
}

/*billing*/
/* Tarjeta de dirección principal */
.custom-address-card {
  border: 2px solid #5F5E5E24;
  border-radius: 10px;
  padding: 20px;
  margin: 15px 0;
  background: #5F5E5E24;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
  transition: all 0.3s ease;
  width: 80% !important;
}

/* Badge "Preferida" */
.custom-address-card .default-badge {
  background: #4B4B4B;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  position: absolute;
  top: 13px;
  text-transform: uppercase;
}

/* Nombre del titular */
.address-name {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
  color: #111111;
}

.address-company,
.address-street,
.address-location,
.address-country,
.address-phone{
  font-size: 14px;
  font-weight: 400;
  color: #111111 !important;
}

/* Líneas de dirección */
.address-street,
.address-location,
.address-country {
  color: #666;
  line-height: 1.4;
  margin: 5px 0;
}

/* Teléfono con ícono */
.address-phone {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.address-phone i {
  font-size: 1.2em;
  color: #007bff;
}

/* Botón de edición */
.action-edit {
  background: none !important;
  color: #000 !important;
  border: none;
  padding: 8px 0px;
  border-radius: 4px;
  margin-top: 15px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition: background 0.3s ease;
  text-transform: none;
  text-decoration: underline !important;
}

.action-edit:hover {
  background: none !important;
  color: #000 !important;
}

.address-card-header {
  padding-bottom: 30px;
  display: flex;
  justify-content: space-between;
}

.checkout-index-index .icon-edit{
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 6px;
  vertical-align: middle;
  background-image: url(../images/editIcon.svg) !important;
  background-size: 24px 24px;
  background-repeat: no-repeat;
  background-position: center;
}

.opc-payment .fieldset.address .input-text {
  padding-right: 20px;
  background: url(../images/editIcon.svg) no-repeat right 8px center;
  background-size: 22px;
  border-radius: 8px;
  border: 1px solid #111111;
  padding: 16px;
  height: 56px;
}

.opc-payment .fieldset.address .select {
  padding-right: 20px;
  background: url(../images/angle-up.svg) no-repeat right 8px center;
  background-size: 22px;
  border-radius: 8px;
  border: 1px solid #111111;
  padding: 16px;
  height: 56px;
}

.opc-payment .fieldset.address .label{
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 20px;
    color: #111111;
}

.opc-payment .fieldset.address .label:after {
  color: #111111 !important;
  margin: 0 !important;
}

.opc-payment #purchaseorder-form .input-text {
  border-radius: 8px;
  border: 1px solid #111111;
  padding: 16px;
  height: 56px;
}

.opc-payment #purchaseorder-form .label {
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 20px;
  color: #111111;
}

.opc-payment .select-cards{
      border-radius: 8px;
      height: 56px;
      padding: 16px 8px 16px 16px;
      background-color: #5F5E5E24;
      color: #111111;
      font-style: italic;
      font-size: 14px;
      font-weight: 400;
      line-height: 20px;
}

.radio-hidden {
  display: none; 
}

.button-like {
  width: 100%;
  display: inline-block;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.opc-payment .action.action-update{
  border-radius: 8px;
  color: white !important;
  padding: 16px 24px 16px 24px;
  background: #111111;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .custom-address-card {
      padding: 15px;
      margin: 10px 0;
  }
  
  .address-name {
      font-size: 1em;
  }
}


/* LIST */
.address-cards-container {
  display: grid;
  flex-direction: column;
  gap: 1rem;
  width: 80% !important;
}
.address-card {
  position: relative;
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  background: #fff;
  color: #333;
  transition: background .2s, color .2s, border-color .2s;
}
.address-card .custom-checkbox {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  left: 20px;
}
.address-card input.address-radio {
  display: none;
}

.address-card.is-active {
  background: #000;
  color: #fff;
  border-color: #000;
}
.address-card.is-active .custom-checkbox {
  border-color: #fff;
}
.address-card.is-active .custom-checkbox::after {
  content: '●';
  position: absolute;
  top: -4px;
  left: 1px;
  color: #fff;
}
.address-card .address-details{
  padding: 20px 60px;
}

.address-card .badge-preferida {
  position: absolute;
  top: -0.6rem;
  left: 1rem;
  background: #000;
  color: #fff;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 4px;
}

.new-address-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  border-radius: 8px;
  background: #000;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  width: 80%;
  font-size: 12px
}
.new-address-card span.plus {
  margin-left: 0.5rem;
  font-size: 1.2rem;
}

.billing-address-box.address-card {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}
.checkout-payment-method .field-select-billing, .checkout-payment-method .billing-address-form {
padding-top: 40px !important;
}

.actions-toolbar {
  display: flex;
  justify-content: flex-start;
  padding-top: 10px;
}

.actions-toolbar button.action-cancel{
  background: none !important;
  color: #000 !important;
  border: none;
  padding: 8px 0px;
  border-radius: 4px;
  margin-top: 15px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  text-transform: none;
  font-size: 14px !important;
}