@font-face {
  font-family: MamarPlex;
  src: url('../fonts/plex-arabic-regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: MamarPlex;
  src: url('../fonts/plex-arabic-semibold.ttf') format('truetype');
  font-weight: 500 900;
  font-display: swap;
}

.m-skip {
  position: absolute;
  right: 16px;
  top: -80px;
  z-index: 80;
  background: #fff;
  padding: 10px 14px;
  border-radius: 10px;
}
.m-skip:focus { top: 16px; }

.site-top {
  position: sticky;
  top: 0;
  z-index: 90;
}

.site-top .fo-strip {
  position: relative;
  z-index: 2;
  width: 100%;
}

.site-top .mi-header.mx-header,
.mamar-cinema .site-top header.mi-header,
.mamar-atelier .site-top .mi-header.mx-header,
.mamar-atelier.mamar-cinema .site-top header.mi-header.mx-header {
  position: relative;
  top: auto;
  z-index: 1;
  margin-inline: auto;
}

.mn-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.mi-button,
.mi-button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1d5cf0;
  color: #fff !important;
  border-radius: 12px;
  min-height: 46px;
  padding: 10px 18px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.sm-guarantee {
  color: #1d5cf0;
  text-decoration: none;
  font-size: 14px;
}

.mi-panel input[type="text"],
.mi-panel input[type="tel"],
.mi-panel input[type="email"],
.mi-panel input[type="password"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dbe5f4;
  border-radius: 12px;
  padding: 10px 14px;
  margin: 6px 0 16px;
  background: #fff;
}

.mi-panel label {
  display: block;
  font-weight: 700;
  margin-top: 10px;
}

.auth-pass {
  position: relative;
}

.auth-pass .password-toggle {
  position: absolute;
  left: 12px;
  top: 6px;
  height: 46px;
  display: flex;
  align-items: center;
  background: none;
  border: 0;
  color: #7486a0;
  cursor: pointer;
}

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 4px 0 18px;
  flex-wrap: wrap;
}

.mi-panel .auth-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 600;
}

.mi-panel form > p {
  color: #c24141;
  font-size: 13px;
  margin: -8px 0 12px;
}

.mi-panel .auth-note {
  color: #7486a0;
  margin: 8px 0 0;
}

.mi-panel input.auth-otp {
  text-align: center;
  letter-spacing: 0.35em;
  font-size: 20px;
  font-weight: 700;
}

.auth-hint {
  background: #f4f7fd;
  border: 1px solid #e1e9f5;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 12px 0 18px;
}

.auth-hint p {
  margin: 0;
  color: #7486a0;
}

.auth-hint strong {
  color: #213b63;
}

.auth-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.auth-links button,
.auth-links a {
  background: none;
  border: 0;
  color: #1d5cf0;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.mi-checkout > * {
  min-width: 0;
}

html[data-theme="dark"] .mi-panel input[type="text"],
html[data-theme="dark"] .mi-panel input[type="tel"],
html[data-theme="dark"] .mi-panel input[type="email"],
html[data-theme="dark"] .mi-panel input[type="password"],
html[data-theme="dark"] .auth-phone > span,
html[data-theme="dark"] .auth-hint {
  background: #121f33;
  border-color: #2b3e59;
  color: #e7effe;
}

html[data-theme="dark"] .auth-hint p {
  color: #afc1da;
}

html[data-theme="dark"] .auth-hint strong {
  color: #e7effe;
}

.auth-phone {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.auth-phone input {
  flex: 1;
  min-width: 0;
}

.auth-phone > span {
  min-height: 46px;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #dbe5f4;
  border-radius: 12px;
  background: #f7faff;
}

.auth-note {
  margin-top: 18px;
}

.mi-watch {
  position: relative;
}

.mi-watch iframe,
.mi-watch video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #06122b;
}

.mi-page {
  min-height: 40vh;
}

.site-top .fo-strip {
  position: relative;
  top: 0;
  z-index: 3;
  width: 100%;
}

.mamar-cinema .site-top header.mi-header.mx-header,
.mamar-atelier.mamar-cinema .site-top header.mi-header.mx-header {
  position: relative !important;
  top: auto !important;
}

.mx-menu {
  box-sizing: border-box;
  max-height: calc(100svh - 190px);
  padding-bottom: 36px;
  scroll-padding-bottom: 36px;
}

.mx-menu .am-setting {
  margin-bottom: 4px;
}

a.ac-announcement-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

#mn-count[hidden] {
  display: none !important;
}
