/* Address cards container */

.v2-account-details-heading {
    font-size: 1.5em;
    font-weight: 700;
    color: #000;
    margin-bottom: 5px !important;
    margin-top: 50px;
}

.u-columns.woocommerce-Addresses {
    /* display: flex; */
    gap: 24px;
    align-items: stretch; /* makes children equal height */
    flex-wrap: wrap;
  }
  
  /* Each card (50% width) */
  .u-columns.woocommerce-Addresses .woocommerce-Address {
    flex: 1 1 calc(50% - 12px); /* two columns with gap */
    box-sizing: border-box;
    background: #fff;
    border: 1px solid rgba(238,177,97,0.25); /* subtle warm border */
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(49, 38, 31, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 220px; /* adjust as needed */
  }
  
  /* Header: title and edit/add link */
  .woocommerce-Address .woocommerce-Address-title {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    gap: 12px;
    border: none !important;
    color: #000 !important;
  }
  
  /* Icon before title */
  .woocommerce-Address .address-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2ECD70 !important;;
    border-radius: 50%;
    flex: 0 0 34px;
  }
  
  /* Title text */
  .woocommerce-Address .woocommerce-Address-title h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1;
    color:#000;
  }
  
  /* Edit / Add link styled like pill button */
  .woocommerce-Address .woocommerce-Address-title .edit {
    position: absolute;
    right: 12px;
    top: 5px;
    text-decoration: none;
    border: 1px solid #ccc;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.98);
    color: #000;
    font-weight: 400 !important;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 5px 8px !important;
    font-family: 'Lato';
}
  /* Edit/Add small icon spacing */
  .woocommerce-Address .woocommerce-Address-title .edit svg {
    width: 16px;
    height: 16px;
    display: inline-block;
  }
  
  /* Address content fills remainder of card */
  .woocommerce-Address address {
    margin: 14px 0 0;
    color: #6b6b6b;
    font-size: 20px;
    line-height: 1.5;
    flex: 1 1 auto;
    border: none !important;
    font-style: normal;
    font-weight: 500 !important;
    font-family: 'Lato';
}
  
  /* Empty state inside address */
  .woocommerce-Address .address-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 100%;
    color: #9b9b9b;
  }
  
  /* Empty icon circle */
  .woocommerce-Address .address-empty .empty-icon {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: rgba(238,177,97,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color:#2ECD70 !important;;
  }
  
  /* Empty text (centered) */
  .woocommerce-Address .address-empty .empty-text {
    text-align: center;
    font-size: 15px;
    padding: 0 10px;
  }
  
  /* Responsive: single column on small screens */
  @media (max-width: 760px) {
    .u-columns.woocommerce-Addresses .woocommerce-Address {
      flex: 1 1 100%;
    }
    .woocommerce-Address .woocommerce-Address-title .edit {
      position: static;
      margin-left: auto;
    }
  }
  
  /* --- Two-column address cards: strong specificity to override theme rules --- */
  .u-columns.woocommerce-Addresses.col2-set.addresses {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;   /* set exact 10px gap */
  }
  
  /* Target direct children (each card) and make exactly two columns */
  .u-columns.woocommerce-Addresses.col2-set.addresses > .woocommerce-Address {
    box-sizing: border-box !important;
    /* precise 2-column split */
    flex: 0 0 calc(50% - 12px) !important;
    max-width: calc(50% - 12px) !important;
    min-width: 280px; /* avoid collapsing too small on narrow screens */
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 220px;
  }
  
  .u-columns.woocommerce-Addresses.col2-set.addresses > .woocommerce-Address:hover{
    border: 1px solid rgba(238,177,97,0.25);
  }
  /* If your theme adds extra wrapper classes, be extra specific: */
  div.u-columns.woocommerce-Addresses.col2-set.addresses > div.woocommerce-Address {
    /* same rules again to out-specify theme */
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }
  
  /* Header & edit button adjustments (unchanged from earlier) */
  .woocommerce-Address .woocommerce-Address-title {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .woocommerce-Address .woocommerce-Address-title .edit {
    position: absolute;
    right: 12px;
    top: 12px;
    text-decoration: none;
    border: 1px solid #2ECD70 !important;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.98);
    color: #2ECD70 !important;
    font-weight: 600;
    display: inline-flex;
    gap: 8px;
    align-items: center;
  }
  
  /* Empty state centering */
  .woocommerce-Address .address-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 100%;
    color: #9b9b9b;
  }
  
  /* Responsive: collapse to 1 column on small screens */
  @media (max-width: 760px) {
    .u-columns.woocommerce-Addresses.col2-set.addresses > .woocommerce-Address {
      flex: 0 0 100% !important;
      max-width: 100% !important;
    }
      
  /* address tab */
  .v2-account-details-heading {
    margin-top: 10px !important; 
  }
  .v2-account-details-description {
    font-size: 1rem !important;
    line-height: 1.4rem;
  }
  .woocommerce-Address .woocommerce-Address-title h2 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1;
    color: #000;
  }.woocommerce .woocommerce-Addresses .woocommerce-Address-title, .woocommerce .woocommerce-Addresses .woocommerce-column__title, .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title, .woocommerce .woocommerce-MyAccount-content .woocommerce-column__title, .woocommerce .woocommerce-customer-details .woocommerce-Address-title, .woocommerce .woocommerce-customer-details .woocommerce-column__title, .woocommerce-account .woocommerce-Addresses .woocommerce-Address-title, .woocommerce-account .woocommerce-Addresses .woocommerce-column__title, .woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title, .woocommerce-account .woocommerce-MyAccount-content .woocommerce-column__title, .woocommerce-account .woocommerce-customer-details .woocommerce-Address-title, .woocommerce-account .woocommerce-customer-details .woocommerce-column__title {
    background: #fbfbfb;
    padding: 0em;
  
  }
  .woocommerce-Address .address-icon {
    width: 24px;
    height: 24px;
    
  }
  .woocommerce-Address .woocommerce-Address-title .edit {
    top:0px;
    padding: 3px 5px !important;
  
  }
  .u-columns.woocommerce-Addresses.col2-set.addresses > .woocommerce-Address {
    padding: 8px;
  }
  .woocommerce .addresses .title .edit, .woocommerce-account .addresses .title .edit {
    float: right;
    padding: .7em 1em;
    font-size: 12px;
  }
  .woocommerce-Address .woocommerce-Address-title {
    gap: 2px;
  }
  .woocommerce .woocommerce-Addresses address, .woocommerce .woocommerce-MyAccount-content address, .woocommerce .woocommerce-customer-details address, .woocommerce-account .woocommerce-Addresses address, .woocommerce-account .woocommerce-MyAccount-content address, .woocommerce-account .woocommerce-customer-details address {
    padding: 0.5em;
    border-radius: 0;
  }
  .woocommerce-Address address {
    margin: 0px; 
    color: #6b6b6b;
    font-size: 16px;
    line-height: 1.5;  
  }
  address {
    margin: 0px; 
  }

}