/* Cordiant Website Widget — layout-only styles.
 * Visual skin (buttons, typography, colors) comes from the host site's CSS.
 * Everything here uses the .cw- prefix to avoid collisions. */

/* --- Strip wrappers ----------------------------------------------------- */
.cw-strip-wrapper {
  position: relative;
  width: 100%;
  z-index: 50;
}
.cw-strip-wrapper--top {
  position: sticky;
  top: 0;
  z-index: 9100;
}

/* --- Generic strip layout ---------------------------------------------- */
.cw-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  background: var(--color-surface-warm, #FAF6F0);
  border-bottom: 1px solid var(--color-border-subtle, rgba(0,0,0,0.08));
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 14px;
  color: var(--color-text-primary, #1A1A1A);
}
.cw-strip--bottom {
  border-top: 1px solid var(--color-border-subtle, rgba(0,0,0,0.08));
  border-bottom: none;
}
.cw-strip__message {
  flex: 1;
  min-width: 0;
}
.cw-strip__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cw-strip__btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-primary, #4C0D16);
  border: 1px solid var(--color-primary, #4C0D16);
  background: transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.cw-strip__btn:hover {
  background: var(--color-primary, #4C0D16);
  color: var(--color-on-primary, #fff);
}
.cw-strip__btn--ghost {
  border-color: var(--color-border-subtle, rgba(0,0,0,0.2));
  color: var(--color-text-primary, #1A1A1A);
}

/* --- Sara-style bottom strip ------------------------------------------- */
.cw-strip--sara {
  align-items: flex-start;
  padding: 20px 24px;
  gap: 16px;
}
.cw-strip__avatar {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-surface-base, #fff);
}
.cw-strip__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cw-strip__body {
  flex: 1;
  min-width: 0;
}
.cw-strip__headline {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.cw-strip__copy {
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-text-secondary, #555);
}
.cw-strip__cta {
  flex: 0 0 auto;
}

/* --- Account chip (footer-account etc.) -------------------------------- */
.cw-account-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cw-account-chip__greeting {
  font-size: 13px;
  color: var(--color-text-secondary, #555);
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 768px) {
  .cw-strip {
    padding: 10px 16px;
    font-size: 13px;
  }
  .cw-strip--sara {
    flex-wrap: wrap;
    padding: 16px;
  }
  .cw-strip--sara .cw-strip__cta {
    width: 100%;
    text-align: center;
  }
  .cw-strip__actions {
    flex-wrap: wrap;
  }
}
