.gmk-consent {
  position: fixed;
  z-index: 2147483000;
  right: 12px;
  bottom: 92px;
  left: 12px;
  max-width: 620px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid #cbdcdd;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 34px rgba(0, 48, 57, 0.22);
  color: #17343a;
  font: 15px/1.4 Arial, sans-serif;
}

.gmk-consent[hidden] { display: none !important; }
.gmk-consent strong { display: block; margin-bottom: 5px; font-size: 17px; }
.gmk-consent p { margin: 0 0 12px; }
.gmk-consent a { color: #007f79; text-decoration: underline; }
.gmk-consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gmk-consent button {
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid #008f88;
  border-radius: 7px;
  background: #008f88;
  color: #ffffff;
  font: 700 15px Arial, sans-serif;
  cursor: pointer;
}
.gmk-consent button[data-consent="denied"] {
  border-color: #a9babc;
  background: #ffffff;
  color: #17343a;
}

@media (min-width: 760px) {
  .gmk-consent {
    right: 24px;
    bottom: 24px;
    left: auto;
    width: min(560px, calc(100vw - 48px));
  }
}

/* GM-14.2 · телефон: плашка — одна узкая строка над нижним меню; товар и «В корзину» видны сразу.
   Полный текст — по кнопке «Подробнее» (класс gmk-consent-open). Подписи кнопок для экранных дикторов прежние. */
.gmk-consent-more { display: none; }
@media (max-width: 759px) {
  .gmk-consent-more { display: inline-flex; align-items: center; min-height: 40px !important; padding: 0 4px !important;
    border: 0 !important; background: none !important; color: #007f79 !important; font: 600 13px Arial, sans-serif !important; text-decoration: underline; }
  .gmk-consent:not(.gmk-consent-open) { left: 0; right: 0; bottom: calc(var(--mobile-bottom-nav-height, 64px) + env(safe-area-inset-bottom, 0px));
    max-width: none; margin: 0; padding: 4px 8px 4px 12px; border-width: 1px 0 0; border-radius: 0;
    box-shadow: 0 -4px 14px rgba(0, 48, 57, 0.14); display: flex; align-items: center; gap: 6px; }
  .gmk-consent:not(.gmk-consent-open) strong { flex: 1; min-width: 0; margin: 0; font-size: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gmk-consent:not(.gmk-consent-open) strong::after { content: "Cookies?"; font-size: 13px; }
  .gmk-consent:not(.gmk-consent-open) p { display: none; }
  .gmk-consent:not(.gmk-consent-open) .gmk-consent-actions { flex: none; flex-wrap: nowrap; gap: 6px; }
  .gmk-consent:not(.gmk-consent-open) button[data-consent] { min-height: 40px; padding: 6px 12px; font-size: 13px; }
  .gmk-consent:not(.gmk-consent-open) button[data-consent="denied"] { font-size: 0; }
  .gmk-consent:not(.gmk-consent-open) button[data-consent="denied"]::after { content: "Нет"; font-size: 13px; }
}

@media (max-width: 759px) {
  body.home-page .gmk-consent:not(.gmk-consent-open) {
    bottom: max(70px, calc(var(--mobile-bottom-nav-height, 64px) + env(safe-area-inset-bottom, 0px)));
  }
}
