@import url('./fonts/font.css');

:root {
  --term-consent-primary-color: #002D63;
  --term-consent-secondary-color: #C07D59;
  --text-primary-color: #3B3E3F;

  /* ============================================
    FONT FAMILIES
  ============================================ */
  --font-family-heading: 'ttb', sans-serif;
  --font-family-body: 'Ekachon', sans-serif;
  --font-family-default: var(--font-family-body);
}

/* ============================================
  TYPOGRAPHY
============================================ */
.ttbw-consent-client h1,
.ttbw-consent-client h2,
.ttbw-consent-client h3,
.ttbw-consent-client h4,
.ttbw-consent-client h5,
.ttbw-consent-client h6 {
  font-family: var(--font-family-body) !important;
  font-weight: bold;
  line-height: 1;
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--text-primary-color) !important;
}

.ttbw-consent-client h1 {
  font-size: 34px;
}

.ttbw-consent-client h2 {
  font-size: 26px;
}

.ttbw-consent-client h3 {
  font-size: 22px;
}

.ttbw-consent-client h4 {
  font-size: 20px;
}

.ttbw-consent-client h5 {
  font-size: 18px;
}

.ttbw-consent-client h6 {
  font-size: 16px;
}

.ttbw-consent-client {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ttbw-consent-client,
.ttbw-consent-client p,
.ttbw-consent-client ul,
.ttbw-consent-client ol {
  font-size: 14px !important;
  line-height: 1.5 !important;
  font-family: var(--font-family-body);
  color: var(--text-primary-color) !important;
}

.ttbw-consent-client li {
  margin-bottom: 16px !important;
}

.ttbw-consent-client p {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}


/* ============================================
  CUSTOM CHECKBOX
============================================ */
@supports (-webkit-appearance: none) or (-moz-appearance: none) {
  .ttbw-term-checkbox input[type=checkbox] {
    --active: var(--term-consent-primary-color);
    --active-inner: #fff;
    --focus: 2px rgba(254, 161, 39, 0.3);
    --border: #BBC1E1;
    --border-hover: var(--term-consent-primary-color);
    --background: #fff;
    --disabled: #F6F8FF;
    --disabled-inner: #E1E6F9;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 21px;
    outline: none;
    display: inline-block;
    vertical-align: top;
    position: relative;
    margin: 0;
    cursor: pointer;
    border: 1px solid var(--bc, var(--border));
    background: var(--b, var(--background));
    transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
    flex-shrink: 0;
  }

  .ttbw-term-checkbox input[type=checkbox]:after {
    content: "";
    display: block;
    left: 0;
    top: 0;
    position: absolute;
    transition: transform var(--d-t, 0.3s) var(--d-t-e, ease), opacity var(--d-o, 0.2s);
  }

  .ttbw-term-checkbox input[type=checkbox]:checked {
    --b: var(--active);
    --bc: var(--active);
    --d-o: .3s;
    --d-t: .6s;
    --d-t-e: cubic-bezier(.2, .85, .32, 1.2);
  }

  .ttbw-term-checkbox input[type=checkbox]:disabled {
    --b: var(--disabled);
    cursor: not-allowed;
    opacity: 0.9;
  }

  .ttbw-term-checkbox input[type=checkbox]:disabled:checked {
    --b: var(--disabled-inner);
    --bc: var(--border);
  }

  .ttbw-term-checkbox input[type=checkbox]:disabled+label {
    cursor: not-allowed;
  }

  .ttbw-term-checkbox input[type=checkbox]:hover:not(:checked):not(:disabled) {
    --bc: var(--border-hover);
  }

  .ttbw-term-checkbox input[type=checkbox]:focus {
    box-shadow: 0 0 0 var(--focus);
  }

  .ttbw-term-checkbox input[type=checkbox]:not(.switch) {
    width: 21px;
  }

  .ttbw-term-checkbox input[type=checkbox]:not(.switch):after {
    opacity: var(--o, 0);
  }

  .ttbw-term-checkbox input[type=checkbox]:not(.switch):checked {
    --o: 1;
  }

  .ttbw-term-checkbox input[type=checkbox]+label {
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
    margin-left: 4px;
  }

  .ttbw-term-checkbox input[type=checkbox]:not(.switch) {
    border-radius: 7px;
  }

  .ttbw-term-checkbox input[type=checkbox]:not(.switch):after {
    width: 5px;
    height: 9px;
    border: 2px solid var(--active-inner);
    border-top: 0;
    border-left: 0;
    left: 7px;
    top: 4px;
    transform: rotate(var(--r, 20deg));
  }

  .ttbw-term-checkbox input[type=checkbox]:not(.switch):checked {
    --r: 43deg;
  }
}

.ttbw-term-checkbox * {
  box-sizing: inherit;
}

.ttbw-term-checkbox *:before,
.ttbw-term-checkbox *:after {
  box-sizing: inherit;
}

/* ============================================
  CUSTOM BUTTONS
============================================ */
.ttbw-term-modal .ttbw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-family: var(--font-family-body);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
  min-width: 120px;
}

.ttbw-term-modal .ttbw-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ttbw-term-modal .ttbw-btn-primary {
  background-color: var(--term-consent-secondary-color) !important;
  color: white !important;
  font-size: 14px !important;
  border-radius: 12px !important;
  border: 1px solid var(--term-consent-secondary-color) !important;
}

.ttbw-term-modal .ttbw-btn-primary:not(:disabled):hover {
  background-color: #a86c4c !important;
  border-color: #a86c4c !important;
}

.ttbw-term-modal .ttbw-btn-outlined {
  background-color: white !important;
  color: var(--term-consent-secondary-color) !important;
  font-size: 14px !important;
  border-radius: 12px !important;
  border: 1px solid var(--term-consent-secondary-color) !important;
}

.ttbw-term-modal .ttbw-btn-outlined:not(:disabled):hover {
  background-color: #fcf4f0 !important;
}