/* =====================================================================
   BeautyNest — store pages as a help centre (sections/page.liquid)
   Logical properties everywhere: mirrors in Arabic (RTL).
   ===================================================================== */
.mkc-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mkc-page { display: grid; gap: 22px; max-width: 1180px; margin-inline: auto; }
.mkc-page__crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--text-sm); color: var(--color-gray-500); }
.mkc-page__crumbs a { color: inherit; text-decoration: none; }
.mkc-page__crumbs a:hover { color: rgb(var(--color-button)); }
.mkc-page__crumbs [aria-current] { color: var(--color-base-black); font-weight: 600; }

.mkc-page__head { display: grid; gap: 8px; padding-bottom: 6px; }
.mkc-page__eyebrow {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--color-button));
}
.mkc-page__title { margin: 0; font-size: clamp(2.8rem, 3.2vw, 4rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
.mkc-page__lead { max-width: 640px; margin: 0; font-size: var(--text-lg); line-height: 1.55; color: var(--color-gray-500); }

.mkc-page__layout { display: grid; gap: 28px; }
@media (min-width: 990px) {
  .mkc-page__layout { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
  .mkc-page__side { position: sticky; top: 140px; }
}
.mkc-page__main { min-width: 0; }

/* ---------- Help-centre navigation ---------- */
.mkc-page__side { display: grid; gap: 20px; }
.mkc-page__nav ul { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mkc-page__nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--color-base-black);
  font-size: var(--text-md);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.mkc-page__nav a:hover { background: #f8eef2; }
.mkc-page__nav a[aria-current="page"] { background: #fbe6ee; color: rgb(var(--color-button)); }
@media (min-width: 990px) {
  .mkc-page__nav ul { flex-direction: column; gap: 2px; }
  .mkc-page__nav a { white-space: normal; }
}
@media (max-width: 989px) {
  /* Mobile: a swipeable row of pages, the current one first in view. */
  .mkc-page__nav { margin-inline: -1em; overflow-x: auto; scrollbar-width: none; }
  .mkc-page__nav::-webkit-scrollbar { display: none; }
  .mkc-page__nav ul { padding-inline: 1em; }
  .mkc-page__nav a { border: 1px solid #eadbe1; border-radius: 999px; padding: 8px 14px; font-size: var(--text-sm); }
  .mkc-page__side .mkc-page__help { display: none; }
}

/* ---------- Help card, buttons ---------- */
.mkc-page__help,
.mkc-page__more {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 14px;
  background: #fbf3f6;
}
.mkc-page__help p, .mkc-page__more p { margin: 0; font-size: var(--text-sm); line-height: 1.5; color: #5e4c53; }
.mkc-page__help .mkc-page__help-title,
.mkc-page__more .mkc-page__help-title { font-size: var(--text-lg); font-weight: 800; color: var(--color-base-black); }
.mkc-page__link { font-size: var(--text-sm); font-weight: 700; color: rgb(var(--color-button)); text-decoration: none; }
.mkc-page__more { margin-top: 32px; padding: 24px; }
@media (min-width: 768px) {
  .mkc-page__more { grid-template-columns: 1fr auto; align-items: center; gap: 20px; }
}
.mkc-page__more-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.mkc-page__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: var(--text-md);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.mkc-page__btn svg { width: 18px; height: 18px; }
.mkc-page__btn--wa { background: #128c4a; color: #ffffff; }
.mkc-page__btn--wa:hover { background: #0f7a40; color: #ffffff; }
.mkc-page__btn--outline { border-color: var(--color-base-black); color: var(--color-base-black); background: transparent; }
.mkc-page__btn--outline:hover { background: var(--color-base-black); color: #ffffff; }
.mkc-page__btn--primary { background: rgb(var(--color-button)); color: rgb(var(--color-button-text)); }
.mkc-page__btn--primary:hover { filter: brightness(1.08); }
.mkc-page__btn[disabled] { opacity: 0.7; cursor: progress; }

/* ---------- Summary ---------- */
.mkc-toc {
  margin-bottom: 28px;
  padding: 18px 20px;
  border: 1px solid #efe3e8;
  border-radius: 12px;
  background: #fffafc;
}
.mkc-toc__title { margin: 0 0 8px; font-size: var(--text-sm); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.mkc-toc ol { display: grid; gap: 6px; margin: 0; padding-inline-start: 1.3em; }
@media (min-width: 768px) { .mkc-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; } }
.mkc-toc a { color: var(--color-base-black); font-size: var(--text-md); text-decoration: none; }
.mkc-toc a:hover { color: rgb(var(--color-button)); text-decoration: underline; }

/* ---------- Readable text (page content from the admin) ---------- */
.mkc-prose { max-width: 72ch; font-size: var(--text-lg); line-height: 1.7; color: #2b2326; overflow-wrap: anywhere; }
.mkc-prose > :first-child { margin-top: 0; }
.mkc-prose > :last-child { margin-bottom: 0; }
.mkc-prose h2 {
  margin: 2em 0 0.6em;
  scroll-margin-top: 140px;
  font-size: clamp(2rem, 1.8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-base-black);
}
.mkc-prose h3 { margin: 1.6em 0 0.5em; font-size: var(--text-xl); font-weight: 700; line-height: 1.3; color: var(--color-base-black); }
.mkc-prose p { margin: 0 0 1em; }
.mkc-prose ul, .mkc-prose ol { margin: 0 0 1.2em; padding-inline-start: 1.3em; }
.mkc-prose li { margin: 0.35em 0; }
.mkc-prose li::marker { color: rgb(var(--color-button)); }
.mkc-prose a { color: rgb(var(--color-button)); text-decoration: underline; text-underline-offset: 3px; }
.mkc-prose strong { color: var(--color-base-black); }
.mkc-prose table { width: 100%; margin: 0 0 1.4em; border-collapse: collapse; font-size: var(--text-md); }
.mkc-prose th, .mkc-prose td { padding: 10px 12px; border: 1px solid #eadbe1; text-align: start; vertical-align: top; }
.mkc-prose th { background: #fbf3f6; color: var(--color-base-black); }
.mkc-prose blockquote,
.mkc-prose .note {
  margin: 0 0 1.4em;
  padding: 14px 18px;
  border-inline-start: 4px solid rgb(var(--color-button));
  border-radius: 0 10px 10px 0;
  background: #fbf3f6;
}
[dir="rtl"] .mkc-prose blockquote, [dir="rtl"] .mkc-prose .note { border-radius: 10px 0 0 10px; }
.mkc-page__intro { margin-bottom: 24px; }

/* ---------- FAQ ---------- */
.mkc-faq { display: grid; gap: 26px; }
.mkc-faq__search {
  position: relative;
  display: flex;
  align-items: center;
}
.mkc-faq__search svg {
  position: absolute;
  inset-inline-start: 16px;
  width: 20px;
  height: 20px;
  color: var(--color-gray-500);
  pointer-events: none;
}
.mkc-faq__search input {
  width: 100%;
  min-height: 52px;
  padding-inline: 48px 16px;
  border: 1px solid #e3d5db;
  border-radius: 999px;
  background: #ffffff;
  font: inherit;
  font-size: var(--text-md);
}
.mkc-faq__search input:focus { outline: 2px solid rgb(var(--color-button)); outline-offset: 1px; }
.mkc-faq__group { display: grid; }
.mkc-faq__group[hidden], .mkc-faq__item[hidden] { display: none; }
.mkc-faq__cat { margin: 0 0 6px; font-size: var(--text-xl); font-weight: 800; }
.mkc-faq__item { border-bottom: 1px solid #efe3e8; }
.mkc-faq__item summary {
  position: relative;
  padding: 18px 0;
  padding-inline-end: 40px;
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.mkc-faq__item summary::-webkit-details-marker { display: none; }
.mkc-faq__item summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 4px;
  inset-block-start: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fbe6ee;
  color: rgb(var(--color-button));
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}
.mkc-faq__item[open] summary::after { content: "–"; }
.mkc-faq__item summary:hover { color: rgb(var(--color-button)); }
.mkc-faq__answer { padding: 0 0 20px; font-size: var(--text-md); }
.mkc-faq__empty { margin: 0; padding: 20px; border-radius: 12px; background: #fbf3f6; text-align: center; }

/* ---------- Contact ---------- */
.mkc-contact { display: grid; gap: 28px; }
@media (min-width: 1100px) { .mkc-contact { grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 36px; align-items: start; } }
.mkc-contact__form-wrap form {
  display: grid;
  gap: 18px;
  width: 100% !important;
  padding: 26px;
  border: 1px solid #efe3e8;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(91, 31, 58, 0.06);
}
@media (max-width: 640px) { .mkc-contact__form-wrap form { padding: 18px; } }
.mkc-contact__title { margin: 0; font-size: var(--text-xl); font-weight: 800; }
.mkc-contact__required { margin: -10px 0 0; font-size: var(--text-sm); color: var(--color-gray-500); }
.mkc-contact__required span, .mkc-field label span { color: rgb(var(--color-button)); }
.mkc-contact__grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .mkc-contact__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mkc-field--full { grid-column: 1 / -1; }
.mkc-field { display: grid; gap: 6px; }
.mkc-field label { font-size: var(--text-sm); font-weight: 700; }
.mkc-field input,
.mkc-field select,
.mkc-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #ddd0d6;
  border-radius: 10px;
  background: #ffffff;
  color: var(--color-base-black);
  font: inherit;
  font-size: var(--text-md);
}
.mkc-field textarea { min-height: 140px; resize: vertical; }
.mkc-field input:focus, .mkc-field select:focus, .mkc-field textarea:focus {
  border-color: rgb(var(--color-button));
  outline: 2px solid color-mix(in srgb, rgb(var(--color-button)) 25%, transparent);
  outline-offset: 0;
}
.mkc-field[data-error] input,
.mkc-field[data-error] select,
.mkc-field[data-error] textarea { border-color: #b42318; }
.mkc-field[data-error]::after,
.mkc-check-line[data-error]::after {
  content: attr(data-error);
  grid-column: 1 / -1;
  font-size: var(--text-sm);
  color: #b42318;
}
.mkc-check-line {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: #5e4c53;
  cursor: pointer;
}
.mkc-check-line input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: rgb(var(--color-button)); }
.mkc-check-line a { color: rgb(var(--color-button)); }
.mkc-contact__submit { justify-self: start; min-width: 220px; min-height: 52px; }
/* YouCan injects its anti-robot check after the button: show it just above instead. */
.mkc-contact__submit { order: 3; }
.mkc-contact__submit ~ * { order: 2; }
@media (max-width: 640px) { .mkc-contact__submit { justify-self: stretch; } }

.mkc-contact__success,
.mkc-contact__error {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 12px;
}
.mkc-contact__success { background: #eaf7ef; color: #14532d; }
.mkc-contact__success-icon {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #128c4a;
  color: #ffffff;
  font-weight: 800;
}
.mkc-contact__success-title { margin: 0 0 4px; font-weight: 800; }
.mkc-contact__success p, .mkc-contact__error p { margin: 0; }
.mkc-contact__error { display: grid; background: #fef0ee; color: #8a1c12; }
.mkc-contact__error ul { margin: 0; padding-inline-start: 1.2em; }

.mkc-contact__methods { display: grid; gap: 18px; }
.mkc-contact__methods ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mkc-contact__intro { font-size: var(--text-md); }
.mkc-method {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid #efe3e8;
  border-radius: 12px;
  background: #ffffff;
}
.mkc-method--wa { border-color: #bfe3cc; background: #f3fbf6; }
.mkc-method__icon {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fbe6ee;
  color: rgb(var(--color-button));
}
.mkc-method--wa .mkc-method__icon { background: #128c4a; color: #ffffff; }
.mkc-method__icon svg { width: 20px; height: 20px; }
.mkc-method p { margin: 0; font-size: var(--text-md); color: #5e4c53; }
.mkc-method .mkc-method__label { margin-bottom: 2px; font-size: var(--text-sm); font-weight: 800; color: var(--color-base-black); }
.mkc-method a { color: var(--color-base-black); font-size: var(--text-lg); font-weight: 700; text-decoration: none; }
.mkc-method a:hover { color: rgb(var(--color-button)); }
.mkc-method__badge {
  margin-inline-start: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #128c4a;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  vertical-align: middle;
}

@media (prefers-reduced-motion: reduce) {
  .mkc-page__nav a, .mkc-page__btn, .mkc-faq__item summary::after { transition: none; }
}
