/* The blocks of Qsite's own website ([blok:...], App\Website). Every rule is under .qw,
   so the site's own design and Bootstrap 3 around it stay as they are. Sizes are in px, not rem:
   Bootstrap 3 sets the root font size to 10px, which made rem sizes too small in old designs. */
.qw {
  --qw-blue: #0072a1;
  --qw-ink: #004a6b;
  --qw-sky: #e6f5fc;
  --qw-orange: #f7941d;
  --qw-text: #222;
  --qw-muted: #666;
  --qw-border: #e5e5e5;
  --qw-radius: 12px;
  box-sizing: border-box;
  color: var(--qw-text);
  margin: 32px 0;
}
.qw *, .qw *::before, .qw *::after { box-sizing: inherit; }
.qw .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.qw img { max-width: 100%; height: auto; display: block; }

.qw-button {
  display: inline-block; padding: 10.4px 17.6px; border-radius: 999px; border: 2px solid var(--qw-blue, #0072a1);
  color: var(--qw-blue, #0072a1); background: #fff; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center;
}
.qw-button:hover, .qw-button:focus-visible { background: var(--qw-sky, #e6f5fc); text-decoration: none; }
.qw-button-primary { background: var(--qw-blue, #0072a1); color: #fff; }
.qw-button-primary:hover, .qw-button-primary:focus-visible { background: var(--qw-ink, #004a6b); color: #fff; }
.qw-cta { margin: 24px 0; }
.qw-cta .qw-button { border-color: #0072a1; }
.qw-cta .qw-button-primary { background: #0072a1; color: #fff; }
.qw-link { display: inline-block; margin: 8px 0 0 16px; color: var(--qw-blue); font-weight: 600; }
.qw-small { font-size: 13.6px; color: var(--qw-muted); }
.qw-note { font-weight: 600; }
.qw-free { margin: 16px 0 0; }
.qw-free a { font-weight: 600; }
.qw-reassure { font-weight: 600; color: var(--qw-ink); margin-top: 8px; }
.qw-other { margin-top: 2px; }
.qw-status { padding: 12px 16px; border-radius: 8px; background: #e8f5e9; color: #1b5e20; }
.qw-error { color: #c62828; margin: 5.6px 0 0; }

/* Pricing */
.qw-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--qw-sky); margin-bottom: 24px; flex-wrap: wrap; }
.qw-toggle label { margin: 0; padding: 7.2px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--qw-ink); }
.qw-toggle input { position: absolute; opacity: 0; }
.qw-toggle label:has(input:checked) { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.qw-toggle label:has(input:focus-visible) { outline: 2px solid var(--qw-blue); }
.qw-plans { margin-bottom: 20px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.qw-plan { border: 1px solid var(--qw-border); border-radius: var(--qw-radius); padding: 16px; display: flex; flex-direction: column; background: #fff; min-width: 0; }
.qw-plan h3 { margin: 0 0 8px; font-size: 19.2px; }
.qw-plan-recommended { border: 2px solid var(--qw-orange); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.qw-badge { display: inline-block; margin-left: 5.6px; padding: 1.6px 8px; border-radius: 999px; background: var(--qw-orange); color: #222; font-size: 12px; vertical-align: middle; }
.qw-price { margin: 0; }
.qw-price strong { display: block; font-size: 28.8px; line-height: 1.2; color: var(--qw-ink); }
.qw-price span { display: block; color: var(--qw-muted); font-size: 13.6px; min-height: 2.4em; }
.qw-excl { font-size: 12.8px; color: var(--qw-muted); margin: 2.4px 0 0; }
.qw-plan dl { margin: 16px 0; flex: 1; }
.qw-row { padding: 6.4px 0; border-top: 1px solid var(--qw-border); font-size: 14.4px; }
.qw-row dt { font-weight: 400; color: var(--qw-muted); font-size: 12.8px; }
.qw-row dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.qw-plan .qw-button { width: 100%; padding-left: 8px; padding-right: 8px; }

/* Template gallery */
.qw-gallery-tools { display: grid; gap: 12px; margin-bottom: 16px; }
.qw-search input, .qw-form input, .qw-form textarea {
  width: 100%; padding: 11.2px 14.4px; border: 1px solid #bbb; border-radius: 8px; font: inherit; color: inherit; background: #fff;
}
.qw-kinds { display: flex; flex-wrap: wrap; gap: 6.4px; }
.qw-kind { border: 0; border-radius: 999px; padding: 5.6px 12.8px; background: var(--qw-sky); color: var(--qw-ink); font-weight: 600; cursor: pointer; font-size: 13.6px; }
.qw-kind[aria-pressed="true"] { background: var(--qw-ink); color: #fff; }
.qw-count { color: var(--qw-muted); }
.qw-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.qw-card { border: 1px solid var(--qw-border); border-radius: var(--qw-radius); overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.qw-card[hidden] { display: none; }
.qw-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-bottom: 1px solid var(--qw-border); }
.qw-card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.qw-card-body h3 { margin: 0; font-size: 17.6px; }
.qw-card-body p { margin: 5.6px 0; font-size: 14.4px; }
.qw-card-kind { color: var(--qw-muted); font-size: 12.8px !important; }
.qw-card-actions { margin-top: auto !important; display: flex; flex-wrap: wrap; gap: 6.4px; padding-top: 8px; }
.qw-card-actions .qw-button { padding: 7.2px 12.8px; font-size: 13.6px; flex: 1 1 auto; }
.qw-more { text-align: center; margin-top: 24px; }
.qw-dialog { border: 0; border-radius: var(--qw-radius); padding: 0; max-width: min(960px, 94vw); }
.qw-dialog::backdrop { background: rgba(0,0,0,.6); }
.qw-dialog form { position: absolute; top: 8px; right: 8px; margin: 0; }

/* SEO check and lead forms */
.qw-form { display: grid; gap: 12px; max-width: 640px; }
.qw-inline { display: flex; flex-wrap: wrap; gap: 8px; max-width: 640px; }
.qw-inline input { flex: 1 1 240px; width: auto; }
.qw-field label { display: block; font-weight: 600; margin-bottom: 4px; }
.qw-result { margin-top: 20px; padding: 20px; border-radius: var(--qw-radius); background: var(--qw-sky); max-width: 720px; }
.qw-score { margin: 0; }
.qw-score strong { font-size: 48px; color: var(--qw-ink); }
.qw-score span { color: var(--qw-muted); }
.qw-tips li { margin-bottom: 6.4px; }
.qw-chosen { margin: 0; }
.qw-lead h2 { margin-top: 0; }

/* Sector pages */
.qw-hero { display: grid; gap: 24px; align-items: center; grid-template-columns: minmax(0, 1fr); }
.qw-tagline { font-size: 19.2px; color: var(--qw-blue); font-weight: 600; }
.qw-browser { margin: 0; border-radius: var(--qw-radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.15); border-top: 18px solid #e5e5e5; }
.qw-check { padding-left: 19.2px; }
.qw-check li, .qw-steps li { margin-bottom: 8px; }
.qw-faq dt { font-weight: 700; margin-top: 16px; }
.qw-faq dd { margin: 4px 0 0; }
.qw-sector section { margin-top: 32px; }
.qw-sectors { columns: 2 220px; padding-left: 19.2px; }

/* On a phone the plans sit under each other, with label and value on one line. */
@media (max-width: 560px) {
  .qw-plans { grid-template-columns: minmax(0, 1fr); }
  .qw-row { display: flex; justify-content: space-between; gap: 12px; }
  .qw-row dd { text-align: right; }
  .qw-price span { min-height: 0; }
}

@media (min-width: 800px) {
  .qw-hero { grid-template-columns: 1fr 1fr; }
}

/* Designs give headings large margins; inside the cards they stay tight. */
.qw.qw-gallery .qw-card-body h3 { margin: 0; line-height: 1.3; }
.qw.qw-gallery .qw-card-body p:not(.qw-card-kind):not(.qw-card-actions) {
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.qw.qw-pricing .qw-plan h3 { margin-top: 0; }
.qw.qw-gallery .qw-card img { margin: 0; border-radius: 0; box-shadow: none; border-width: 0 0 1px; }
.qw.qw-sector .qw-browser img { margin: 0; border-radius: 0; }

/* Some designs style headings and buttons by id (#normal h3, #normal button); inside the blocks these win. */
.qw .qw-card-body h3, .qw .qw-plan h3 { margin-top: 0 !important; }
.qw button.qw-kind {
  border: 0 !important; border-radius: 999px !important; padding: 5.6px 12.8px !important; font-size: 13.6px !important;
  background: var(--qw-sky) !important; color: var(--qw-ink) !important; box-shadow: none !important; min-height: 0 !important; line-height: 1.3 !important;
}
.qw button.qw-kind[aria-pressed="true"] { background: var(--qw-ink) !important; color: #fff !important; }
