/* Blockart Refer & Earn: product box, share sheet, friend's strip, points line (Helpers/Referrals.cs) */
:root {--br-pink:#ff71a8; --br-deep:#c2185b; --br-line:#efc4b6;}

/* "You earn 79 Blockart Family points" under the price */
.br-pts {display:inline-flex; align-items:center; gap:8px; margin-top:10px; font-size:14.5px; color:var(--PColor); background:#fff5e6; border:1px dashed #e0a84f; border-radius:30px; padding:6px 14px; line-height:1.3;}
.br-pts i {color:#b07a1e;}
.br-pts b {font-weight:600;}
.br-pts a {color:var(--br-deep); text-decoration:underline; margin-left:2px;}

/* ---------- product page box ---------- */
.br-ref {position:relative; margin-top:26px; border-radius:20px; background:var(--BGColor); border:1px solid #f1cfc3; padding:22px 22px 18px; overflow:hidden; scroll-margin-top:110px;}
.br-ref::before {content:''; position:absolute; right:-60px; top:-60px; width:220px; height:220px; background:url(../../assets/images/shap_roun_bg.png) no-repeat center/contain; opacity:.35; pointer-events:none;}
.br-ref > * {position:relative;}
.br-ref-head {display:flex; gap:16px; align-items:center;}
.br-ref-gift {flex:0 0 64px; height:64px; border-radius:50%; background:var(--PColor); color:#fff; display:flex; align-items:center; justify-content:center; font-size:28px; box-shadow:0 8px 18px rgb(81 58 71 / 30%);}
.br-ref-kicker {display:inline-block; font-size:12px; font-weight:600; letter-spacing:1.5px; color:var(--br-deep); background:#fff; border-radius:20px; padding:2px 10px; text-transform:uppercase;}
.br-ref-head h3 {font-size:21px; font-weight:500; color:var(--PColor); margin:5px 0 0; line-height:1.3; text-transform:none;}
.br-ref-head h3 em {font-style:normal; color:var(--br-deep);}
.br-ref-head p {font-size:14.5px; color:#4b3a43; margin:2px 0 0;}
.br-ref-steps {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:16px 0 0; padding:0; list-style:none;}
.br-ref-steps li {position:relative; background:#fff; border-radius:14px; padding:12px 12px 11px;}
.br-ref-steps li:not(:last-child)::after {content:''; position:absolute; right:-13px; top:50%; width:14px; border-top:2px dashed var(--br-pink);}
.br-ref-steps i {font-style:normal; display:inline-flex; width:24px; height:24px; border-radius:50%; background:var(--br-pink); color:#fff; font-size:12.5px; font-weight:600; align-items:center; justify-content:center;}
.br-ref-steps b {display:block; font-size:14.5px; font-weight:500; color:var(--PColor); margin-top:7px;}
.br-ref-steps b em {font-style:normal; color:var(--br-deep);}
.br-ref-steps span {display:block; font-size:12.5px; color:#6b5d64; margin-top:2px; line-height:1.4;}
.br-ref-link {display:flex; gap:10px; margin-top:14px;}
.br-ref-field {flex:1; min-width:0; display:flex; align-items:center; gap:10px; background:#fff; border:1.5px dashed #d6a9a0; border-radius:12px; padding:0 6px 0 12px; height:50px;}
.br-ref-field > i {color:var(--br-deep);}
.br-ref-field input {flex:1; min-width:0; border:0; background:transparent; font-size:14.5px; color:var(--PColor); outline:0; text-overflow:ellipsis;}
.br-ref-copy {height:38px; padding:0 14px; border:0; border-radius:9px; background:var(--PColor); color:#fff; font-size:14px; font-weight:500; white-space:nowrap; cursor:pointer;}
.br-ref-wa {height:50px; padding:0 18px; border-radius:12px; background:#25D366; color:#fff !important; display:inline-flex; align-items:center; gap:8px; font-size:15.5px; font-weight:500; white-space:nowrap; text-decoration:none !important;}
.br-ref-wa i {font-size:20px;}
.br-ref-more {width:50px; height:50px; flex:0 0 50px; border-radius:12px; background:#fff; border:1px solid #efd3c8; color:var(--PColor); font-size:18px; cursor:pointer;}
.br-ref-me {display:flex; flex-wrap:wrap; align-items:center; gap:12px 22px; margin-top:14px; padding-top:12px; border-top:1.5px dashed var(--br-line);}
.br-ref-stat b {display:block; font-size:20px; font-weight:600; color:var(--PColor); line-height:1.1;}
.br-ref-stat span {font-size:12.5px; color:#6b5d64;}
.br-ref-mile {flex:1 1 240px;}
.br-ref-mile-t {display:flex; justify-content:space-between; gap:10px; font-size:12.5px; color:var(--PColor);}
.br-ref-mile-t b {color:var(--br-deep); font-weight:600;}
.br-ref-track {height:8px; background:#fff; border-radius:10px; margin-top:6px; overflow:hidden;}
.br-ref-track i {display:block; height:100%; border-radius:10px; background:repeating-linear-gradient(-45deg,var(--br-pink) 0 6px,#ff95bf 6px 12px);}
.br-ref-guest {display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; margin-top:14px;}
.br-ref-signin {display:inline-flex; align-items:center; gap:8px; height:48px; padding:0 22px; border-radius:30px; background:var(--PColor); color:#fff !important; font-size:15px; font-weight:500; text-decoration:none !important;}
.br-ref-guest span {font-size:13.5px; color:#6b5d64;}
.br-ref-rules {margin:12px 0 0; font-size:12.5px; color:#6b5d64; line-height:1.5;}
.br-ref-rules a {color:var(--br-deep); text-decoration:underline;}

/* ---------- share sheet ---------- */
.br-sheet {position:fixed; inset:0; z-index:9999;}
.br-sheet[hidden] {display:none;}
.br-sheet-dim {position:absolute; inset:0; background:rgb(40 25 34 / 55%);}
.br-sheet-in {position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:min(420px, calc(100vw - 24px)); max-height:calc(100vh - 24px); overflow:auto; background:#fff; border-radius:22px; padding:14px 18px 20px; box-shadow:0 20px 60px rgb(0 0 0 / 30%);}
.br-sheet-grab {display:none; width:44px; height:5px; border-radius:4px; background:#ddd; margin:0 auto 10px;}
.br-sheet-x {position:absolute; right:10px; top:8px; width:36px; height:36px; border:0; background:transparent; font-size:26px; line-height:1; color:var(--PColor); cursor:pointer;}
.br-sheet-in h4 {font-size:19px; font-weight:500; color:var(--PColor); text-align:center; margin:6px 0 0;}
.br-sheet-sub {font-size:13.5px; color:#6b5d64; text-align:center; margin:3px 0 0;}
.br-sheet-msg {margin-top:14px; background:#e7fbe9; border-radius:14px 14px 14px 4px; padding:10px; font-size:13.5px; line-height:1.45; color:#1e2b22;}
.br-sheet-msg img {width:100%; height:150px; object-fit:cover; object-position:top; border-radius:10px; display:block; margin-bottom:8px;}
.br-sheet-msg u {color:#0b7a3b; word-break:break-all;}
.br-sheet-apps {display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-top:16px; text-align:center;}
.br-sheet-apps a, .br-sheet-apps button {display:flex; flex-direction:column; align-items:center; gap:6px; font-size:12px; color:var(--PColor) !important; background:none; border:0; padding:0; cursor:pointer; text-decoration:none !important;}
.br-sheet-apps span {display:flex; width:54px; height:54px; border-radius:50%; align-items:center; justify-content:center; color:#fff; font-size:24px;}
.br-wa {background:#25D366;} .br-ig {background:linear-gradient(45deg,#f9a03f,#d92e7f,#7b3fe4);} .br-fb {background:#1877F2;} .br-cp {background:var(--BGColor); color:var(--PColor) !important;}
.br-sheet-code {display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:16px; border:1.5px dashed var(--br-pink); border-radius:12px; padding:10px 12px; background:#fff5f9;}
.br-sheet-code small {display:block; font-size:11.5px; color:#6b5d64;}
.br-sheet-code b {font-size:20px; letter-spacing:2px; color:var(--br-deep);}
.br-sheet-code button {padding:8px 14px; border:0; border-radius:8px; background:var(--PColor); color:#fff; font-size:13px; cursor:pointer;}
.br-sheet-note {min-height:18px; margin:10px 0 0; font-size:13px; color:#1f7a4a; text-align:center;}
html.br-sheet-open, html.br-sheet-open body {overflow:hidden;}

.br-toast {position:fixed; left:50%; bottom:90px; transform:translate(-50%, 20px); background:var(--PColor); color:#fff; padding:10px 18px; border-radius:30px; font-size:14px; opacity:0; transition:opacity .2s, transform .2s; z-index:10000; pointer-events:none; max-width:calc(100vw - 30px); text-align:center;}
.br-toast.show {opacity:1; transform:translate(-50%, 0);}

/* ---------- friend's strip (top of every page) ---------- */
.br-strip {position:relative; background:linear-gradient(90deg,#513A47,#7a3a5c); color:#fff; font-size:14.5px;}
.br-strip[hidden] {display:none;}
.br-strip .container {display:flex; align-items:center; justify-content:center; gap:12px; min-height:44px; padding-top:6px; padding-bottom:6px; padding-right:44px; text-align:center;}
.br-strip i.fa-gift {color:#ffd1e3; font-size:17px;}
.br-strip b {font-weight:600; color:#fff;}
.br-strip em {font-style:normal; background:var(--br-pink); color:#fff; border-radius:20px; padding:2px 10px; font-weight:600; white-space:nowrap;}
.br-strip-x {position:absolute; right:10px; top:50%; transform:translateY(-50%); width:32px; height:32px; border:0; background:transparent; color:#fff; font-size:22px; line-height:1; cursor:pointer; opacity:.85;}

/* ---------- Blockart Family page: Refer & Earn tab ---------- */
.br-fam-list {width:100%; border-collapse:collapse; margin-top:16px; font-size:14px;}
.br-fam-list th, .br-fam-list td {padding:9px 10px; border-bottom:1px solid #f0dcd4; text-align:left;}
.br-fam-list th {font-weight:600; color:var(--PColor); background:#fdf3ef;}
.br-fam-st {display:inline-block; font-size:12px; border-radius:20px; padding:2px 10px; background:#f3e9e5; color:var(--PColor);}
.br-fam-st.rewarded {background:#e2f5e9; color:#1f7a4a;}
.br-fam-st.ordered {background:#fff1dc; color:#9a5b00;}

@media (max-width:767px) {
  .br-ref {padding:18px 14px 14px; border-radius:16px;}
  .br-ref-head h3 {font-size:18px;}
  .br-ref-gift {flex-basis:52px; height:52px; font-size:22px;}
  .br-ref-steps {grid-template-columns:1fr; gap:8px;}
  .br-ref-steps li {display:grid; grid-template-columns:28px 1fr; column-gap:8px; align-items:start; padding:10px 12px;}
  .br-ref-steps li i {grid-row:span 2;}
  .br-ref-steps li b {margin-top:2px;}
  .br-ref-steps li:not(:last-child)::after {display:none;}
  .br-ref-link {flex-wrap:wrap;}
  .br-ref-field {flex:1 1 100%;}
  .br-ref-wa {flex:1;  justify-content:center;}
  .br-sheet-in {left:0; right:0; bottom:0; top:auto; transform:none; width:auto; border-radius:22px 22px 0 0; max-height:90vh;}
  .br-sheet-grab {display:block;}
  .br-strip {font-size:13px;}
  .br-strip .container {justify-content:flex-start; text-align:left;}
}
