.ms-consent[hidden],
.ms-consent [hidden] { display: none !important; }

.ms-consent {
  position: fixed;
  z-index: 120;
  right: 16px;
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100svh - 180px - env(safe-area-inset-top, 0px));
  overflow-y: auto;
  padding: 20px;
  border: 1px solid rgba(99, 35, 39, .18);
  border-radius: 5px;
  background: #f7f2e9;
  box-shadow: 0 18px 54px rgba(20, 9, 10, .28);
  color: #291719;
  font-family: Inter, Arial, sans-serif;
  overscroll-behavior: contain;
}

.ms-consent__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ms-consent__eyebrow { color: #8e3a3b; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ms-consent h2 { max-width: 340px; margin: 9px 0 7px; color: #431c20; font-family: "Playfair Display", Georgia, serif; font-size: clamp(20px, 5vw, 25px); font-weight: 600; line-height: 1.12; }
.ms-consent p { margin: 0; color: #655457; font-size: 12px; line-height: 1.55; }
.ms-consent__close { display: grid; width: 44px; min-width: 44px; height: 44px; flex: none; place-items: center; border: 1px solid rgba(67, 28, 32, .2); border-radius: 50%; background: transparent; color: #431c20; cursor: pointer; }
.ms-consent__close svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.ms-consent__preferences { margin-top: 14px; padding: 11px 12px; border: 1px solid rgba(67, 28, 32, .16); border-radius: 4px; background: rgba(255, 255, 255, .48); }
.ms-consent__preferences label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.ms-consent__necessary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; padding-bottom: 11px; border-bottom: 1px solid rgba(67, 28, 32, .12); }
.ms-consent__necessary strong, .ms-consent__necessary small { display: block; }
.ms-consent__necessary strong { color: #431c20; font-size: 12px; line-height: 1.4; }
.ms-consent__necessary small { margin-top: 3px; color: #655457; font-size: 11px; line-height: 1.4; }
.ms-consent__necessary b { flex: none; color: #655457; font-size: 10px; font-weight: 600; }
.ms-consent__preferences input { width: 17px; height: 17px; flex: none; margin: 1px 0 0; accent-color: #772e34; }
.ms-consent__preferences strong, .ms-consent__preferences small { display: block; }
.ms-consent__preferences strong { color: #431c20; font-size: 12px; line-height: 1.4; }
.ms-consent__preferences small { margin-top: 4px; color: #655457; font-size: 11px; line-height: 1.45; }
.ms-consent__error { margin-top: 11px !important; padding: 8px 9px; border-left: 3px solid #9d3437; background: #f3e3de; color: #69242a !important; font-size: 11px !important; }
.ms-consent__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 15px; }
.ms-consent__actions button { min-width: 0; min-height: 44px; padding: 7px 10px; border: 1px solid #762d34; border-radius: 3px; background: #762d34; color: #fffaf2; cursor: pointer; font: 700 12px/1.2 Inter, Arial, sans-serif; transition: background-color .16s ease, color .16s ease, border-color .16s ease; }
.ms-consent__actions button:hover { background: #4a1d22; border-color: #4a1d22; }
.ms-consent__secondary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 5px; }
.ms-consent__secondary button { display: inline-flex; min-height: 44px; align-items: center; padding: 4px 0; border: 0; background: transparent; color: #62262c; font: 600 11px/1.4 Inter, Arial, sans-serif; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ms-consent__secondary button:hover { color: #431c20; }
.ms-consent__privacy { display: inline-flex; min-height: 44px; align-items: center; color: #7a3037; font-size: 11px; text-decoration: underline; text-underline-offset: 2px; }
.ms-consent button:focus-visible, .ms-consent a:focus-visible, .ms-consent input:focus-visible { outline: 2px solid #9d4d4e; outline-offset: 3px; }

@media (max-width: 600px) {
  .ms-consent { right: 10px; bottom: calc(82px + env(safe-area-inset-bottom, 0px)); left: 10px; width: auto; max-height: calc(100svh - 154px - env(safe-area-inset-top, 0px)); padding: 16px; }
  .ms-consent h2 { margin-top: 7px; font-size: 21px; }
  .ms-consent__actions { gap: 6px; margin-top: 12px; }
  .ms-consent__actions button { min-height: 44px; padding-inline: 6px; font-size: 12px; }
}

@media (max-width: 350px) {
  .ms-consent { right: 8px; left: 8px; padding: 13px; }
  .ms-consent__actions button { min-height: 44px; font-size: 12px; }
}
