/* =========================================================
   CSB Cookie Compliance
   Cookie Consent
   ========================================================= */

/* ---------------------------------------------------------
   Overlay
   --------------------------------------------------------- */

.csb-cookie-overlay[hidden],
.csb-cookie-modal[hidden] {
  display: none !important;
}

.csb-cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  box-sizing: border-box;
  padding: 20px;

  background: rgba(20, 24, 29, 0.45);

  animation: csb-cookie-fade-in 0.25s ease;
}

/* ---------------------------------------------------------
   Main consent card
   --------------------------------------------------------- */

.csb-cookie-card {
  position: relative;

  width: 100%;
  max-width: 540px;

  box-sizing: border-box;

  background: #ffffff;
  color: #252a30;

  border: 1px solid #e1e5e8;
  border-radius: 12px;

  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.20),
    0 5px 18px rgba(0, 0, 0, 0.08);

  overflow: hidden;
}

/* ---------------------------------------------------------
   Content
   --------------------------------------------------------- */

.csb-cookie-content {
  padding: 32px 32px 0;
}

/* ---------------------------------------------------------
   Heading
   --------------------------------------------------------- */

.csb-cookie-card h2 {
  margin: 0 0 12px !important;
  padding: 0 !important;

  color: #252a30 !important;

  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

/* ---------------------------------------------------------
   Description
   --------------------------------------------------------- */

.csb-cookie-card p {
  margin: 0 0 14px !important;
  padding: 0 !important;

  color: #626970 !important;

  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
}

/* ---------------------------------------------------------
   Cookie policy
   --------------------------------------------------------- */

.csb-cookie-policy {
  display: inline-block;

  color: #4c6578 !important;

  font-size: 14px;
  font-weight: 500;

  text-decoration: underline;
  text-decoration-color: #c5cbd0;
  text-underline-offset: 3px;
}

.csb-cookie-policy:hover,
.csb-cookie-policy:focus {
  color: #263b4a !important;
  text-decoration-color: #263b4a;
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

.csb-cookie-buttons {
  display: flex;
  gap: 9px;

  box-sizing: border-box;

  padding: 26px 32px 32px;
}

.csb-cookie-button {
  flex: 1 1 0;

  min-height: 44px;

  box-sizing: border-box;
  padding: 10px 16px;

  border: 1px solid #d4d9dd !important;
  border-radius: 6px !important;

  background: #ffffff !important;
  color: #3f474e !important;

  font-family: inherit;
  font-size: 14px;
  font-weight: 600;

  line-height: 1.2;
  text-align: center;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.csb-cookie-button:hover {
  background: #f5f6f7 !important;
  border-color: #b9c0c5 !important;
}

.csb-cookie-button:active {
  background: #eceff1 !important;
}

/* ---------------------------------------------------------
   Accept button
   --------------------------------------------------------- */

.csb-cookie-button.csb-accept {
  border-color: #445b6a !important;
  background: #445b6a !important;
  color: #ffffff !important;
}

.csb-cookie-button.csb-accept:hover {
  border-color: #354b59 !important;
  background: #354b59 !important;
}

/* ---------------------------------------------------------
   Keyboard focus
   --------------------------------------------------------- */

.csb-cookie-button:focus-visible,
.csb-cookie-policy:focus-visible {
  outline: 3px solid rgba(68, 91, 106, 0.3);
  outline-offset: 3px;
}

/* ---------------------------------------------------------
   Animation
   --------------------------------------------------------- */

@keyframes csb-cookie-fade-in {

  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }

}

/* =========================================================
   Cookie Preferences Modal
   ========================================================= */

.csb-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;

  display: flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;
  padding: 20px;

  background: rgba(20, 24, 29, 0.48);
}

/* ---------------------------------------------------------
   Preferences card
   --------------------------------------------------------- */

.csb-cookie-modal-inner {
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 40px);

  box-sizing: border-box;
  padding: 32px;

  overflow-y: auto;

  background: #ffffff;
  color: #252a30;

  border: 1px solid #e1e5e8;
  border-radius: 12px;

  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.20),
    0 5px 18px rgba(0, 0, 0, 0.08);
}

.csb-cookie-modal-inner h2 {
  margin: 0 0 10px !important;

  color: #252a30 !important;

  font-size: 23px;
  font-weight: 600;
}

