.new-address-modal-content {
    border-radius: 0.5rem;
}
.new-address-modal-header {
    background-color: #121535 !important;
    color: white !important;
}
.new-address-modal-close {
    filter: invert(1);
}
.new-address-modal-subtitle {
    font-weight: 600;
    font-size: 1rem;
}
.new-address-card {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 0.6rem;
    padding: 1rem 1rem 3rem 1.25rem;
    box-shadow: 2px 2px 6px rgb(0 0 0 / 0.05);
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.new-address-card-status {
    position: absolute;
    top: 0.85rem;
    right: 1rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    text-align: right;
    white-space: pre-line;
}
.new-address-card-status span {
    display: block;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
}
.new-address-card-status .default-badge {
    background-color: #198754;
}
.new-address-card-status .selected-badge {
    background-color: #0d6efd;
}
.new-address-card-details {
    flex-grow: 1;
}
.new-address-card-field {
    margin-bottom: 0.4rem;
    color: #444;
}
.new-address-card-field span.label {
    font-weight: 700;
    margin-right: 0.3rem;
}
.new-address-card-actions {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.new-address-card-actions button {
    padding: 0.25rem 0.6rem;
    font-size: 0.85rem;
}
@media (max-width: 991.98px) {
    .new-address-card {
        min-height: 160px;
    }
}
@media (max-width: 575.98px) {
    .new-address-card-actions {
        gap: 0.35rem;
        right: 0.75rem;
        bottom: 0.85rem;
    }

}

/* Base button style */
.new-address-modal-btn {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: #212529;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  background-color: transparent;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}

/* Outline Primary (blue) */
.new-address-modal-btn-outline-primary {
  color: #0d6efd;
  border-color: #0d6efd;
}
.new-address-modal-btn-outline-primary:hover,
.new-address-modal-btn-outline-primary:focus {
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
  text-decoration: none;
}

/* Outline Danger (red) */
.new-address-modal-btn-outline-danger {
  color: #dc3545;
  border-color: #dc3545;
}
.new-address-modal-btn-outline-danger:hover,
.new-address-modal-btn-outline-danger:focus {
  color: #fff;
  background-color: #dc3545;
  border-color: #dc3545;
  text-decoration: none;
}

/* Outline Secondary (gray) */
.new-address-modal-btn-outline-secondary {
  color: #6c757d;
  border-color: #6c757d;
}
.new-address-modal-btn-outline-secondary:hover,
.new-address-modal-btn-outline-secondary:focus {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
  text-decoration: none;
}

/* Outline Info (light blue) */
.new-address-modal-btn-outline-info {
  color: #0dcaf0;
  border-color: #0dcaf0;
}
.new-address-modal-btn-outline-info:hover,
.new-address-modal-btn-outline-info:focus {
  color: #fff;
  background-color: #0dcaf0;
  border-color: #0dcaf0;
  text-decoration: none;
}

/* Optional: disabled state */
.new-address-modal-btn:disabled,
.new-address-modal-btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

#new-address-modal-list-label, #new-address-modal-edit-label{
    color: white !important;
}

.new-address-modal-close{
    color: white !important;
}

button.new-address-modal-close-btn {
    position: absolute;
    top: 8px;
    right: 16px;
    background-color: transparent;
    border: none;
    font-size: 2.5rem;
    line-height: 1;
    color: white;
    cursor: pointer;
    padding: 0;
    user-select: none;
    transition: color 0.2s ease;
    z-index: 1051;
  }
  button.new-address-modal-close-btn:hover,
  button.new-address-modal-close-btn:focus {
    color: #ddd;
    outline: none;
  }

  .new-address-form-label{
    display: contents !important;
  }