/* Public styles for Biz X App */

.bizx-company-fields-form .acf-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bizx-company-fields-form .acf-field {
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: none !important;
  padding: 8px 0;
  margin: 0;
}

.bizx-company-fields-form .acf-field:before,
.bizx-company-fields-form .acf-field:after {
  display: none !important;
}

.bizx-company-fields-form .acf-label {
  flex: 0 0 160px;
  margin: 0;
  display: flex;
  align-items: center;
}

.bizx-company-fields-form .acf-label label {
  font-weight: 600;
}

.bizx-company-fields-form .acf-input {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  margin: 0;
}

.bizx-company-fields-form .acf-field textarea,
.bizx-company-fields-form .acf-field input[type="text"],
.bizx-company-fields-form .acf-field input[type="url"],
.bizx-company-fields-form .acf-field input[type="number"] {
  width: 100%;
  max-width: 100%;
}

.bizx-company-fields-form .acf-form-submit {
  margin-top: 10px;
}

.bizx-company-fields-form .acf-form-submit input[type='submit'] {
  color: #205375;
  font-weight: 600;
  font-size: 18px;
  padding: 10px 20px;
  border: none;
  background-color: #EDECED;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.bizx-company-fields-form .acf-form-submit input[type='submit']:hover {
  background-color: #205375;
  color: #ffffff;
}

.bizx-company-fields-form .acf-notice {
  margin-bottom: 16px;
}

#shrinker {
  position: relative;
  transition: padding 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  background-color: #ffffff;
  padding: 5px 0;
  margin: 0;
  box-shadow: none;
}

#shrinker::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 5px;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
  pointer-events: none;
}

body.bx-header-shrunk #shrinker,
#shrinker.bx-header-shrunk,
#shrinker.elementor-sticky--effects.bx-header-shrunk {
  padding: 5px 0 !important;
  background-color: #ffffff;
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
}

body.bx-header-shrunk #shrinker,
#shrinker.bx-header-shrunk {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
}

#shrinker .elementor-element-0791fab {
  margin-bottom: 5px;
}

body.bx-header-shrunk #shrinker::after,
#shrinker.bx-header-shrunk::after {
  height: 0;
  bottom: 0;
  background-color: transparent;
}

#shrinker .elementor-widget-theme-site-logo img {
  transform-origin: left center;
  transform: scale(1);
  transition: transform 0.3s ease, max-height 0.3s ease;
  height: auto;
}

body.bx-header-shrunk #shrinker .elementor-widget-theme-site-logo img,
#shrinker.bx-header-shrunk .elementor-widget-theme-site-logo img {
  transform: scale(0.75);
}

#shrinker .elementor-element-fa929d8,
#shrinker .elementor-element-0791fab {
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

body.bx-header-shrunk #shrinker .elementor-element-0791fab,
#shrinker.bx-header-shrunk .elementor-element-0791fab {
  opacity: 0;
  max-height: 0;
  pointer-events: none;
}

#shrinker .elementor-element-fa929d8,
#shrinker .elementor-element-f562615 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  transition: transform 0.3s ease;
}

body.bx-header-shrunk #shrinker .elementor-element-fa929d8,
#shrinker.bx-header-shrunk .elementor-element-fa929d8 {
  opacity: 1;
  max-height: none;
  pointer-events: auto;
  transform: translateY(10px);
}

/* Company identity (logo or title) */
.bizx-company-identity {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  max-width: 100%;
  min-height: 1em;
  height: 100%;
}

.bizx-company-identity.has-logo {
  width: 150px;
  max-width: 150px;
}

.bizx-company-identity.has-logo .bizx-company-logo {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  display: block;
}

.bizx-company-identity.has-logo,
.bizx-company-identity.no-logo {
  align-items: center;
}

.company-identity-col {
  display: flex !important;
  align-items: center !important;
}

.company-identity-col .elementor-widget-container,
.company-identity-col .elementor-shortcode {
  display: flex;
  align-items: center;
}

/* Elementor message loops: enforce consistent typography across sent items */
/* Note: font-family is not specified here to respect Elementor's default kit settings */
.elementor.elementor-1547.e-loop-item,
.elementor.elementor-1547.e-loop-item *,
.elementor.elementor-1547 .elementor-element.elementor-element-c0bcaa7,
.elementor.elementor-1547 .elementor-element.elementor-element-c0bcaa7 *,
.elementor.elementor-1547 .elementor-element.elementor-element-cb4bb07,
.elementor.elementor-1547 .elementor-element.elementor-element-cb4bb07 * {
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 18px !important;
  letter-spacing: 0;
}

.elementor.elementor-1547 .elementor-heading-title.elementor-size-default,
.elementor.elementor-1547 .elementor-heading-title.elementor-size-default a {
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 18px !important;
  letter-spacing: 0;
}

.bizx-company-badges {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.bizx-company-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  width: 115px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: #ffffff;
  border-radius: 0 5px 5px 0;
  text-transform: uppercase;
}

