:root {
  --mcpa-pink: #c94172;
  --mcpa-pink-dark: #a92a59;
  --mcpa-blush: #fff2f7;
  --mcpa-ink: #17131a;
  --mcpa-muted: #665e68;
  --mcpa-line: #eadfe5;
  --mcpa-white: #fff;
  --mcpa-shadow: 0 20px 55px rgba(33, 20, 28, .18);
}

.mcpa-root,
.mcpa-root * { box-sizing: border-box; }
.mcpa-root { direction: rtl; font-family: Assistant, Arial, sans-serif; color: var(--mcpa-ink); }
.mcpa-root [hidden] { display: none !important; }
.mcpa-root button,
.mcpa-root a { font: inherit; }
.mcpa-root button { -webkit-tap-highlight-color: transparent; }
html.mcpa-modal-open { overflow: hidden !important; }

.mcpa-banner {
  position: fixed;
  z-index: 2147483000;
  right: 20px;
  left: 20px;
  bottom: 20px;
  display: grid;
  grid-template-columns: 54px minmax(260px, 1fr) auto;
  align-items: center;
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(235, 111, 154, .26);
  border-radius: 22px;
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--mcpa-shadow);
  backdrop-filter: blur(14px);
}

.mcpa-banner__mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  color: var(--mcpa-pink-dark);
  background: var(--mcpa-blush);
}

