/* Pyrneo-aligned public brand palette: black/white base with green, red, and blue logo accents. */
:root {
  --wccrm-pyrneo-black: #050505;
  --wccrm-pyrneo-ink: #10131a;
  --wccrm-pyrneo-blue: #263cff;
  --wccrm-pyrneo-green: #65df45;
  --wccrm-pyrneo-red: #f01424;
  --wccrm-primary: var(--wccrm-pyrneo-black);
  --wccrm-secondary: var(--wccrm-pyrneo-blue);
  --wccrm-accent: var(--wccrm-pyrneo-green);
  --wccrm-danger: var(--wccrm-pyrneo-red);
  --wccrm-bg: #f7f8fb;
  --wccrm-card: #ffffff;
  --wccrm-border: #e4e8f0;
  --wccrm-text: #111827;
  --wccrm-muted: #667085;
  --wccrm-shadow: 0 20px 60px rgba(5, 5, 5, .18);
}
.wccrm-contact-form,
.wccrm-chat-window {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--wccrm-text);
}
.wccrm-contact-form {
  position: relative;
  max-width: 1120px;
  margin: 28px auto;
  padding: 34px;
  background: linear-gradient(145deg, #050505 0%, #0b0f17 58%, #10131a 100%) padding-box,
    linear-gradient(135deg, var(--wccrm-pyrneo-green), var(--wccrm-pyrneo-blue) 54%, var(--wccrm-pyrneo-red)) border-box;
  border: 1px solid transparent;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(5, 5, 5, .28);
  overflow: hidden;
}
.wccrm-contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 34px;
  right: 34px;
  height: 5px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--wccrm-pyrneo-green), var(--wccrm-pyrneo-red), var(--wccrm-pyrneo-blue));
}
.wccrm-form-header h3 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.05;
  color: #ffffff;
  letter-spacing: -0.035em;
}
.wccrm-form-header p {
  color: rgba(255,255,255,.78);
  margin: 0 0 24px;
  max-width: 760px;
  font-size: 16px;
  line-height: 1.6;
}
.wccrm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.wccrm-contact-form label,
.wccrm-panel label {
  display: block;
  font-weight: 800;
  margin-bottom: 14px;
}
.wccrm-contact-form label {
  color: rgba(255,255,255,.92);
}
.wccrm-contact-form input,
.wccrm-contact-form select,
.wccrm-contact-form textarea,
.wccrm-chat-form input,
.wccrm-chat-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--wccrm-border);
  border-radius: 16px;
  padding: 14px 15px;
  margin-top: 7px;
  background: #ffffff;
  color: var(--wccrm-text);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.wccrm-contact-form input:focus,
.wccrm-contact-form select:focus,
.wccrm-contact-form textarea:focus,
.wccrm-chat-form input:focus,
.wccrm-chat-form textarea:focus {
  border-color: var(--wccrm-pyrneo-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(38, 60, 255, .12);
}
.wccrm-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500 !important;
  color: rgba(255,255,255,.76);
}
.wccrm-consent input {
  width: auto !important;
  margin-top: 4px !important;
}
.wccrm-button,
.wccrm-chat-toggle {
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--wccrm-pyrneo-black), #151923 58%, var(--wccrm-pyrneo-blue));
  color: #fff;
  font-weight: 900;
  padding: 14px 22px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(5, 5, 5, .22);
  transition: transform .2s, box-shadow .2s, opacity .2s, filter .2s;
}
.wccrm-button:hover,
.wccrm-chat-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(5, 5, 5, .28);
  filter: saturate(1.05);
}
.wccrm-button[disabled] {
  opacity: .6;
  cursor: wait;
}
.wccrm-form-response {
  margin-top: 14px;
  font-weight: 700;
}
.wccrm-form-response.success { color: var(--wccrm-pyrneo-green); }
.wccrm-form-response.error { color: #ff6b75; }
.wccrm-hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; }

