/* V14: branded, restrained loyalty UI; original customer photographs unchanged. */
.loyalty-banner{border:1px solid #e7dcc3;border-radius:15px;background:linear-gradient(112deg,#fdfaf3 0%,#fff 65%,#faf6ec 100%);padding:14px 18px;margin:0 0 18px;display:flex;gap:15px;align-items:center;justify-content:space-between;box-shadow:0 4px 16px #9a7f4010;}
.loyalty-banner>div{display:flex;flex-direction:column;gap:5px;min-width:0}
.loyalty-banner .loyalty-kicker{color:#977128;font:700 10px/1.2 'Segoe UI',sans-serif;letter-spacing:1.6px}
.loyalty-banner strong{color:#292b2e;font:700 14px/1.35 'Segoe UI',sans-serif}
.loyalty-banner small{color:#6a6560;font:400 12px/1.4 'Segoe UI',sans-serif}
.loyalty-banner button,.referral-link button,.referral-claim button{background:#8d631b;color:#fff;border:1px solid #8d631b;border-radius:10px;cursor:pointer;font:700 12px 'Segoe UI',sans-serif;white-space:nowrap;padding:10px 13px;min-height:39px;transition:background .15s,transform .15s}
.loyalty-banner button:hover,.referral-link button:hover,.referral-claim button:hover{background:#704b13}
.loyalty-banner button:focus-visible,.referral-link button:focus-visible,.referral-claim button:focus-visible,.reward-redeem-button:focus-visible{outline:3px solid #d7b466;outline-offset:2px}
.loyalty-cart-note{margin:10px 0;color:#8d631b;font-size:12px;line-height:1.5}
.reward-redeem-button{display:block;background:#fff8e9;border:1px solid #cfb477;color:#785419;border-radius:7px;padding:7px 9px;margin:7px 0;cursor:pointer;font-size:12px;font-weight:700;text-align:left}
.reward-redeem-button.active{background:#2c2d30;color:white;border-color:#2c2d30}
.loyalty-dashboard{display:grid;gap:14px;margin:12px 0 24px}
.loyalty-head{padding:18px 20px;border-radius:18px;background:linear-gradient(125deg,#28292c,#3b352d);color:#fff}
.loyalty-head span{color:#e6c17e;font-weight:700;font-size:11px;letter-spacing:1.5px}
.loyalty-head h3{font:700 clamp(17px,2.5vw,22px)/1.28 Georgia,serif;color:#fff;margin:9px 0}
.loyalty-head p{font-size:12px;line-height:1.6;color:#e0dbd2;margin:0}
.star-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.star-progress-card{border:1px solid #e7dfd2;border-radius:17px;background:#fff;padding:16px;box-shadow:0 3px 12px #1e1d1909}
.star-title{display:flex;align-items:center;gap:10px}
.star-title>span{display:grid;place-items:center;background:#f7f0e2;border-radius:12px;width:38px;height:38px;font-size:21px;flex:none}
.star-title strong{display:block;color:#302c26;font:700 18px Georgia,serif}
.star-title small{display:block;color:#706e6b;font-size:11px;margin-top:4px;line-height:1.35}
.star-strip{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:3px;margin:14px 0 8px}
.star-strip .star{text-align:center;font-size:clamp(12px,2vw,19px);color:#e5e1d9;text-shadow:0 1px 0 white;line-height:1.5}
.star-strip .star.filled{color:#b78b36;text-shadow:0 1px 4px #c8994760}
.star-caption{display:flex;justify-content:space-between;align-items:center;gap:5px;color:#8d631b;font-size:11px}
.star-caption span{color:#73706c}
.referral-card{border:1px solid #e7dfd2;background:#fcfaf7;padding:17px 20px;border-radius:17px}
.referral-card h3{margin:0 0 7px;font:700 18px Georgia,serif;color:#292b2e}
.referral-card p{font-size:12px;line-height:1.6;color:#77716b;margin:0 0 12px}
.referral-link{display:flex;gap:6px}
.referral-link input{flex:1;min-width:0;border:1px solid #d8d5cf;border-radius:9px;padding:10px 12px;font-size:12px;color:#3d3b37;background:white}
.referral-claim{margin:10px 0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.referral-claim b{color:#815c20;font-size:12px}
.past-orders{margin-top:14px}
.past-orders h3{font:700 19px Georgia,serif}
#ordersDialog .modal-inner{max-width:670px;width:min(94vw,670px);max-height:91vh;overflow-y:auto}
#fixedCourierForm{margin-top:18px}
.test-payment-btn{display:block;border:1px solid #8d631b;background:#fff8eb;color:#734d10;border-radius:8px;font-size:11px;padding:8px 10px;margin-top:8px;cursor:pointer}
@media(max-width:700px){.loyalty-banner{padding:12px;flex-wrap:wrap}.loyalty-banner button{width:100%}.star-grid{grid-template-columns:1fr}.referral-link{flex-direction:column}.star-strip .star{font-size:18px}}
