﻿/* ta-campaign plugin styles â€” extracted from header.php for proper enqueueing */

.ta-campaign-plugin__admin .input-group {
  margin-bottom: 0.75rem !important;
}
.ta-campaign-plugin__admin .input-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.ta-campaign-plugin__admin .input-group input,
.ta-campaign-plugin__admin .input-group textarea {
  width: 100%;
  font-size: 1rem;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.1);
  border-radius: 6px;
}
.ta-campaign-plugin__admin .input-group input {
  height: 40px;
}
.ta-campaign-plugin__admin .input-group textarea {
  min-height: 200px;
}
.ta-campaign-plugin__admin .input-group__validation-error {
  color: #d62828;
  font-size: 0.75rem;
  line-height: 1rem;
  margin-top: 0.5rem;
}
.ta-campaign-plugin__admin__sidebar h4 {
  padding: 0;
  margin: 0;
}
.ta-campaign-plugin__admin__sidebar .click-to-copy {
  padding: 0.5rem 0.5rem;
  background: rgba(16, 24, 40, 0.05);
  border: 1px solid rgba(16, 24, 40, 0.2);
  border-radius: 5px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ta-campaign-plugin__admin__sidebar .click-to-copy:hover {
  cursor: pointer;
  background: rgba(16, 24, 40, 0.15);
}
.ta-campaign-plugin__admin button {
  padding: 6px 16px !important;
  border-radius: 6px !important;
}
@media screen and (min-width: 1024px) {
  .ta-campaign-plugin__admin .fields--grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    grid-auto-rows: minmax(1rem, auto);
  }
}
.ta-campaign-plugin__admin .inside {
  padding: 1rem 1.5rem;
}
.ta-campaign-plugin__admin .postbox {
  border-radius: 15px;
  overflow: hidden;
}
.ta-campaign-plugin__admin .postbox__header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(16, 24, 40, 0.1);
}
.ta-campaign-plugin__admin .postbox__header h2 {
  font-size: 1rem !important;
  font-weight: normal;
  padding: 0 !important;
  margin: 0 !important;
}
.ta-campaign-plugin__admin #json-data {
  margin: -1rem -1.5rem;
  padding: 1rem 1.5rem;
  min-height: 1.75vh;
  max-height: 500px;
  overflow: scroll;
}
.ta-campaign-plugin__admin #json-data .json-item {
  position: relative;
}
.ta-campaign-plugin__admin #json-data .json-item i {
  position: absolute;
  left: -1rem;
}
.ta-campaign-plugin__admin #json-data .json-key {
  font-weight: 700;
}
.ta-campaign-plugin__admin .caret::before {
  display: inline-block;
  margin-right: 0.25rem;
  font-style: initial;
}
.ta-campaign-plugin__admin .caret.open::before {
  content: "â–¼";
}
.ta-campaign-plugin__admin .caret.closed::before {
  content: "â–¶";
  font-size: 0.8rem;
}
.ta-campaign-plugin__admin .w-5 { width: 1.25rem !important; }
.ta-campaign-plugin__admin .w-44 { width: 11rem; }
.ta-campaign-plugin__admin .w-full { width: 100% !important; }
.ta-campaign-plugin__admin .flex { display: flex !important; }
.ta-campaign-plugin__admin .items-center { align-items: center !important; }
.ta-campaign-plugin__admin .justify-between { justify-content: space-between !important; }
.ta-campaign-plugin__admin .justify-end { justify-content: flex-end !important; }
.ta-campaign-plugin__admin .pb-4 { padding-bottom: 1rem !important; }
.ta-campaign-plugin__admin .pb-2 { padding-bottom: 0.5rem !important; }
.ta-campaign-plugin__admin .mb-8 { margin-bottom: 2rem !important; }
.ta-campaign-plugin__admin .mb-4 { margin-bottom: 1rem !important; }
.ta-campaign-plugin__admin .mb-2 { margin-bottom: 0.5rem !important; }
.ta-campaign-plugin__admin .mr-2 { margin-right: 0.5rem !important; }
.ta-campaign-plugin__admin .mr-1 { margin-right: 0.25rem !important; }
.ta-campaign-plugin__admin .mt-0 { margin-top: 0 !important; }

.ta-campaign-plugin__admin__preview__devtools {
  position: absolute;
  top: 0;
  right: 0;
  margin-top: -6px;
  padding: 0.25rem 0.5rem;
  background: white;
  border-left: 1px solid;
  border-bottom: 1px solid;
  border-radius: 0 0 0 8px;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  opacity: 0.9;
}
.ta-campaign-plugin__admin__preview__devtools h5 {
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  margin-top: 0;
  border-bottom: 1px solid;
}

#ta-campaign-plugin-toast-wrapper {
  position: fixed;
  top: 0;
  right: 0;
  margin-right: 10px;
  margin-top: 40px;
  z-index: 1000;
}
#ta-campaign-plugin-toast-wrapper .toast {
  width: 300px;
  padding: 1rem;
  border-radius: 5px;
  border: 1px solid;
  margin-top: 0.5rem;
  transition: opacity 0.3s ease-in-out;
}
#ta-campaign-plugin-toast-wrapper .toast-success {
  color: #0E9F6E;
  border-color: #0E9F6E;
  background: #DEF7EC;
}
#ta-campaign-plugin-toast-wrapper .toast-danger {
  color: #F05252;
  border-color: #F05252;
  background: #FDE8E8;
}

