/* =========================================================
   Storecops — WHATSAPP CART RECOVERY
   Command Center page styles
   ========================================================= */

.cc-wa-page {
  --wa-purple: #6d3df5;
  --wa-purple-dark: #5424df;
  --wa-purple-soft: #f5f1ff;
  --wa-purple-border: #d9ccff;

  --wa-green: #16b85a;
  --wa-green-soft: #eafbf1;

  --wa-blue: #2868ef;
  --wa-blue-soft: #edf4ff;

  --wa-orange: #e99a08;
  --wa-orange-soft: #fff6df;

  --wa-red: #ee3e55;
  --wa-red-soft: #fff0f2;

  --wa-text: #101628;
  --wa-muted: #66738c;
  --wa-border: #dce3ef;
  --wa-background: #f7f9fd;
  --wa-card: #ffffff;

  width: 100%;
  min-height: 100%;
  padding: 22px;
  box-sizing: border-box;
  color: var(--wa-text);
  background: radial-gradient(
      circle at 72% 9%,
      rgba(109, 61, 245, 0.045),
      transparent 25%
    ),
    var(--wa-background);

  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cc-wa-page *,
.cc-wa-page *::before,
.cc-wa-page *::after {
  box-sizing: border-box;
}

.cc-wa-page button,
.cc-wa-page input,
.cc-wa-page select,
.cc-wa-page textarea {
  font: inherit;
}

/* =========================================================
     HEADER
     ========================================================= */

.cc-wa-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.cc-wa-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
}

.cc-wa-title-line h1 {
  margin: 0;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #111626;
}

.cc-wa-header > div:first-child > p {
  margin: 8px 0 0;
  color: var(--wa-muted);
  font-size: 14px;
}

.cc-wa-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 5px 10px;
  border: 1px solid #d8e3dc;
  border-radius: 9px;
  background: #fff;
  color: #66738c;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.cc-wa-status > span {
  position: relative;
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: #cfd6e2;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.cc-wa-status > span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 30, 50, 0.25);
  transition: transform 180ms ease;
}

.cc-wa-status.is-enabled {
  color: #15964b;
  border-color: #b9e7ca;
  background: #f6fff9;
}

.cc-wa-status.is-enabled > span {
  background: var(--wa-green);
}

.cc-wa-status.is-enabled > span::after {
  transform: translateX(12px);
}

.cc-wa-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cc-wa-button,
.cc-wa-outline-button,
.cc-wa-edit-button,
.cc-wa-preview-button,
.cc-wa-text-button,
.cc-wa-remove-button {
  border: 0;
  cursor: pointer;
}

.cc-wa-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 750;
  transition: transform 160ms ease, box-shadow 160ms ease,
    border-color 160ms ease;
}

.cc-wa-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.cc-wa-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.cc-wa-button-secondary {
  border: 1px solid var(--wa-border);
  background: #fff;
  color: #171c2d;
}

.cc-wa-button-secondary:hover {
  border-color: #bdc8d9;
  box-shadow: 0 6px 18px rgba(27, 39, 67, 0.07);
}

.cc-wa-button-primary {
  color: #fff;
  background: linear-gradient(135deg, #7b4bfa, #5d2ae8);
  box-shadow: 0 8px 20px rgba(95, 45, 230, 0.22);
}

.cc-wa-button-primary:hover {
  box-shadow: 0 11px 28px rgba(95, 45, 230, 0.3);
}

/* =========================================================
     COMMON CARD STYLES
     ========================================================= */

.cc-wa-card {
  min-width: 0;
  border: 1px solid var(--wa-border);
  border-radius: 12px;
  background: var(--wa-card);
  box-shadow: 0 1px 2px rgba(20, 35, 65, 0.02),
    0 8px 24px rgba(20, 35, 65, 0.025);
}

.cc-wa-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.cc-wa-section-heading > strong {
  color: #111626;
  font-size: 14px;
  line-height: 1.45;
}

.cc-wa-section-heading h2,
.cc-wa-card h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 780;
  letter-spacing: -0.015em;
}

.cc-wa-section-heading p,
.cc-wa-card > div > p,
.cc-wa-card > p {
  margin: 5px 0 0;
  color: var(--wa-muted);
  font-size: 11px;
  line-height: 1.5;
}

/* =========================================================
     TOP GRID
     ========================================================= */

