/*
 * Palette repairs that intentionally load after all legacy theme layers.
 * These two surfaces are part of the fixed Avantajkodu purple identity and
 * therefore do not inherit stale per-install colour options.
 */

body .kmm-categories-grid > .kmm-category-directory-card,
body .kmm-categories-grid > .kmm-category-directory-card:link,
body .kmm-categories-grid > .kmm-category-directory-card:visited {
  background-color: #741fa2 !important;
  background-image: linear-gradient(135deg, #741fa2, #8641aa) !important;
  border-color: rgba(255, 255, 255, .24) !important;
  box-shadow: 0 12px 30px rgba(116, 31, 162, .22) !important;
}

body .kmm-categories-grid > .kmm-category-directory-card:hover {
  background-color: #8641aa !important;
  background-image: linear-gradient(135deg, #8641aa, #741fa2) !important;
  border-color: #fff !important;
}

body .kmm-category-directory-card .kmm-category-directory-card__initial,
body .kmm-category-directory-card .kmm-category-directory-card__body small,
body .kmm-category-directory-card .kmm-category-directory-card__arrow {
  background: rgba(255, 255, 255, .16) !important;
  border-color: rgba(255, 255, 255, .22) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body .kmm-category-directory-card .kmm-category-directory-card__body strong {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body .kmm-auth-layout .kmm-auth-discovery__coupons > .kmm-auth-mini-coupon,
body .kmm-auth-layout .kmm-auth-discovery__coupons > .kmm-auth-mini-coupon:link,
body .kmm-auth-layout .kmm-auth-discovery__coupons > .kmm-auth-mini-coupon:visited {
  background-color: #741fa2 !important;
  background-image: linear-gradient(135deg, #741fa2, #8641aa) !important;
  border-color: rgba(255, 255, 255, .24) !important;
  box-shadow: 0 8px 22px rgba(116, 31, 162, .22) !important;
}

body .kmm-auth-layout .kmm-auth-discovery__coupons > .kmm-auth-mini-coupon:hover {
  background-color: #8641aa !important;
  background-image: linear-gradient(135deg, #8641aa, #741fa2) !important;
  border-color: #fff !important;
}

body .kmm-auth-mini-coupon .kmm-auth-mini-coupon__logo {
  background: #fff !important;
  border-color: rgba(255, 255, 255, .72) !important;
}

body .kmm-auth-mini-coupon .kmm-auth-mini-coupon__body b,
body .kmm-auth-mini-coupon .kmm-auth-mini-coupon__body strong,
body .kmm-auth-mini-coupon .kmm-auth-mini-coupon__body small {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body .kmm-auth-mini-coupon .kmm-auth-mini-coupon__top em {
  background: rgba(255, 255, 255, .18) !important;
  border: 1px solid rgba(255, 255, 255, .24) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* 2.14.0 — keep category and account surfaces inside one purple system. */
body .kmm-categories-hero,
body .kmm-auth-page-shell--coupons .kmm-auth-discovery,
body .kmm-auth-layout .kmm-auth-discovery {
  background-color: #741fa2 !important;
  background-image: linear-gradient(135deg, #741fa2, #8641aa) !important;
  border-color: rgba(116, 31, 162, .28) !important;
}

body .kmm-auth-discovery__heading h2,
body .kmm-auth-discovery__intro h2,
body .kmm-auth-discovery__intro p,
body .kmm-auth-discovery__heading {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body .kmm-auth-discovery__heading {
  border-bottom-color: rgba(255, 255, 255, .22) !important;
}

body .kmm-auth-ico,
body .kmm-field-ico {
  color: #741fa2 !important;
}

body .kmm-auth-submit,
body .kmm-auth-card .km-btn--accent,
body .kmm-auth-card .kmm-auth-link,
body .single-coupon .kmm-share-toggle,
body .single-coupon .kmm-share-toggle:hover,
body .single-coupon .kmm-share-toggle:focus-visible {
  background-color: #741fa2 !important;
  background-image: none !important;
  border-color: #741fa2 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body .kmm-auth-card .kmm-google-btn {
  background: #fff !important;
  border: 1px solid rgba(116, 31, 162, .32) !important;
  color: #4a1e5e !important;
  -webkit-text-fill-color: #4a1e5e !important;
}

body .kmm-auth-card .kmm-google-btn:hover {
  background: #f8f1fb !important;
  border-color: #741fa2 !important;
}

body :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(116, 31, 162, .34) !important;
  outline-offset: 2px !important;
}

/* Coupon archive/store/category tickets: remove unused vertical space. */
body:is(.post-type-archive-coupon,.tax-coupon_category,.tax-coupon_store) .kmm-rmn-offer,
body:is(.post-type-archive-coupon,.tax-coupon_category,.tax-coupon_store) .kmm-rmn-offer.kmm-rmn-offer--global {
  padding: 15px 20px 0 !important;
  gap: 0 18px !important;
}

body:is(.post-type-archive-coupon,.tax-coupon_category,.tax-coupon_store) .kmm-rmn-offer__saving {
  min-height: 78px !important;
}

body:is(.post-type-archive-coupon,.tax-coupon_category,.tax-coupon_store) .kmm-rmn-offer__saving strong {
  font-size: 30px !important;
}

body:is(.post-type-archive-coupon,.tax-coupon_category,.tax-coupon_store) .kmm-rmn-offer__saving span,
body:is(.post-type-archive-coupon,.tax-coupon_category,.tax-coupon_store) .kmm-rmn-offer__title {
  font-size: 17px !important;
}

body:is(.post-type-archive-coupon,.tax-coupon_category,.tax-coupon_store) :is(.kmm-rmn-code-btn,.kmm-rmn-deal-btn) {
  min-height: 48px !important;
  font-size: 15px !important;
}

body:is(.post-type-archive-coupon,.tax-coupon_category,.tax-coupon_store) .kmm-rmn-offer__more {
  margin-top: 7px !important;
  padding: 4px 0 7px !important;
}

body:is(.post-type-archive-coupon,.tax-coupon_category,.tax-coupon_store) .kmm-rmn-offer__more summary {
  min-height: 28px !important;
}

/* Related coupons become stacked action cards on narrow screens. */
@media (max-width: 680px) {
  body.single-coupon .km-related--in-main .kmm-table-wrap,
  body.single-coupon .km-related--in-main .kmm-table,
  body.single-coupon .km-related--in-main tbody {
    display: block !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  body.single-coupon .km-related--in-main thead {
    display: none !important;
  }

  body.single-coupon .km-related--in-main tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 9px 12px !important;
    margin-bottom: 10px !important;
    padding: 13px !important;
    border: 1px solid rgba(116, 31, 162, .16) !important;
    border-radius: 12px !important;
  }

  body.single-coupon .km-related--in-main td {
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body.single-coupon .km-related--in-main td:first-child {
    grid-column: 1 / -1 !important;
    font-weight: 800 !important;
  }

  body.single-coupon .km-related--in-main td:last-child .km-btn {
    width: auto !important;
    min-height: 40px !important;
  }

  body:is(.post-type-archive-coupon,.tax-coupon_category,.tax-coupon_store) .kmm-rmn-offer,
  body:is(.post-type-archive-coupon,.tax-coupon_category,.tax-coupon_store) .kmm-rmn-offer.kmm-rmn-offer--global {
    padding: 13px 12px 0 !important;
  }
}

/* 2.15.0 — modern, compact and personalised member overview. */
body .kmm-user-panel,
body .kmm-user-panel * {
  box-sizing: border-box;
}

body .kmm-user-panel .kmm-panel-layout {
  display: grid !important;
  grid-template-columns: 218px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: 100% !important;
}

body .kmm-user-panel .kmm-panel-content {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body .kmm-user-panel .kmm-up-sidebar {
  position: sticky !important;
  top: 82px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  min-width: 0 !important;
  padding: 13px !important;
  overflow: hidden !important;
  border: 1px solid #eadff0 !important;
  border-radius: 20px !important;
  background: #fff !important;
  background-image: none !important;
  box-shadow: 0 14px 36px rgba(55, 21, 73, .08) !important;
}

body .kmm-user-panel .kmm-up-sidebar__profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 5px 4px 12px;
  border-bottom: 1px solid #f0e7f4;
}

body .kmm-user-panel .kmm-up-sidebar__avatar {
  display: inline-grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #741fa2, #9d58be);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 7px 16px rgba(116, 31, 162, .2);
}

body .kmm-user-panel .kmm-up-sidebar__identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.25;
}

body .kmm-user-panel .kmm-up-sidebar__identity strong {
  overflow: hidden;
  color: #24142d !important;
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .kmm-user-panel .kmm-up-sidebar__identity small {
  margin-top: 3px;
  color: #7b6a84 !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body .kmm-user-panel .kmm-up-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

body .kmm-user-panel .kmm-up-sidebar .kmm-up-sidebar__nav > a,
body .kmm-user-panel .kmm-up-sidebar .kmm-up-sidebar__nav > a:nth-child(n) {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 9px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 40px !important;
  padding: 4px 7px !important;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #493b50 !important;
  -webkit-text-fill-color: #493b50 !important;
  font-size: 12px !important;
  font-weight: 760 !important;
  line-height: 1.2 !important;
  text-align: left !important;
  text-decoration: none !important;
  text-shadow: none !important;
  transform: none !important;
  filter: none !important;
}

body .kmm-user-panel .kmm-up-sidebar .kmm-up-sidebar__nav > a:hover {
  border-color: #eadbf1 !important;
  background: #faf6fc !important;
  color: #741fa2 !important;
  -webkit-text-fill-color: #741fa2 !important;
  transform: none !important;
  filter: none !important;
}

body .kmm-user-panel .kmm-up-sidebar .kmm-up-sidebar__nav > a.is-active {
  border-color: rgba(116, 31, 162, .13) !important;
  outline: 0 !important;
  background: #f3e8f7 !important;
  color: #741fa2 !important;
  -webkit-text-fill-color: #741fa2 !important;
  box-shadow: inset 3px 0 0 #741fa2 !important;
}

body .kmm-user-panel .kmm-up-sidebar__icon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #eee5f2;
  border-radius: 9px;
  background: #fff;
  color: #806d89 !important;
  -webkit-text-fill-color: #806d89 !important;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
}

body .kmm-user-panel .kmm-up-sidebar__nav > a.is-active .kmm-up-sidebar__icon,
body .kmm-user-panel .kmm-up-sidebar__nav > a:hover .kmm-up-sidebar__icon {
  border-color: rgba(116, 31, 162, .16);
  background: #741fa2;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body .kmm-user-panel .kmm-up-sidebar__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .kmm-user-panel .kmm-up-sidebar__count {
  display: inline-grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: #eee3f3;
  color: #741fa2 !important;
  -webkit-text-fill-color: #741fa2 !important;
  font-size: 10px;
  font-weight: 900;
}

body .kmm-user-panel .kmm-up-sidebar > .kmm-up-sidebar__home,
body .kmm-user-panel .kmm-up-sidebar > .kmm-up-sidebar__home:nth-child(n) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 34px !important;
  margin-top: 1px !important;
  padding: 5px 8px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #f8f5f9 !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #6e5d76 !important;
  -webkit-text-fill-color: #6e5d76 !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  text-decoration: none !important;
  text-shadow: none !important;
  transform: none !important;
}

body .kmm-user-panel .kmm-up-sidebar > .kmm-up-sidebar__home:hover {
  background: #f0e6f4 !important;
  color: #741fa2 !important;
  -webkit-text-fill-color: #741fa2 !important;
}

body .kmm-user-panel [data-kmm-panel-view="overview"].kmm-up-hero {
  position: relative !important;
  isolation: isolate;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 25px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, .2) !important;
  border-radius: 22px !important;
  background: radial-gradient(circle at 90% 0, rgba(255, 255, 255, .18), transparent 32%), linear-gradient(135deg, #5f147f, #741fa2 55%, #9652b8) !important;
  box-shadow: 0 17px 40px rgba(83, 24, 112, .18) !important;
}

body .kmm-user-panel [data-kmm-panel-view="overview"].kmm-up-hero::before {
  display: none !important;
}

body .kmm-user-panel [data-kmm-panel-view="overview"].kmm-up-hero::after {
  content: "" !important;
  position: absolute !important;
  z-index: -1 !important;
  top: -110px !important;
  right: -85px !important;
  bottom: auto !important;
  left: auto !important;
  width: 260px !important;
  height: 260px !important;
  border: 44px solid rgba(255, 255, 255, .07) !important;
  border-radius: 50% !important;
  background: transparent !important;
  animation: none !important;
  transform: none !important;
}

body .kmm-user-panel .kmm-up-hero__main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

body .kmm-user-panel .kmm-up-hero__left {
  display: flex !important;
  align-items: center !important;
  gap: 13px !important;
  min-width: 0;
}

body .kmm-user-panel [data-kmm-panel-view="overview"] .kmm-up-avatar {
  display: inline-grid !important;
  flex: 0 0 50px !important;
  width: 50px !important;
  height: 50px !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, .36) !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, .14) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 21px !important;
  box-shadow: none !important;
}

body .kmm-user-panel [data-kmm-panel-view="overview"] .kmm-up-kicker {
  display: block;
  margin-bottom: 4px;
  color: #eadcf1 !important;
  -webkit-text-fill-color: #eadcf1 !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  letter-spacing: .1em !important;
  text-shadow: none !important;
  text-transform: uppercase;
}

body .kmm-user-panel [data-kmm-panel-view="overview"] .kmm-up-title {
  margin: 0 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: clamp(22px, 3vw, 31px) !important;
  font-weight: 900 !important;
  letter-spacing: -.035em !important;
  line-height: 1.12 !important;
  text-shadow: none !important;
}

body .kmm-user-panel [data-kmm-panel-view="overview"] .kmm-up-intro {
  max-width: 610px;
  margin: 7px 0 0 !important;
  color: #f3eaf7 !important;
  -webkit-text-fill-color: #f3eaf7 !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
  text-shadow: none !important;
}

body .kmm-user-panel .kmm-up-hero__right {
  display: flex !important;
  width: auto !important;
  min-width: auto !important;
  justify-content: flex-end !important;
}

body .kmm-user-panel [data-kmm-panel-view="overview"] .kmm-btn--logout {
  min-height: 36px !important;
  padding: 0 13px !important;
  border: 1px solid rgba(255, 255, 255, .32) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, .12) !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 11px !important;
}

body .kmm-user-panel [data-kmm-panel-view="overview"] .kmm-btn--logout:hover {
  background: #fff !important;
  color: #741fa2 !important;
  -webkit-text-fill-color: #741fa2 !important;
}

body .kmm-user-panel .kmm-up-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

body .kmm-user-panel .kmm-up-summary__item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .09);
  backdrop-filter: blur(4px);
}

body .kmm-user-panel .kmm-up-summary__item span {
  color: #e8d9ef !important;
  -webkit-text-fill-color: #e8d9ef !important;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

body .kmm-user-panel .kmm-up-summary__item strong {
  overflow: hidden;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .kmm-user-panel .kmm-up-stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 12px !important;
}

body .kmm-user-panel .kmm-up-stats .kmm-stat,
body .kmm-user-panel .kmm-up-stats .kmm-stat:nth-child(n) {
  position: relative;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  min-height: 78px !important;
  padding: 13px 14px !important;
  overflow: hidden !important;
  border: 1px solid #ebdff0 !important;
  border-radius: 16px !important;
  background: #fff !important;
  background-image: none !important;
  box-shadow: 0 9px 24px rgba(55, 21, 73, .06) !important;
  text-decoration: none !important;
}

body .kmm-user-panel .kmm-up-stats .kmm-stat::before {
  content: "" !important;
  position: absolute !important;
  top: 13px !important;
  bottom: 13px !important;
  left: 0 !important;
  width: 3px !important;
  height: auto !important;
  border-radius: 0 4px 4px 0 !important;
  background: #741fa2 !important;
}

body .kmm-user-panel .kmm-up-stats .kmm-stat:hover {
  border-color: rgba(116, 31, 162, .28) !important;
  box-shadow: 0 12px 28px rgba(80, 25, 108, .1) !important;
  transform: translateY(-2px) !important;
}

body .kmm-user-panel .kmm-up-stats .kmm-stat__num,
body .kmm-user-panel .kmm-up-stats .kmm-stat:nth-child(n) .kmm-stat__num {
  min-width: 30px;
  color: #741fa2 !important;
  -webkit-text-fill-color: #741fa2 !important;
  font-size: 28px !important;
  font-weight: 920 !important;
  letter-spacing: -.04em !important;
  line-height: 1 !important;
}

body .kmm-user-panel .kmm-up-stats .kmm-stat__label {
  min-width: 0;
  margin: 0 !important;
  overflow: hidden;
  color: #3f3147 !important;
  -webkit-text-fill-color: #3f3147 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .kmm-user-panel .kmm-up-stats .kmm-stat__label .kmm-ico {
  color: #8e4aaa !important;
  -webkit-text-fill-color: #8e4aaa !important;
  filter: grayscale(1) sepia(.3) hue-rotate(225deg) saturate(2) !important;
}

body .kmm-user-panel .kmm-up-stats .kmm-stat__arrow,
body .kmm-user-panel .kmm-up-stats .kmm-stat:nth-child(n) .kmm-stat__arrow {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: #f1e6f5 !important;
  color: #741fa2 !important;
  -webkit-text-fill-color: #741fa2 !important;
  font-size: 14px;
  font-weight: 900;
}

body .kmm-user-panel .kmm-panel-recommendations {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 12px;
  padding: 19px;
  overflow: hidden;
  border: 1px solid #e9deee;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(55, 21, 73, .06);
}

body .kmm-user-panel .kmm-panel-recommendations__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  margin-bottom: 14px;
}

body .kmm-user-panel .kmm-panel-recommendations__head > div:first-child {
  min-width: 0;
}

body .kmm-user-panel .kmm-panel-recommendations__head h2 {
  margin: 2px 0 4px;
  color: #26162e !important;
  -webkit-text-fill-color: #26162e !important;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.2;
}

body .kmm-user-panel .kmm-panel-recommendations__head p {
  max-width: 620px;
  margin: 0;
  color: #75647e !important;
  -webkit-text-fill-color: #75647e !important;
  font-size: 11px;
  line-height: 1.45;
}

body .kmm-user-panel .kmm-panel-recommendations__chips {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

body .kmm-user-panel .kmm-panel-recommendations__chips a {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 9px;
  border: 1px solid #e4d6ea;
  border-radius: 999px;
  background: #faf5fc;
  color: #741fa2 !important;
  -webkit-text-fill-color: #741fa2 !important;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

body .kmm-user-panel .kmm-panel-recommendations__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  width: 100%;
  max-width: 100%;
}

body .kmm-user-panel .kmm-panel-rec-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  min-height: 132px;
  padding: 11px;
  overflow: hidden;
  border: 1px solid #eee5f2;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #fcf9fd);
  color: #2d2034 !important;
  -webkit-text-fill-color: #2d2034 !important;
  text-decoration: none !important;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body .kmm-user-panel .kmm-panel-rec-card:hover {
  border-color: rgba(116, 31, 162, .28);
  box-shadow: 0 10px 22px rgba(75, 24, 100, .09);
  transform: translateY(-2px);
}

body .kmm-user-panel .kmm-panel-rec-card__visual {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #ede4f1;
  border-radius: 12px;
  background: #fff;
}

body .kmm-user-panel .kmm-panel-rec-card__visual img {
  display: block;
  width: 48px;
  height: 40px;
  object-fit: contain;
}

body .kmm-user-panel .kmm-panel-rec-card__visual > span {
  color: #741fa2 !important;
  -webkit-text-fill-color: #741fa2 !important;
  font-size: 21px;
  font-weight: 900;
}

body .kmm-user-panel .kmm-panel-rec-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

body .kmm-user-panel .kmm-panel-rec-card__meta {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

body .kmm-user-panel .kmm-panel-rec-card__type {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f0e3f5;
  color: #741fa2 !important;
  -webkit-text-fill-color: #741fa2 !important;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .05em;
  line-height: 1;
  text-transform: uppercase;
}

body .kmm-user-panel .kmm-panel-rec-card__meta > strong {
  overflow: hidden;
  color: #741fa2 !important;
  -webkit-text-fill-color: #741fa2 !important;
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .kmm-user-panel .kmm-panel-rec-card__body > small {
  display: block;
  width: 100%;
  margin-top: 7px;
  overflow: hidden;
  color: #8a788f !important;
  -webkit-text-fill-color: #8a788f !important;
  font-size: 9px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .kmm-user-panel .kmm-panel-rec-card__title {
  display: -webkit-box;
  min-width: 0;
  margin-top: 2px;
  overflow: hidden;
  color: #2a1b31 !important;
  -webkit-text-fill-color: #2a1b31 !important;
  font-size: 11px;
  font-weight: 820;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body .kmm-user-panel .kmm-panel-rec-card__action {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: auto;
  padding-top: 7px;
  color: #741fa2 !important;
  -webkit-text-fill-color: #741fa2 !important;
  font-size: 9px;
  font-weight: 850;
}

body .kmm-user-panel .kmm-panel-recommendations__empty {
  display: flex;
  min-height: 94px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px dashed #d9c7e1;
  border-radius: 14px;
  background: #fcf9fd;
  color: #75647e;
  text-align: center;
}

body .kmm-user-panel .kmm-panel-recommendations__empty strong {
  color: #44284f !important;
}

body .kmm-user-panel .kmm-panel-recommendations__empty span {
  font-size: 11px;
}

@media (max-width: 1040px) {
  body .kmm-user-panel .kmm-panel-layout {
    grid-template-columns: 194px minmax(0, 1fr) !important;
    gap: 13px !important;
  }

  body .kmm-user-panel .kmm-up-sidebar {
    padding: 10px !important;
  }

  body .kmm-user-panel .kmm-up-sidebar .kmm-up-sidebar__nav > a,
  body .kmm-user-panel .kmm-up-sidebar .kmm-up-sidebar__nav > a:nth-child(n) {
    gap: 7px !important;
    font-size: 11px !important;
  }

  body .kmm-user-panel .kmm-panel-rec-card {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 8px;
    padding: 9px;
  }

  body .kmm-user-panel .kmm-panel-rec-card__visual {
    width: 50px;
    height: 50px;
  }

  body .kmm-user-panel .kmm-panel-rec-card__visual img {
    width: 42px;
    height: 34px;
  }
}

@media (max-width: 880px) {
  body .kmm-user-panel .kmm-panel-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body .kmm-user-panel .kmm-up-sidebar {
    position: static !important;
    top: auto !important;
    padding: 10px !important;
  }

  body .kmm-user-panel .kmm-up-sidebar__profile {
    padding: 2px 2px 9px;
  }

  body .kmm-user-panel .kmm-up-sidebar__nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  body .kmm-user-panel .kmm-up-sidebar .kmm-up-sidebar__nav > a,
  body .kmm-user-panel .kmm-up-sidebar .kmm-up-sidebar__nav > a:nth-child(n) {
    grid-template-columns: 27px minmax(0, 1fr) auto !important;
    min-height: 38px !important;
    padding: 3px 6px !important;
  }

  body .kmm-user-panel .kmm-up-sidebar__icon {
    width: 27px;
    height: 27px;
    border-radius: 8px;
  }

  body .kmm-user-panel .kmm-up-sidebar > .kmm-up-sidebar__home {
    align-self: flex-start;
    padding-inline: 12px !important;
  }
}

@media (max-width: 700px) {
  body .kmm-user-panel [data-kmm-panel-view="overview"].kmm-up-hero {
    padding: 19px !important;
    border-radius: 18px !important;
  }

  body .kmm-user-panel .kmm-up-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body .kmm-user-panel .kmm-up-summary__item:last-child {
    grid-column: 1 / -1;
  }

  body .kmm-user-panel .kmm-up-stats {
    grid-template-columns: 1fr !important;
  }

  body .kmm-user-panel .kmm-up-stats .kmm-stat,
  body .kmm-user-panel .kmm-up-stats .kmm-stat:nth-child(n) {
    min-height: 66px !important;
    padding: 10px 13px !important;
  }

  body .kmm-user-panel .kmm-panel-recommendations__head {
    align-items: flex-start;
    flex-direction: column;
  }

  body .kmm-user-panel .kmm-panel-recommendations__chips {
    justify-content: flex-start;
  }

  body .kmm-user-panel .kmm-panel-recommendations__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  body .kmm-user-panel .kmm-up-sidebar__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body .kmm-user-panel .kmm-up-hero__main {
    align-items: flex-start;
    flex-direction: column;
  }

  body .kmm-user-panel .kmm-up-hero__right,
  body .kmm-user-panel .kmm-up-hero__right .kmm-btn--logout {
    width: 100% !important;
  }

  body .kmm-user-panel .kmm-up-hero__right .kmm-btn--logout {
    justify-content: center !important;
  }

  body .kmm-user-panel .kmm-panel-recommendations {
    padding: 14px;
  }

  body .kmm-user-panel .kmm-panel-recommendations__grid {
    grid-template-columns: 1fr;
  }

  body .kmm-user-panel .kmm-panel-rec-card {
    min-height: 118px;
  }
}

@media (max-width: 360px) {
  body .kmm-user-panel .kmm-up-sidebar__nav {
    grid-template-columns: 1fr;
  }

  body .kmm-user-panel .kmm-up-summary {
    grid-template-columns: 1fr;
  }

  body .kmm-user-panel .kmm-up-summary__item:last-child {
    grid-column: auto;
  }
}

body .kmm-user-panel [data-kmm-panel-view][hidden] {
  display: none !important;
}

/* 2.16.0 — compact desktop chrome and useful /marka/ discovery sidebar. */
@media (min-width: 901px) {
  body .km-header .kmm-global-header__inner {
    min-height: 58px !important;
    gap: 16px !important;
    padding: 4px 0 !important;
  }

  body .kmm-global-header__brand .km-brand__image {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
  }

  body .km-header .kmm-global-header__nav a {
    min-height: 36px !important;
    padding: 6px 9px !important;
  }

  body .km-header .kmm-global-header__search input[type="search"],
  body .km-header .kmm-global-header__search input[type="text"],
  body .kmm-global-header__search .km-search-submit,
  body .km-header .kmm-global-header__search button[type="submit"] {
    height: 38px !important;
    min-height: 38px !important;
  }

  body .kmm-header-account-btn {
    min-height: 34px !important;
    padding-inline: 12px !important;
  }
}

body .km-footer {
  margin-top: 26px !important;
  padding: 24px 0 16px !important;
}

body .km-footer .kmm-footer-top {
  gap: 25px !important;
  padding-bottom: 0 !important;
}

body .km-footer .kmm-footer-column {
  gap: 6px !important;
}

body .km-footer .kmm-footer-column h3 {
  margin: 0 0 4px !important;
  font-size: 12px !important;
}

body .km-footer .kmm-footer-column a {
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

body .km-footer .kmm-footer-brandline strong {
  font-size: 22px !important;
}

body .km-footer .kmm-footer-brandline span {
  margin-top: 2px !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

body .km-footer .kmm-footer-copy--brand {
  margin-top: 3px !important;
  font-size: 10px !important;
}

.kmm-directory-sidebar-card {
  overflow: hidden;
  padding: 16px !important;
}

.kmm-directory-sidebar-card + .kmm-directory-sidebar-card {
  margin-top: 14px;
}

.kmm-directory-sidebar-head {
  margin-bottom: 10px;
}

.kmm-directory-sidebar-head > span {
  display: block;
  margin-bottom: 3px;
  color: var(--kmm-primary, #741fa2);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.kmm-directory-sidebar-head h2 {
  margin: 0;
  color: #24172a;
  font-size: 16px;
  line-height: 1.3;
}

.kmm-directory-popular-stores,
.kmm-directory-popular-offers {
  display: grid;
  gap: 0;
}

.kmm-directory-store-row {
  display: grid;
  grid-template-columns: 24px 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 0;
  border-bottom: 1px solid #eee8f1;
  color: #302536 !important;
  text-decoration: none !important;
}

.kmm-directory-store-row:last-child,
.kmm-directory-offer-row:last-child {
  border-bottom: 0;
}

.kmm-directory-rank {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  background: #f3e8f7;
  color: var(--kmm-primary, #741fa2);
  font-size: 10px;
  font-weight: 900;
}

.kmm-directory-store-row img {
  width: 38px;
  height: 38px;
  border: 1px solid #e8dfea;
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
  padding: 3px;
}

.kmm-directory-store-row > span:nth-child(3) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.kmm-directory-store-row strong,
.kmm-directory-offer-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.kmm-directory-store-row strong {
  white-space: nowrap;
}

.kmm-directory-store-row small,
.kmm-directory-offer-row small {
  color: #756b79;
  font-size: 10px;
}

.kmm-directory-store-row > b {
  color: var(--kmm-primary, #741fa2);
}

.kmm-directory-offer-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px 9px;
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid #eee8f1;
  color: #302536 !important;
  text-decoration: none !important;
}

.kmm-directory-offer-row > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.kmm-directory-offer-row strong {
  display: -webkit-box;
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.kmm-directory-offer-row > b {
  grid-column: 2;
  width: max-content;
  padding: 3px 6px;
  border-radius: 6px;
  background: #f7eef9;
  color: var(--kmm-primary, #741fa2);
  font-size: 10px;
}

.kmm-directory-offer-type {
  align-self: start;
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--kmm-primary, #741fa2);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.kmm-directory-offer-type.is-deal {
  background: #8641aa;
}

@media (max-width: 900px) {
  body .km-footer {
    margin-top: 18px !important;
    padding: 22px 0 14px !important;
  }
}
