.customer-messaging{display:grid;gap:20px;min-width:0}.customer-messaging>header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.customer-messaging h2,.customer-messaging button{display:inline-flex;align-items:center;gap:8px}.customer-messaging h2{margin:0;font-size:24px}.customer-messaging h3{font-size:18px;margin:0 0 12px}.customer-messaging p{margin:6px 0;max-width:75ch}.customer-messaging-connection{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-block:16px;border-block:1px solid var(--line)}.customer-messaging form fieldset{display:grid;gap:16px;border:0;margin:0;padding:0;min-width:0}.customer-messaging legend{font-size:18px;font-weight:650;padding:0 0 12px}.customer-messaging-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.customer-messaging label{display:grid;gap:6px}.customer-messaging input,.customer-messaging select{max-width:100%;min-width:0}.customer-messaging-audience{display:flex;gap:20px;flex-wrap:wrap}.customer-messaging-audience label,.customer-messaging-selection li label{display:flex;align-items:center;gap:10px;min-height:44px}.customer-messaging input[type=radio],.customer-messaging input[type=checkbox]{width:20px;height:20px;flex-shrink:0}.customer-messaging-selection ul{list-style:none;margin:12px 0;padding:0;max-height:320px;overflow:auto}.customer-messaging-selection li{padding:5px 0;border-bottom:1px solid var(--line)}.customer-messaging small{display:block;font-weight:400;color:var(--muted);margin-top:4px}.customer-messaging-selection nav,.customer-messaging-review>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.customer-messaging-template,.customer-messaging-review{padding:16px;background:var(--subtle);border:1px solid var(--line);border-radius:12px}.customer-messaging blockquote{white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0;padding:16px;background:var(--surface);border-radius:8px;font-size:17px;line-height:1.5}.customer-messaging details{margin-block:12px}.customer-messaging-scroll{overflow:auto}.customer-messaging table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.customer-messaging th,.customer-messaging td{padding:12px;text-align:left;border-bottom:1px solid var(--line);vertical-align:middle}.customer-messaging th{background:var(--subtle);font-weight:600}.customer-messaging td{white-space:nowrap}.customer-messaging-history>p{color:var(--muted);font-size:14px}.customer-messaging ::selection{background:var(--selected);color:var(--ink)}.customer-messaging{scrollbar-color:var(--control-border) var(--subtle);caret-color:var(--ink)}@media(max-width:700px){.customer-messaging-fields{grid-template-columns:1fr}.customer-messaging-connection{align-items:flex-start;flex-direction:column}.customer-messaging>header h2{order:-1;width:100%}.customer-messaging-review>div{align-items:stretch;flex-direction:column}}.customer-audience{display:grid;gap:14px;border-block:1px solid var(--line);padding-block:20px;min-width:0}.customer-audience-groups{display:flex;gap:10px;flex-wrap:wrap}.customer-audience-groups button{display:flex;flex-direction:column;align-items:flex-start;gap:5px;flex:1;min-width:175px;padding:12px 16px;text-align:left}.customer-audience-groups button span{font-weight:400;font-size:14px}.customer-audience-scope{font-size:14px;color:var(--muted)}.customer-audience nav{display:flex;align-items:center;gap:14px}.customer-audience th small{overflow-wrap:anywhere}.customer-audience td{font-variant-numeric:tabular-nums}.customer-audience>p{font-size:14px}.customer-audience .customer-messaging-scroll{max-height:400px;overflow:auto}.customer-audience thead{position:sticky;top:0}.customer-audience input[type=checkbox]{min-height:20px}@media(max-width:600px){.customer-audience-groups{flex-direction:column}.customer-audience-groups button{width:100%;flex:auto}.customer-audience .customer-messaging-audience{flex-direction:column;gap:4px}.customer-audience th,.customer-audience td{padding:10px}.customer-audience table{min-width:480px}}.customer-audience>header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.customer-audience>header h3{margin:0}.customer-audience table{font-size:14px}.customer-audience th,.customer-audience td{font-size:14px;line-height:1.45}.customer-audience tbody th{background:transparent;font-weight:600}.customer-audience small{font-size:13px}.customer-audience-whatsapp{display:inline-flex;align-items:center;min-height:44px;color:var(--ink);font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:.2em;white-space:nowrap}.customer-audience-whatsapp:hover{text-decoration-thickness:2px}.customer-audience-whatsapp:focus-visible{outline:2px solid var(--focus);outline-offset:3px;border-radius:2px}

