/* Cookie notice */

.cc_root {
  /* Background color of cookie notice */
  background-color: var(--black);
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 9999999;
}

.cc_root > div {
  background-color: var(--bvdb-cookiecode-color-modal-background) !important;
  padding: 30px !important;
  margin: 0 !important;
}

/* cookie notice text */
.cc_text {
  color: var(--bvdb-cookiecode-color-modal-text) !important;
  text-align: left !important;
  border-style: none;
  padding: 0 !important;
  margin: 0 !important;
}

.cc_text svg {
  display: none !important;
}

/* Positioning of buttons */
.cc_buttons {
  margin: 30px 0px 0px !important;
  display: flex !important;
}

.cc_button_allowall {
  background: var(--bvdb-cookiecode-color-modal-main-button-background) !important;
  color: var(--bvdb-cookiecode-color-modal-main-button-text) !important;
  align-self: start;
}

.cc_button_settings,
.cc_button_rejectall {
  background: none !important;
  color: var(--bvdb-cookiecode-color-modal-second-button-color) !important;
}

.cc_buttons button {
  box-shadow: none;
}

.cc_buttons .cc_button_settings,
.cc_buttons .cc_button_rejectall {
  border: 1px solid var(--bvdb-cookiecode-color-modal-second-button-color) !important;
}

/* Modal (cookie voorkeuren) */
dialog {
  border: 0;
  padding: 0;
  /* background color of modal */
  background-color: var(--white);
  width: 50%;
  left: 50%;
  transform: translate(-50%, 0);
}

@media only screen and (max-width: 1200px) {
  dialog {
    width: 80%;
  }
}

/* Modal base settings */

dialog header {
  background-color: var(--bvdb-cookiecode-color-settings-header-background);
  color: var(--bvdb-cookiecode-color-settings-header-text);
  font-size: x-large;
  font-weight: 600;
}

dialog header .title {
  font-size: xx-large;
}

dialog header .subtitle {
  display: none;
}

dialog main,
dialog header,
dialog footer {
  padding: 50px;
}

dialog footer {
  padding-top: 0;
}

dialog main,
dialog footer {
  background: #fff;
}

/* Intro text 1 */
dialog main .intro-specific {
  margin-bottom: 0px;
  background: #f1f1f1;
  padding: 10px 10px 0 10px;
  font-weight: 600;
}

/* Intro text 2 */
dialog main .intro-generic {
  margin-bottom: 30px;
  margin-top: 0 !important;
  background: #f1f1f1;
  padding: 0 10px 10px 10px;
  font-weight: 400;
}

.services .service-group {
  margin-bottom: 30px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 15px;
}

.services .service-group:last-child {
  border-bottom: none;
}

.service-group .service {
  margin-bottom: 20px;
}

@media only screen and (min-width: 920px) {
  .service-group .service {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
  }
}

dialog main .services .service-group .service .name {
  grid-area: 1 / 1 / 2 / 5;
  align-self: end;
}

dialog main .services .service-group .service .description {
  grid-area: 2 / 1 / 4 / 5;
}

dialog main .services .service-group .service .action {
  grid-area: 2 / 5 / 3 / 6;
  justify-content: center;
}

@media only screen and (max-width: 920px) {
  dialog main .services .service-group .service .action {
    grid-area: 2 / 5 / 3 / 6;
    justify-content: start;
  }
}

.services .service-group:last-child {
  margin-bottom: 0;
}

/* Cookie title */
dialog main .services .service-group .service-group-header .name {
  font-size: large;
  font-weight: 600;
  margin-bottom: 5px;
}

/* Cookie Description */
dialog main .services .service-group .service-group-header .description {
  margin-bottom: 5px;
}

/* Cookie switch */
input[type="checkbox"].action-consent-service {
  font-size: 12px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 3.5em;
  height: 18px;
  background: var(--bvdb-cookiecode-color-settings-checkbox-off);
  border-radius: 3em;
  position: relative;
  cursor: pointer;
  outline: none;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

.service-group-header .action,
.service-group .action {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  max-width: 180px;
  min-width: 180px;
  height: 15px;

  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;

  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

@media only screen and (max-width: 920px) {
  .service-group-header .action,
  .service-group .action {
    margin-top: 20px;
  }
}

dialog main .services .service-group .service .name {
  font-size: medium;
  font-weight: 500;
}

input[type="checkbox"].action-consent-service:checked {
  background: var(--bvdb-cookiecode-color-settings-checkbox-on);
}

input[type="checkbox"].action-consent-service:checked:after {
  left: calc(100% - 1.5em);
}

input[type="checkbox"].action-consent-service:after {
  position: absolute;
  content: "";
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: #fff;
  -webkit-box-shadow: 0 0 0.25em rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0.25em rgba(0, 0, 0, 0.3);
  -webkit-transform: scale(0.7);
  transform: scale(0.7);
  left: 0;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  top: 0;
}

/* First switch (always toggled on) */
.services .service-group:first-child .action input[type="checkbox"] {
  background: var(--bvdb-cookiecode-color-settings-checkbox-on) !important;
  cursor: no-drop;
}

.services .service-group:first-child .action input[type="checkbox"]:after {
  left: calc(100% - 1.5em);
  opacity: 0.7;
  cursor: no-drop;
}

/* Toggle all cookies button */

.service-group-header .action {
  background: #333;
  height: 30px;
  border-radius: 15px;
  position: relative;
}

.service-group-header .action input[type="checkbox"] {
  width: 180px;
  height: 30px;
  background: transparent;
  outline: none;
  appearance: none;
  z-index: 999;
  cursor: pointer;
}

.service-group-header .action:before {
  content: "Alle cookies toestaan";
  position: absolute;
  color: white;
  left: 50%;
  transform: translate(-50%, 0);
  white-space: nowrap;
}

/* First cookie cant be toggled -> dont show button */

dialog main .services .service-group:first-child .service-group-header .action {
  display: none !important;
}

dialog main .services .service-group .service-group-header {
  margin-bottom: 15px;
}

/* Modal footer */

dialog footer {
  display: flex;
  gap: 20px;
}
@media only screen and (max-width: 920px) {
  dialog footer {
    display: flex;
    gap: 10px;
  }
}

dialog footer button {
  padding: 10px 40px;
  border: none !important;
  font-size: 15px;
  box-shadow: none;
  opacity: 1;
  cursor: pointer;
}

dialog footer .button-save {
  background-color: var(--bvdb-cookiecode-color-settings-button-background);
  color: var(--bvdb-cookiecode-color-settings-button-text) !important;
}

dialog footer .button-close {
  background-color: transparent !important;
  background: transparent !important;
  color: #000;
  text-decoration: underline !important;
  padding-left: 0;
  padding-right: 0;
}

dialog footer .button-close:hover {
  background-color: none;
}

@media only screen and (max-width: 920px) {
  dialog footer button {
    padding-left: 20px;
    padding-right: 20px;
  }
}

dialog footer .button-save:hover {
  background-color: var(--bvdb-cookiecode-color-settings-button-background);
  opacity: 0.9;
}

.cc_text>span {
	display : block !important;
}

.cc_text>span:nth-child(2) {
    display: none !important;
}

@media (max-width: 600px) {
	.cc_button_allowall {
		margin-bottom: 0px !important;
	}
	.cc_buttons button {
		padding: 8px 12px !important ;
	}
}
