/* DivvyDen buy box — matches the buy box on DivvyDen's own product pages
   (frontend/src/app/features/store/book-detail/book-detail.component.scss). */
.dd-buy { margin: 4px 0 0; }
.dd-buy-step {
  background: #f8fafc; border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column; gap: 12px; border: 1px solid #e2e8f0;
}
.dd-buy-step[hidden] { display: none; }
.dd-buy-label { font-size: 12px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .4px; }
.dd-buy-email {
  border: 2px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; font-size: 15px;
  outline: none; font-family: inherit; width: 100%; box-sizing: border-box; background: #fff;
}
.dd-buy-email:focus { border-color: #667eea; }

.dd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 10px; padding: 14px 20px; font-size: 15px; font-weight: 700;
  font-family: inherit; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.dd-btn[hidden] { display: none; }
.dd-btn:disabled { opacity: .7; cursor: not-allowed; }
.dd-btn-primary { background: #667eea; color: #fff; width: 100%; box-shadow: 0 2px 6px rgba(102,126,234,.35); }
.dd-btn-primary:hover:not(:disabled) { background: #5a6fd6; }
.dd-btn-ghost { background: none; border: 1.5px solid #e2e8f0; color: #64748b; white-space: nowrap; padding: 12px 20px; font-size: 14px; }
.dd-btn-ghost:hover:not(:disabled) { border-color: #94a3b8; color: #374151; }

.dd-buy-payment { background: #fff; border: 2px solid #e2e8f0; box-shadow: 0 8px 32px rgba(0,0,0,.08); gap: 16px; }
.dd-order-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #f8fafc; border-radius: 10px; padding: 12px 16px; border: 1px solid #e2e8f0;
}
.dd-order-title { font-size: 14px; font-weight: 700; color: #1e293b; }
.dd-order-price { font-size: 16px; font-weight: 800; color: #667eea; white-space: nowrap; }
.dd-buy-for { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #64748b; margin: 0; }
.dd-payment-element { min-height: 60px; }
.dd-payment-actions { display: flex; gap: 12px; align-items: center; }
.dd-payment-actions .dd-btn-primary { flex: 1; }

.dd-buy-success { background: #f0fdf4; border: 2px solid #bbf7d0; align-items: center; text-align: center; padding: 32px 24px; }
.dd-buy-success p { margin: 0; font-size: 14px; color: #374151; }
.dd-buy-success .dd-success-title { font-size: 20px; font-weight: 800; color: #166534; }

.dd-buy-error { font-size: 13px; color: #ef4444; margin: 0; }
.dd-buy-error[hidden] { display: none; }
.dd-secure-note { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 11px; color: #94a3b8; margin: 0; }
.dd-secure-note .dd-icon { width: 13px; height: 13px; }
.dd-icon { flex-shrink: 0; vertical-align: middle; }

.dd-spinner {
  width: 16px; height: 16px; border-radius: 50%; display: inline-block;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: dd-spin .8s linear infinite;
}
@keyframes dd-spin { to { transform: rotate(360deg); } }
