/* WooCommerce Custom Address Book Styles */

.woocommerce-address-book {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .address-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
  }
  
  .address-entry {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
  }
  
  .address-entry strong {
    display: block;
    margin-bottom: 5px;
  }
  
  .edit-address,
  .delete-address {
    display: inline-block;
    margin-top: 10px;
    margin-right: 10px;
    text-decoration: none;
    color: #3498db;
  }
  
  .delete-address {
    color: #e74c3c;
  }
  
  /* Popup styles */
  #address-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
  }
  
  .popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    padding: 20px;
    border-radius: 4px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  #address-form .form-row {
    margin-bottom: 15px;
  }
  
  #address-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
  }
  
  #address-form input[type="text"],
  #address-form input[type="tel"],
  #address-form input[type="email"],
  #address-form select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
  }
  
  #address-form .select2-container {
    width: 100% !important;
  }
  
  
  #address-form .cancel-popup {
    background-color: #e74c3c;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 10px;
  }
  
  #address-form .cancel-popup:hover {
    background-color: #c0392b;
  }
  
  @media (max-width: 768px) {
    .popup-content {
      width: 95%;
    }
  }
  
  /* Äáº£m báº£o select2 dropdown hiá»ƒn thá»‹ Ä‘Ãºng trong popup */
  .select2-container--open .select2-dropdown {
    z-index: 10000;
  }
  
  #address-popup .select2-container {
    width: 100% !important;
  }
  
  #address-popup .select2-selection--single {
    height: 38px;
    border-color: #ddd;
  }
  
  #address-popup .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
  }
  
  #address-popup .select2-selection--single .select2-selection__arrow {
    height: 36px;
  }
  
  #loading-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(255, 255, 255, 0.7);
      z-index: 9999;
  }
  
  .spinner {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 50px;
      height: 50px;
      border: 3px solid #f3f3f3;
      border-top: 3px solid #3498db;
      border-radius: 50%;
      animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
      0% { transform: translate(-50%, -50%) rotate(0deg); }
      100% { transform: translate(-50%, -50%) rotate(360deg); }
  }
  
  .close-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
  }
  