/**
 * Skye Blinds - Quote Checkout CSS
 * Styles for [skye_blinds_quote_checkout] shortcode
 * Version: 1.0.0
 */

/* ── Container ── */
.skye-quote-wrap {
  max-width: 720px;
  margin: 0 auto 40px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ── Step Indicator ── */
.skye-steps {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  counter-reset: step-counter;
}
.skye-step-indicator {
  flex: 1;
  text-align: center;
  position: relative;
  padding-bottom: 12px;
}
.skye-step-indicator::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0 auto 6px;
  background: #e5e7eb;
  color: #6b7280;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}
.skye-step-indicator::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 3px;
  background: #e5e7eb;
  border-radius: 2px;
  transition: background 0.3s;
}
.skye-step-indicator.active::before,
.skye-step-indicator.completed::before {
  background: #01a9bd;
  color: #fff;
}
.skye-step-indicator.completed::before {
  content: '\2713';
}
.skye-step-indicator.active::after,
.skye-step-indicator.completed::after {
  background: #01a9bd;
}
.skye-step-label {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.skye-step-indicator.active .skye-step-label,
.skye-step-indicator.completed .skye-step-label {
  color: #01a9bd;
}

/* ── Step Panels ── */
.skye-step-panel {
  display: none;
  animation: skye-fadeIn 0.3s ease;
}
.skye-step-panel.active {
  display: block;
}
@keyframes skye-fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Step 1: Code Input ── */
.skye-code-input-wrap {
  text-align: center;
  padding: 40px 20px;
}
.skye-code-input-wrap h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1f2937;
}
.skye-code-input-wrap p {
  color: #6b7280;
  margin: 0 0 24px;
  font-size: 15px;
}
.skye-code-field {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}
.skye-code-field input[type="text"] {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  transition: border-color 0.2s;
}
.skye-code-field input[type="text"]:focus {
  outline: none;
  border-color: #01a9bd;
  box-shadow: 0 0 0 3px rgba(1,169,189,0.1);
}
.skye-code-field button {
  padding: 12px 24px;
  background: #01a9bd;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.skye-code-field button:hover {
  background: #018a9b;
}
.skye-code-field button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.skye-code-error {
  color: #dc2626;
  margin-top: 12px;
  font-size: 14px;
}
.skye-code-help {
  margin-top: 20px;
  font-size: 13px;
  color: #9ca3af;
}

/* ── Step 2: Confirmation ── */
.skye-confirm-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}
.skye-confirm-card h3 {
  margin: 0 0 16px;
  font-size: 18px;
  color: #1f2937;
}
.skye-confirm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.skye-confirm-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
}
.skye-confirm-item .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3af;
  margin-bottom: 4px;
}
.skye-confirm-item .value {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}
.skye-fitting-note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 16px;
  font-size: 13px;
  color: #92400e;
  line-height: 1.5;
}
.skye-fitting-note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.skye-step-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.skye-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.skye-btn-primary {
  background: #01a9bd;
  color: #fff;
}
.skye-btn-primary:hover {
  background: #018a9b;
}
.skye-btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}
.skye-btn-secondary:hover {
  background: #e5e7eb;
}

/* ── Step 3: Product Grid ── */
.skye-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.skye-product-card {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.skye-product-card:hover {
  border-color: #01a9bd;
  box-shadow: 0 4px 12px rgba(1,169,189,0.1);
}
.skye-product-card.selected {
  border-color: #01a9bd;
  background: #f0fdfa;
}
.skye-product-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 6px;
}
.skye-product-card h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: #1f2937;
}
.skye-product-card .skye-product-price {
  font-size: 16px;
  font-weight: 700;
  color: #01a9bd;
}
.skye-product-loading {
  text-align: center;
  padding: 40px;
  color: #9ca3af;
}

/* ── Step 4: Price Display ── */
.skye-price-display {
  text-align: center;
  padding: 32px 20px;
}
.skye-price-display .skye-final-price {
  font-size: 48px;
  font-weight: 800;
  color: #01a9bd;
  margin: 16px 0 8px;
}
.skye-price-display .skye-price-note {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 24px;
}
.skye-price-summary {
  background: #f9fafb;
  border-radius: 10px;
  padding: 16px;
  margin: 20px auto;
  max-width: 360px;
  text-align: left;
}
.skye-price-summary .summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: #4b5563;
  border-bottom: 1px solid #f3f4f6;
}
.skye-price-summary .summary-row:last-child {
  border-bottom: none;
}
.skye-price-summary .summary-row .sr-label {
  font-weight: 500;
}
.skye-price-summary .summary-row .sr-value {
  font-weight: 600;
  color: #1f2937;
}

/* ── Step 5: Success ── */
.skye-success-wrap {
  text-align: center;
  padding: 40px 20px;
}
.skye-success-wrap .skye-success-icon {
  width: 64px;
  height: 64px;
  background: #d1fae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 32px;
  color: #059669;
}
.skye-success-wrap h3 {
  font-size: 20px;
  color: #1f2937;
  margin: 0 0 8px;
}
.skye-success-wrap p {
  color: #6b7280;
  margin: 0 0 24px;
}
.skye-btn-checkout {
  display: inline-block;
  padding: 14px 36px;
  background: #059669;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.skye-btn-checkout:hover {
  background: #047857;
  color: #fff;
}
.skye-btn-continue {
  display: inline-block;
  margin-top: 12px;
  color: #6b7280;
  text-decoration: underline;
  font-size: 14px;
}

/* ── Spinner ── */
.skye-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #e5e7eb;
  border-top-color: #01a9bd;
  border-radius: 50%;
  animation: skye-spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes skye-spin {
  to { transform: rotate(360deg); }
}

/* ── Fitting Type Selector (in quote flow) ── */
.skye-fitting-selector {
  display: flex;
  gap: 10px;
  margin: 16px 0;
}
.skye-fitting-option {
  flex: 1;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}
.skye-fitting-option:hover {
  border-color: #01a9bd;
}
.skye-fitting-option.selected {
  border-color: #01a9bd;
  background: #f0fdfa;
  color: #01a9bd;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .skye-quote-wrap {
    margin: 0 0 20px;
  }
  .skye-steps {
    margin-bottom: 20px;
  }
  .skye-step-indicator::before {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .skye-step-label {
    font-size: 9px;
  }
  .skye-code-field {
    flex-direction: column;
  }
  .skye-code-field input[type="text"] {
    font-size: 16px;
  }
  .skye-confirm-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skye-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .skye-price-display .skye-final-price {
    font-size: 36px;
  }
  .skye-step-actions {
    flex-direction: column;
  }
}
