/**
 * Klaro Cookie Manager - xtheme override styles
 * Customized to match xtheme visual language
 * Uses CSS variables from xtheme for colors and typography
 */

/* ============================================================================
   BANNER (notice at bottom)
   ========================================================================== */

.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) {
  background: var(--color-background);
  color: var(--color-text);
  box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.12);
  border: 1px solid #fff;
  z-index: 999;
  position: fixed;
  width: 100%;
  bottom: 0;
  right: 0;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) {
    position: fixed;
    right: 130px;
    left: auto;
    bottom: 20px;
    top: auto;
    width: auto;
    max-width: 420px;
    border-radius: 0;
    box-shadow: 0 17px 43px 0 rgba(46, 89, 121, 0.1);
  }
}

@media (max-width: 1023px) {
  .klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) {
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
  }
}

.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice).cn-embedded {
  position: relative;
  height: inherit;
  width: inherit;
  left: inherit;
  right: inherit;
  bottom: inherit;
  z-index: 0;
  box-shadow: none;
}

/* Banner body and text */
.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-body {
  margin: 0;
  padding: var(--dialog-padding);
  padding-top: calc(var(--dialog-padding) - 12px);
  color: var(--color-text);
  font-family: var(--page-font-family);
  font-size: var(--page-font-size);
  line-height: 1.6;
}

.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-body h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  margin: calc((var(--dialog-padding) - 12px) * -1) calc(var(--dialog-padding) * -1) 24px;
  padding: 10px calc(var(--dialog-padding) + 30px);
  background: var(--color-background-gray);
  text-align: center;
  font-size: var(--headline-size-3);
  font-weight: bold;
  line-height: 1.3;
  color: var(--color-text-black);
  white-space: nowrap;
}

.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-body p {
  color: var(--color-text);
  font-size: var(--page-font-size);
  line-height: 1.6;
  margin: 0 0 12px;
}

.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-body p:last-child {
  margin-bottom: 0;
}

.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-body p a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-body p a:hover {
  color: var(--color-green-dark);
  text-decoration: underline;
}

.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-body p a:focus {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-body .klaro-phone-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  margin: 4px auto 14px;
  color: var(--color-text-black);
  text-decoration: none;
  font-size: 23px;
  font-weight: bold;
  white-space: nowrap;
}

.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-body .klaro-phone-link::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 17px;
  background: url(../img/phone-icon.svg) center/contain no-repeat;
  vertical-align: middle;
}

.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-body .klaro-phone-link img {
  display: none;
}

.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-body .klaro-phone-link:hover {
  color: var(--color-blue);
}

.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-ok {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

/* Banner buttons */
.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 0;
}

.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-buttons button.cm-btn {
  font-family: var(--page-font-family);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 5px 0;
  padding: 10px 30px;
  font-size: var(--page-font-size-small);
  font-weight: normal;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  border-radius: var(--border-radius);
  text-transform: uppercase;
  cursor: pointer;
  transition-property: background-color, border-color, box-shadow, color;
  transition-duration: 0.1s;
  outline: none;
  vertical-align: middle;
  --button-bg-color-rgb: var(--color-blue-rgb);
  --button-border-color-rgb: var(--button-bg-color-rgb);
  background-color: rgb(var(--button-bg-color-rgb));
  border: 1px solid rgb(var(--button-border-color-rgb));
  box-shadow: 0 7px 21px 0 rgba(var(--button-bg-color-rgb), 0.23);
  color: #fff;
}

/* Accept button in banner */
.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cm-btn.cm-btn-success,
.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cm-btn.cm-btn-info {
  --button-bg-color-rgb: var(--color-blue-rgb);
  --button-border-color-rgb: var(--button-bg-color-rgb);
  color: #fff;
}

.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cm-btn.cm-btn-success:hover,
.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cm-btn.cm-btn-info:hover {
  --button-bg-color-rgb: var(--color-green-rgb);
  color: #fff;
}

.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cm-btn.cm-btn-success:active,
.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cm-btn.cm-btn-info:active {
  --button-bg-color-rgb: var(--color-green-dark-rgb);
  color: #fff;
}