.cc-wa-top-grid {
  display: grid;
  grid-template-columns:
    minmax(275px, 1.05fr)
    minmax(245px, 0.9fr)
    minmax(250px, 0.95fr);
  gap: 12px;
  margin-bottom: 13px;
}

.cc-wa-top-grid > .cc-wa-card {
  padding: 18px;
}

.cc-wa-duration-stack {
  display: grid;
  gap: 12px;
}

.cc-wa-duration-stack > .cc-wa-card {
  padding: 18px;
}

/* Recovery plans */

.cc-wa-plan-list {
  display: grid;
  gap: 0;
  margin-top: 15px;
  overflow: hidden;
  border: 1px solid #e5e9f1;
  border-radius: 10px;
}

.cc-wa-plan {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 79px;
  padding: 13px 13px;
  border: 0;
  border-bottom: 1px solid #e7ebf2;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.cc-wa-plan:last-child {
  border-bottom: 0;
}

.cc-wa-plan:hover {
  background: #fbfaff;
}

.cc-wa-plan.is-selected {
  z-index: 1;
  margin: -1px;
  width: calc(100% + 2px);
  border: 1px solid #a98cff;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    rgba(120, 72, 250, 0.07),
    rgba(120, 72, 250, 0.02)
  );
  box-shadow: inset 0 0 0 1px rgba(107, 59, 242, 0.04);
}

.cc-wa-radio {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1.5px solid #9aa8bd;
  border-radius: 50%;
  background: #fff;
}

.cc-wa-plan.is-selected .cc-wa-radio {
  border-color: var(--wa-purple);
}

.cc-wa-radio > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--wa-purple);
}

.cc-wa-plan-text {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.cc-wa-plan-text strong {
  color: #181d2d;
  font-size: 12px;
}

.cc-wa-plan.is-selected .cc-wa-plan-text strong {
  color: var(--wa-purple-dark);
}

.cc-wa-plan-text small {
  color: var(--wa-muted);
  font-size: 10px;
  line-height: 1.45;
}

.cc-wa-plan-count {
  align-self: flex-start;
  padding: 4px 7px;
  border-radius: 6px;
  background: #f3f4f8;
  color: #31394a;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

.cc-wa-plan.is-selected .cc-wa-plan-count {
  background: #eee8ff;
  color: var(--wa-purple-dark);
}

/* Duration */

.cc-wa-select {
  width: 100%;
  height: 52px;
  margin-top: 16px;
  padding: 0 42px 0 40px;
  border: 1px solid var(--wa-border);
  border-radius: 8px;
  outline: none;
  color: #171c2d;
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #fff, #fff) border-box;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.cc-wa-select:focus,
.cc-wa-inline-select:focus {
  border-color: #9d7ff7;
  box-shadow: 0 0 0 3px rgba(109, 61, 245, 0.1);
}

/* Insight */

.cc-wa-insight-card {
  min-height: 193px;
  border-color: var(--wa-purple-border);
  background: radial-gradient(
      circle at 100% 0,
      rgba(122, 72, 250, 0.12),
      transparent 48%
    ),
    linear-gradient(135deg, #fbf9ff, #f5f0ff);
}

.cc-wa-insight-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--wa-purple-dark);
  font-size: 14px;
}

.cc-wa-insight-card h3 span {
  font-size: 19px;
}

.cc-wa-insight-card p {
  max-width: 260px;
  margin-top: 20px;
  color: #22283a;
  font-size: 12px;
  line-height: 1.6;
}

.cc-wa-insight-card > small {
  display: block;
  margin-top: 20px;
  color: #22283a;
  font-size: 11px;
}

.cc-wa-insight-card > strong {
  display: block;
  margin-top: 6px;
  color: var(--wa-green);
  font-size: 24px;
  line-height: 1;
}

/* Offer library */

.cc-wa-offer-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.cc-wa-offer-header h2 {
  margin: 0;
}

.cc-wa-offer-header p {
  margin: 4px 0 0;
  color: var(--wa-muted);
  font-size: 11px;
}

.cc-wa-outline-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #cfc2fb;
  border-radius: 7px;
  background: #fff;
  color: var(--wa-purple-dark);
  font-size: 11px;
  font-weight: 720;
}

.cc-wa-outline-button:hover {
  background: var(--wa-purple-soft);
}

.cc-wa-offer-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.cc-wa-offer-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 67px;
  padding: 10px;
  border: 1px solid #e8ebf1;
  border-radius: 9px;
  background: #fff;
}

