/* AI Moderate Modal Styles - Modern Design */
.wcv-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

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

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

.wcv-modal-content {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
  max-width: 560px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.wcv-modal-header {
  padding: 32px 32px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  background: linear-gradient(to bottom, #fafbfc 0%, #ffffff 100%);
}

.wcv-modal-header-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease;
}

.wcv-modal-header-logo:hover {
  transform: scale(1.05);
}

.wcv-modal-header-logo img {
  height: 56px;
  width: auto;
  display: block;
  max-width: 200px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.wcv-modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  color: #1d2327;
  letter-spacing: -0.01em;
}

.wcv-modal-close {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #646970;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 20px;
  right: 20px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.wcv-modal-close:hover {
  color: #1d2327;
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.wcv-modal-close:active {
  transform: rotate(90deg) scale(0.95);
}

.wcv-modal-body {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
}

.wcv-modal-body p {
  margin: 0 0 24px 0;
  line-height: 1.6;
  color: #50575e;
  font-size: 14px;
}

.wcv-modal-body p:last-child {
  margin-bottom: 0;
}

.wcv-modal-footer {
  padding: 20px 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #fafbfc;
}

.wcv-modal-footer .button {
  margin: 0;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 500;
  transition: all 0.2s ease;
}

/* Disabled checkbox styling */
#wcvendors_capability_products_live:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Setup Steps Styles - Modern Design */
.wcv-setup-steps {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wcv-step {
  margin-bottom: 0;
  padding: 20px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: #ffffff;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.wcv-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #2271b1, #135e96);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wcv-step:hover {
  border-color: rgba(34, 113, 177, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.wcv-step:hover::before {
  opacity: 1;
}

.wcv-step.wcv-step-completed {
  background: linear-gradient(to bottom, #f0f9f4 0%, #ffffff 100%);
  border-color: #46b450;
  box-shadow: 0 2px 8px rgba(70, 180, 80, 0.15);
}

.wcv-step.wcv-step-completed::before {
  background: linear-gradient(to bottom, #46b450, #2e7d32);
  opacity: 1;
}

.wcv-step-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}

.wcv-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-right: 0;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(34, 113, 177, 0.3);
  transition: all 0.3s ease;
}

.wcv-step.wcv-step-completed .wcv-step-number {
  background: linear-gradient(135deg, #46b450 0%, #2e7d32 100%);
  box-shadow: 0 2px 8px rgba(70, 180, 80, 0.3);
  animation: checkmarkPulse 0.5s ease;
}

@keyframes checkmarkPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.wcv-step-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  flex: 1;
  color: #1d2327;
  letter-spacing: -0.01em;
}

.wcv-step-status {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.wcv-step-status.wcv-step-pending {
  color: #646970;
}

.wcv-step-status.wcv-step-completed {
  color: #2e7d32;
  background: rgba(70, 180, 80, 0.15);
  animation: statusFadeIn 0.3s ease;
}

@keyframes statusFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.wcv-step-content {
  margin-top: 0;
  animation: contentSlideDown 0.3s ease;
}

@keyframes contentSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wcv-step.wcv-step-completed .wcv-step-content {
  display: none;
}

.wcv-step-description {
  margin: 12px 0 16px;
  font-size: 13px;
  color: #646970;
  line-height: 1.6;
  font-style: normal;
}

.wcv-connection-message {
  margin: 16px 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: messageSlideIn 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.wcv-connection-message.wcv-message-success {
  background: linear-gradient(to right, #d4edda 0%, #e8f5e9 100%);
  border: 1px solid #c3e6cb;
  color: #155724;
}

.wcv-connection-message.wcv-message-success::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #46b450;
  color: white;
  font-weight: bold;
  font-size: 12px;
  flex-shrink: 0;
}

.wcv-connection-message.wcv-message-error {
  background: linear-gradient(to right, #f8d7da 0%, #ffebee 100%);
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.wcv-connection-message.wcv-message-error::before {
  content: '✕';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dc3232;
  color: white;
  font-weight: bold;
  font-size: 12px;
  flex-shrink: 0;
}

.wcv-connect-store-agent {
  margin-top: 10px;
}

/* Modern Button Styles */
.wcv-action-button,
.wcv-connect-link {
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.wcv-action-button::before,
.wcv-connect-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.wcv-action-button:hover::before,
.wcv-connect-link:hover::before {
  width: 300px;
  height: 300px;
}

.wcv-action-button:hover,
.wcv-connect-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.wcv-action-button:active,
.wcv-connect-link:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wcv-action-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.wcv-action-button:disabled:hover {
  transform: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button-primary.wcv-action-button {
  background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
  border-color: #135e96;
}

.button-primary.wcv-action-button:hover {
  background: linear-gradient(135deg, #135e96 0%, #0f4c75 100%);
  border-color: #0f4c75;
}

.wcv-modal-cancel {
  background: #f6f7f7;
  border-color: #dcdcde;
  color: #50575e;
}

.wcv-modal-cancel:hover {
  background: #f0f0f1;
  border-color: #c3c4c7;
  color: #1d2327;
}

/* Responsive Design */
@media (max-width: 782px) {
  .wcv-modal-content {
    max-width: 95%;
    border-radius: 8px;
  }

  .wcv-modal-header {
    padding: 24px 20px 20px;
  }

  .wcv-modal-body {
    padding: 24px 20px;
  }

  .wcv-modal-footer {
    padding: 16px 20px;
    flex-direction: column;
  }

  .wcv-modal-footer .button {
    width: 100%;
  }

  .wcv-step {
    padding: 16px;
  }

  .wcv-step-header {
    flex-wrap: wrap;
  }

  .wcv-step-status {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }
}

/* Loading state for buttons */
.wcv-action-button .button-text {
  position: relative;
  display: inline-block;
}

.wcv-action-button:disabled .button-text::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Focus states for accessibility */
.wcv-modal-close:focus,
.wcv-action-button:focus,
.wcv-connect-link:focus,
.wcv-modal-cancel:focus {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
}

/* Smooth scrollbar for modal body */
.wcv-modal-body::-webkit-scrollbar {
  width: 8px;
}

.wcv-modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.wcv-modal-body::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.wcv-modal-body::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

