/* g01 gold and white on the Chatwoot shell. The signed-in app compiles its
   brand blue to #2781F6 / bg-n-brand, so those rules are overridden here. */
:root,
.dark {
  color-scheme: light;
  --blue-1: 255 253 248;
  --blue-2: 255 250 240;
  --blue-3: 251 246 235;
  --blue-4: 244 232 204;
  --blue-5: 232 210 164;
  --blue-8: 184 146 74;
  --blue-9: 122 94 36;
  --blue-10: 110 83 24;
  --blue-11: 90 68 20;
  --blue-12: 42 36 24;
  --text-blue: 74 56 16;
  --border-blue: 122, 94, 36, 0.45;
  --border-blue-strong: 122 94 36;
  --solid-blue: 244 232 204;
  --solid-blue-2: 255 252 246;
  --background-color: 247 245 240;
  --slate-1: 250 248 244;
  --slate-2: 247 244 237;
  --slate-3: 247 242 230;
  --slate-12: 42 36 24;
  --surface-1: 250 248 244;
  --surface-2: 247 244 237;
  --surface-active: 255 252 246;
  --card-color: 255 255 255;
  --solid-1: 250 248 244;
  --solid-2: 247 244 237;
  --solid-3: 247 244 237;
  --solid-active: 247 242 230;
  --border-weak: 231 215 177;
  --border-strong: 212 184 122;
  --border-container: 231 215 177;
  --button-color: 255 255 255;
  --label-background: 255 252 246;
}

html,
body,
#app,
.v3-app {
  background: #f7f5f0 !important;
  color: #2a2418;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #7a5e24;
  z-index: 10000;
  pointer-events: none;
}

.bg-n-brand,
.bg-woot-500,
.bg-woot-600,
.button.primary,
button.primary,
.bg-n-brand\/80,
.bg-n-brand\/90 {
  background-color: #7a5e24 !important;
  color: #ffffff !important;
}

/* Login and empty states use a 5% brand wash. Upstream brand is blue, so the wash stays blue unless this is white. */
.bg-n-brand\/5,
.bg-n-brand\/10,
.bg-n-brand\/20 {
  background-color: #ffffff !important;
}

.hover\:bg-n-brand:hover,
.hover\:bg-woot-500:hover,
.hover\:bg-woot-600:hover,
.button.primary:hover,
button.primary:hover {
  background-color: #5e4818 !important;
  color: #ffffff !important;
}

.text-n-brand,
.text-woot-500,
.text-n-blue-text,
.text-n-blue-11,
a.text-n-blue-text,
.text-link,
a.text-link {
  color: #7a5e24 !important;
}

input:focus,
textarea:focus,
select:focus {
  outline-color: #7a5e24 !important;
}

.g01-signup-card input {
  width: 100%;
  border: 1px solid #e7d7b1;
  border-radius: 6px;
  background: #fff;
  color: #2a2418;
  padding: 0.55rem 0.75rem;
}

.g01-signup-card button[type="submit"] {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #7a5e24;
  color: #fff;
  padding: 0.7rem 1rem;
  font-weight: 600;
}

.g01-signup-card button[type="submit"]:disabled {
  opacity: 0.6;
}

.g01-signup-link,
.g01-signup-back {
  background: none;
  border: 0;
  color: #7a5e24;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.g01-signup-error {
  color: #8a3b2a;
  font-size: 0.875rem;
}

body.g01-signup-open section.bg-white.shadow:not(#g01-signup-card) {
  display: none !important;
}

.border-n-brand,
.border-woot-500,
.border-n-weak,
.border-n-strong {
  border-color: #d4b87a !important;
}

.bg-n-background,
.bg-n-surface-1,
.bg-n-surface-2,
.bg-n-solid-1,
.bg-n-solid-2,
.bg-n-slate-1,
.bg-n-slate-2 {
  background-color: #ffffff !important;
}

img[src*="g01-logo"],
img[src*="g01-mark"] {
  max-height: 56px;
  width: auto;
  background: transparent;
}