.cc-wa-offer-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--wa-red-soft);
  font-size: 18px;
}

.cc-wa-offer-item:nth-child(2) .cc-wa-offer-icon {
  background: var(--wa-blue-soft);
}

.cc-wa-offer-item:nth-child(3) .cc-wa-offer-icon {
  background: var(--wa-orange-soft);
}

.cc-wa-offer-copy {
  display: grid;
  gap: 4px;
}

.cc-wa-offer-copy strong {
  font-size: 11px;
}

.cc-wa-offer-copy small {
  color: var(--wa-muted);
  font-size: 10px;
}

.cc-wa-active-label {
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--wa-green-soft);
  color: #19984e;
  font-size: 9px;
  font-weight: 750;
}

.cc-wa-text-button {
  margin-top: 14px;
  padding: 0;
  color: var(--wa-purple-dark);
  background: transparent;
  font-size: 11px;
  font-weight: 750;
}

/* =========================================================
     MAIN GRID
     ========================================================= */

.cc-wa-main-grid {
  display: grid;
  grid-template-columns:
    minmax(205px, 0.72fr)
    minmax(420px, 1.42fr)
    minmax(235px, 0.83fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 13px;
}

.cc-wa-main-grid > .cc-wa-card {
  padding: 17px;
}

/* Timeline */

.cc-wa-timeline-panel {
  display: flex;
  flex-direction: column;
}

.cc-wa-timeline {
  flex: 1;
  margin-top: 18px;
}

.cc-wa-timeline-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  min-height: 96px;
}

.cc-wa-timeline-rail {
  position: relative;
  display: flex;
  justify-content: center;
}

.cc-wa-timeline-rail > span {
  position: absolute;
  top: 40px;
  bottom: -4px;
  left: 50%;
  width: 1px;
  background: #e3e6ef;
}

.cc-wa-timeline-row:last-child .cc-wa-timeline-rail > span {
  display: none;
}

.cc-wa-timeline-rail::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wa-purple);
}

.cc-wa-timeline-rail > div {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  color: var(--wa-green);
  background: var(--wa-green-soft);
  font-size: 15px;
}

.cc-wa-timeline-row:not(:first-child) .cc-wa-timeline-rail > div {
  color: var(--wa-blue);
  background: var(--wa-blue-soft);
}

.cc-wa-timeline-copy {
  padding-top: 5px;
}

.cc-wa-timeline-copy > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.cc-wa-timeline-copy strong {
  font-size: 11px;
}

.cc-wa-timeline-copy > small {
  display: block;
  margin-top: 7px;
  color: #31394c;
  font-size: 10px;
}

.cc-wa-day-count {
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--wa-green-soft);
  color: #19984e;
  font-size: 8px;
  font-weight: 750;
  white-space: nowrap;
}

.cc-wa-total-messages {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid var(--wa-purple-border);
  border-radius: 8px;
  background: #fcfaff;
}

.cc-wa-total-messages strong {
  font-size: 11px;
}

.cc-wa-total-messages span {
  color: var(--wa-purple);
  font-size: 22px;
  font-weight: 800;
}

/* Message sequence */

.cc-wa-sequence-panel {
  padding: 0 !important;
  overflow: hidden;
}

.cc-wa-sequence-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 70px;
  padding: 17px;
  border-bottom: 1px solid var(--wa-border);
}

.cc-wa-message-list {
  width: 100%;
}

.cc-wa-message-row {
  display: grid;
  grid-template-columns:
    16px
    22px
    20px
    minmax(130px, 1.4fr)
    minmax(105px, 0.9fr)
    auto
    auto;
  align-items: center;
  gap: 9px;
  min-height: 75px;
  padding: 9px 13px;
  border-bottom: 1px solid #e8ebf1;
  background: #fff;
  cursor: pointer;
  transition: background 140ms ease, box-shadow 140ms ease;
}

.cc-wa-message-row:last-child {
  border-bottom: 0;
}

.cc-wa-message-row:hover,
.cc-wa-message-row.is-selected {
  background: #fcfbff;
}

.cc-wa-message-row.is-selected {
  box-shadow: inset 3px 0 0 var(--wa-purple);
}

