/* Modal Overlay */
.price-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  backdrop-filter: blur(4px);
}

/* Modal Wrapper */
.price-modal-wrapper {
  position: fixed;
  z-index: 10000;
  
  &.price-modal-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  &.price-modal-top-right {
    top: 20px;
    right: 20px;
    max-width: 400px;
  }
  
  &.price-modal-bottom-right {
    bottom: 20px;
    right: 20px;
    max-width: 400px;
  }
}

/* Animations */
.fade-in {
  animation: fadeIn 0.3s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Premium Modal Container */
.price-modal-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  max-width: 500px;
  width: 100%;
  position: relative;
  
  &.mobile {
    max-width: 95vw;
    margin: 10px;
  }
}

.price-modal-header {
  position: relative;
  padding: 0;
  
  .price-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    z-index: 1;
    transition: all 0.2s ease;
    
    &:hover {
      background: rgba(0, 0, 0, 0.2);
      color: #333;
    }
  }
}

.price-modal-guarantee {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 0 0 16px 16px;
  border-top: 1px solid rgba(34, 197, 94, 0.2);
}

.price-modal-guarantee-badge {
  background: #22c55e;
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.price-modal-guarantee-text {
  flex: 1;
  
  h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #166534;
  }
  
  p {
    margin: 0;
    font-size: 12px;
    color: #15803d;
    line-height: 1.4;
  }
}

/* Confirmation Modal */
.price-modal-confirmation {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  width: 100%;
  position: relative;
}

.price-modal-confirmation .price-modal-header {
  padding: 24px 24px 16px;
  text-align: center;
  
  h2 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
  }
  
  p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
  }
  
  .price-modal-close {
    top: 16px;
    right: 16px;
  }
}

.price-modal-actions {
  display: flex;
  gap: 12px;
  padding: 16px 24px 24px;
}

.price-modal-decline {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid #d1d5db;
  background: white;
  color: #374151;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  
  &:hover {
    background: #f9fafb;
    border-color: #9ca3af;
  }
}

.price-modal-confirm {
  flex: 1;
  padding: 12px 20px;
  background: #4f46e5;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  
  &:hover {
    background: #4338ca;
    transform: translateY(-1px);
  }
  
  .arrow-icon {
    font-size: 16px;
    transition: transform 0.2s ease;
  }
  
  &:hover .arrow-icon {
    transform: translateX(2px);
  }
}

/* Toast Modal */
.price-modal-toast {
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 400px;
  position: relative;
  border-left: 4px solid;
  
  &.price-border-left-success {
    border-left-color: #22c55e;
  }
  
  &.price-border-left-info {
    border-left-color: #3b82f6;
  }
  
  &.price-border-left-warning {
    border-left-color: #f59e0b;
  }
  
  &.price-border-left-error {
    border-left-color: #ef4444;
  }
}

.price-modal-toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  
  &.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
  }
  
  &.info {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
  }
  
  &.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
  }
  
  &.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
  }
}

.price-modal-toast-content {
  flex: 1;
  
  h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    
    &.success { color: #166534; }
    &.info { color: #1e40af; }
    &.warning { color: #92400e; }
    &.error { color: #dc2626; }
  }
  
  p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
  }
}

.price-modal-toast-close {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  
  &:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #666;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .price-modal-wrapper.price-modal-center {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    max-width: none;
    max-height: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  
  .price-modal-container {
    max-width: none;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .price-modal-wrapper.price-modal-top-right,
  .price-modal-wrapper.price-modal-bottom-right {
    left: 10px;
    right: 10px;
    max-width: none;
  }
  
  .price-modal-wrapper.price-modal-top-right {
    top: 10px;
  }
  
  .price-modal-wrapper.price-modal-bottom-right {
    bottom: 10px;
  }
  
  .price-modal-confirmation {
    max-width: none;
    width: 100%;
  }
  
  .price-modal-actions {
    flex-direction: column;
    
    .price-modal-decline,
    .price-modal-confirm {
      flex: none;
    }
  }
}