/**
 * Duplicate Order Popup Styles
 * 
 * Specific styling for the duplicate order popup based on Figma design.
 * Extends base popup styles with component-specific customizations.
 */

/* Duplicate Order Content Customizations */
.popup-duplicate-order .popup-description {
  font-family: 'Gilroy', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.333em; /* 24px */
  color: var(--black-100);
  margin: 0 0 16px 0;
}

/* Form Group Styling for Duplicate Order */
.popup-duplicate-order .popup-form-group {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  row-gap: 4px;
}

/* Form Label Styling */
.popup-duplicate-order .popup-form-label {
  font-family: 'Gilroy', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.429em; /* 20px */
  color: var(--black-100);
  margin: 0;
}

/* Form Field Container */
.popup-duplicate-order .popup-form-field {
  display: flex;
  align-items: center;
  align-self: stretch;
  column-gap: 8px;
  border: 1px solid var(--off-white-2);
  border-radius: 28px;
  background: var(--white-100);
  padding: 16px 16px 16px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Form Input Styling */
.popup-duplicate-order .popup-form-input {
  flex-grow: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Gilroy', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5em; /* 24px */
  color: var(--black-100);
}

.popup-duplicate-order .popup-form-input::placeholder {
  color: var(--black-100);
  opacity: 1;
}

/* Focus States */
.popup-duplicate-order .popup-form-field:focus-within {
  border-color: var(--accent-100);
  box-shadow: 0 0 0 2px rgba(180, 90, 6, 0.1);
}

/* Button Customizations for Duplicate Order */
.popup-duplicate-order .popup-button--secondary {
  font-family: 'Gilroy', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5em; /* 24px */
  color: var(--black-100);
  background: transparent;
  border-radius: 41px;
  padding: 12px 16px;
}

.popup-duplicate-order .popup-button--primary {
  font-family: 'Gilroy', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5em; /* 24px */
  color: var(--white-100);
  background: var(--accent-100);
  border-radius: 41px;
  padding: 12px 16px;
}

/* Hover States */
.popup-duplicate-order .popup-button--secondary:hover {
  background: rgba(26, 27, 48, 0.05);
}

.popup-duplicate-order .popup-button--primary:hover {
  background: #9a4e05;
}

/* Active/Focus States */
.popup-duplicate-order .popup-button:focus {
  outline: 2px solid var(--accent-100);
  outline-offset: 2px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .popup-duplicate-order .popup-description {
    font-size: 16px;
    line-height: 1.375em; /* 22px */
  }
  
  .popup-duplicate-order .popup-form-field {
    padding: 14px 14px 14px 20px;
  }
  
  .popup-duplicate-order .popup-form-input {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .popup-duplicate-order .popup-description {
    font-size: 15px;
    line-height: 1.4em; /* 21px */
  }
  
  .popup-duplicate-order .popup-form-label {
    font-size: 13px;
  }
  
  .popup-duplicate-order .popup-form-field {
    padding: 12px 12px 12px 18px;
  }
  
  .popup-duplicate-order .popup-form-input {
    font-size: 14px;
  }
  
  .popup-duplicate-order .popup-button {
    font-size: 15px;
    padding: 10px 14px;
  }
}

/* Animation Enhancements */
.popup-duplicate-order .popup-form-field {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-duplicate-order .popup-form-input {
  transition: color 0.2s ease;
}

/* Validation States */
.popup-duplicate-order .popup-form-field.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.popup-duplicate-order .popup-form-field.success {
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

/* Loading State */
.popup-duplicate-order .popup-button--primary.loading {
  position: relative;
  color: transparent;
}

.popup-duplicate-order .popup-button--primary.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top-color: var(--white-100);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}