/*
 * Project-owned tweaks requested on top of the original site.
 * Loaded last so it wins the cascade.
 */

/* get-app: make the store badges fill their (equal-height) containers so
   Google Play and AppGallery match the App Store badge height. */
.benefits__block-right .get-app__button img,
.register-now__block-left .get-app__button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* calculator info icon nudged up by 1px to match the reference. */
img.calculator__info {
  margin-top: -1px;
}

/* Contact icons: the theme only sets the transition on :hover, so zooming back
   out snaps. Put the transition on the base state for smooth both ways. */
.contacts__image-wrapper img,
.contact_img {
  transition: transform 0.2s ease;
  transform-origin: center;
  backface-visibility: hidden;
}

/* ===== Cookie consent manager (our own replacement for Cookiebot) ===== */
.cc-btn {
  border: none;
  border-radius: 10px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.cc-btn--primary {
  background: #ff7a00;
  color: #fff;
}
.cc-btn--primary:hover {
  opacity: 0.9;
}
.cc-btn--ghost {
  background: #eef2f8;
  color: #1c2433;
}
.cc-btn--ghost:hover {
  background: #e2e8f2;
}

/* First-visit banner */
.cc-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 22px;
  width: calc(100% - 32px);
  max-width: 1120px;
  background: #fff;
  box-shadow: 0 6px 34px rgba(10, 30, 80, 0.2);
  padding: 18px 24px;
  border-radius: 16px;
}
.cc-banner__icon {
  flex: 0 0 auto;
  display: block;
}
.cc-banner__text {
  flex: 1 1 auto;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #2b2f38;
}
.cc-banner__text a {
  color: #0a6cff;
  font-weight: 600;
}
.cc-banner__actions {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
}

/* Settings dialog */
.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(10, 20, 45, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cc-dialog {
  background: #fff;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.cc-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #eef0f4;
  font-size: 18px;
}
.cc-dialog__close {
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
  color: #66708a;
  line-height: 1;
}
.cc-dialog__body {
  padding: 18px 22px;
  overflow-y: auto;
}
.cc-dialog__intro {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.55;
  color: #4a5160;
}
.cc-cats {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cc-cat {
  padding: 14px 0;
  border-top: 1px solid #eef0f4;
}
.cc-cat__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cc-cat__name {
  font-weight: 600;
  color: #1c2433;
}
.cc-cat__note {
  font-size: 12px;
  color: #2e9b57;
  font-weight: 600;
}
.cc-cat__desc {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #6b7280;
}
/* toggle switch */
.cc-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
}
.cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cc-switch__slider {
  position: absolute;
  inset: 0;
  background: #cbd2de;
  border-radius: 24px;
  transition: background 0.2s ease;
  cursor: pointer;
}
.cc-switch__slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.cc-switch input:checked + .cc-switch__slider {
  background: #ff7a00;
}
.cc-switch input:checked + .cc-switch__slider::before {
  transform: translateX(20px);
}
.cc-details-toggle {
  margin-top: 14px;
  border: none;
  background: none;
  color: #0a6cff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}
.cc-details {
  margin-top: 12px;
  font-size: 12px;
  color: #4a5160;
}
.cc-details strong {
  display: block;
  margin-top: 8px;
}
.cc-details__id {
  word-break: break-all;
  color: #6b7280;
}
.cc-dialog__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid #eef0f4;
}
/* floating re-open button */
.cc-fab {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 99998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 4px 16px rgba(10, 30, 80, 0.22);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.2s ease;
}
.cc-fab:hover {
  transform: scale(1.06);
}
.cc-fab img {
  width: 25px !important;
  height: 25px !important;
  max-width: none !important;
  display: block;
}
@media (max-width: 768px) {
  .cc-banner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 18px;
  }
  .cc-banner__actions {
    flex-wrap: wrap;
    justify-content: center;
  }
}
