/* TEMPMY_BLUE_CYAN_COOKIE_FINAL_V1 */
.tm-cookie {
  --color1: #2563EB !important;
  --color1-rgb: 37, 99, 235 !important;
}

.tm-cookie a,
.tm-cookie a:visited,
.tm-cookie__msg a,
.tm-cookie__text a {
  color: #2563EB !important;
}

.tm-cookie__btn--primary,
.tm-cookie button[data-tm-cookie="accept"],
.tm-cookie button[data-tm-cookie="save"] {
  background: linear-gradient(135deg, #2563EB, #06B6D4) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.tm-cookie__btn--outline,
.tm-cookie button[data-tm-cookie="reject"] {
  border-color: #DBEAFE !important;
  color: #0F172A !important;
  background: #fff !important;
}



/* TEMPMY_COOKIE_DESIGN_SYSTEM_V1 */
.tm-cookie{
  --tm-cookie-accent:#2563EB;
  --tm-cookie-accent-rgb:37,99,235;
}

.tm-cookie__inner{
  border-radius:var(--tm-ds-radius-lg,24px) !important;
  border:1px solid rgba(37,99,235,.16) !important;
  background:rgba(255,255,255,.97) !important;
  box-shadow:0 18px 50px rgba(15,23,42,.16) !important;
}

.tm-cookie__title{
  color:var(--tm-ds-text,#0F172A) !important;
  font-weight: 800 !important;
}

.tm-cookie__msg{color:var(--tm-ds-muted,#64748B) !important;}
.tm-cookie__btn{border-radius:var(--tm-ds-pill,999px) !important;font-weight: 800 !important;}

.tm-cookie__btn--primary,
.tm-cookie button[data-tm-cookie="accept"],
.tm-cookie button[data-tm-cookie="save"]{
  background:var(--tm-ds-gradient,linear-gradient(135deg,#2563EB,#06B6D4)) !important;
  color:#fff !important;
  box-shadow:0 12px 26px rgba(37,99,235,.20) !important;
}

@media (max-width:767.98px) {
  .tm-cookie {
    left: 10px !important;
    right: 10px !important;
    bottom: calc(var(--tm-fixed-nav-bottom) + var(--tm-fixed-nav-height) + var(--tm-fixed-nav-gap) + env(safe-area-inset-bottom)) !important;
    z-index: 1038 !important;
    width: auto;
    max-width: none;
    padding: 0;
  }

  .tm-cookie__inner {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px !important;
    min-height: var(--tm-cookie-compact-height) !important;
    max-height: calc(100dvh - var(--tm-fixed-nav-reserve) - env(safe-area-inset-bottom)) !important;
    overflow-y: auto;
    padding: 8px !important;
    border-radius: 16px !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
  }

  .tm-cookie__text {
    display: block !important;
  }

  .tm-cookie__title {
    display: none !important;
  }

  .tm-cookie__msg {
    margin: 0;
    color: #64748B !important;
    font-size: 12px !important;
    line-height: 1.35;
  }

  .tm-cookie__msg a {
    display: none !important;
  }

  .tm-cookie__actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px !important;
    width: 100%;
  }

  .tm-cookie__btn {
    width: 100%;
    min-height: 36px !important;
    padding: 6px 5px;
    border-radius: 10px;
    font-size: 10px !important;
    font-weight: 850;
    white-space: nowrap;
  }
}

/* TEMPMY_HOMEPAGE_COOKIE_FIXED_V1 — slot behaviour removed; cookie stays
   as a fixed bottom bar on all pages including the homepage. */
@media (max-width:767.98px){
  body.tm-saas.tm-mode-home .tm-cookie{
    position:fixed !important;
    bottom:calc(var(--tm-fixed-nav-bottom) + var(--tm-fixed-nav-height) + var(--tm-fixed-nav-gap) + env(safe-area-inset-bottom)) !important;
    left:10px !important;
    right:10px !important;
    top:auto !important;
    width:auto !important;
    max-width:none !important;
    padding:0 !important;
    z-index:1038 !important;
    border-radius:0 !important;
  }

  body.tm-saas.tm-mode-home .tm-cookie__inner{
    border-radius:16px !important;
    min-height:var(--tm-cookie-compact-height) !important;
    max-height:calc(100dvh - var(--tm-fixed-nav-reserve) - env(safe-area-inset-bottom)) !important;
  }
}

/* TEMPMY_FULL_VISUAL_REPAIR_20260626 */
.tm-cookie{
  z-index:1038 !important;
}

.tm-cookie__inner{
  color:#0f172a;
}

.tm-cookie__msg,
.tm-cookie__text{
  color:#475569 !important;
}

.tm-cookie__btn{
  min-height:40px !important;
}

@media (max-width:767.98px){
  .tm-cookie{
    left:12px !important;
    right:12px !important;
    bottom:calc(var(--tm-fixed-nav-bottom, 8px) + var(--tm-fixed-nav-height, 64px) + var(--tm-fixed-nav-gap, 10px) + env(safe-area-inset-bottom)) !important;
  }

  .tm-cookie__inner{
    padding:10px !important;
    gap:9px !important;
    border-radius:14px !important;
    max-height:calc(100dvh - var(--tm-fixed-nav-reserve, 92px) - 18px - env(safe-area-inset-bottom)) !important;
  }

  .tm-cookie__msg{
    font-size:12.5px !important;
    line-height:1.45 !important;
  }

  .tm-cookie__actions{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px !important;
  }

  .tm-cookie__btn{
    min-height:38px !important;
    padding:7px 6px !important;
    border-radius:10px !important;
    font-size:11px !important;
  }
}

@media (max-width:380px){
  .tm-cookie__actions{
    grid-template-columns:1fr;
  }

  .tm-cookie__btn{
    width:100%;
  }
}

/* TM UIUX HOTFIX COOKIE MOBILE START */
@media (max-width: 767.98px) {
    body.tm-home-page .tm-cookie-banner,
    body.tm-home .tm-cookie-banner,
    body.home .tm-cookie-banner,
    html.tm-home-page .tm-cookie-banner,
    html.tm-home .tm-cookie-banner,
    html.home .tm-cookie-banner {
        bottom: 0 !important;
    }
}
/* TM UIUX HOTFIX COOKIE MOBILE END */
