:root {
  --gtm-consent--color-primary: #34a853;
  --gtm-consent--color-primary-fg: #ffffff;
  --gtm-consent--color-secondary: #ffffff;
  --gtm-consent--color-secondary-fg: #34a853;
  --gtm-consent--color-danger: #ffffff;
  --gtm-consent--color-danger-fg: #666666;
}

.gtm-consent__text {
  flex: 1;
  text-align: justify;
  margin-right: 3rem;
}
@media (max-width: 960px) {
  .gtm-consent__text {
    margin-right: 0;
  }
}
.gtm-consent__text p {
  font-size: 0.875rem;
}

.gtm-consent__title {
  font-size: 1.5rem;
  font-weight: bold;
}

.gtm-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #f8f9fa;
  padding: 0.5rem 1rem;
  z-index: 10000;
}

.gtm-consent-banner__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 0.938rem 3rem;
}
@media (max-width: 960px) {
  .gtm-consent-banner__content {
    flex-direction: column;
    padding: 0.938rem 1rem;
  }
}

.gtm-consent-banner__buttons {
  display: flex;
  align-items: center;
  flex-direction: column;
  grid-row-gap: 0.625rem;
}
@media (min-width: 640px) and (max-width: 960px) {
  .gtm-consent-banner__buttons {
    flex-direction: row;
    grid-column-gap: 0.625rem;
    grid-row-gap: initial;
  }
}
@media (max-width: 640px) {
  .gtm-consent-banner__buttons {
    width: 100%;
  }
}

.gtm-consent__btn {
  min-width: 130px;
  text-align: center;
}
@media (max-width: 640px) {
  .gtm-consent__btn {
    width: 100%;
    flex: auto;
    min-width: initial;
  }
}
.gtm-consent__btn:active {
  opacity: 0.5;
}

.gtm-consent-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
}

.gtm-consent-dialog {
  background-color: #ffffff;
  border-radius: 0.25rem;
  width: 90%;
  max-width: 625px;
  max-height: 80vh;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gtm-consent-dialog__content {
  overflow-y: auto;
  padding: 1.5rem;
}

.gtm-consent-dialog__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gtm-consent-dialog__close {
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
}

.gtm-consent-options {
  margin-top: 1.25rem;
}

.gtm-consent-option {
  border: 1px solid #ddd;
  border-radius: 0.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.625rem;
}

.gtm-consent-option__content {
  padding: 0.5rem;
}

.gtm-consent-option__title {
  font-weight: bold;
  font-size: 0.875rem;
}

.gtm-consent-option__description p {
  opacity: 0.7;
  margin-top: 0.25rem;
  font-size: 0.875rem;
}

.gtm-consent-option__actions {
  margin-right: 0.75rem;
}

.gtm-consent-option__switch {
  cursor: pointer;
  min-width: 40px;
  height: 22px;
  display: inline-block;
  position: relative;
}
.gtm-consent-option__switch input {
  opacity: 0;
  position: absolute;
}
.gtm-consent-option__switch input:checked + .slider {
  background-color: var(--gtm-consent--color-primary);
}
.gtm-consent-option__switch input:checked + .slider:before {
  background-color: var(--gtm-consent--color-primary-fg);
  transform: translate(1.125rem);
}
.gtm-consent-option__switch input:focus + .slider {
  box-shadow: 0 0 3px var(--gtm-consent--color-primary);
}
.gtm-consent-option__switch input:disabled + .slider {
  cursor: not-allowed;
  background-color: #cccccc;
}
.gtm-consent-option__switch .slider {
  cursor: pointer;
  background-color: #595959;
  width: 40px;
  transition: all 0.3s;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}
.gtm-consent-option__switch .slider:before {
  content: "";
  background-color: #ffffff;
  width: 16px;
  height: 16px;
  transition: all 0.3s;
  position: absolute;
  bottom: 0.125rem;
  left: 0.125rem;
}
.gtm-consent-option__switch .slider.round {
  border: 1px solid #fff;
  border-radius: 2.125rem;
}
.gtm-consent-option__switch .slider.round:before {
  border-radius: 50%;
}

.gtm-consent-dialog__footer {
  border-top: 1px solid #ddd;
  padding: 0.75rem 1.5rem;
}

.gtm-consent-dialog__buttons {
  grid-column-gap: 1rem;
  justify-content: center;
  align-items: stretch;
  display: flex;
}
@media (max-width: 640px) {
  .gtm-consent-dialog__buttons {
    flex-direction: column;
    grid-row-gap: 0.625rem;
  }
}

.gtm-consent-dialog__buttons .button {
  flex-grow: 1;
  flex-basis: 0;
}

.gtm-consent-sticker {
  background-color: #fff;
  box-sizing: content-box;
  border-radius: 1.5rem;
  border: 1px solid #eeeeee;
  display: block;
  right: 1rem;
  position: fixed;
  bottom: 1rem;
  width: 3rem;
  height: 3rem;
  z-index: 99;
  cursor: pointer;
}

.gtm-consent-sticker__icon {
  display: inline-block;
  margin: 0.5rem;
  width: 2rem;
  height: 2rem;
}

.gtm-consent-sticker__text {
  display: block;
  width: 0;
  height: 0;
  overflow: hidden;
}
