:root {
  --primary: rgba(185, 28, 28, 0.236);
  --secondary: #417690;
  --accent: #f5dd5d;
  --primary-fg: #fff;
  --body-fg: #333;
  --body-bg: #fff;
  --body-quiet-color: #666;
  --body-loud-color: #000;
  --header-color: #ffc;
  --header-branding-color: var(--accent);
  --header-bg: var(--secondary);
  --header-link-color: var(--primary-fg);
  --breadcrumbs-fg: #c4dce8;
  --breadcrumbs-link-fg: var(--body-bg);
  --breadcrumbs-bg: #264b5d;
  --link-fg: #417893;
  --link-hover-color: #036;
  --link-selected-fg: var(--secondary);
  --hairline-color: #e8e8e8;
  --border-color: #ccc;
  --error-fg: #ba2121;
  --message-success-bg: #dfd;
  --message-warning-bg: #ffc;
  --message-error-bg: #ffefef;
  --darkened-bg: #f8f8f8;
  --selected-bg: #e4e4e4;
  --selected-row: #ffc;
  --button-fg: #fff;
  --button-bg: var(--secondary);
  --button-hover-bg: #205067;
  --default-button-bg: #205067;
  --default-button-hover-bg: var(--secondary);
  --close-button-bg: #747474;
  --close-button-hover-bg: #333;
  --delete-button-bg: #ba2121;
  --delete-button-hover-bg: #a41515;
  --object-tools-fg: var(--button-fg);
  --object-tools-bg: var(--close-button-bg);
  --object-tools-hover-bg: var(--close-button-hover-bg);
}

.logo {
  width: 100px;
}

/* Trix Editor Styling */
.trix-content {
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  background-color: #fff;
  min-height: 15em;
  font-family: inherit;
}

.trix-content:focus {
  outline: none;
  border-color: #bb2111;
  box-shadow: 0 0 0 1px #bb2111;
}

/* Style the toolbar */
trix-toolbar .trix-button-group {
  border-color: #d1d5db;
  border-radius: 0.375rem;
}

trix-toolbar .trix-button {
  border: none;
  background-color: transparent;
  color: #4b5563;
  padding: 0.375rem;
}

trix-toolbar .trix-button:hover {
  background-color: #f3f4f6;
  color: #bb2111;
}

trix-toolbar .trix-button.trix-active {
  background-color: #bb2111;
  color: white;
}

/* Style lists inside the editor to match wine theme */
.trix-content ul {
  padding-left: 20px !important;
  list-style-type: disc;
}

.trix-content ol {
  margin-left: 25px !important;
  list-style: decimal;
}

.prose-lg :where(h2):not(:where([class~="not-prose"], [class~="not-prose"] *)),
.trix-content h2 {
  font-size: 1.3333333em;
  margin-top: 0.667em;
  margin-bottom: .6666667em;
  line-height: 1.5;
}

.trix-content div {
  margin-top: 1.3333333em;
  margin-bottom: 1.3333333em;
}

.trix-content li {
  padding-inline-start: .4444444em;
  margin-top: .6666667em;
  margin-bottom: .6666667em;
}

.trix-content ul {
  margin-top: 1.3333333em;
  margin-bottom: 1.3333333em;
  padding-inline-start: 1.5555556em;
}


/* First tag will have margin top 0 and last tag will have margin bottom 0 */
.trix-content *:first-child {
  margin-top: 0;
}

.trix-content *:last-child {
  margin-bottom: 0;
}

/* Make sure the editor connects to toolbar */
trix-editor {
  border-radius: 0 0 0.375rem 0.375rem;
}

/* Hide the Trix editor's file attachment button */
trix-toolbar .trix-button-group--file-tools {
  display: none !important;
}



/* Django messages */
.error {
  border-color: #f56565;
}

.warning {
  border-color: #ed8936;
}

.success {
  border-color: #48bb78;
}

.info {
  border-color: #4299e1;
}



.company-dropdown {
  position: absolute;
  background-color: white;
  border: 1px solid #ddd;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
}

.company-dropdown li {
  padding: 10px;
  cursor: pointer;
}

.company-dropdown li:hover {
  background-color: #f0f0f0;
}

/* Newsletter email confirmation */
.newsletter-confirmation-inline {
  max-width: 38rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  color: #352d27;
  text-align: center;
}

.newsletter-confirmation-inline__icon,
.newsletter-confirmation-modal__icon {
  width: 3rem;
  height: 3rem;
  padding: 0.7rem;
  border-radius: 9999px;
  background: #425239;
  color: #fff8ed;
}

.newsletter-confirmation-inline__icon {
  margin: 0 auto;
}

.newsletter-confirmation-inline h3,
.newsletter-confirmation-modal h2 {
  margin: 1rem 0 0.65rem;
  color: #332b25;
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.newsletter-confirmation-inline p,
.newsletter-confirmation-modal p {
  margin: 0;
  color: #57514b;
  line-height: 1.55;
}

.newsletter-confirmation-modal__email {
  display: block;
  margin: 0.85rem 0;
  overflow-wrap: anywhere;
  color: #332b25;
}

.newsletter-confirmation-modal__help {
  font-size: 0.875rem;
}

#newsletter-banner-content .newsletter-confirmation-inline {
  padding: 0;
}

#newsletter-banner-content .newsletter-confirmation-inline__icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.6rem;
}

#newsletter-banner-content .newsletter-confirmation-inline h3 {
  font-size: 1.35rem;
}

.newsletter-confirmation-modal {
  width: min(30rem, calc(100% - 2rem));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 1.5rem 4rem rgba(33, 24, 20, 0.25);
}

.newsletter-confirmation-modal::backdrop {
  background: rgba(25, 20, 18, 0.58);
}

.newsletter-confirmation-modal__content {
  position: relative;
  padding: 2rem;
}

.newsletter-confirmation-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: #6b625b;
  cursor: pointer;
}

.newsletter-confirmation-modal__close:hover {
  background: #f4f1ed;
  color: #332b25;
}

.newsletter-confirmation-modal__close:focus-visible {
  outline: 2px solid #bb2111;
  outline-offset: 2px;
}

.newsletter-confirmation-modal__close svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (max-width: 480px) {
  .newsletter-confirmation-modal__content {
    padding: 1.5rem;
  }
}