.bizx-company-badge--featured {
  background-color: #ffba00;
}

.bizx-company-badge--popular {
  background-color: #21a3fd;
}

.bizx-company-badge--new {
  background-color: #e93d76;
}

.bizx-company-identity.no-logo {
  width: auto;
  max-width: none;
  white-space: nowrap;
  /* font-family is not specified to respect Elementor's default kit settings */
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
}

.bizx-company-identity.no-logo .bizx-company-title-fallback {
  display: inline-block;
}

.bizx-company-term-list,
.bizx-company-term-list li,
.bizx-company-term-inline {
  font-size: 14px;
}

.bizx-company-term-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bizx-company-term-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 6px 12px;
  background-color: #1F5375;
  color: #ffffff;
  border: 1px solid #1F5375;
  border-radius: 4px;
  line-height: 1.3;
  font-weight: 600;
}

.bizx-company-term-tag a {
  color: inherit;
}

/* Company views shortcode list */
.bizx-company-views-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bizx-company-views-list .bizx-company-views-item {
  margin: 0;
  padding: 0;
}

.bizx-company-views {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.bizx-company-views-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid #d9dde1;
  background: #fff;
}

.bizx-company-views-col-company {
  width: 20%;
}

.bizx-company-views-col-month {
  width: 10%;
}

.bizx-company-views-col-total {
  width: 20%;
}

.bizx-company-views-col-gap {
  width: 20%;
}

.bizx-company-views-table th,
.bizx-company-views-table td {
  border: 1px solid #d9dde1;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  vertical-align: middle;
  background-color: #fff;
}

.bizx-company-views-table th.bizx-company-views-header-company,
.bizx-company-views-table th.bizx-company-views-company {
  text-align: left;
  font-weight: 600;
}

.bizx-company-views-table thead th {
  background: #f4f6f8;
  font-weight: 600;
}

.bizx-company-views-row--summary th,
.bizx-company-views-row--summary td {
  font-weight: 600;
  background-color: #f8fafb;
}

.bizx-company-views-table--chunk-2 .bizx-company-views-header-total,
.bizx-company-views-table--chunk-2 .bizx-company-views-total {
  background-color: #eef6ff;
  font-weight: 700;
}

.bizx-company-views-header-gap,
.bizx-company-views-gap {
  background: #ffffff;
}

.bizx-company-views-table--chunk-1 .bizx-company-views-header-gap,
.bizx-company-views-table--chunk-1 .bizx-company-views-gap {
  border-color: transparent;
  background: transparent;
}

/* Message card excerpt clamp */
.elementor-element[data-id="8910dff"] .elementor-widget-container p,
.elementor-element[data-id="8910dff"] .elementor-widget-heading .elementor-heading-title,
.elementor-element[data-id="8910dff"] .elementor-widget-heading p,
.elementor-element[data-id="8910dff"] .elementor-text-editor,
.elementor-element[data-id="8910dff"] .elementor-post__excerpt,
.elementor-element[data-id="8910dff"] .elementor-post__text,
.elementor-element[data-id="8910dff"] .bizx-excerpt-text,
.elementor-element[data-id="6ab8cdf"] .elementor-widget-container p,
.elementor-element[data-id="6ab8cdf"] .elementor-widget-heading .elementor-heading-title,
.elementor-element[data-id="6ab8cdf"] .elementor-widget-heading p,
.elementor-element[data-id="6ab8cdf"] .elementor-text-editor,
.elementor-element[data-id="6ab8cdf"] .elementor-post__excerpt,
.elementor-element[data-id="6ab8cdf"] .elementor-post__text,
.elementor-element[data-id="6ab8cdf"] .bizx-excerpt-text {
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.elementor-element[data-id="8910dff"] .elementor-widget-container p *,
.elementor-element[data-id="8910dff"] .elementor-widget-heading .elementor-heading-title *,
.elementor-element[data-id="8910dff"] .elementor-widget-heading p *,
.elementor-element[data-id="8910dff"] .elementor-text-editor *,
.elementor-element[data-id="8910dff"] .elementor-post__excerpt *,
.elementor-element[data-id="8910dff"] .elementor-post__text *,
.elementor-element[data-id="8910dff"] .bizx-excerpt-text *,
.elementor-element[data-id="6ab8cdf"] .elementor-widget-container p *,
.elementor-element[data-id="6ab8cdf"] .elementor-widget-heading .elementor-heading-title *,
.elementor-element[data-id="6ab8cdf"] .elementor-widget-heading p *,
.elementor-element[data-id="6ab8cdf"] .elementor-text-editor *,
.elementor-element[data-id="6ab8cdf"] .elementor-post__excerpt *,
.elementor-element[data-id="6ab8cdf"] .elementor-post__text *,
.elementor-element[data-id="6ab8cdf"] .bizx-excerpt-text * {
  font-size: inherit !important;
  font-weight: inherit !important;
}

.bizx-message-category {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: inherit;
}

.modal-button-container .modal-button.fea-open-modal,
.fea-delete-button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 18px;
  border: 2px solid transparent;
  border-radius: 6px;
  box-shadow: none;
  line-height: 1;
  text-decoration: none;
}

