/* w3domicile Store — frontend styles */

/* ── Buttons ── */
.w3ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 2px solid transparent;
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
  line-height: 1;
}
.w3ds-btn-red    { background: #D32F2F; color: #fff; border-color: #D32F2F; }
.w3ds-btn-red:hover { background: #B71C1C; border-color: #B71C1C; color: #fff; }
.w3ds-btn-black  { background: #111; color: #fff; border-color: #111; }
.w3ds-btn-black:hover { background: #333; color: #fff; }
.w3ds-btn-full   { width: 100%; }
.w3ds-btn-lg     { padding: 13px 28px; font-size: 1rem; }

/* ── Notices ── */
.w3ds-notice {
  padding: 14px 18px;
  border-radius: 5px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  border-left: 4px solid;
}
.w3ds-error   { background: #FFEBEE; border-color: #D32F2F; color: #B71C1C; }
.w3ds-success { background: #E8F5E9; border-color: #2E7D32; color: #1B5E20; }

/* ── Price ── */
.w3ds-free { color: #2E7D32; font-weight: 700; }

/* ── Checkout page ── */
.w3ds-checkout { max-width: 900px; margin: 0 auto; }
.w3ds-checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.w3ds-checkout-summary {
  background: #FDF0C4;
  border: 1px solid #F5E4A0;
  border-radius: 8px;
  padding: 24px;
}
.w3ds-checkout-summary img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 14px;
}
.w3ds-checkout-summary h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #F5E4A0;
}
.w3ds-summary-name  { font-size: 1.05rem; font-weight: 700; color: #111; margin-bottom: 6px; }
.w3ds-summary-meta  { font-size: 0.82rem; color: #666; margin-bottom: 12px; }
.w3ds-summary-price { font-size: 1.3rem; font-weight: 800; color: #111; margin-bottom: 16px; }
.w3ds-summary-price del { font-size: 0.9rem; color: #999; font-weight: 400; margin-right: 8px; }
.w3ds-summary-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.86rem;
  color: #444;
}
.w3ds-summary-features li::before { content: none; }

/* Checkout form */
.w3ds-checkout-form-wrap { }
.w3ds-checkout-form-wrap h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.w3ds-form-group { margin-bottom: 16px; }
.w3ds-form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.w3ds-form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #111;
  transition: border-color 0.15s ease;
  background: #fff;
}
.w3ds-form-group input:focus {
  outline: none;
  border-color: #4A90C4;
  box-shadow: 0 0 0 3px rgba(74,144,196,0.12);
}
.w3ds-form-note {
  font-size: 0.78rem;
  color: #888;
  text-align: center;
  margin-top: 10px;
  line-height: 1.55;
}

/* ── Download page ── */
.w3ds-download-page { max-width: 680px; margin: 0 auto; }
.w3ds-download-success {
  text-align: center;
  padding: 32px 20px;
  background: #E8F5E9;
  border-radius: 8px;
  margin-bottom: 28px;
}
.w3ds-success-icon {
  width: 60px; height: 60px;
  background: #2E7D32;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 16px;
}
.w3ds-download-success h2 { color: #1B5E20; margin-bottom: 8px; }
.w3ds-download-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #FDF0C4;
  border: 1px solid #F5E4A0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}
.w3ds-dl-thumb { width: 120px; border-radius: 6px; flex-shrink: 0; }
.w3ds-dl-info h3 { margin-bottom: 6px; }
.w3ds-dl-info p  { font-size: 0.84rem; color: #666; margin-bottom: 14px; }
.w3ds-download-notes {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px 24px;
}
.w3ds-download-notes h4 { margin-bottom: 12px; font-size: 1rem; }
.w3ds-download-notes ol {
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: #444;
  line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .w3ds-checkout-grid { grid-template-columns: 1fr; }
  .w3ds-download-card { flex-direction: column; }
  .w3ds-dl-thumb { width: 100%; }
}