.cc-wa-drag-handle {
  color: #a8b3c6;
  font-size: 14px;
  cursor: grab;
}

.cc-wa-message-number {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--wa-purple);
  color: #fff;
  font-size: 9px;
  font-weight: 750;
}

.cc-wa-channel-dot {
  color: var(--wa-green);
  font-size: 18px;
  line-height: 1;
}

.cc-wa-message-copy,
.cc-wa-message-offer {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.cc-wa-message-copy > small,
.cc-wa-message-offer > small:first-child {
  color: var(--wa-muted);
  font-size: 9px;
}

.cc-wa-message-copy > strong {
  overflow: hidden;
  color: #1d2333;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cc-wa-message-offer > small:last-child {
  color: #515d72;
  font-size: 9px;
}

.cc-wa-offer-pill {
  justify-self: start;
  padding: 5px 8px;
  border-radius: 6px;
  color: #d52a51;
  background: #ffe8ef;
  font-size: 9px;
  font-weight: 760;
}

.cc-wa-message-row:nth-child(4) .cc-wa-offer-pill {
  color: #1f68d8;
  background: #e7f1ff;
}

.cc-wa-message-row:nth-child(5) .cc-wa-offer-pill {
  color: #ae6d00;
  background: #fff0cf;
}

.cc-wa-inline-select {
  width: 100%;
  min-height: 31px;
  padding: 4px 7px;
  border: 1px solid #cfd7e4;
  border-radius: 6px;
  outline: none;
  color: #232a3b;
  background: #fff;
  font-size: 9px;
}

.cc-wa-edit-button {
  min-width: 43px;
  height: 31px;
  padding: 0 9px;
  border: 1px solid #d4dce8;
  border-radius: 6px;
  background: #fff;
  color: #263044;
  font-size: 9px;
  font-weight: 700;
}

.cc-wa-edit-button:hover {
  border-color: #a993f0;
  color: var(--wa-purple-dark);
}

.cc-wa-remove-button {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 6px;
  color: var(--wa-red);
  background: var(--wa-red-soft);
  font-size: 16px;
}

/* Message preview */

.cc-wa-preview-panel {
  display: flex;
  flex-direction: column;
}

.cc-wa-phone {
  position: relative;
  flex: 1;
  min-height: 405px;
  margin-top: 17px;
  overflow: hidden;
  border: 6px solid #313846;
  border-bottom-width: 0;
  border-radius: 25px 25px 0 0;
  background: radial-gradient(
      circle at 20% 15%,
      rgba(255, 255, 255, 0.9),
      transparent 26%
    ),
    linear-gradient(145deg, #f2eee8, #fbf6ef);
}

.cc-wa-phone-header {
  display: grid;
  grid-template-columns: 18px 30px 1fr;
  align-items: center;
  gap: 6px;
  min-height: 55px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(20, 30, 50, 0.06);
}

.cc-wa-phone-header > span:first-child {
  color: #748094;
  font-size: 24px;
}

.cc-wa-preview-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: #b8c0cc;
  font-size: 11px;
  font-weight: 800;
}

.cc-wa-phone-header > div:last-child {
  display: grid;
}

.cc-wa-phone-header strong {
  font-size: 10px;
}

.cc-wa-phone-header small {
  margin-top: 2px;
  color: var(--wa-muted);
  font-size: 7px;
}

.cc-wa-chat {
  padding: 24px 11px;
}

.cc-wa-chat-bubble {
  padding: 12px 11px 8px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(30, 39, 61, 0.12);
}

.cc-wa-chat-bubble p {
  margin: 0 0 12px;
  color: #151a27;
  font-size: 10px;
  line-height: 1.55;
}

.cc-wa-chat-bubble p:last-of-type {
  margin-bottom: 5px;
}

.cc-wa-chat-bubble p span {
  color: #2675e7;
}

.cc-wa-chat-bubble > small {
  display: block;
  color: #8b95a7;
  font-size: 7px;
  text-align: right;
}

.cc-wa-preview-button {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--wa-border);
  border-radius: 8px;
  color: #172031;
  background: #fff;
  font-size: 11px;
  font-weight: 750;
}

.cc-wa-preview-button::first-letter {
  color: var(--wa-green);
}

/* =========================================================
     STOP CONDITIONS
     ========================================================= */