.ta-campaign-widget__button:before {
  z-index: 0 !important;
}
.ta-campaign-widget {
  position: relative;
  border: 1px solid rgb(203, 213, 225);
  padding: 2rem;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 4px 8px 0px rgba(34, 34, 34, 0.1215686275);
}
.ta-campaign-widget__tagline { font-weight: 600 !important; }
.ta-campaign-widget__subtagline { font-weight: 400 !important; }
.ta-campaign-widget__content { font-size: 18px; }
.ta-campaign-widget__wrapper {
  width: 100%;
  transition: max-height 2s, opacity 1s;
}
.ta-campaign-widget__input { display: flex; flex-direction: column; }
.ta-campaign-widget__input__text {
  padding: 1rem 0.75rem !important;
  border-radius: 5px !important;
  border: 1px solid rgb(203, 213, 225) !important;
  font-size: 13px !important;
  line-height: normal;
}
.ta-campaign-widget__checkbox__label { font-size: 0.75rem; }
.ta-campaign-widget__checkbox__input { margin-right: 0.75rem; }
.ta-campaign-widget__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 0;
  background: var(--ta-campaign-plugin-primary);
  color: var(--ta-campaign-plugin-button-text);
  border: none;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: 0px 5px 8px 0px rgba(34, 34, 34, 0.2);
}
.ta-campaign-widget__button:hover {
  background: var(--ta-campaign-plugin-button-hover-background);
  color: var(--ta-campaign-plugin-button-hover-text);
}
.ta-campaign-widget__button--toggle {
  transition: 0.2s ease;
  position: relative;
  background: none;
  color: var(--ta-campaign-plugin-button-toggle-text);
}
.ta-campaign-widget__button--toggle:before {
  content: " ";
  z-index: -1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  background: var(--ta-campaign-plugin-button-toggle-background) !important;
  opacity: 0.5;
}
.ta-campaign-widget__button--toggle:hover {
  cursor: not-allowed;
  background: none;
  color: var(--ta-campaign-plugin-button-toggle-text);
}
.ta-campaign-widget__validation-error { color: #d62828; }
.ta-campaign-widget__invalid-border { border-color: #d62828; }
.ta-campaign-widget h1,
.ta-campaign-widget h2,
.ta-campaign-widget h3,
.ta-campaign-widget h4,
.ta-campaign-widget h5,
.ta-campaign-widget p {
  padding: 0 !important;
  margin: 0 !important;
}
.ta-campaign-widget h3 {
  font-size: 1.75rem;
  line-height: 2.5rem;
}
.ta-campaign-widget .text-xs,
.ta-campaign-widget .ta-campaign-widget__validation-error {
  font-size: 0.75rem;
  line-height: 1rem;
}
.ta-campaign-widget .mb-2 { margin-bottom: 0.5rem !important; }
.ta-campaign-widget .mt-2,
.ta-campaign-widget .ta-campaign-widget__validation-error { margin-top: 0.5rem !important; }
.ta-campaign-widget .mr-2 { margin-right: 0.5rem !important; }
.ta-campaign-widget .mt-4 { margin-top: 1rem !important; }
.ta-campaign-widget .mt-6 { margin-top: 1.5rem !important; }
.ta-campaign-widget .mb-6 { margin-bottom: 1.5rem !important; }
.ta-campaign-widget .mb-4 { margin-bottom: 1rem !important; }
.ta-campaign-widget .mb-8 { margin-bottom: 2rem !important; }
.ta-campaign-widget .flex { display: flex; }
.ta-campaign-widget .flex-col { flex-direction: column; }
.ta-campaign-widget .items-center { align-items: center; }
.ta-campaign-widget .items-start { align-items: flex-start; }
.ta-campaign-widget .justify-center { justify-content: center; }
.ta-campaign-widget .w-full { width: 100%; }
.ta-campaign-widget .w-8 { width: 2rem; }
.ta-campaign-widget .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.ta-campaign-widget .hidden { display: none; }
.ta-campaign-widget input[type=checkbox] {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  margin: 2px;
  font: inherit;
  color: currentColor;
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  min-height: 1.5rem;
  border: 2px solid var(--ta-campaign-plugin-primary);
  border-radius: 0.15em;
  transform: translateY(-0.075em);
  display: grid;
  place-content: center;
}
.ta-campaign-widget input[type=checkbox]::before {
  content: "";
  width: 0.65em;
  height: 0.65em;
  -webkit-clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transform-origin: bottom left;
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--ta-campaign-plugin-primary);
  background-color: CanvasText;
}
.ta-campaign-widget input[type=checkbox]:checked::before { transform: scale(1); }
.ta-campaign-widget input[type=checkbox]:focus {
  outline: max(2px, 0.15em) solid var(--ta-campaign-plugin-primary);
  outline-offset: max(2px, 0.15em);
}
.ta-campaign-widget__exit {
  position: absolute;
  top: 0;
  right: 0;
  margin-right: 1rem;
  margin-top: 1rem;
  cursor: pointer;
}
.ta-campaign-widget--sidebar { max-width: 500px !important; }
.ta-campaign-widget__popup-wrapper {
  z-index: 1000;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  max-width: 100vw !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: none;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
}
.ta-campaign-widget__popup-wrapper .ta-campaign-widget {
  background: white;
  max-width: 750px;
  margin-left: 1rem;
  margin-right: 1rem;
}
@media screen and (min-width: 500px) {
  .ta-campaign-widget--banner .ta-campaign-widget__button {
    width: 30%;
    min-width: 250px;
  }
}
.ta-campaign-button {
  padding: 1rem 1rem;
  background: var(--ta-campaign-plugin-primary);
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0 !important;
}
.ta-campaign-button:hover {
  background: var(--ta-campaign-plugin-button-hover-background);
}

/* Widget checkbox label color â€” consolidated from newsletter-sidebar and topics-listing shortcodes */
#ta-campaign-widget-sidebar .ta-campaign-widget__checkbox__label,
#ta-campaign-widget-topics .ta-campaign-widget__checkbox__label {
  color: #7A7A7A;
}
