/* Banner */
@keyframes COOKIE-FADE-IN {
  0% { opacity:0; visibility:hidden; pointer-events:none; }
  100% { opacity:1; visibility:visible; pointer-events:auto; }
}
#pint-cookie-banner {
  animation: COOKIE-FADE-IN .5s forwards;
  background: var(--pint-cookie-background-color);
  bottom: 0;
  box-sizing: border-box;
  color: var(--pint-cookie-color);
  font-family: var(--pint-cookie-font-family);
  font-weight: 400;
  left: 0;
  min-height: var(--pint-cookie-min-height);
  padding: 1.125rem var(--theme-gutter-left);
  position: fixed;
  right: 0;
  width: 100%;
  z-index: 9999;

  button {
    font-family: var(--pint-cookie-font-family);
  }
}

#pint-cookie-banner-content {
  margin: 0 auto;
}

#pint-cookie-banner-content p {
  margin-top: 0;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  line-height: 24px;
}

#pint-cookie-banner-content .btns {
  align-items: center;
  display: flex;
  gap: .875rem;
  flex-direction: column;
}

#pint-cookie-banner-content p,
#pint-cookie-settings,
#pint-cookie-accept {
  font-size: 18px;
}

#pint-cookie-banner-content p a {
  color: var(--pint-cookie-link-color);
  text-decoration: underline;
  transition: color .3s;
}

#pint-cookie-banner-content p a:hover {
  color: var(--pint-cookie-link-color_hover);
  text-decoration: none;
}

#pint-cookie-settings,
#pint-cookie-accept {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  box-shadow: none;
}

#pint-cookie-settings {
  background: none;
  border-radius: 0;
  color: var(--pint-cookie-link-color);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color .3s;
  
  &:hover {
    color: var(--pint-cookie-link-color_hover);
    text-decoration: none;
  }
}

#pint-cookie-accept,
#pint-cookie-save-accept {
  background-color: var(--pint-cookie-accept-background-color, none);
  border: 0;
  border-radius: 0;
  color: var(--pint-cookie-accept-color);
  cursor: pointer;
  font-size: 1.25rem !important;
  font-weight: 700;
  height: 70px !important;
  line-height: 1.2;
  margin-left: 5px;
  width: 100%;
  padding-inline: 1.25rem;
  text-transform: uppercase;
  transition: background-color .3s;
  
  &:after {
    left: -1px;
    top: -1px;
  }

  &:hover {
    background-color: color-mix(in srgb, var(--pint-cookie-accept-background-color, none) 90%, black);
    text-decoration: underline;
  }
}

#pint-cookie-save-accept {
  float: right;
  font-size: 1rem !important;
  height: 50px !important;
  margin-top: 1.5rem;
  padding-inline: 1.25rem;
  width: auto;
}
#pint-cookie-save-accept:after {
  left: -1px;
  top: -1px;
}

/* MODAL */
#pint-cookie-modal-wrapper,
#pint-cookie-modal-wrapper * {
  box-sizing: border-box;
}

#pint-cookie-modal-wrapper {
  display: flex;
  z-index: 999999;
  transform: scale(1);
  background: rgba(0, 0, 0, 0.4);
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#pint-cookie-modal {
  background-color: var(--pint-cookie-background-color);
  position: relative;
  padding: 2rem;
  margin: 0;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  overflow-x: hidden;
}

#pint-cookie-modal p {
  margin: 1rem 0;
}

#pint-cookie-modal-description-toggle {
  border: none;
  background: transparent;
  padding: 0;
  text-decoration: underline;
  font-size: 15px;
  cursor: pointer;
}

