/* ==========================================================
   INESS Beauty — Mini App Shell
   Shop / Booking standalone experience
   ========================================================== */

body.iness-mini-page {
  --iness-mini-max: 720px;

  min-height: 100dvh;

  background:
    radial-gradient(
      circle at 50% -180px,
      rgba(255,255,255,.88),
      transparent 390px
    ),
    var(--iness-bg);
}


/* ----------------------------------------------------------
   Header
   ---------------------------------------------------------- */

.iness-mini-shell {
  position: sticky;
  z-index: 80;
  top: 0;

  width: 100%;

  padding:
    max(8px, env(safe-area-inset-top))
    max(14px, env(safe-area-inset-right))
    8px
    max(14px, env(safe-area-inset-left));

  background:
    linear-gradient(
      to bottom,
      rgba(245,241,235,.97),
      rgba(245,241,235,.91)
    );

  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.iness-mini-shell::after {
  content: "";

  position: absolute;
  left: 50%;
  bottom: 0;

  width:
    min(
      calc(100% - 28px),
      var(--iness-mini-max)
    );
  height: 1px;

  transform: translateX(-50%);

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(112,91,72,.12) 15%,
      rgba(112,91,72,.12) 85%,
      transparent
    );
}

.iness-mini-shell__inner {
  width: 100%;
  max-width: var(--iness-mini-max);
  min-height: 43px;

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}


/* ----------------------------------------------------------
   Brand
   ---------------------------------------------------------- */

.iness-mini-shell__brand {
  min-width: 0;

  display: flex;
  flex-direction: column;

  line-height: 1;
}

.iness-mini-shell__name {
  overflow: hidden;

  color: var(--iness-text);

  font-family: var(--iness-font-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -.015em;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.iness-mini-shell__section {
  margin-top: 5px;

  color: var(--iness-accent);

  font-family: var(--iness-font-ui);
  font-size: 8px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 1.65px;

  text-transform: uppercase;
}


/* ----------------------------------------------------------
   Full app button
   ---------------------------------------------------------- */

.iness-mini-shell__app {
  flex: 0 0 auto;

  width: 36px;
  height: 36px;

  padding: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid
    rgba(112,91,72,.13);
  border-radius: 13px;

  background:
    rgba(255,253,249,.72);

  color: var(--iness-text);

  box-shadow:
    0 4px 18px
    rgba(55,42,28,.045);

  cursor: pointer;

  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);

  transition:
    transform .13s ease,
    background-color .15s ease,
    box-shadow .15s ease;
}

.iness-mini-shell__app svg {
  display: block;

  width: 16px;
  height: 16px;

  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;

  fill: none;
}

.iness-mini-shell__app:active {
  transform: scale(.94);
}

.iness-mini-shell__app:focus-visible {
  outline: none;

  box-shadow:
    0 0 0 3px
    rgba(161,122,82,.10),
    0 4px 18px
    rgba(55,42,28,.045);
}


/* ----------------------------------------------------------
   Standalone shop integration
   Old shop logo is replaced by shared shell.
   ---------------------------------------------------------- */

body.iness-mini-page.iness-shop-scope
.tg-hide-brand {
  display: none !important;
}

body.iness-mini-page.iness-shop-scope
.hero {
  padding-top: 18px;
}


/* ----------------------------------------------------------
   Booking integration
   ---------------------------------------------------------- */

body.iness-booking-page
.wrap {
  padding-top: 0;
}


/* ----------------------------------------------------------
   Desktop / tablet
   ---------------------------------------------------------- */

@media (min-width: 760px) {
  .iness-mini-shell {
    padding-top:
      max(
        12px,
        env(safe-area-inset-top)
      );
  }

  .iness-mini-shell__inner {
    min-height: 48px;
  }

  .iness-mini-shell__name {
    font-size: 19px;
  }
}


/* ----------------------------------------------------------
   Reduced motion
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .iness-mini-shell__app {
    transition: none;
  }
}
