/* Supported Countries Modal Styles */

/* Modal Overlay */
.supported-countries-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  animation: modalFadeIn 0.4s ease-out;
}

/* Modal Container */
.supported-countries-modal {
  font-family: "Rubik-Regular", sans-serif;
  width: 100%;
  max-width: 375px;
  background: #fff;
  border-radius: 28px 28px 0px 0px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  max-height: 80vh;
  overflow: hidden;
  animation: modalSlideIn 0.4s ease-out;
  transform: translateY(0);
}

.supported-countries-modal.closing {
  animation: modalSlideOut 0.4s ease-in;
  transform: translateY(100%);
}

/* Drag Handle */
.supported-countries-drag-handle {
  width: 40px;
  height: 4px;
  background: #E5E7EB;
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

/* Modal Header */
.supported-countries-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 20px;
  border-bottom: 1px solid #F3F4F6;
  flex-shrink: 0;
}

.supported-countries-title {
  font-family: "Rubik-Medium", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #111827;
  margin: 0;
  line-height: 1.2;
}

.supported-countries-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #6B7280;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  transition: background-color 0.2s ease;
}

/* .supported-countries-close-btn:hover {
  background-color: #F3F4F6;
  color: #374151;
} */

/* Countries List */
.supported-countries-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 20px;
  max-height: calc(80vh - 120px);
}

.supported-country-item {
  display: flex;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #F3F4F6;
  transition: background-color 0.2s ease;
}

.supported-country-item:last-child {
  border-bottom: none;
}

/* .supported-country-item:hover {
  background-color: #F9FAFB;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
} */

.country-flag {
  font-size: 24px;
  margin-right: 16px;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}

.country-name {
  font-family: "Rubik-Regular", sans-serif;
  font-size: 16px;
  color: #111827;
  font-weight: 400;
  line-height: 1.4;
}

/* Animations */
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes modalSlideOut {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}

/* Responsive Design */
@media (max-width: 480px) {
  .supported-countries-modal {
    max-width: 100%;
    border-radius: 20px 20px 0px 0px;
  }
  
  .supported-countries-header {
    padding: 12px 16px 16px;
  }
  
  .supported-countries-title {
    font-size: 16px;
  }
  
  .supported-countries-list {
    padding: 0 16px 16px;
  }
  
  .supported-country-item {
    padding: 14px 0;
  }
  
  .country-flag {
    font-size: 20px;
    margin-right: 12px;
    width: 28px;
  }
  
  .country-name {
    font-size: 14px;
  }
}

/* Scrollbar Styling */
.supported-countries-list::-webkit-scrollbar {
  width: 4px;
}

.supported-countries-list::-webkit-scrollbar-track {
  background: #F3F4F6;
  border-radius: 2px;
}

.supported-countries-list::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 2px;
}

.supported-countries-list::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
} 