/* Cookie Banner - Modal */
.cli-modal {
  position: fixed;
  z-index: 999;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0 !important;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
  display: flex !important;
  align-items: center;
  pointer-events: none !important;
  visibility: hidden !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cli-show {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.cli-modal-content {
  position: relative;
  padding: 2rem;
  margin: 0 auto;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  overflow-x: hidden;
  background-color: #fefefe;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.cli-modal {
  background: none !important;
}

.cli-show+.cli-modal-backdrop {
  opacity: 0.5 !important;
}

.cli-modal-dialog {
  max-width: none !important;
  animation: none !important;
}

.cli-modal.cli-blowup .cli-modal-dialog {
  width: 100%;
}

.cli-privacy-overview {
  margin-bottom: 1.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid #dbdbdc;
}

.cli-necessary-caption,
.cli-tab-container .cli-row {
  max-height: none;
}

.cli-tab-section-container {
  margin: 0 0 2rem !important;
}

.cli-tab-section {
  margin-top: 0;
}

.cli-tab-section+.cli-tab-section {
  margin-top: 1rem;
}

/* Header */
.cli-tab-header {
  background: var(--pint-cookie-accept-background-color);
  border-radius: 5px;
  padding: 12px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cli-tab-header a:before {
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--pint-cookie-color);
  border-bottom: 1px solid var(--pint-cookie-color);
  content: " ";
  transform: rotate(-45deg);
  transition: all 0.2s ease-in-out;
  margin-right: 10px;
}

.expanded .cli-tab-header a:before {
  transform: rotate(45deg);
}

.cli-tab-header a.cli-nav-link {
  color: var(--pint-cookie-color);
  position: relative;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
}

.cli-tab-header span.cli-necessary-caption {
  color: var(--pint-cookie-color);
  font-size: 12px;
}

.cli-tab-content {
  max-height: 0;
  overflow: hidden;
  transition: 0.4s max-height ease-in-out;
}

.cli-tab-section.expanded .cli-tab-content {
  max-height: 600px;
  overflow-y: auto;
}

/* Enable/Disable Switch */
.cli-switch .cli-slider:after {
  color: #fff;
}

.cli-switch {
  display: inline-block;
  font-size: 14px;
  min-height: 1px;
  padding-left: 38px;
  position: relative;
  transform: translateY(-9px);
}

.cli-switch input[type="checkbox"] {
  display: none;
}

.cli-switch .cli-slider {
  background-color: #e3e1e8;
  height: 20px;
  width: 38px;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: 0.4s;
}

.cli-switch .cli-slider:before {
  background-color: #fff;
  bottom: 2px;
  content: "";
  height: 15px;
  left: 3px;
  top: 3px;
  position: absolute;
  transition: 0.4s;
  width: 15px;
}

.cli-switch input:checked+.cli-slider:before {
  transform: translateX(17px);
}

.cli-switch .cli-slider {
  border-radius: 34px;
  font-size: 0;
}

.cli-switch .cli-slider:before {
  border-radius: 50%;
}

.cli-switch .cli-slider {
  height: 21px;
  background-color: #c7c7c7;
}

.cli-switch input:checked+.cli-slider {
  background-color: #000;
}

.cli-switch input:checked+.cli-slider:before {
  transform: translate(17px, 0);
}

.cli-tab-header.cli-tab-active .cli-nav-link:before {
  transform: rotate(45deg);
}

/* Content */
.cookie-table table {
  border-collapse: collapse;
  width: 100%;
}

.cookie-table th {
  padding: 4px 10px;
  font-size: 13px;
  text-align: left;
}

.cookie-table td {
  border: 1px solid var(--pint-cookie-accept-background-color);
  padding: 4px 10px;
  font-size: 15px;
}

.cookie-table tbody> :last-child> :first-child {
  border-radius: 0 0 0 4px;
}

.cookie-table tbody> :last-child> :last-child {
  border-radius: 0 0 4px 0;
}

/* Close Button */
#pint-cookie-modal-wrapper #pint-cookie-modal-close {
  align-items: center;
  background: 0;
  border: 0;
  cursor: pointer;
  display: flex;
  font-size: 20px;
  height: 70px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 70px;
  z-index: 100;
}

#pint-cookie-modal-wrapper #pint-cookie-modal-close svg {
  width: 30px;
  height: 30px;
  transform: rotate(0);
  transition: transform 0.15s ease-in;
}

#pint-cookie-modal-wrapper #pint-cookie-modal-close:hover svg {
  transform: rotate(-90deg);
}

.cli-switch {
  cursor: pointer;
}

#pint-cookie-modal hr {
  background-color: #000/;
  border: 0;
  height: 1px;
  margin: 2rem 0 !important
}

@media only screen and (min-width: 1024px) {
  #pint-cookie-banner-content {
    align-items: center;
    display: flex;
    gap: 1.25rem;
  }

  #pint-cookie-banner-content p {
    margin: 0 auto 0 0;
    border: 0;
    padding: 0;
  }

  #pint-cookie-banner-content .btns {
    margin-left: 20px;
  }

  #pint-cookie-settings,
  #pint-cookie-accept {
    font-size: 15px;
    white-space: nowrap;
  }

  #pint-cookie-settings {
    margin-top: 0;
  }
}

@media only screen and (min-width: 1440px) {

  #pint-cookie-banner-content,
  #pint-cookie-modal {
    max-width: 1590px;
  }

  #pint-cookie-banner-content p,
  #pint-cookie-settings,
  #pint-cookie-accept {
    font-size: 18px;
  }
}

@media only screen and (min-width: 2134px) {

  #pint-cookie-banner-content,
  #pint-cookie-modal {
    max-width: 2010px;
  }
}


@media screen and (max-width: 1023.95px) {
  #pint-cookie-banner-content .btns {
    padding-top: 1rem;
  }
}

@media only screen and (max-width: 768px) {
  .cookie-group p {
    padding: 0 20px;
  }

  .cookie-table {
    max-height: 500px;
    overflow: auto;
  }

  .cookie-table table {
    display: block;
  }

  .cookie-table thead {
    display: none;
  }

  .cookie-table tbody {
    display: block;
  }

  .cookie-table tbody tr {
    padding: 3px 0;
    display: block;
    background: #f5f5f5;
  }

  .cookie-table tbody tr+tr {
    margin-top: 0.375rem;
  }

  .cookie-table td {
    padding: 3px 12px;
    display: flex;
  }

  .cookie-table tr>td:before {
    margin-right: 12px;
    display: inline-block;
  }

  .cookie-table tr>td:nth-of-type(1):before {
    content: "Name:";
  }

  .cookie-table tr>td:nth-of-type(2):before {
    content: "Provider:";
  }

  .cookie-table tr>td:nth-of-type(3):before {
    content: "Purpose:";
  }

  .cookie-table tr>td:nth-of-type(4):before {
    content: "Expires:";
  }

  .cli-tab-section.expanded .cli-tab-content {
    max-height: 1000px;
  }
}

/* Helpers/Important */
.pint-hidden {
  display: none !important;
}