.csb-cookie-modal-inner > p {
  margin: 0 0 24px !important;

  color: #626970 !important;

  font-size: 14px;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   Cookie options
   --------------------------------------------------------- */

.csb-cookie-option {
  margin-bottom: 12px;
  padding: 16px;

  background: #f7f8f9;

  border: 1px solid #e3e6e8;
  border-radius: 7px;
}

.csb-cookie-option label {
  display: flex;
  align-items: center;
  gap: 10px;

  margin: 0;

  color: #30363b;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;
}

.csb-cookie-option input[type="checkbox"] {
  width: 17px;
  height: 17px;

  margin: 0;
}

.csb-cookie-option small {
  display: block;

  margin-top: 7px;
  margin-left: 27px;

  color: #737a80;

  font-size: 13px;
  line-height: 1.5;
}

/* ---------------------------------------------------------
   Save button
   --------------------------------------------------------- */

.csb-cookie-modal-buttons {
  margin-top: 24px;
}

.csb-cookie-save {
  width: 100%;
  min-height: 46px;

  padding: 11px 20px;

  border: 1px solid #445b6a;
  border-radius: 6px;

  background: #445b6a;
  color: #ffffff;

  font-family: inherit;
  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
}

.csb-cookie-save:hover {
  background: #354b59;
  border-color: #354b59;
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 600px) {

  .csb-cookie-overlay,
  .csb-cookie-modal {
    padding: 15px;
  }

  .csb-cookie-card {
    max-width: none;
    border-radius: 10px;
  }

  .csb-cookie-content {
    padding: 26px 24px 0;
  }

  .csb-cookie-card h2 {
    font-size: 21px;
  }

  .csb-cookie-card p {
    font-size: 14px;
  }

  .csb-cookie-buttons {
    flex-direction: column;
    padding: 20px 24px 24px;
  }

  .csb-cookie-button {
    width: 100%;
    flex: none;
  }

  .csb-cookie-modal-inner {
    max-height: calc(100vh - 30px);
    padding: 24px;
    border-radius: 10px;
  }

}

/* =========================================================
   Cookie Preferences Modal
   ========================================================= */

.csb-cookie-modal[hidden] {
  display: none !important;
}

.csb-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;

  display: flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;
  padding: 20px;

  background: rgba(20, 24, 29, 0.48);
}

/* ---------------------------------------------------------
   Preferences card
   --------------------------------------------------------- */

.csb-cookie-modal-inner {
  position: relative;

  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);

  box-sizing: border-box;

  padding: 32px;

  overflow-y: auto;

  background: #ffffff !important;
  color: #252a30;

  border: 1px solid #e1e5e8;
  border-radius: 12px;

  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.20),
    0 5px 18px rgba(0, 0, 0, 0.08);

  animation: csb-cookie-modal-in 0.2s ease;
}

/* ---------------------------------------------------------
   Close button
   --------------------------------------------------------- */

.csb-cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;

  width: 36px;
  height: 36px;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background: transparent !important;
  color: #70777d !important;

  font-size: 25px;
  font-weight: 300;

  line-height: 34px;
  text-align: center;

  cursor: pointer;
}

.csb-cookie-modal-close:hover {
  background: #f1f3f4 !important;
  color: #252a30 !important;
}

.csb-cookie-modal-close:focus-visible {
  outline: 3px solid rgba(68, 91, 106, 0.25);
  outline-offset: 2px;
}

/* ---------------------------------------------------------
   Heading
   --------------------------------------------------------- */

.csb-cookie-modal-inner h2 {
  margin: 0 45px 10px 0 !important;
  padding: 0 !important;

  color: #252a30 !important;

  font-size: 23px;
  font-weight: 600;
  line-height: 1.3;
}

/* ---------------------------------------------------------
   Introduction
   --------------------------------------------------------- */

.csb-cookie-modal-intro {
  margin: 0 0 24px !important;
  padding: 0 !important;

  color: #687078 !important;

  font-size: 14px;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   Cookie option
   --------------------------------------------------------- */

.csb-cookie-option {
  margin-bottom: 10px;
  padding: 16px;

  background: #f7f8f9 !important;

  border: 1px solid #e3e6e8;
  border-radius: 7px;
}

.csb-cookie-option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
}

.csb-cookie-option-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.csb-cookie-option-title strong {
  color: #30363b !important;

  font-size: 15px;
  font-weight: 600;
}

.csb-cookie-option small {
  display: block;

  margin-top: 8px;

  color: #747b81 !important;

  font-size: 13px;
  line-height: 1.5;
}

/* ---------------------------------------------------------
   Always on label
   --------------------------------------------------------- */

.csb-cookie-always-on {
  display: inline-block;

  padding: 3px 7px;

  border-radius: 4px;

  background: #e4e9ec;

  color: #5c6870;

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------
   Toggle
   --------------------------------------------------------- */

.csb-cookie-toggle {
  position: relative;

  display: block;

  width: 44px;
  height: 24px;

  flex: 0 0 44px;

  margin: 0;

  cursor: pointer;
}

.csb-cookie-toggle input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
}

.csb-cookie-toggle-slider {
  position: absolute;
  inset: 0;

  border-radius: 24px;

  background: #cdd2d6;

  transition: background 0.2s ease;
}

.csb-cookie-toggle-slider::after {
  content: "";

  position: absolute;

  top: 3px;
  left: 3px;

  width: 18px;
  height: 18px;

  border-radius: 50%;

  background: #ffffff;

  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);

  transition: transform 0.2s ease;
}

.csb-cookie-toggle input:checked + .csb-cookie-toggle-slider {
  background: #526876;
}

.csb-cookie-toggle input:checked + .csb-cookie-toggle-slider::after {
  transform: translateX(20px);
}

.csb-cookie-toggle input:focus-visible + .csb-cookie-toggle-slider {
  outline: 3px solid rgba(68, 91, 106, 0.25);
  outline-offset: 2px;
}