.customer-promotion-workspace {
 container-type: inline-size;
 gap: 16px;
}
.customer-promotion-layout {
 display: grid;
 grid-template-columns: minmax(0, 1fr);
 align-items: start;
 gap: 20px;
}
.customer-promotion-audience {
 gap: 12px;
 padding: 0;
 border: 0;
}
.customer-promotion-search {
 display: grid;
 grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
 gap: 12px;
}
.customer-promotion-search label,
.customer-promotion-filter-fields label {
 min-width: 0;
 font-size: 14px;
 font-weight: 600;
}
.customer-promotion-search :is(input, select),
.customer-promotion-filter-fields :is(input, select) {
 width: 100%;
 min-height: 44px;
 font-size: max(16px, 1em);
 font-weight: 400;
}
.customer-promotion-search-field {
 display: grid;
 grid-template-columns: minmax(0, 1fr);
 align-items: center;
}
.customer-promotion-search-field > * { grid-area: 1 / 1; }
.customer-promotion-search-field svg {
 z-index: 1;
 margin-inline-start: 12px;
 color: var(--muted);
 pointer-events: none;
}
.customer-promotion-search-field input { padding-inline-start: 38px; }
.customer-messaging .customer-promotion-filters {
 margin: 0;
 background: var(--surface);
 border: 1px solid var(--line);
 border-radius: 8px;
}
.customer-promotion-filters summary {
 display: grid;
 grid-template-columns: auto minmax(0, 1fr) auto;
 align-items: center;
 gap: 4px 8px;
 padding: 10px 12px;
 min-height: 44px;
 font-size: 14px;
 cursor: pointer;
 list-style: none;
}
.customer-promotion-filters summary::-webkit-details-marker { display: none; }
.customer-promotion-filters summary span {
 grid-column: 2;
 grid-row: 2;
 color: var(--muted);
 font-size: 13px;
 overflow-wrap: anywhere;
}
.customer-promotion-chevron {
 grid-column: 3;
 grid-row: 1;
}
.customer-promotion-filters[open] .customer-promotion-chevron { transform: rotate(180deg); }
.customer-promotion-filter-fields {
 display: grid;
 gap: 12px;
 border-top: 1px solid var(--line);
 padding: 12px;
}
.customer-promotion-composer {
 min-width: 0;
 padding: 16px;
 border: 1px solid var(--line);
 border-radius: 12px;
 background: var(--surface);
}
.customer-promotion-composer textarea {
 width: 100%;
 resize: vertical;
 font: inherit;
 font-size: max(16px, 1em);
 scroll-margin-block: 100px;
}
.customer-promotion-composer p {
 margin: 8px 0 0;
 color: var(--muted);
 font-size: 14px;
}
.customer-promotion-composer .customer-promotion-compose-link { margin-top: 12px; }
.customer-promotion-workspace :is(h2, .customer-promotion-compose-link) { scroll-margin-block: 100px; }
.customer-promotion-selection {
 display: grid;
 gap: 8px;
 padding: 4px 0 0;
}
.customer-promotion-selection p { margin: 0; font-size: 14px; }
.customer-promotion-selection p span { color: var(--muted); }
.customer-promotion-selection-actions {
 display: flex;
 flex-wrap: wrap;
 gap: 8px;
}
.customer-promotion-selection-actions button { min-height: 44px; font-size: 14px; }
.customer-promotion-selection button[aria-pressed="true"] { background: var(--selected); }
.customer-promotion-audience .customer-messaging-scroll {
 border: 1px solid var(--line);
 border-radius: 8px;
 background: var(--surface);
}
.customer-promotion-audience .customer-promotion-picked { background: var(--selected); }
.customer-promotion-audience td:first-child,
.customer-promotion-audience thead th:first-child { width: 62px; padding-inline: 8px; text-align: center; }
.customer-messaging .customer-promotion-pick {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-width: 44px;
 min-height: 44px;
}
.customer-promotion-chat {
 display: inline-flex;
 align-items: center;
 min-height: 44px;
 margin-top: 8px;
 padding: 0 12px;
 border-radius: 6px;
 background: var(--action);
 color: var(--on-action);
 font-weight: 600;
}
.customer-promotion-chat:hover { background: var(--action-hover); }
.customer-promotion-chat:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.customer-promotion-audience .customer-promotion-purchases { display: none; }
@container (min-width: 900px) {
 .customer-promotion-layout { grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr); }
 .customer-promotion-search { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
 .customer-promotion-layout .customer-promotion-compose-link { display: none; }
}
@container (max-width: 690px) {
 .customer-promotion-audience table { min-width: 0; table-layout: fixed; }
 .customer-promotion-audience thead th:nth-child(n+3),
 .customer-promotion-audience tbody td:nth-child(n+3) { display: none; }
 .customer-promotion-audience tbody th { overflow-wrap: anywhere; white-space: normal; }
 .customer-promotion-audience .customer-promotion-purchases { display: block; }
}
@container (max-width: 499px) {
 .customer-promotion-search { grid-template-columns: minmax(0, 1fr); }
 .customer-promotion-filter-fields .customer-messaging-fields { grid-template-columns: minmax(0, 1fr); }
}
