/* Modal backdrop */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.2s ease-in;
  display: none;
}

/* Modal container */
.modal-container {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 50;
  width: 100%;
  max-width: 20rem;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  display: none;
  animation: zoomIn 0.2s ease-in;
}

/* Modal header */
.modal-header {
  margin-bottom: 1rem;
  text-align: center;
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1;
}

/* Modal content */
.modal-content {
  margin: 1rem 0;
}

.color-option {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  transition: all 0.2s;
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.color-option:hover {
  border-color: #F43F5E;
}

.color-option.selected {
  border-color: #F43F5E;
}

.color-option-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.color-option img {
  width: 5rem;
  height: 4rem;
  border-radius: 0.5rem;
  object-fit: contain;
  background-color: white;
}

.color-option-text {
  flex: 1;
  text-align: left;
}

.color-option-text p {
  font-weight: 600;
  font-size: 0.875rem;
}

/* Modal footer */
.modal-footer {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.modal-button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.button-cancel {
  background-color: white;
  border: 1px solid #e5e7eb;
}

.button-cancel:hover {
  background-color: #f3f4f6;
}

.button-confirm {
  background-color: #F43F5E;
  color: white;
}

.button-confirm:hover {
  background-color: rgba(244, 63, 94, 0.9);
}

.button-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Close button */
.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  opacity: 0.7;
  transition: opacity 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.modal-close:hover {
  opacity: 1;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Show modal */
.show {
  display: block;
}