
/* ===============================
   Handset Card Overrides
   =============================== */

/* Make the handset header the positioning container */
.handset_item_top{
  position: relative !important;
  padding-top: 0 !important;
}

/* Merchant logo: top-right */
figure.handset_item_top_logo{
  position: absolute !important;
  top: 0 !important;
  right: 15px !important;

  width: 90px !important;
  margin: 0 !important;
  display: block !important;

  background: #ffffff;
  padding: 6px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

figure.handset_item_top_logo img{
  width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: 6px;
}

/* Remove the thin divider line under header/logo */
.handset_item_top hr{
  display: none !important;
}

/* Remove bottom border line on the header wrapper */
.handset_uniq_wrap{
  border-bottom: none !important;
}

/* Reserve space on the right so title NEVER goes under logo */
.handset_item_top.handset_uniq_wrap .handset_title_wrapper{
  padding-right: 130px !important; /* 90px logo + padding + gap */
  box-sizing: border-box !important;
}

.handset_title_wrapper{
  outline: 2px solid red !important;
}

/* Prevent title text going under the logo */
.handset_item_top.handset_uniq_wrap .handset_title_wrapper{
  padding-right: 120px !important;
}

@media (max-width: 991px){
  .handset_item_top.handset_uniq_wrap .handset_title_wrapper > h5{
    background: yellow !important;
    color: #000 !important;
    font-size: 30px !important;
  }
}

@media (max-width: 991px){
  /* Reserve space for the logo */
  .handset_item_top.handset_uniq_wrap .handset_title_wrapper{
    padding-right: 150px !important;
    box-sizing: border-box !important;
    background: rgba(255,255,0,0.3) !important; /* TEMP: visible proof */
  }
}

@media (max-width: 991px){
  /* Keep the title from running under the top-right logo */
  .handset_item_top h5{
    padding-right: 15px !important;  /* space for 90px logo + padding */
    box-sizing: border-box !important;
    width: 100% !important;
  }
}