/*
* Filename: inphone_xl_index.css
* Last Mod: 01/18/2026
* Author: Seamus Gilchrist (original) / revised ordering
*
* Purpose:
* Inphone specific CSS to override default EVAP CSS. This file is included in the higher level
* html that embeds the iFrame and is not included in the iFrame itself.
*
* Notes:
* - Keep rules single-source-of-truth to avoid cascade surprises.
* - Share Link button is "fixed" in sharelink.css; we neutralize that only inside the inphone stack.
*/

/* =========================================
   Base / page behavior
   ========================================= */
html,
body {
  /* For Chrome mobile browser on Android stop swipe-down reload */
  overscroll-behavior-y: contain;
}

body {
  background-color: #000;
}

/* =========================================
   Inphone button selection layout
   ========================================= */

/* Share variant: ensure no bottom anchoring from desktop rules */
.evapQVButtonSelectionContainerShare_class {
  bottom: unset !important;
}

/* Main stacked container */
.evapQVButtonSelectionContainer_class {
  position: absolute;
  top: 60%;
  left: 50%;

  /* Your original centering method */
  transform: translate(50%, -50%);
  width: 300px;
  max-width: 300px;
  margin-left: -300px;

  display: flex;
  flex-direction: column;

  /* IMPORTANT: do NOT use space-around + negative margins for layout */
  justify-content: flex-start;
  align-items: center;
  gap: 18px;

  margin-top: 10px;

  /* IMPORTANT: allow captions to be visible */
  height: auto;
  overflow: visible;
  padding-bottom: 12px;
}

/* Button container blocks */
.buttonContainer_class {
  text-align: center;
  display: block;
  font-weight: bold;
  color: white; /* 10/03/2023 - UPDATE for Inphone new logo */
}

/* Remove overlap hack (was causing collisions on small screens) */
.buttonContainerBottom_class {
  margin-top: 0;
}

.buttonContainerSpan_class {
  text-align: center;
  display: block;
  font-size: 9.5px;
  font-weight: bolder;
  margin-top: 8px;
}

/* =========================================
   Button sizing / base look (inphone)
   ========================================= */

.audioStartButton_class,
.videoStartButton_class,
.meetButton_class,
.fileSendButton_class {
  width: 120px;
  height: 40px;
  border-radius: 50px;
  border: none;
  padding: 10px;
  font-size: 14px;
  background-size: 130px auto;
}

.meetButton_class {
  background-color: #000000 !important;
  color: white;
}

.fileSendButton_class {
  background-color: #CDCDCD !important;
  color: black !important;
}

.videoStartButton_class,
.audioStartButton_class {
  background-color: #CDCDCD !important;
  color: black !important;
}

.inphoneShareButton_class,
.fileReceiveButton_class {
  width: 120px;
  height: 40px;
  border-radius: 50px;
  border: none;
  padding: 10px;
  font-size: 14px;

  background-size: 130px auto;
  color: black !important;
  background-color: #FFF !important;
}

.inphoneShareButton_class {
  background-color: #fff !important;
  color: black !important;
}

/* =========================================
   CRITICAL FIX:
   Share Link button must NOT be fixed-position inside inphone stacked UI
   (sharelink.css sets sharelink-btn--big to position:fixed; z-index:2000)
   ========================================= */
#evapQVButtonSelection_id button.sharelink-btn.sharelink-btn--big {
  position: static !important;
  inset: auto !important;        /* neutralize top/right/bottom/left if any */
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;

  translate: none !important;
  transform: none !important;

  margin: 0 !important;
  z-index: auto !important;
}

/* =========================================
   JOIN CHAT button — style like ShareLink without touching sharelink.css
   ========================================= */
button#startVideoCallButton_id {
  color: #fff !important;
  background: #F7941D !important;

  padding: 10px 16px !important;
  border: none !important;
  border-radius: 12px !important;

  font-weight: 600 !important;
  letter-spacing: .2px !important;

  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);

  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;

  width: clamp(220px, 40vw, 280px);
  max-width: calc(100vw - 32px);

  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.1;
}

button#startVideoCallButton_id:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}

button#startVideoCallButton_id:focus {
  outline: 0;
}

button#startVideoCallButton_id:focus-visible {
  outline: 2px solid rgba(255,255,255,.85);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  button#startVideoCallButton_id {
    width: 29vw;
    min-width: 280px;
    max-width: 420px;

    font-size: 18px;
    padding: 12px 18px !important;
  }
}

@media (hover: hover) and (pointer: fine) {
  button#startVideoCallButton_id:hover {
    background: #0d2244 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,.22);
  }
}

/* =========================================
   Misc / utility overrides
   ========================================= */
.moreSelectionsOptionsDivButton_class {
  background: black !important;
}

.moreSelectionsOptionsDivButton_class:disabled,
.moreSelectionsOptionsDivButton_class[disabled] {
  background: grey !important;
}

.better-share-buttons button {
  width: 70px !important;
  height: 70px !important;
}

.displayNone {
  display: none !important;
}