.wccrm-chatbot-floating .wccrm-chat-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  width: 64px;
  height: 64px;
  padding: 0;
  font-size: 20px;
}
.wccrm-chat-window {
  position: fixed;
  right: 24px;
  bottom: 100px;
  width: min(420px, calc(100vw - 32px));
  height: min(680px, calc(100vh - 132px));
  display: none;
  flex-direction: column;
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--wccrm-border);
  box-shadow: var(--wccrm-shadow);
  overflow: hidden;
  z-index: 99999;
}
.wccrm-chatbot.open .wccrm-chat-window { display: flex; }
.wccrm-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--wccrm-primary), var(--wccrm-secondary));
  color: #fff;
}
.wccrm-chat-header span { display: block; font-size: 12px; opacity: .85; margin-top: 2px; }
.wccrm-chat-close {
  border: none;
  background: rgba(255,255,255,.15);
  color: #fff;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 22px;
  cursor: pointer;
}
.wccrm-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  background: var(--wccrm-bg);
}
.wccrm-chat-message {
  max-width: 88%;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 16px;
  white-space: pre-wrap;
  line-height: 1.45;
}
.wccrm-chat-message.bot {
  background: #fff;
  border: 1px solid var(--wccrm-border);
  color: var(--wccrm-text);
  border-bottom-left-radius: 4px;
}
.wccrm-chat-message.user {
  margin-left: auto;
  background: var(--wccrm-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.wccrm-chat-message.typing {
  color: var(--wccrm-muted);
  font-style: italic;
}
.wccrm-chat-form {
  padding: 14px;
  border-top: 1px solid var(--wccrm-border);
  background: #fff;
}
.wccrm-chat-capture {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.wccrm-chat-capture input {
  padding: 10px 12px;
  margin-top: 0;
  border-radius: 12px;
}
.wccrm-chat-input-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.wccrm-chat-input-row textarea {
  resize: none;
  min-height: 47px;
  margin-top: 0;
}
.wccrm-chat-input-row .wccrm-button {
  padding: 13px 18px;
  flex: 0 0 auto;
}
@media (max-width: 700px) {
  .wccrm-grid,
  .wccrm-chat-capture { grid-template-columns: 1fr; }
  .wccrm-contact-form { padding: 24px 18px; border-radius: 22px; }
  .wccrm-contact-form::before { left: 18px; right: 18px; }
  .wccrm-chat-window { right: 12px; bottom: 86px; width: calc(100vw - 24px); height: calc(100vh - 108px); }
  .wccrm-chatbot-floating .wccrm-chat-toggle { right: 16px; bottom: 16px; }
}

/* Full-width frontend CRM dashboard shortcode */
.wccrm-front-dashboard {
  width: min(100vw, 100%);
  max-width: none;
  margin: 28px auto;
  padding: 28px;
  border-radius: 28px;
  background: #f5f7fb;
  border: 1px solid var(--wccrm-border);
  box-sizing: border-box;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--wccrm-text);
}
.wccrm-front-hero {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:22px;
  padding:28px;
  border-radius:24px;
  background:linear-gradient(135deg,#050505,#10131a 54%,var(--wccrm-pyrneo-blue));
  color:#fff;
  box-shadow: var(--wccrm-shadow);
}
.wccrm-front-hero h2 { margin:0 0 8px; color:#fff; font-size: clamp(28px,4vw,46px); line-height:1; }
.wccrm-front-hero p { margin:0; color:rgba(255,255,255,.84); }
.wccrm-front-hero a { color:#0f172a; background:#fff; border-radius:999px; padding:12px 18px; text-decoration:none; font-weight:900; white-space:nowrap; }
.wccrm-front-grid { display:grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap:16px; margin:20px 0; }
.wccrm-front-grid div, .wccrm-front-panel { background:#fff; border:1px solid var(--wccrm-border); border-radius:22px; padding:20px; box-shadow:0 18px 44px rgba(15,23,42,.07); }
.wccrm-front-grid span { display:block; color:var(--wccrm-muted); font-weight:800; margin-bottom:10px; }
.wccrm-front-grid strong { display:block; color:var(--wccrm-text); font-size:28px; line-height:1; }
.wccrm-front-panel table { width:100%; border-collapse:collapse; }
.wccrm-front-panel th, .wccrm-front-panel td { text-align:left; border-bottom:1px solid var(--wccrm-border); padding:12px; vertical-align:top; }
.wccrm-front-panel th { color:#334155; font-weight:900; }
@media(max-width:1100px){ .wccrm-front-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } .wccrm-front-hero{ display:block; } .wccrm-front-hero a{ display:inline-block; margin-top:18px; } }
@media(max-width:640px){ .wccrm-front-grid{ grid-template-columns:1fr; } .wccrm-front-dashboard{ padding:16px; } }
