:root {
  --row-border: 1px solid #444;
}

.consent-banner {
  display: flex;
  width: 100%;
  background-color: #323232;
  color: white;
  position: fixed;
  z-index: 2000;
  bottom: 0;
  left: 0;
  right: 0;
}

.consent-body {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
}

.consent-text {
  justify-self: center;
  align-self: center;
  padding: 5px 30px;
}

.consent-buttons {
  display: flex;
  flex-direction: column;
  margin: 10px 15px;
}

.consent-button {
  padding: 2px 0px;
  background-color: transparent;
  border: 1px solid #8d8d8d;
  border-radius: 5px;
  color: white;
  padding: 7px 12px;
  transition: background-color 250ms ease-in-out;
}

.consent-button:hover {
  background-color: #b2b2b2;
}

.consent-button.agree {
  margin-top: 10px;
}

.consent-button.disagree {
  margin: 10px 0px;
}

.consent-button.edit {
  margin-bottom: 10px;
}

.consent-button.edit {
  background-color: transparent;
  color: white;
  border: none;
  border-radius: 0px;
  text-decoration: none;
  border-bottom: 1px dotted white;
  padding-bottom: 1px;
}

/* Cookie modal */
#cookie-modal {
  display: none;
  background-color: white;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10200;
  padding: 20px;
  border-radius: 7px;
}

#background-shadow {
  display: none;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 60%;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 10100;
}

.cookie-modal-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin: 10px;
}

.cookie-modal-header-text {
  font-size: 30px;
  /* font-weight: bold; */
}

.cookie-modal-x {
  border: none;
  background-color: transparent;
}

.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: var(--row-border);
}

.cookie-category-header span {
  font-size: 20px;
  /* font-weight: bold; */
  padding: 10px;
}

.cookie-category-row {
  display: flex;
  flex-direction: column;
  border-bottom: var(--row-border);
}

.cookie-category-row.last {
  border: none !important;
}

.category-dropdown {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.category-dropdown-open {
  padding: 5px 10px;
  cursor: pointer;
}

.cookie-category-dropdown-body {
  display: none;
  cursor: default;
  padding: 5px 20px;
}

.cookie-select-button {
  background-color: white;
  border: 3px solid #b2b2b2;
  border-radius: 5px;
  width: 25px;
  height: 25px;
  transition: transform 250ms ease-in-out;
  cursor: pointer;
}

.cookie-select-button:hover {
  filter: brightness(0.9);
}

.cookie-select-button.collapsed:after {
  transform: rotateZ(-90deg);
}

.cookie-category-row div {
  padding: 5px;
}

.cookie-accordion-item {
  padding: 10px;
  border-bottom: 1px solid var(--hebe);
}

.cookie-accordion-label {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  /* cursor: pointer; */
  padding: 5px 10px;
}

.cookie-accordion-item .cookie-accordion-label::before {
  color: black;
  top: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.cookie-accordion-item .cookie-accordion-content {
  position: relative;
  background: white;
  /* height: 0; */
  text-align: justify;
  overflow: hidden;
  transition: 250ms;
  padding: 5px 10px;
}

.cookie-accordion-item.active .cookie-accordion-content {
  height: 20px;
}

#anagkaia-icon,
#protimhsh-icon {
  transition: transform 250ms ease-in-out;
}

#anagkaia-icon.collapsed,
#protimhsh-icon.collapsed {
  transform: rotate(-90deg);
}

.cookie-dropdown-icon {
  cursor: pointer;
  transition: transform 250ms ease-in-out;
}

.collapsed {
  transform: rotateZ(-90deg);
}

.cookie-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5px;
}

.cookie-accept-options {
  background-color: transparent;
  border-radius: 5px;
  border: 1px solid var(--hebe);
  color: black;
  padding: 15px;
  margin: 10px;
  transition: all 250ms ease-in-out;
}

.cookie-accept-options:hover {
  background-color: #e0e0e0;
}

.cookie-accept-all {
  background-color: var(--hebe);
  border-radius: 5px;
  border: none;
  color: white;
  padding: 15px;
  transition: all 250ms ease-in-out;
  margin: 10px;
}

.cookie-accept-all:hover {
  background-color: #505050;
}

@media screen and (max-width: 992px) {
  #cookie-modal {
    min-width: 600px;
  }

  .cookie-accordion-content {
    font-size: 14px;
  }

  .cookie-accept-options {
    font-size: 14px;
  }

  .cookie-accept-all {
    font-size: 14px;
  }

  .cookie-modal-header-text {
    font-size: 20px;
  }

  .cookie-category-header span {
    font-size: 15px;
  }
}

@media screen and (max-width: 400px) {
  #cookie-modal {
    min-width: 400px !important;
  }

  .cookie-accordion-content {
    font-size: 12px;
  }

  .cookie-accept-options {
    font-size: 12px;
  }

  .cookie-accept-all {
    font-size: 12px;
  }

  .cookie-modal-header-text {
    font-size: 18px;
  }

  .cookie-category-header span {
    font-size: 13px;
  }
}

@media screen and (max-height: 700px) {
  #cookie-modal {
    min-width: 850px;
  }
}
