/* Approved mobile controls fixes. Other page layouts and desktop cards are unchanged. */
html body #myModal_new .modal-dialog {
  width: 790px;
  max-width: calc(100% - 32px);
}
html body #myModal_new .modal-content { width: 100%; }
@media (max-width: 991px), (max-width: 1199px) and (max-height: 600px) {
  html body #myModal_new .modal-dialog { margin: 16px auto; }
  html body #myModal_new .modal-content {
    padding: 10px;
    min-height: 0;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overflow-x: hidden;
  }
  html body #myModal_new .modal-girl,
  html body #myModal_new .modal-body .right { display: none; }
  html body #myModal_new .modal-body .left { width: 100%; padding-right: 0; }
  html body #myModal_new button.close {
    position: sticky;
    top: 0;
    float: right;
    right: 0;
    margin-bottom: -48px;
    z-index: 20;
  }
  html body #myModal_new .modal-header { padding-top: 12px; }
  html body #myModal_new .modal-body input:not([type="hidden"]) { min-height: 44px; font-size: 16px; }
  html body #myModal_new .modal-header span br { display: none; }
}
@media (max-width: 1199px) {
  html body .talk_psevdo {
    left: max(16px, env(safe-area-inset-left));
    right: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
    min-height: 44px;
    z-index: 1000;
  }
  html body .up-butt {
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(88px + env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
    z-index: 1000;
  }
  html body .up-butt img { width: 100%; height: 100%; object-fit: contain; }
  html body .hdr .phns a.stat-phone-tel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 44px;
    line-height: 1.2;
  }
  html body .hdr .phns > br { display: none; }
}
html body .talk_psevdo:focus-visible,
html body .up-butt:focus-visible { outline: 3px solid #29473d; outline-offset: 3px; }

/* Owner-approved compact benefit strip on phones and tablets. */
@media (max-width: 1199px) {
  html body .about-three { padding: 24px 0; }
  html body .about-three > .container > .row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
  }
  html body .about-three > .container > .row::before,
  html body .about-three > .container > .row::after { display: none; }
  html body .about-three > .container > .row > .col-md-4 {
    float: none;
    width: auto;
    min-width: 0;
    padding: 0;
    margin: 0;
  }
  html body .about-three .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: 0;
  }
  html body .about-three .item > img {
    display: block;
    width: clamp(60px, 12vw, 100px);
    height: clamp(60px, 12vw, 100px);
    object-fit: contain;
    max-width: 100%;
    margin: 0;
  }
  html body .about-three .item .script { width: 100%; min-width: 0; text-align: center; }
  html body .about-three .item .script p {
    color: #000;
    font-size: clamp(12px, 1.8vw, 17px);
    line-height: 1.3;
    text-align: center;
    margin: 0;
    white-space: normal;
    overflow-wrap: normal;
  }
  html body .about-three .item .script span { display: none; }
}