.cc-wa-stop-panel {
  margin-bottom: 13px;
  padding: 17px;
  border-color: #cfe9d9;
  background: linear-gradient(
      90deg,
      rgba(22, 184, 90, 0.035),
      rgba(22, 184, 90, 0.01)
    ),
    #fff;
}

.cc-wa-stop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 17px;
}

.cc-wa-stop-item {
  display: grid;
  grid-template-columns: 49px 1fr 17px;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 8px;
  border: 1px solid #e2e8ec;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.cc-wa-stop-item:hover {
  border-color: #b6dfc6;
}

.cc-wa-stop-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: var(--wa-green);
  background: var(--wa-green-soft);
  font-size: 22px;
}

.cc-wa-stop-item:nth-child(2) .cc-wa-stop-icon {
  color: var(--wa-blue);
  background: var(--wa-blue-soft);
}

.cc-wa-stop-item:nth-child(3) .cc-wa-stop-icon {
  color: var(--wa-orange);
  background: var(--wa-orange-soft);
}

.cc-wa-stop-item:nth-child(4) .cc-wa-stop-icon {
  color: var(--wa-red);
  background: var(--wa-red-soft);
}

.cc-wa-stop-item strong {
  color: #252c3c;
  font-size: 10px;
  line-height: 1.35;
}

.cc-wa-checkbox {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  color: #fff;
  background: var(--wa-green);
  font-size: 9px;
  font-weight: 800;
}

/* =========================================================
     HOW IT WORKS
     ========================================================= */

.cc-wa-how-panel {
  padding: 18px;
  border-color: var(--wa-purple-border);
  background: linear-gradient(
      90deg,
      rgba(109, 61, 245, 0.025),
      rgba(109, 61, 245, 0.008)
    ),
    #fff;
}

.cc-wa-how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 19px;
}

.cc-wa-how-step {
  position: relative;
  min-height: 120px;
  padding: 0 28px 0 0;
}

.cc-wa-how-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 30px;
  right: 9px;
  color: #8765ef;
  font-size: 24px;
  font-weight: 300;
}

.cc-wa-how-step > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cc-wa-how-step > div > span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  background: var(--wa-purple);
  font-size: 9px;
  font-weight: 800;
}

.cc-wa-how-step strong {
  font-size: 11px;
}

.cc-wa-how-step p {
  max-width: 190px;
  margin: 12px 0 0 28px;
  color: var(--wa-muted);
  font-size: 9px;
  line-height: 1.55;
}

/* =========================================================
     LOADING
     ========================================================= */

.cc-wa-loading {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: 420px;
  color: var(--wa-muted);
}

.cc-wa-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #e3e8f1;
  border-top-color: #6735ee;
  border-radius: 50%;
  animation: cc-wa-spin 700ms linear infinite;
}

@keyframes cc-wa-spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
     RESPONSIVE
     ========================================================= */

@media (max-width: 1350px) {
  .cc-wa-main-grid {
    grid-template-columns:
      minmax(190px, 0.65fr)
      minmax(385px, 1.35fr)
      minmax(215px, 0.75fr);
  }

  .cc-wa-message-row {
    grid-template-columns:
      13px
      20px
      18px
      minmax(110px, 1.3fr)
      minmax(90px, 0.8fr)
      auto
      auto;
    gap: 7px;
    padding-inline: 9px;
  }
}

@media (max-width: 1120px) {
  .cc-wa-top-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cc-wa-top-grid > .cc-wa-card:last-child {
    grid-column: 1 / -1;
  }

  .cc-wa-offer-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .cc-wa-main-grid {
    grid-template-columns: 260px 1fr;
  }

  .cc-wa-preview-panel {
    grid-column: 1 / -1;
  }

  .cc-wa-phone {
    min-height: 360px;
    max-width: 310px;
  }
}

