/* STAGING 015C — signed-in Member mobile Passport landing polish.
   Scope: Passport landing hierarchy + country-gated mobile cover + compact My Account Wishlist.
   Stamps, Memories, bottom rail, universal header, auth and Marketplace state are intentionally untouched. */

@media (max-width:760px){
  /* Passport is the attention surface: give value its own visual station before the closed book. */
  #tpbPassport .tpb-passport-switcher{margin-bottom:16px}
  #tpbPassport .tpb-balance{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    padding:0;
    margin:0 0 20px;
    border:0;
  }
  #tpbPassport .tpb-balance>div{
    min-width:0;
    min-height:82px;
    padding:13px 14px 12px;
    border:1px solid #dce8e2;
    border-radius:16px;
    background:linear-gradient(145deg,#ffffff,#f7fbf9);
    box-shadow:0 9px 22px rgba(21,61,50,.055);
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:space-between;
    gap:8px;
    position:relative;
    overflow:hidden;
  }
  #tpbPassport .tpb-balance>div:before{
    content:"";
    position:absolute;
    inset:0 0 auto;
    height:3px;
    background:#2b9563;
  }
  #tpbPassport .tpb-balance>div:nth-child(2){
    border-color:#eadfb9;
    background:linear-gradient(145deg,#fffefb,#fff9e9);
  }
  #tpbPassport .tpb-balance>div:nth-child(2):before{background:#b89035}
  #tpbPassport .tpb-balance small{
    font-size:8px;
    line-height:1.25;
    letter-spacing:.16em;
    font-weight:900;
    color:#71827a;
  }
  #tpbPassport .tpb-balance strong{
    font-size:31px;
    line-height:1;
    font-weight:780;
    color:#12344a;
  }
  #tpbPassport .tpb-balance>div:nth-child(2) strong{color:#9d7925}
  #tpbPassport .tpb-balance:has(>div:nth-child(2)[hidden]){grid-template-columns:1fr}

  #tpbPassport .tpb-passport-object{margin-top:4px}
  #tpbPassport .tpb-book{min-height:300px}

  /* Neutral Toura fallback remains the default when no supported country theme is selected. */
  #tpbPassport .tpb-book-cover[data-passport-country="GLOBAL"]{
    background:
      radial-gradient(circle at 82% 13%,rgba(64,151,114,.24),transparent 31%),
      linear-gradient(145deg,#0b4b42,#07382f 60%,#052d28);
  }

  /* Costa Rica: intentionally echoes the current biometric passport's navy + gold hierarchy,
     while replacing government insignia and government wording with a Toura monogram and brand. */
  #tpbPassport .tpb-book-cover[data-passport-country="CR"]{
    inset:0 8% 0 8%;
    border-radius:9px 17px 17px 9px;
    background:
      repeating-radial-gradient(ellipse at 16% 84%,transparent 0 18px,rgba(255,255,255,.017) 19px 20px,transparent 21px 37px),
      radial-gradient(circle at 86% 12%,rgba(255,255,255,.035),transparent 27%),
      linear-gradient(145deg,#102a48,#0a223d 58%,#071a31);
    color:#dfbd63;
    box-shadow:
      0 24px 46px rgba(6,27,52,.23),
      inset 0 0 0 1px rgba(223,189,99,.30),
      inset -16px 0 26px rgba(0,0,0,.16),
      inset 5px 0 0 rgba(223,189,99,.055);
    transform:rotateY(-2deg);
    padding:32px 22px 29px;
    justify-content:flex-start;
  }
  #tpbPassport .tpb-book-cover[data-passport-country="CR"]:before{
    inset:13px;
    border-color:rgba(223,189,99,.20);
    border-radius:6px 13px 13px 6px;
  }
  #tpbPassport .tpb-book-cover[data-passport-country="CR"]:after{
    content:"TOURA PASSPORT";
    position:absolute;
    left:0;
    right:0;
    bottom:27px;
    color:#d6b65f;
    font-size:8px;
    line-height:1;
    letter-spacing:.18em;
    font-weight:850;
    text-align:center;
    text-shadow:0 1px 0 rgba(255,255,255,.08);
  }
  #tpbPassport .tpb-book-cover[data-passport-country="CR"]>small{
    margin:0;
    color:#cbaa57;
    font-size:7px;
    letter-spacing:.28em;
    font-weight:800;
    opacity:.84;
  }
  #tpbPassport .tpb-book-cover[data-passport-country="CR"]>span{
    width:66px;
    height:66px;
    margin:22px 0 17px;
    border:1px solid #dfbd63;
    color:#dfbd63;
    background:radial-gradient(circle,rgba(223,189,99,.055),transparent 70%);
    box-shadow:inset 0 0 0 5px rgba(223,189,99,.025);
    font-size:20px;
    letter-spacing:.04em;
    position:relative;
  }
  #tpbPassport .tpb-book-cover[data-passport-country="CR"]>span:before,
  #tpbPassport .tpb-book-cover[data-passport-country="CR"]>span:after{
    content:"";
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    width:28px;
    height:7px;
    border-top:1px solid rgba(223,189,99,.62);
    border-radius:50%;
  }
  #tpbPassport .tpb-book-cover[data-passport-country="CR"]>span:before{top:12px}
  #tpbPassport .tpb-book-cover[data-passport-country="CR"]>span:after{bottom:8px;transform:translateX(-50%) rotate(180deg)}
  #tpbPassport .tpb-book-cover[data-passport-country="CR"]>strong{
    margin:0;
    color:#dfbd63;
    font-family:Arial,Helvetica,sans-serif;
    font-size:31px;
    line-height:.89;
    font-weight:850;
    letter-spacing:.025em;
    text-align:center;
    text-shadow:0 1px 0 rgba(255,255,255,.08);
  }
  #tpbPassport .tpb-book-cover[data-passport-country="CR"]>em{
    margin-top:9px;
    color:#d8b960;
    font-family:Arial,Helvetica,sans-serif;
    font-size:8px;
    line-height:1;
    font-style:normal;
    font-weight:800;
    letter-spacing:.14em;
  }

  /* My Account Wishlist is a summary/doorway, not a second Marketplace catalog. */
  #tpbProfile .member-marketplace-wishlist.tp012f-mobile-wishlist{
    margin-top:10px;
    padding:15px 16px 14px;
  }
  #tpbProfile .member-marketplace-wishlist.tp012f-mobile-wishlist .member-marketplace-wishlist-items,
  #tpbProfile .member-marketplace-wishlist.tp012f-mobile-wishlist .member-marketplace-wishlist-preview-note{display:none!important}
  #tpbProfile .member-marketplace-wishlist.tp012f-mobile-wishlist .member-marketplace-wishlist-head{align-items:center}
  #tpbProfile .member-marketplace-wishlist.tp012f-mobile-wishlist .member-marketplace-wishlist-head p{max-width:265px;line-height:1.45}
  #tpbProfile .member-marketplace-wishlist.tp012f-mobile-wishlist .member-marketplace-wishlist-actions{margin-top:11px}
}