.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cm-btn.cm-btn-success:focus,
.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cm-btn.cm-btn-info:focus {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

/* Decline button in banner */
.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cm-btn.cm-btn-decline,
.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cm-btn.cm-btn-danger {
  background-color: transparent;
  box-shadow: none;
  color: var(--color-link);
  border: 1px solid var(--color-link);
}

.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cm-btn.cm-btn-decline:hover,
.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cm-btn.cm-btn-danger:hover {
  background-color: rgb(var(--color-green-rgb));
  border-color: rgb(var(--color-green-rgb));
  color: #fff;
}

.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cm-btn.cm-btn-decline:active,
.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cm-btn.cm-btn-danger:active {
  background-color: rgb(var(--color-green-dark-rgb));
  border-color: rgb(var(--color-green-dark-rgb));
  color: #fff;
}

.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cm-btn.cm-btn-decline:focus,
.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cm-btn.cm-btn-danger:focus {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

/* Learn more link */
.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-learn-more {
  color: var(--color-blue);
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
}

.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-learn-more:hover {
  color: var(--color-green-dark);
  text-decoration: underline;
}

.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-learn-more:focus {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) {
    max-height: none;
    overflow: visible;
  }

  .klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-body {
    padding: var(--page-padding);
    padding-bottom: calc(var(--page-padding) + env(safe-area-inset-bottom, 0px));
    font-size: 16px;
    line-height: 1.45;
  }

  .klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-body h2 {
    min-height: 52px;
    margin: calc(var(--page-padding) * -1) calc(var(--page-padding) * -1) 12px;
    padding: 8px calc(var(--page-padding) + 18px);
    white-space: normal;
  }

  .klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-body .klaro-phone-link {
    margin-bottom: 10px;
    font-size: 17px;
  }

  .klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-body p {
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 10px;
  }

  .klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-ok {
    margin-top: 12px;
    gap: 10px;
  }

  .klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-buttons {
    width: 100%;
  }

  .klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-buttons button.cm-btn {
    min-height: 42px;
    flex: 1 1 calc(50% - 5px);
    margin: 0;
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ============================================================================
   MODAL (full-screen dialog)
   ========================================================================== */

.klaro.klaro-theme-xtheme .cookie-modal {
  width: 100%;
  height: 100%;
  position: fixed;
  overflow: hidden;
  left: 0;
  top: 0;
  z-index: 1000;
}

.klaro.klaro-theme-xtheme .cookie-modal.cm-embedded {
  position: relative;
  height: inherit;
  width: inherit;
  left: inherit;
  right: inherit;
  z-index: 0;
}

/* Overlay backdrop */
.klaro.klaro-theme-xtheme .cookie-modal .cm-bg {
  background: rgba(0, 0, 0, 0.5);
  height: 100%;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

/* Modal container */
.klaro.klaro-theme-xtheme .cookie-modal .cm-modal.cm-klaro {
  background-color: #fff;
  color: var(--color-text);
  z-index: 1001;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  width: 100%;
  max-height: 98%;
  top: 50%;
  transform: translateY(-50%);
  position: fixed;
  overflow: auto;
  border-radius: 6px;
  border: 1px solid var(--color-background-gray2);
}

@media (min-width: 660px) {
  .klaro.klaro-theme-xtheme .cookie-modal .cm-modal.cm-klaro {
    border-radius: 6px;
    position: relative;
    margin: 0 auto;
    max-width: 640px;
    height: auto;
    width: auto;
    top: auto;
    transform: none;
  }
}

/* Close button */
.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .hide {
  border-style: none;
  background: none;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1;
  color: var(--color-text);
  font-size: 24px;
  line-height: 1;
  padding: 4px;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .hide:hover {
  color: var(--color-text-black);
  background-color: var(--color-background-gray);
}

.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .hide:focus {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .hide svg {
  stroke: var(--color-text);
}

.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .hide:hover svg {
  stroke: var(--color-text-black);
}

/* Header */
.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-header {
  border-bottom: 1px solid var(--color-background-gray2);
  padding: 20px;
  padding-right: 44px;
  background-color: #fff;
}

.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-header h1 {
  margin: 0;
  font-size: var(--page-font-size-big);
  font-weight: 600;
  color: var(--color-text-black);
  font-family: var(--page-font-family);
  line-height: 1.3;
}

.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-header h1.title {
  padding-right: 20px;
}

/* Body */
.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-body {
  padding: 20px;
  background-color: #fff;
  color: var(--color-text);
  font-family: var(--page-font-family);
  font-size: var(--page-font-size);
  line-height: 1.6;
}

.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-body p {
  color: var(--color-text);
  margin: 0 0 12px 0;
  font-size: var(--page-font-size);
  line-height: 1.6;
}

.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-body p:last-child {
  margin-bottom: 0;
}

.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-body a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-body a:hover {
  color: var(--color-green-dark);
  text-decoration: underline;
}

.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-body a:focus {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

/* Services list */
.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-body ul.cm-services,
.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-body ul.cm-purposes {
  padding: 0;
  margin: 12px 0;
  list-style: none;
}

.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-body ul.cm-services li.cm-service,
.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-body ul.cm-services li.cm-purpose,
.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-body ul.cm-purposes li.cm-service,
.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-body ul.cm-purposes li.cm-purpose {
  position: relative;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-background-gray2);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-body ul.cm-services li.cm-service:last-child,
.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-body ul.cm-services li.cm-purpose:last-child,
.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-body ul.cm-purposes li.cm-service:last-child,
.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-body ul.cm-purposes li.cm-purpose:last-child {
  border-bottom: none;
}

.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-body ul.cm-services li.cm-service span.cm-list-title,
.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-body ul.cm-services li.cm-purpose span.cm-list-title,
.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-body ul.cm-purposes li.cm-service span.cm-list-title,
.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-body ul.cm-purposes li.cm-purpose span.cm-list-title {
  font-weight: 600;
  color: var(--color-text-black);
  font-size: var(--page-font-size);
}

.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-body ul.cm-services li.cm-service p,
.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-body ul.cm-services li.cm-purpose p,
.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-body ul.cm-purposes li.cm-service p,
.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-body ul.cm-purposes li.cm-purpose p {
  color: var(--color-text);
  font-size: var(--page-font-size);
  margin-top: 0;
  margin-bottom: 4px;
}

/* Footer */
.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-footer {
  border-top: 1px solid var(--color-background-gray2);
  padding: 16px 20px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-footer-buttons {
  display: flex;
  flex-flow: row;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-footer .cm-powered-by {
  font-size: 12px;
  padding-top: 4px;
  text-align: right;
}

.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-footer .cm-powered-by a {
  color: var(--color-text-gray);
  text-decoration: none;
  font-size: 12px;
}

.klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-footer .cm-powered-by a:hover {
  color: var(--color-blue);
}

/* ============================================================================
   BUTTONS (all contexts)
   ========================================================================== */

/* Generic button styles */
.klaro.klaro-theme-xtheme .cm-btn {
  display: inline-block;
  padding: 8px 18px;
  font-size: var(--page-font-size-small);
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

.klaro.klaro-theme-xtheme .cm-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Primary buttons */
.klaro.klaro-theme-xtheme .cm-btn.cm-btn-success,
.klaro.klaro-theme-xtheme .cm-btn.cm-btn-info {
  background-color: var(--color-blue);
  color: #fff;
  border-color: var(--color-blue);
}

.klaro.klaro-theme-xtheme .cm-btn.cm-btn-success:hover,
.klaro.klaro-theme-xtheme .cm-btn.cm-btn-info:hover {
  background-color: var(--color-green);
  border-color: var(--color-green);
  color: #fff;
}

.klaro.klaro-theme-xtheme .cm-btn.cm-btn-success:focus,
.klaro.klaro-theme-xtheme .cm-btn.cm-btn-info:focus {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

/* Secondary buttons */
.klaro.klaro-theme-xtheme .cm-btn.cm-btn-decline,
.klaro.klaro-theme-xtheme .cm-btn.cm-btn-danger {
  background-color: #fff;
  color: var(--color-blue);
  border-color: var(--color-blue);
}

.klaro.klaro-theme-xtheme .cm-btn.cm-btn-decline:hover,
.klaro.klaro-theme-xtheme .cm-btn.cm-btn-danger:hover {
  background-color: var(--color-background-gray);
  border-color: var(--color-green-dark);
  color: var(--color-green-dark);
}

.klaro.klaro-theme-xtheme .cm-btn.cm-btn-decline:focus,
.klaro.klaro-theme-xtheme .cm-btn.cm-btn-danger:focus {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

/* Close button */
.klaro.klaro-theme-xtheme .cm-btn.cm-btn-close {
  background-color: var(--color-background-gray);
  color: var(--color-text);
  border-color: var(--color-background-gray);
}

.klaro.klaro-theme-xtheme .cm-btn.cm-btn-close:hover {
  background-color: var(--color-background-gray2);
  border-color: var(--color-background-gray2);
  color: var(--color-text-black);
}

/* ============================================================================
   TOGGLES/SLIDERS
   ========================================================================== */

.klaro.klaro-theme-xtheme .cm-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  background-color: var(--color-background-gray2);
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.klaro.klaro-theme-xtheme .cm-toggle {
  background-color: var(--color-background-gray2);
  border-radius: 12px;
}

.klaro.klaro-theme-xtheme .cm-toggle.cm-toggle--on,
.klaro.klaro-theme-xtheme .cm-list-input:checked + .cm-list-label .slider {
  background-color: var(--color-green) !important;
}

.klaro.klaro-theme-xtheme .cm-toggle.cm-toggle--required {
  opacity: 0.6;
}

/* ============================================================================
   CONTEXT NOTICE (inline consent)
   ========================================================================== */

.klaro.klaro-theme-xtheme .context-notice {
  border-radius: 4px;
  border: 1px solid var(--color-background-gray2);
  background-color: #fff;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: var(--page-font-family);
  font-size: var(--page-font-size);
}

.klaro.klaro-theme-xtheme .context-notice p {
  color: var(--color-text);
  font-size: var(--page-font-size);
  line-height: 1.6;
  margin: 0 0 12px 0;
}

.klaro.klaro-theme-xtheme .context-notice p:last-child {
  margin-bottom: 0;
}

.klaro.klaro-theme-xtheme .context-notice a {
  color: var(--color-blue);
  text-decoration: none;
}

.klaro.klaro-theme-xtheme .context-notice a:hover {
  color: var(--color-green-dark);
  text-decoration: underline;
}

.klaro.klaro-theme-xtheme .context-notice a:focus {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

/* ============================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 640px) {
  .klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-buttons {
    flex-direction: column;
  }

  .klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-buttons button.cm-btn {
    width: 100%;
  }

  .klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-header {
    padding: 16px;
    padding-right: 40px;
  }

  .klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-body {
    padding: 16px;
  }

  .klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-footer {
    padding: 12px 16px;
  }

  .klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-footer-buttons {
    flex-direction: column;
  }

  .klaro.klaro-theme-xtheme .cookie-modal .cm-modal .cm-footer-buttons .cm-btn {
    width: 100%;
  }
}

/* ============================================================================
   FINAL OVERRIDE: DECLINE BUTTON IN BANNER
   Keeps "Отказать" in "Подробнее" style even if generic rules load later.
   ========================================================================== */

.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-buttons button.cm-btn.cn-decline,
.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-buttons button.cm-btn.cm-btn-danger {
  background-color: transparent !important;
  box-shadow: none !important;
  color: var(--color-link) !important;
  border: 1px solid rgb(var(--color-blue-rgb)) !important;
}

.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-buttons button.cm-btn.cn-decline:hover,
.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-buttons button.cm-btn.cm-btn-danger:hover {
  background-color: rgb(var(--color-green-rgb)) !important;
  border-color: rgb(var(--color-green-rgb)) !important;
  color: #fff !important;
}

.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-buttons button.cm-btn.cn-decline:active,
.klaro.klaro-theme-xtheme .cookie-notice:not(.cookie-modal-notice) .cn-buttons button.cm-btn.cm-btn-danger:active {
  background-color: rgb(var(--color-green-dark-rgb)) !important;
  border-color: rgb(var(--color-green-dark-rgb)) !important;
  color: #fff !important;
}
