/* TVUJORIGINAL CUSTOMER MESSAGES v1.1.0 */

.tvuo-customer-message,
.tvuo-customer-message * {
  box-sizing: border-box;
}

.tvuo-customer-message {
  position: fixed;
  inset: 0;
  z-index: 999995;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
  pointer-events: none;
  font-family: var(--to-font-family, "Source Sans 3", "Segoe UI", Arial, sans-serif);
  color: var(--to-color-text, #2f2b28);
}

.tvuo-customer-message__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(47, 43, 40, .05);
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: auto;
}

.tvuo-customer-message__panel {
  position: relative;
  width: min(470px, calc(100vw - 48px));
  padding: 28px 28px 22px;
  border: 1px solid #d9a6a6;
  border-left-width: 4px;
  background: var(--to-color-surface, #fff);
  box-shadow: var(--to-shadow-soft, 0 8px 30px rgba(47, 43, 40, .06));
  transform: translateY(28px);
  opacity: 0;
  pointer-events: auto;
  transition: transform 320ms cubic-bezier(.22, .8, .24, 1), opacity 260ms ease;
}

.tvuo-customer-message.is-open .tvuo-customer-message__backdrop {
  opacity: 1;
}

.tvuo-customer-message.is-open .tvuo-customer-message__panel {
  transform: translateY(0);
  opacity: 1;
}

.tvuo-customer-message__accent {
  width: 42px;
  height: 3px;
  margin-bottom: 14px;
  background: #d9a6a6;
}

.tvuo-customer-message__eyebrow {
  display: block;
  margin: 0 42px 7px 0;
  color: var(--to-color-brand-700, #7f6f5f);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
}

.tvuo-customer-message h2 {
  margin: 0 42px 10px 0;
  color: var(--to-color-heading, #22201e);
  font-size: 27px;
  line-height: 1.18;
  font-weight: var(--to-font-weight-heading, 550);
}

.tvuo-customer-message p {
  margin: 0;
  color: var(--to-color-muted, #6f6a65);
  font-size: 16px;
  line-height: 1.55;
}

.tvuo-customer-message__close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--to-color-subtle, #918b85);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.tvuo-customer-message__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.tvuo-customer-message__primary {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  background: var(--to-color-primary, #84ab09);
  color: var(--to-color-primary-text, #fff);
  font-family: inherit;
  font-size: 14px;
  font-weight: var(--to-font-weight-button, 550);
  cursor: pointer;
  transition: background var(--to-transition, 180ms ease);
}

.tvuo-customer-message__primary:hover {
  background: var(--to-color-primary-hover, #739607);
}

.tvuo-customer-message__secondary {
  color: var(--to-color-brand-700, #7f6f5f) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}

.tvuo-customer-message__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--to-color-line, #ebe6e1);
  color: var(--to-color-subtle, #918b85);
  font-size: 11px;
}

.tvuo-customer-message__proof span:not(:last-child)::after {
  content: "•";
  margin-left: 14px;
  color: #d9a6a6;
}

@media (max-width: 767px) {
  .tvuo-customer-message {
    padding: 12px;
  }

  .tvuo-customer-message__backdrop {
    background: rgba(47, 43, 40, .08);
  }

  .tvuo-customer-message__panel {
    width: 100%;
    max-height: min(76vh, 560px);
    overflow: auto;
    padding: 23px 18px 18px;
  }

  .tvuo-customer-message h2 {
    font-size: 23px;
  }

  .tvuo-customer-message p {
    font-size: 15px;
  }

  .tvuo-customer-message__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .tvuo-customer-message__primary {
    width: 100%;
  }

  .tvuo-customer-message__secondary {
    padding: 4px 0;
    text-align: center;
  }

  .tvuo-customer-message__proof {
    gap: 6px 10px;
  }

  .tvuo-customer-message__proof span:not(:last-child)::after {
    margin-left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tvuo-customer-message__backdrop,
  .tvuo-customer-message__panel,
  .tvuo-customer-message__primary {
    transition: none;
  }
}
