/*APPLE ONLY STYLES*/
#btn_SubInfo,
.site-footer .container.frontpage-download-app > .download-app a.apple-app-menu-trigger,
#main .container.frontpage-download-app > .download-app a.apple-app-menu-trigger {
    display: none;
}
#btn_SubInfo {
    padding: .4em .8em;
    font-size: x-small;
    width: fit-content !important;
    height: min-content;
}
#appleMessage {
  position: fixed;
  background-color: #000000aa;
  height: 100vh;
  height: 100dvh;
  max-height: -webkit-fill-available;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  top: 0;
  left: 0;
  /* Root-level overlay: above header (3000), frontpage-home-ads (10000); below ads-reels (10050) */
  z-index: 10040;
  color: #000;
  box-sizing: border-box;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

#appleMessage .container {
  margin: max(0.75em, env(safe-area-inset-top, 0px)) 1em max(0.75em, env(safe-area-inset-bottom, 0px));
  background: linear-gradient(#fff, #ffffffaa);
  position: relative;
  border-radius: 15px;
  max-height: calc(100vh - 2em);
  max-height: min(calc(100dvh - 2em), calc(100svh - 2em));
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  overflow: hidden;
}
#appleMessage .card{
  background: url(https://ct.ttmenus.com/tutorial/apple/bg1.webp);
  padding: 0 15px 15px;
  position: relative;
  border-radius: 15px;
  width: -webkit-fill-available;
}
#appleMessage .header{
    display: flex;
  position: relative;
}
#appleMessage #slides{
    display: flex;
    width: -webkit-fill-available;
    margin: 0 auto;
    justify-content: center;
}
#appleMessage .text{
    padding: 10px;
  width: -webkit-fill-available;
  text-align: center;
}
#appleMessage .msg .msgtxt {
  display: flex;
  gap: 1em;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
  align-items: stretch;
}
#appleMessage .msg p{
    padding: 5px 0;
     text-align: center;
}
#appleMessage .appleMsgBtns{
    padding: 0;
  position: absolute;
  margin: 0;
  color: #000;
}
#appleMessage .appleMsgBtnClose{
    right: 0;
}
#appleMessage .appleMsgBtnRight{
    right: 0;
    top: 50%;
}
#appleMessage .appleMsgBtnLeft{
    left: 0;
    top: 50%;
}
#appleMessage .appleMsgBtns .fa{
  font-size: xx-large;
}
/* Main thumbs: bounded width; avoids iOS flex min-size:auto overflow */
#appleMessage .apple_tutorial_img {
  display: block;
  border-radius: 15px;
  width: clamp(108px, 34vw, 200px);
  max-width: 42%;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
  -webkit-user-select: none;
  user-select: none;
}

/* Zoomed tutorial crops: use vh/dvh height, not % — iOS WebKit collapses % when parents are auto-height */
#appleMessage .apple_tutorial_img_zoomed1,
#appleMessage .apple_tutorial_img_zoomed2,
#appleMessage .apple_tutorial_img_zoomed3,
#appleMessage .apple_tutorial_img_zoomed4 {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: min(36vh, 240px);
  height: min(36dvh, 240px);
  min-height: 128px;
  border-radius: 15px;
  object-fit: cover;
  flex-shrink: 0;
  -webkit-user-select: none;
  user-select: none;
}

#appleMessage .apple_tutorial_img_zoomed1 {
  object-position: 0% 91%;
}

#appleMessage .apple_tutorial_img_zoomed2 {
  object-position: 0% 68%;
}

#appleMessage .apple_tutorial_img_zoomed3 {
  object-position: 0% 9%;
}

#appleMessage .apple_tutorial_img_zoomed4 {
  object-position: 0% 15%;
}
#appleMessage .icon{
    height: 24px;
  width: 24px;
  padding:0 5px ;
}
#appleMessage .msgtxt1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  gap: 0.65em;
  justify-content: flex-start;
  box-sizing: border-box;
}

#appleMessage .msg1,
#appleMessage .msg2 {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75em;
  width: 100%;
  max-width: min(calc(100vw - 2.5rem), 100%);
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
}

#appleMessage .fa-warning{
    color: #fe2;
    text-shadow: 0 0 1px #000;
}
#appleMessage .msgcontainer {
  max-height: calc(100vh - 7rem);
  max-height: min(calc(100dvh - 7rem), calc(100svh - 7rem));
  min-height: 0;
  display: flex;
  flex-direction: row;
  width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}
@supports (-webkit-touch-callout: none) { /* CSS specific to iOS devices */
/* CSS specific to iOS devices */
 .chrome-pwa-install{
    display: none !important;
 }
 #btn_SubInfo, .apple-app-menu-trigger {
    display: flex !important;
 }
 #cart{
    height: calc(100dvh - 12.4em);
 }
 
 #cartcount {
    top: .4em !important;
 }
 .cartopen #cartcount {
    top: calc(-50dvh + 24em) !important;
    margin-left: 11em;
 }
 #wamodal, #itemSides, #itemMods, #itemAddMods {
    max-height: calc(100dvh - 12em); 
 }
}
