/* Cooriya White-Label — tenant front end. Brand colours ride on
   --cwl-primary / --cwl-accent, set inline per courier; each template
   supplies its own fallbacks. */

.cwl-wrap { max-width: 860px; margin: 0 auto; padding: 16px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #1d2327; }
.cwl-wrap h1, .cwl-wrap h2 { line-height: 1.15; margin: 0 0 12px; }
.cwl-wrap p { line-height: 1.5; }

/* Brand bar + nav (all templates). */
.cwl-brandbar { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 2px solid var(--cwl-primary, #0c3b2e); margin-bottom: 8px; }
.cwl-logo { max-height: 56px; width: auto; }
.cwl-brandname { font-size: 26px; font-weight: 800; color: var(--cwl-primary, #0c3b2e); }
.cwl-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 0 16px; }
.cwl-nav a { color: var(--cwl-primary, #0c3b2e); font-weight: 700; text-decoration: none; }
.cwl-nav a:hover { text-decoration: underline; }

/* Hero — template shells. */
.cwl-hero { border-radius: 16px; padding: 28px 24px; margin: 8px 0 20px; }
.cwl-hero h1 { font-size: 34px; overflow-wrap: break-word; word-break: break-word; }
.cwl-hero p { font-size: 17px; margin: 0 0 18px; }
.cwl-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cwl-steps { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; }
.cwl-steps > div { flex: 1 1 180px; border: 1px solid #dcdcde; border-radius: 12px; padding: 14px; background: #fff; }
.cwl-steps strong { display: block; font-size: 22px; color: var(--cwl-primary, #0c3b2e); }
.cwl-steps span { font-weight: 600; }

/* Template: Bold Green (Cooriya style). */
.cwl-tpl-bold .cwl-hero { background: var(--cwl-primary, #0c3b2e); color: #fff; }
.cwl-tpl-bold .cwl-hero h1 { color: #fff; font-weight: 900; text-transform: uppercase; letter-spacing: .01em; }
.cwl-tpl-bold .cwl-hero p { color: #e8f0ec; }
.cwl-tpl-bold .cwl-btn { background: var(--cwl-accent, #ffc93a); color: #0c3b2e; }
.cwl-tpl-bold .cwl-btn-ghost { background: transparent; color: #fff; border: 2px solid #fff; }

/* Template: Clean Light. */
.cwl-tpl-clean .cwl-hero { background: #f6f9f9; border: 1px solid #dfe8e8; color: #1d2327; }
.cwl-tpl-clean .cwl-hero h1 { color: var(--cwl-primary, #0e7c7b); font-weight: 800; }
.cwl-tpl-clean .cwl-btn { background: var(--cwl-primary, #0e7c7b); color: #fff; }
.cwl-tpl-clean .cwl-btn-ghost { background: #fff; color: var(--cwl-primary, #0e7c7b); border: 2px solid var(--cwl-primary, #0e7c7b); }

/* Template: Dark Premium. */
.cwl-tpl-premium .cwl-hero { background: var(--cwl-primary, #141414); color: #f5f0e1; }
.cwl-tpl-premium .cwl-hero h1 { color: var(--cwl-accent, #d4af37); font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: .02em; }
.cwl-tpl-premium .cwl-hero p { color: #d8d2c2; }
.cwl-tpl-premium .cwl-brandname { font-family: Georgia, "Times New Roman", serif; letter-spacing: .04em; }
.cwl-tpl-premium .cwl-btn { background: var(--cwl-accent, #d4af37); color: #141414; }
.cwl-tpl-premium .cwl-btn-ghost { background: transparent; color: #f5f0e1; border: 2px solid var(--cwl-accent, #d4af37); }

/* Buttons + forms (shared). */
.cwl-btn { display: inline-block; border: 0; border-radius: 999px; padding: 12px 22px; font-size: 16px; font-weight: 800; cursor: pointer; text-decoration: none; background: #ffc93a; color: #0c3b2e; white-space: normal; max-width: 100%; }
.cwl-hex { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; color: #50575e; margin-left: 8px; }
.cwl-btn-ghost { background: transparent; }
.cwl-form { background: #fff; border: 1px solid #dcdcde; border-radius: 16px; padding: 22px; margin: 0 0 20px; }
.cwl-form label { display: block; font-weight: 700; margin: 0 0 14px; }
.cwl-form input[type=text], .cwl-form input[type=email], .cwl-form input[type=tel], .cwl-form input[type=number], .cwl-form select { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 11px 12px; font-size: 16px; border: 1px solid #8c8f94; border-radius: 8px; }
.cwl-form input[type=color] { display: block; margin-top: 6px; width: 64px; height: 40px; padding: 2px; }
.cwl-form input[type=file] { display: block; margin-top: 6px; }
.cwl-form input[type=checkbox] { width: auto; display: inline-block; margin-right: 6px; }
.cwl-hint, .cwl-note { font-size: 14px; color: #50575e; }
.cwl-prefix-ok { color: #1a7f37; font-weight: 700; }
.cwl-prefix-bad { color: #b3261e; font-weight: 700; }
.cwl-prefix-checking { color: #666; }
.cwl-honeypot { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cwl-result { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #f0f6fc; border: 1px solid #c5d9ed; white-space: pre-wrap; word-break: break-word; }
.cwl-result.cwl-error { background: #fcf0f1; border-color: #d63638; color: #8c1d1f; }
.cwl-result.cwl-ok { background: #edf7ed; border-color: #7dbb7d; }
.cwl-colors { display: flex; gap: 24px; flex-wrap: wrap; }
.cwl-field { margin-bottom: 4px; }

/* Template picker. */
.cwl-templates { border: 0; padding: 0; margin: 8px 0 16px; }
.cwl-templates legend { font-weight: 800; margin-bottom: 10px; }
.cwl-template-card { display: block; border: 2px solid #dcdcde; border-radius: 14px; padding: 12px; margin-bottom: 12px; cursor: pointer; }
.cwl-template-card:has(input:checked) { border-color: var(--cwl-primary, #0c3b2e); box-shadow: 0 0 0 2px var(--cwl-primary, #0c3b2e); }
.cwl-template-card input { margin-right: 6px; }
.cwl-template-preview { display: block; border-radius: 10px; padding: 16px; margin: 8px 0; background: var(--cwl-primary, #0c3b2e); color: #fff; }
.cwl-tpl-clean .cwl-template-preview { background: #f6f9f9; color: #1d2327; border: 1px solid #dfe8e8; }
.cwl-tpl-premium .cwl-template-preview { background: #141414; color: #f5f0e1; }
.cwl-template-hero { display: block; font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.cwl-template-line { display: block; height: 8px; border-radius: 4px; background: currentColor; opacity: .35; margin-bottom: 6px; }
.cwl-template-line.short { width: 55%; }
.cwl-template-btn { display: inline-block; margin-top: 8px; padding: 7px 14px; border-radius: 999px; background: var(--cwl-accent, #ffc93a); color: #141414; font-size: 13px; font-weight: 800; }
.cwl-template-name { font-weight: 800; }
.cwl-template-desc { display: block; font-size: 14px; color: #50575e; }

/* Track timeline + quote breakdown. */
.cwl-timeline { list-style: none; margin: 12px 0 0; padding: 0; }
.cwl-timeline li { padding: 8px 0 8px 26px; position: relative; border-left: 3px solid #dcdcde; margin-left: 6px; }
.cwl-timeline li.done { border-left-color: var(--cwl-primary, #0c3b2e); }
.cwl-timeline li.done::before { content: ""; position: absolute; left: -8px; top: 12px; width: 13px; height: 13px; border-radius: 50%; background: var(--cwl-primary, #0c3b2e); }
.cwl-timeline li.pending::before { content: ""; position: absolute; left: -8px; top: 12px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 2px solid #8c8f94; }
.cwl-timeline .cwl-step-date { display: block; font-size: 13px; color: #50575e; }
.cwl-breakdown { width: 100%; border-collapse: collapse; margin-top: 10px; }
.cwl-breakdown td { padding: 7px 4px; border-bottom: 1px solid #eee; }
.cwl-breakdown td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
.cwl-breakdown tr.total td { font-size: 18px; border-bottom: 0; }
.cwl-breakdown tr.cwl-duty-line td { padding-left: 16px; font-size: 14px; color: #50575e; }
.cwl-breakdown tr.cwl-duty-line td:last-child { font-weight: 400; }
.cwl-keybox { display: flex; gap: 8px; margin: 10px 0; }
.cwl-keybox input { flex: 1; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; padding: 10px; border: 1px solid #8c8f94; border-radius: 8px; }
.cwl-address { background: #f6f7f7; border: 1px solid #dcdcde; border-radius: 10px; padding: 12px 14px; font-size: 16px; line-height: 1.6; }
.cwl-directory ul { line-height: 1.9; }

@media (max-width: 560px) {
  .cwl-hero h1 { font-size: 26px; }
  .cwl-brandname { font-size: 21px; }
}

.cwl-locations { margin-top: 24px; border-top: 2px solid #eee; padding-top: 12px; }
.cwl-locations h3 { margin: 0 0 8px; }
.cwl-locations ul { margin: 0; padding-left: 18px; }
.cwl-locations li { margin-bottom: 8px; }
.cwl-warehouse-row { border: 1px solid #ddd; padding: 10px; margin: 8px 0; }
.cwl-warehouse-row .cwl-field { margin-bottom: 6px; }
.cwl-radio { display: block; margin: 6px 0; }

/* Shipping supplies — upsell + shop (v1.1.4). */
.cwl-upsell { border-top: 2px solid var(--cwl-primary, #0c3b2e); margin-top: 22px; padding-top: 16px; }
.cwl-supplies-list { margin: 12px 0; }
.cwl-supply-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #dcdcde; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.cwl-supply-info { display: flex; flex-direction: column; gap: 2px; }
.cwl-supply-cat { font-size: 13px; color: #50575e; }
.cwl-supply-desc { font-size: 14px; color: #50575e; }
.cwl-supply-price { font-weight: 800; color: var(--cwl-primary, #0c3b2e); }
.cwl-supply-row label { font-weight: 700; white-space: nowrap; }
.cwl-supply-row input[type=number] { width: 72px; padding: 8px; font-size: 16px; border: 1px solid #8c8f94; border-radius: 8px; margin-left: 6px; }
.cwl-supplies-total { font-size: 17px; }
.cwl-packing { border: 1px solid #dcdcde; border-radius: 12px; padding: 14px; margin: 16px 0; background: #f6f7f7; }
.cwl-packing h3 { margin: 0 0 8px; }
.cwl-packing textarea, .cwl-packing input[type=text] { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 11px 12px; font-size: 16px; border: 1px solid #8c8f94; border-radius: 8px; }
.cwl-packing label { display: block; font-weight: 700; margin-bottom: 10px; }

/* Product thumbnails on supplies cards (v1.1.9). */
.cwl-supply-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
@media (max-width: 480px) { .cwl-supply-thumb { width: 56px; height: 56px; } }

/* Signup rates fieldset (v1.1.27): same unstyled treatment as .cwl-templates. */
.cwl-rates { border: 0; padding: 0; margin: 8px 0 16px; }
.cwl-rates legend { font-weight: 800; margin-bottom: 10px; }