.modal-button-container .modal-button.fea-open-modal i,
.fea-delete-button.button i {
  color: currentColor;
}

.modal-button-container .modal-button.fea-open-modal i.fas,
.modal-button-container .modal-button.fea-open-modal i.fa {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-style: normal;
  display: inline-block;
  line-height: 1;
}

.eicon,
[class^="eicon-"],
[class*=" eicon-"] {
  font-family: "eicons" !important;
  font-style: normal;
  font-weight: normal;
}

.modal-button-container .modal-button.fea-open-modal {
  background-color: #1F5375 !important;
  border-color: #1F5375 !important;
  color: #ffffff !important;
}

.fea-delete-button.button {
  background-color: #EA467B !important;
  color: #ffffff !important;
}

.modal-button-container .modal-button.fea-open-modal:hover,
.fea-delete-button.button:hover {
  filter: brightness(0.92);
}

.modal-button-container .modal-button.fea-open-modal:focus,
.fea-delete-button.button:focus {
  outline: none;
}

.modal-button-container .modal-button.fea-open-modal:focus {
  box-shadow: 0 0 0 2px rgba(31, 83, 117, 0.25);
}

.fea-delete-button.button:hover {
  background-color: #d63e6e !important;
}

.fea-delete-button.button:focus {
  box-shadow: 0 0 0 2px rgba(234, 70, 123, 0.25);
}

.bizx-message-read-status {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  color: inherit;
}

.bizx-message-read-status.is-unread {
  color: #EA467B;
}

.bizx-message-status-control {
  display: inline-grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 6px;
  row-gap: 4px;
  align-items: center;
  min-width: 120px;
}

.e-n-tabs-heading {
  justify-content: flex-start !important;
  margin-left: 170px !important;
}


.bizx-message-status-control__select {
  min-width: 120px;
  font-size: 13px;
  line-height: 1.3;
  padding: 4px 28px 4px 8px;
  border: 1px solid #d5d8dc;
  border-radius: 6px;
  background-color: #ffffff;
  color: #1F5375;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #1F5375 50%), linear-gradient(135deg, #1F5375 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 4px), calc(100% - 12px) calc(50% - 4px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  grid-column: 1;
  grid-row: 1;
}

.bizx-message-status-control__value {
  font-size: 13px;
  font-weight: 600;
  color: inherit;
  grid-column: 1;
  grid-row: 1;
}

.bizx-message-status-control.has-select .bizx-message-status-control__value {
  display: none;
}

.bizx-message-status-control__select:focus {
  outline: none;
  border-color: #1F5375;
  box-shadow: 0 0 0 2px rgba(31, 83, 117, 0.15);
}

.bizx-message-status-control.is-loading .bizx-message-status-control__select {
  opacity: 0.6;
  pointer-events: none;
}

.bizx-message-status-control__spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(31, 83, 117, 0.2);
  border-top-color: #1F5375;
  animation: bizx-status-spin 0.6s linear infinite;
  display: none;
  grid-column: 2;
  grid-row: 1;
}

.bizx-message-status-control.is-loading .bizx-message-status-control__spinner {
  display: inline-block;
}

.bizx-message-status-control__feedback {
  font-size: 12px; /* ≒ 9pt */
  color: #1F5375;
  min-height: 1em;
  grid-column: 1 / -1;
  grid-row: 2;
}

.bizx-message-status-control.is-error .bizx-message-status-control__feedback {
  color: #EA467B;
}

@keyframes bizx-status-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Message loop toggle */
.elementor.elementor-1445 .bizx-message-body {
  display: block;
  border-top: 1px solid #d5d8dc;
  background: #f7f8f9;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease, padding 0.3s ease;
}

.elementor.elementor-1445 [data-toggle="bizx-message-body"],
.elementor.elementor-1445 [data-toggle="bizx-message-body"] a {
  cursor: pointer;
}

.elementor.elementor-1445 .elementor-element-e56e402.is-open .bizx-message-body {
  max-height: 1000px;
  opacity: 1;
  margin-top: 5px;
  margin-bottom: 5px;
  padding-top: 5px;
  padding-bottom: 5px;
}

#shrinker .elementor-element-f562615 {
  display: inline-flex;
  align-items: center;
  visibility: visible !important;
  opacity: 1 !important;
  max-height: none !important;
}

body.bx-header-shrunk #shrinker .elementor-element-f562615,
#shrinker.bx-header-shrunk .elementor-element-f562615 {
  opacity: 1;
  max-height: none;
  pointer-events: auto;
}

/* Hide message CTA on company singles only */
.single-company .elementor-element.elementor-element-709baac {
  display: none !important;
}
