/* =========================================================
   VANCE CEYLON — INSTALLED APP CHECKOUT SYNC
   Critical standalone-PWA payment layout.
   Keeps installed app identical to mobile browser checkout.
========================================================= */

@media (display-mode: standalone) and (max-width: 620px),
       (display-mode: minimal-ui) and (max-width: 620px) {

  html body #vanceCheckout .vc-ref-payment .vc-ref-method-row{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
    width:100% !important;
    align-items:stretch !important;
  }

  html[data-vance-template="daylight"][data-shop-theme="day"] body #vanceCheckout .vc-ref-payment label.vc-method.vc-ref-method,
  html body #vanceCheckout .vc-ref-payment label.vc-method.vc-ref-method{
    display:grid !important;
    grid-template-columns:15px 22px minmax(0,1fr) !important;
    align-items:center !important;
    column-gap:6px !important;
    width:100% !important;
    min-width:0 !important;
    min-height:58px !important;
    height:auto !important;
    margin:0 !important;
    padding:8px !important;
    border:1px solid #d9d9d9 !important;
    border-radius:10px !important;
    background:#fff !important;
    color:#111 !important;
    box-shadow:none !important;
    overflow:visible !important;
    text-align:left !important;
  }

  html[data-vance-template="daylight"][data-shop-theme="day"] body #vanceCheckout .vc-ref-payment label.vc-method.vc-ref-method:has(input[type="radio"]:checked),
  html body #vanceCheckout .vc-ref-payment label.vc-method.vc-ref-method:has(input[type="radio"]:checked){
    background:#fff !important;
    color:#111 !important;
    border:1.5px solid #111 !important;
    box-shadow:inset 0 0 0 1px #111 !important;
  }

  html body #vanceCheckout .vc-ref-payment label.vc-method.vc-ref-method > input[type="radio"]{
    position:static !important;
    display:block !important;
    grid-column:1 !important;
    width:15px !important;
    height:15px !important;
    min-width:15px !important;
    min-height:15px !important;
    margin:0 !important;
    opacity:1 !important;
    visibility:visible !important;
    -webkit-appearance:radio !important;
    appearance:auto !important;
    accent-color:#111 !important;
  }

  html body #vanceCheckout .vc-ref-payment label.vc-method.vc-ref-method > .vc-ref-method-icon{
    grid-column:2 !important;
    display:grid !important;
    place-items:center !important;
    width:22px !important;
    min-width:22px !important;
    max-width:22px !important;
    height:22px !important;
    min-height:22px !important;
    max-height:22px !important;
    margin:0 !important;
    padding:0 !important;
    color:#111 !important;
  }

  html body #vanceCheckout .vc-ref-payment label.vc-method.vc-ref-method > .vc-ref-method-icon svg{
    width:20px !important;
    height:20px !important;
  }

  html body #vanceCheckout .vc-ref-payment label.vc-method.vc-ref-method > span:not(.vc-ref-method-icon){
    grid-column:3 !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    justify-content:center !important;
    gap:2px !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    color:#111 !important;
    text-align:left !important;
  }

  html body #vanceCheckout .vc-ref-payment label.vc-method.vc-ref-method > span:not(.vc-ref-method-icon) > strong{
    display:block !important;
    width:100% !important;
    margin:0 !important;
    color:#111 !important;
    font-size:10.5px !important;
    line-height:1.15 !important;
    font-weight:800 !important;
    white-space:normal !important;
    overflow:visible !important;
  }

  html body #vanceCheckout .vc-ref-payment label.vc-method.vc-ref-method > span:not(.vc-ref-method-icon) > small{
    display:block !important;
    width:100% !important;
    margin:0 !important;
    color:#6b6b6b !important;
    font-size:8.5px !important;
    line-height:1.18 !important;
    font-weight:550 !important;
    white-space:normal !important;
    overflow:visible !important;
  }

  html body #vanceCheckout .vc-ref-payment #vcBankDetails,
  html body #vanceCheckout .vc-ref-payment #vcBankInfo{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    max-height:none !important;
    margin:10px 0 0 !important;
    padding:11px 12px !important;
    overflow:visible !important;
    border:1px solid #e4e4e4 !important;
    border-radius:10px !important;
    background:#f6f6f6 !important;
    color:#222 !important;
    box-shadow:none !important;
    font-size:11.5px !important;
    line-height:1.5 !important;
    font-weight:550 !important;
    text-align:left !important;
    white-space:pre-wrap !important;
    overflow-wrap:anywhere !important;
  }
}