@media (max-width: 850px) {
  .cc-wa-page {
    padding: 15px;
  }

  .cc-wa-header {
    flex-direction: column;
  }

  .cc-wa-header-actions {
    width: 100%;
  }

  .cc-wa-header-actions .cc-wa-button {
    flex: 1;
  }

  .cc-wa-top-grid,
  .cc-wa-main-grid {
    grid-template-columns: 1fr;
  }

  .cc-wa-top-grid > .cc-wa-card:last-child,
  .cc-wa-preview-panel {
    grid-column: auto;
  }

  .cc-wa-stop-grid,
  .cc-wa-how-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cc-wa-offer-list {
    grid-template-columns: 1fr;
  }

  .cc-wa-how-step:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 600px) {
  .cc-wa-title-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .cc-wa-header-actions {
    flex-direction: column;
  }

  .cc-wa-header-actions .cc-wa-button {
    width: 100%;
  }

  .cc-wa-plan {
    grid-template-columns: 20px 1fr;
  }

  .cc-wa-plan-count {
    grid-column: 2;
    justify-self: start;
  }

  .cc-wa-message-row {
    grid-template-columns: 14px 20px 18px 1fr auto;
  }

  .cc-wa-message-offer {
    grid-column: 4 / -1;
    padding-left: 0;
  }

  .cc-wa-remove-button {
    grid-column: 5;
  }

  .cc-wa-stop-grid,
  .cc-wa-how-grid {
    grid-template-columns: 1fr;
  }

  .cc-wa-how-step:not(:last-child)::after {
    display: none;
  }

  .cc-wa-phone {
    min-height: 390px;
  }
}

/* =========================================================
   WhatsApp Consent Setup + Storefront Preview
   ========================================================= */

.cc-wa-consent-setup {
  margin-bottom: 24px;
}

.cc-wa-consent-setup__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.cc-wa-consent-setup__header h2 {
  margin: 4px 0 6px;
  font-size: 20px;
  line-height: 1.25;
}

.cc-wa-consent-setup__header p {
  margin: 0;
  max-width: 640px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}

.cc-wa-consent-eyebrow {
  display: inline-block;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cc-wa-consent-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid #f59e0b;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.cc-wa-consent-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(340px, 1.15fr);
  gap: 22px;
  align-items: stretch;
}

.cc-wa-consent-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cc-wa-consent-location {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
}

.cc-wa-consent-location > div {
  min-width: 0;
}

.cc-wa-consent-location strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 14px;
}

.cc-wa-consent-location small {
  display: block;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.cc-wa-consent-location .cc-wa-button {
  flex: 0 0 auto;
}

.cc-wa-consent-help {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.cc-wa-consent-preview {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
}

.cc-wa-consent-preview__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cc-wa-consent-preview__top > span {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cc-wa-consent-preview__tabs {
  display: inline-flex;
  padding: 3px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #ffffff;
}

.cc-wa-consent-preview__tabs button {
  min-height: 28px;
  padding: 5px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.cc-wa-consent-preview__tabs button.is-active {
  background: #0f172a;
  color: #ffffff;
}

.cc-wa-consent-preview__tabs button:disabled {
  cursor: default;
  opacity: 0.45;
}

.cc-wa-storefront-mock {
  overflow: hidden;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.cc-wa-storefront-mock__product {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(190px, 1.1fr);
  min-height: 260px;
}

.cc-wa-storefront-mock__image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.cc-wa-storefront-mock__details {
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.cc-wa-storefront-mock__details > small {
  margin-bottom: 6px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.cc-wa-storefront-mock__details > strong {
  margin-bottom: 5px;
  color: #111827;
  font-size: 18px;
  line-height: 1.3;
}

.cc-wa-storefront-mock__details > span {
  margin-bottom: 16px;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
}

.cc-wa-storefront-mock__details > button {
  width: 100%;
  min-height: 38px;
  margin-bottom: 7px;
  border: 1px solid #111827;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}

.cc-wa-storefront-mock__details > button.is-secondary {
  background: #ffffff;
  color: #111827;
}

.cc-wa-storefront-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 5px;
  color: #334155;
  font-size: 11px;
  line-height: 1.4;
}

.cc-wa-storefront-consent input {
  width: 14px;
  height: 14px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  pointer-events: none;
}

.cc-wa-consent-preview__note {
  display: block;
  margin-top: 9px;
  color: #94a3b8;
  font-size: 10px;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .cc-wa-consent-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cc-wa-consent-setup__header {
    flex-direction: column;
  }

  .cc-wa-consent-location {
    align-items: flex-start;
    flex-direction: column;
  }

  .cc-wa-consent-location .cc-wa-button {
    width: 100%;
  }

  .cc-wa-storefront-mock__product {
    grid-template-columns: 1fr;
  }

  .cc-wa-storefront-mock__image {
    min-height: 150px;
  }
}
.cc-wa-consent-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
