/**
 * Modal styles for MicroModal
 */
/* .modal {
  display: none;
}

.modal.is-open {
  display: flex !important;
} */

.modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  z-index: 9999;
}

.modal__container {
  background: var(--sms-white);
  backdrop-filter: blur(10px);
  padding: 0;
  width: 100%;
  max-width: 570px;
  border-radius: 10px;
  margin: 20px;
  max-height: 100vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
}

.modal__header {
  padding: 20px 30px;
  border-bottom: 1px solid rgb(237 237 237);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal__title-container h4 {
  margin: 0;
}

.modal__title-container p {
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.4px;
  margin-bottom: 0;
}

.modal__title {
  margin: 0;
  color: var(--sms-white);
  font-size: 20px;
}

.modal__close {
  background: #1c4387;
  border: none;
  color: var(--sms-white);
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  line-height: 0;
  border-radius: 100px;
}

.modal__content {
  padding: var(--sms-container-padding-y) var(--sms-container-padding-x);
}

/* Animation */
.micromodal-slide {
  display: none;
}

.micromodal-slide.is-open {
  display: block;
}

.micromodal-slide[aria-hidden="false"] .modal__overlay {
  animation: mmfadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal__container {
  animation: mmslideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
  animation: mmfadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__container {
  animation: mmslideOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

@keyframes mmfadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes mmfadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes mmslideIn {
  from {
    transform: translateY(15%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes mmslideOut {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10%);
  }
}

/* Animation */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Add to existing modal.css */
.form-message {
  margin-bottom: var(--sms-field-gap);
}

.error-message {
  color: #dc3232;
  background: rgba(220, 50, 50, 0.1);
  padding: 10px 26px;
  border-radius: var(--sms-border-radius);
  font-size: 14px;
}

#login_email {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Add to prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Add to existing modal.css */
.address-select-form {
  padding: 0;
}

.address-list {
  max-height: 400px;
  overflow-y: auto;
  padding: 20px;
}

.address-item {
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.address-item:hover {
  border-color: var(--sms-primary-color);
  background: rgba(var(--sms-primary-rgb), 0.05);
}

.address-item-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.primary-badge {
  background: var(--sms-primary-color);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.address-select-actions {
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

.loading-addresses {
  text-align: center;
  padding: 40px;
  color: #666;
}

.no-addresses {
  text-align: center;
  padding: 40px;
  color: #666;
}