body.g01-login-page,
body.g01-login-page #app,
body.g01-login-page .v3-app {
  background:
    radial-gradient(circle at 50% 9%, rgb(184 146 74 / 16%), transparent 34rem),
    linear-gradient(145deg, #fbfaf7 0%, #f5f2eb 52%, #eee8dc 100%) !important;
}

body.g01-login-page img[src*="g01-logo"] {
  width: min(34rem, 88vw) !important;
  height: auto !important;
  max-width: none !important;
  max-height: 17rem !important;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgb(90 68 20 / 12%));
}

body.g01-login-page section.bg-white.shadow,
body.g01-login-page .g01-signup-card {
  border: 1px solid rgb(184 146 74 / 24%);
  background: rgb(255 254 251 / 88%) !important;
  box-shadow: 0 24px 70px rgb(74 56 16 / 13%) !important;
  backdrop-filter: blur(12px);
}

.chat-bubble.outgoing .message-content,
.conversation-wrap .right .message-content,
.widget-header,
.header-brand {
  background-color: #7a5e24 !important;
  color: #ffffff !important;
}

.conversation-wrap,
.messages-wrap,
.reply-box,
.widget-wrap {
  background: #ffffff !important;
}

.g01-community-open {
  width: calc(100% - 1rem);
  margin: 0.5rem;
  border: 1px solid #d4b87a;
  border-radius: 8px;
  background: #fffaf0;
  color: #5a4414;
  padding: 0.6rem 0.75rem;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
}

.g01-community-open:hover {
  background: #f4e8cc;
}

.g01-community-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgb(42 36 24 / 45%);
}

.g01-community-panel {
  width: min(42rem, 100%);
  max-height: min(44rem, 90vh);
  overflow: auto;
  border: 1px solid #d4b87a;
  border-radius: 12px;
  background: #ffffff;
  color: #2a2418;
  box-shadow: 0 24px 70px rgb(42 36 24 / 25%);
  padding: 1.25rem;
}

.g01-community-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.g01-community-header h2 {
  margin: 0;
  color: #5a4414;
  font-size: 1.35rem;
}

.g01-community-close {
  border: 0;
  background: transparent;
  color: #7a5e24;
  font-weight: 600;
  cursor: pointer;
}

.g01-community-intro {
  margin: 0.65rem 0 1rem;
  color: #5c5346;
}

.g01-community-identity {
  margin: -0.5rem 0 1rem;
  color: #7a5e24;
  font-weight: 600;
}

.g01-community-dial {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.g01-community-username,
.g01-community-topic {
  width: 100%;
  min-width: 0;
  border: 1px solid #d4b87a;
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
}

.g01-community-dial .g01-community-primary {
  grid-column: auto;
  grid-row: auto;
}

.g01-community-existing-title {
  margin: 1rem 0 0.65rem;
  color: #5a4414;
  font-size: 1rem;
}

.g01-community-list {
  display: grid;
  gap: 0.75rem;
}

.g01-community-member {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem 0.75rem;
  border: 1px solid #e7d7b1;
  border-radius: 9px;
  padding: 0.8rem;
}

.g01-community-member h3,
.g01-community-member p {
  margin: 0;
}

.g01-community-locality {
  grid-column: 1;
  color: #6b6254;
  font-size: 0.85rem;
}

.g01-community-member .g01-community-topic {
  grid-column: 1 / -1;
  width: 100%;
  border: 1px solid #d4b87a;
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
}

.g01-community-primary {
  grid-column: 2;
  grid-row: 1 / span 2;
  border: 0;
  border-radius: 7px;
  background: #7a5e24;
  color: #ffffff !important;
  padding: 0.55rem 0.75rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.g01-community-member .g01-community-topic + .g01-community-primary {
  grid-column: 1 / -1;
  grid-row: auto;
}

.g01-community-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}

.g01-community-error {
  border-radius: 7px;
  background: #fff1ed;
  color: #8a3b2a;
  padding: 0.65rem 0.75rem;
}

.g01-community-empty {
  color: #6b6254;
}

@media (max-width: 640px) {
  .g01-community-dial {
    grid-template-columns: 1fr;
  }
}