.mcpa-banner__mark svg,
.mcpa-fab svg { width: 27px; height: 27px; fill: currentColor; }
.mcpa-banner__copy h2,
.mcpa-dialog h2,
.mcpa-option h3 { margin: 0; color: var(--mcpa-ink); }
.mcpa-banner__copy h2 { font-size: 21px; line-height: 1.25; }
.mcpa-banner__copy p { margin: 4px 0 3px; color: var(--mcpa-muted); font-size: 15px; line-height: 1.5; }
.mcpa-inline-link { color: var(--mcpa-pink-dark); font-weight: 700; text-underline-offset: 3px; }
.mcpa-inline-link:hover { color: #b63163; }

.mcpa-banner__actions,
.mcpa-dialog__actions { display: flex; align-items: center; gap: 9px; }
.mcpa-button {
  min-height: 46px;
  padding: 10px 17px;
  border: 2px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.15;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.mcpa-button:hover { transform: translateY(-1px); }
.mcpa-button--primary { color: #fff; background: var(--mcpa-pink); box-shadow: 0 7px 18px rgba(235, 111, 154, .25); }
.mcpa-button--primary:hover { background: var(--mcpa-pink-dark); }
.mcpa-button--secondary { color: var(--mcpa-ink); background: #fff; border-color: #7b6e75; }
.mcpa-button--secondary:hover { border-color: var(--mcpa-ink); }
.mcpa-button--ghost { color: var(--mcpa-ink); background: transparent; border-color: transparent; }
.mcpa-button--ghost:hover { background: var(--mcpa-blush); }

.mcpa-overlay {
  position: fixed;
  z-index: 2147483500;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(19, 13, 18, .58);
  backdrop-filter: blur(5px);
}

.mcpa-dialog {
  position: relative;
  width: min(100%, 660px);
  max-height: min(88vh, 760px);
  overflow: auto;
  padding: 30px;
  border: 1px solid rgba(235, 111, 154, .22);
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
  outline: none;
}
.mcpa-dialog__close {
  position: absolute;
  top: 16px;
  left: 16px;
}
.mcpa-icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0 0 4px;
  border: 0;
  border-radius: 50%;
  color: var(--mcpa-ink);
  background: #f6f1f4;
  cursor: pointer;
  font-size: 28px;
}
.mcpa-icon-button:hover { background: var(--mcpa-blush); }
.mcpa-eyebrow { display: block; margin-bottom: 6px; color: var(--mcpa-pink-dark); font-size: 13px; font-weight: 900; letter-spacing: .04em; }
.mcpa-dialog__header { padding-inline-end: 2px; padding-inline-start: 44px; }
.mcpa-dialog__header h2 { font-size: 29px; line-height: 1.2; }
.mcpa-dialog__header p { margin: 8px 0 0; color: var(--mcpa-muted); font-size: 16px; line-height: 1.55; }

.mcpa-options { display: grid; gap: 10px; margin: 24px 0; }
.mcpa-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 15px 17px;
  border: 1px solid var(--mcpa-line);
  border-radius: 16px;
  background: #fff;
}
label.mcpa-option { cursor: pointer; }
label.mcpa-option:hover { border-color: rgba(235, 111, 154, .7); background: #fffafd; }
.mcpa-option h3 { margin-bottom: 3px; font-size: 17px; }
.mcpa-option p { margin: 0; color: var(--mcpa-muted); font-size: 14px; line-height: 1.45; }
.mcpa-required { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; color: #4d3b45; background: #f4eef1; font-size: 12px; font-weight: 800; }

.mcpa-switch { position: relative; flex: 0 0 auto; width: 50px; height: 29px; }
.mcpa-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mcpa-switch span { position: absolute; inset: 0; border-radius: 999px; background: #6d6268; transition: background .18s ease; }
.mcpa-switch span::after { content: ""; position: absolute; top: 4px; right: 4px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.18); transition: transform .18s ease; }
.mcpa-switch input:checked + span { background: var(--mcpa-pink); }
.mcpa-switch input:checked + span::after { transform: translateX(-21px); }
.mcpa-switch input:focus-visible + span { outline: 3px solid #17131a; outline-offset: 3px; }

.mcpa-dialog__actions { justify-content: flex-start; padding-top: 2px; }
.mcpa-dialog__actions .mcpa-button { min-width: 155px; }

.mcpa-access-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 24px 0; }
.mcpa-access-grid button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid var(--mcpa-line);
  border-radius: 15px;
  color: var(--mcpa-ink);
  background: #fff;
  cursor: pointer;
  text-align: right;
}
.mcpa-access-grid button:hover { border-color: var(--mcpa-pink); background: #fffafd; }
.mcpa-access-grid button[aria-pressed="true"] { border-color: var(--mcpa-pink-dark); background: var(--mcpa-blush); box-shadow: inset 0 0 0 1px var(--mcpa-pink-dark); }
.mcpa-access-grid strong { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; color: var(--mcpa-pink-dark); background: var(--mcpa-blush); font-size: 18px; }
.mcpa-access-grid span { font-weight: 800; }
.mcpa-dialog__footer { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--mcpa-line); color: var(--mcpa-muted); font-size: 14px; }
.mcpa-dialog__footer a { color: var(--mcpa-pink-dark); font-weight: 800; }

.mcpa-dock { position: fixed; z-index: 2147482500; left: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 9px; }
.mcpa-dock[hidden] { display: none !important; }
.mcpa-fab {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #2a252b;
  box-shadow: 0 8px 23px rgba(20, 12, 17, .28);
  cursor: pointer;
  transition: transform .16s ease, background .16s ease;
}
.mcpa-fab:hover { transform: translateY(-2px); background: #111; }
.mcpa-fab--access { background: var(--mcpa-pink); }
.mcpa-fab--access:hover { background: var(--mcpa-pink-dark); }

.mcpa-media-placeholder { position: relative; display: grid; place-items: center; min-height: 250px; padding: 24px; border-radius: 16px; background: linear-gradient(135deg, #181318, #38252f); color: #fff; text-align: center; overflow: hidden; }
.mcpa-media-placeholder::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(235,111,154,.2); filter: blur(4px); }
.mcpa-media-placeholder__inner { position: relative; z-index: 1; max-width: 360px; }
.mcpa-media-placeholder h3 { margin: 0 0 7px; color: #fff; font-size: 21px; }
.mcpa-media-placeholder p { margin: 0 0 15px; color: #eee4e9; line-height: 1.5; }
.mcpa-media-placeholder iframe { display: none !important; }

.mcpa-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

html.mcpa-text-1 { font-size: 112.5% !important; }
html.mcpa-text-2 { font-size: 125% !important; }
html.mcpa-text-3 { font-size: 137.5% !important; }
html.mcpa-readable body,
html.mcpa-readable body *:not(.fa):not([class*="icon"]) { font-family: Arial, sans-serif !important; letter-spacing: .01em; }
html.mcpa-links a:not(.mcpa-root a) { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px !important; }
html.mcpa-grayscale body > *:not(.mcpa-root) { filter: grayscale(1) !important; }
html.mcpa-high-contrast body { background: #000 !important; }
html.mcpa-high-contrast body > *:not(.mcpa-root) { filter: contrast(1.35) !important; }
html.mcpa-high-contrast body :where(p,h1,h2,h3,h4,h5,h6,li,label):not(.mcpa-root *) { text-shadow: 0 0 1px currentColor; }
html.mcpa-no-motion *,
html.mcpa-no-motion *::before,
html.mcpa-no-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
html.mcpa-focus *:focus-visible,
.mcpa-root *:focus-visible { outline: 3px solid #111 !important; outline-offset: 4px !important; box-shadow: 0 0 0 2px #fff !important; }

@media (prefers-reduced-motion: reduce) {
  .mcpa-root *, .mcpa-root *::before, .mcpa-root *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; }
}

@media (max-width: 820px) {
  .mcpa-banner { grid-template-columns: 46px 1fr; gap: 12px; padding: 16px; border-radius: 20px; }
  .mcpa-banner__mark { width: 46px; height: 46px; border-radius: 14px; }
  .mcpa-banner__actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .mcpa-banner__actions .mcpa-button--ghost { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .mcpa-banner { right: 10px; left: 10px; bottom: 10px; grid-template-columns: 42px 1fr; padding: 14px; border-radius: 18px; }
  .mcpa-banner__mark { width: 42px; height: 42px; }
  .mcpa-banner__copy h2 { font-size: 19px; }
  .mcpa-banner__copy p { font-size: 14px; }
  .mcpa-banner__actions { gap: 7px; }
  .mcpa-banner__actions .mcpa-button { min-height: 45px; padding: 9px 8px; font-size: 14px; }
  .mcpa-overlay { align-items: end; padding: 0; }
  .mcpa-dialog { width: 100%; max-height: 91vh; padding: 24px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 23px 23px 0 0; }
  .mcpa-dialog__close { top: 12px; left: 12px; }
  .mcpa-dialog__header { padding-inline-start: 42px; }
  .mcpa-dialog__header h2 { font-size: 25px; }
  .mcpa-option { min-height: 78px; padding: 13px; }
  .mcpa-option p { font-size: 13px; }
  .mcpa-dialog__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .mcpa-dialog__actions .mcpa-button { min-width: 0; }
  .mcpa-access-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mcpa-access-grid button { flex-direction: column; justify-content: center; gap: 7px; min-height: 92px; padding: 10px 7px; text-align: center; }
  .mcpa-access-grid strong { flex-basis: 34px; width: 34px; height: 34px; }
  .mcpa-access-grid span { font-size: 13px; }
  .mcpa-dialog__footer { flex-direction: column; gap: 7px; }
  .mcpa-dock { left: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); }
  .mcpa-fab { width: 47px; height: 47px; }
}