/* Essential toggle is always on */

.csb-cookie-option-essential .csb-cookie-toggle-slider {
  background: #526876;
}

.csb-cookie-option-essential .csb-cookie-toggle-slider::after {
  transform: translateX(20px);
}

/* ---------------------------------------------------------
   Save button
   --------------------------------------------------------- */

.csb-cookie-modal-buttons {
  margin-top: 22px;
}

.csb-cookie-save {
  width: 100%;
  min-height: 46px;

  padding: 11px 20px;

  border: 1px solid #445b6a !important;
  border-radius: 6px !important;

  background: #445b6a !important;
  color: #ffffff !important;

  font-family: inherit;
  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.csb-cookie-save:hover {
  border-color: #354b59 !important;
  background: #354b59 !important;
}

.csb-cookie-save:focus-visible {
  outline: 3px solid rgba(68, 91, 106, 0.3);
  outline-offset: 3px;
}

/* ---------------------------------------------------------
   Animation
   --------------------------------------------------------- */

@keyframes csb-cookie-modal-in {

  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }

}

/* ---------------------------------------------------------
   Prevent page scrolling while modal is open
   --------------------------------------------------------- */

body.csb-cookie-modal-open {
  overflow: hidden;
}

/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 600px) {

  .csb-cookie-modal {
    padding: 15px;
  }

  .csb-cookie-modal-inner {
    max-height: calc(100vh - 30px);

    padding: 25px 20px 20px;

    border-radius: 10px;
  }

  .csb-cookie-modal-inner h2 {
    font-size: 21px;
  }

  .csb-cookie-option-header {
    gap: 12px;
  }

  .csb-cookie-option-title {
    display: block;
  }

  .csb-cookie-always-on {
    margin-top: 5px;
  }

}

/* =========================================================
   Permanent Cookie Settings Button
   ========================================================= */

.csb-cookie-settings-button {
  position: fixed;
  left: 18px;
  bottom: 18px;

  z-index: 999990;

  width: 44px;
  height: 44px;

  padding: 0;

  border: 1px solid #d8dde1 !important;
  border-radius: 50% !important;

  background: #ffffff !important;
  color: #526876 !important;

  box-shadow:
    0 3px 12px rgba(0, 0, 0, 0.14),
    0 1px 3px rgba(0, 0, 0, 0.08);

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.csb-cookie-settings-button:hover {
  transform: translateY(-2px);

  background: #f8f9fa !important;

  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.16),
    0 2px 5px rgba(0, 0, 0, 0.08);
}

.csb-cookie-settings-button:focus-visible {
  outline: 3px solid rgba(68, 91, 106, 0.3);
  outline-offset: 3px;
}


/* ---------------------------------------------------------
   Cookie icon
   --------------------------------------------------------- */

.csb-cookie-icon {
  position: relative;

  display: block;

  width: 21px;
  height: 21px;

  box-sizing: border-box;

  border: 2px solid #526876;
  border-radius: 50%;

  background: #ffffff;
}


/*
 * Cookie bite.
 */
.csb-cookie-bite {
  position: absolute;

  top: -3px;
  right: -3px;

  width: 10px;
  height: 10px;

  border-radius: 50%;

  background: #ffffff;
}


/*
 * Cookie chips/details.
 */
.csb-cookie-icon::before,
.csb-cookie-icon::after {
  content: "";

  position: absolute;

  width: 3px;
  height: 3px;

  border-radius: 50%;

  background: #526876;
}

.csb-cookie-icon::before {
  left: 5px;
  top: 5px;
}

.csb-cookie-icon::after {
  left: 10px;
  top: 12px;
}


/* ---------------------------------------------------------
   Hide the permanent button while initial banner is open
   --------------------------------------------------------- */

.csb-cookie-overlay:not([hidden]) ~ .csb-cookie-settings-button {
  display: none;
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 600px) {

  .csb-cookie-settings-button {
    left: 14px;
    bottom: 14px;

    width: 42px;
    height: 42px;
  }

}

/* =========================================================
   Cookie Policy - Manage Preferences
   ========================================================= */

.csb-cookie-policy-settings {
  margin-top: 40px;
  margin-bottom: 20px;
  padding: 24px 28px;

  border: 1px solid #e3e7ea;
  border-radius: 8px;

  background: #f8f9fa;

  text-align: center;
}

.csb-cookie-policy-settings strong {
  display: block;

  margin-bottom: 8px;

  font-size: 18px;
  font-weight: 600;

  color: #344955;
}

.csb-cookie-policy-settings p {
  margin: 0 0 16px;

  color: #66757d;
  font-size: 14px;
}

.csb-cookie-policy-settings-button {
  display: inline-block;

  padding: 10px 20px;

  border: 0;
  border-radius: 5px;

  background: #526876 !important;
  color: #ffffff !important;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.csb-cookie-policy-settings-button:hover {
  background: #3f535f !important;

  transform: translateY(-1px);
}

.csb-cookie-policy-settings-button:focus-visible {
  outline: 3px solid rgba(82, 104, 118, 0.25);
  outline-offset: 3px;
}