/* Mi Service Provider - shared pop-up card, banner and Service Sense styles */
.msp-modal {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(16,24,32,.55);
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.msp-modal-box {
    position: relative;
    width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto;
    background: #fff; border-radius: 16px; padding: 26px 24px 22px;
    box-shadow: 0 24px 60px rgba(0,0,0,.3);
    font-family: Arial, Helvetica, sans-serif; color: #17212b; text-align: center;
}
.msp-modal-x {
    position: absolute; top: 8px; right: 10px;
    border: 0; background: none; font-size: 28px; line-height: 1; color: #667085; cursor: pointer;
}
.msp-modal h3 { margin: 4px 0 6px; font-size: 21px; color: #101820; }
.msp-modal p { margin: 6px 0; font-size: 14.5px; line-height: 1.5; color: #475467; }
.job-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 10px; }
.job-code { border: 2px solid #F68C11; border-radius: 12px; padding: 10px 6px; background: #fff7ee; }
.job-code small { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #D9760A; }
.job-code b { display: block; font-size: 24px; letter-spacing: 2px; color: #101820; font-family: "Courier New", monospace; }
.job-code.pin { border-color: #2F5FE0; background: #eef3fe; }
.job-code.pin small { color: #2F5FE0; }
.msp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; margin-top: 10px; padding: 13px 14px; border-radius: 10px; border: 0;
    font: inherit; font-size: 15.5px; font-weight: 800; cursor: pointer; text-decoration: none;
    background: #F68C11; color: #fff;
}
.msp-btn:hover { background: #D9760A; }
.msp-btn.ghost { background: #fff; color: #101820; border: 1px solid #cfd8e0; }
.msp-btn.ghost:hover { background: #f6f8fa; }
.msp-btn.blue { background: #2F5FE0; }
.msp-btn.blue:hover { background: #1f47b8; }
.msp-note { font-size: 12.5px !important; color: #667085 !important; }
.qr-box { width: 230px; height: 230px; margin: 14px auto 6px; padding: 8px; border: 1px solid #dfe5eb; border-radius: 12px; background: #fff; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.ss-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 12px; color: #667085; }
.ss-brand img { width: 26px; height: 26px; }
.ss-brand b { color: #101632; }

/* "Rate your job" reminder bar */
.rate-bar {
    position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 900;
    width: calc(100% - 24px); max-width: 720px;
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px 10px 14px; border-radius: 14px;
    background: #101632; color: #fff; box-shadow: 0 14px 34px rgba(16,22,50,.35);
    font-family: Arial, Helvetica, sans-serif; font-size: 14.5px;
}
.rate-bar img { width: 34px; height: 34px; flex: 0 0 auto; background: #fff; border-radius: 50%; padding: 2px; }
.rate-bar .txt { flex: 1 1 auto; line-height: 1.35; }
.rate-bar .txt small { display: block; color: #b9c6ee; font-size: 12.5px; }
.rate-bar a.go { flex: 0 0 auto; background: #2F5FE0; color: #fff; font-weight: 800; padding: 10px 14px; border-radius: 9px; text-decoration: none; white-space: nowrap; }
.rate-bar a.go:hover { background: #4a74ea; }
.rate-bar button { flex: 0 0 auto; border: 0; background: none; color: #b9c6ee; font-size: 22px; cursor: pointer; padding: 0 4px; }
@media (max-width: 560px) {
    .rate-bar { flex-wrap: wrap; }
    .rate-bar a.go { width: 100%; text-align: center; order: 3; }
}
.job-code b { white-space: nowrap; }
@media (max-width: 420px) {
    .job-code b { font-size: 19px; letter-spacing: .5px; }
    .msp-modal-box { padding: 24px 16px 18px; }
}

/* ---------- Provider tile (mini business card) ---------- */
.tile-top { text-align: center; margin-bottom: 6px; }
.tile-logo { height: 56px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.tile-logo img { max-height: 56px; max-width: 85%; object-fit: contain; display: block; }
.tile-initials { width: 52px; height: 52px; border-radius: 50%; color: #fff; font: 800 20px Arial, Helvetica, sans-serif; display: flex; align-items: center; justify-content: center; letter-spacing: .5px; }
.tile-logo-ph { width: 86px; height: 52px; border: 2px dashed #cfd8e0; border-radius: 10px; color: #98a2b3; font: 800 11px Arial, Helvetica, sans-serif; text-transform: uppercase; letter-spacing: .5px; display: flex; align-items: center; justify-content: center; line-height: 1.15; background: #fff; }
.tile-name { line-height: 1.15; height: 44px; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; overflow-wrap: anywhere; }
.tile-town { font: 12.5px Arial, Helvetica, sans-serif; color: #667085; margin-top: 2px; }

/* ---------- Tile editor ---------- */
.te-row { margin-bottom: 18px; }
.te-row + .te-row { border-top: 1px dashed #dfe5eb; padding-top: 16px; }
.te-row .f { display: block; font-size: 14px; font-weight: 700; color: #101820; margin-bottom: 6px; }
.te-row .f small { font-weight: 400; color: #667085; }
.te-logo-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.te-logo-row input[type=file] { font: inherit; font-size: 14px; max-width: 100%; }
.te-clear { font: inherit; font-size: 13px; border: 1px solid #cfd8e0; background: #fff; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.te-fonts { display: flex; flex-wrap: wrap; gap: 8px; }
.te-fonts button { font-size: 16px; padding: 8px 12px; border: 1px solid #cfd8e0; border-radius: 9px; background: #fff; cursor: pointer; color: #101820; }
.te-fonts button.on { border: 2px solid #F68C11; background: #fff7ee; }
.te-colours { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.te-colours button { width: 32px; height: 32px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #cfd8e0; cursor: pointer; }
.te-colours button.on { box-shadow: 0 0 0 3px #F68C11; }
.te-custom { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: #475467; cursor: pointer; }
.te-custom input { width: 34px; height: 30px; border: 1px solid #cfd8e0; border-radius: 6px; padding: 0; background: #fff; cursor: pointer; }

/* Laptop job card: QR to rate from the phone */
.job-qr { margin: 6px auto 0; width: 170px; }
.job-qr svg { width: 170px; height: 170px; display: block; border: 1px solid #e4e7ec; border-radius: 10px; }
.msp-btn.wa-big { background: #1EBE5A; font-size: 18px; padding: 15px; }
.msp-btn.wa-big:hover { background: #17a34d; }

/* Customer details form (before WhatsApp / Rate my Service) */
.cust-form { text-align: left; margin-top: 6px; }
.cust-form label { display: block; font-size: 14px; font-weight: 700; color: #101820; margin: 10px 0 5px; }
.cust-form input[type=tel], .cust-form input[type=email] { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; border: 1px solid #cfd8e0; border-radius: 9px; padding: 11px 12px; }
.cust-form .cust-tick { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; font-size: 14px; color: #344054; line-height: 1.4; margin: 12px 0 0; cursor: pointer; }
.cust-form .cust-tick input { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 auto; accent-color: #F68C11; }
.cust-form .cust-tick small { color: #667085; }
.cust-form .cust-tick a { color: #D9760A; font-weight: 700; }
.cust-err { display: none; margin-top: 12px; color: #b42318; background: #fef3f2; border: 1px solid #fecdca; border-radius: 10px; padding: 9px 12px; font-size: 14px; }
/* Larger logo space on screens with room (logos are trimmed of empty borders first) */
@media (min-height: 781px), (max-width: 1050px) {
    .tile-logo { height: 64px; }
    .tile-logo img { max-height: 64px; max-width: 90%; }
}
.te-sizes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.te-sizes span { font-size: 14px; color: #667085; font-weight: 700; margin-right: 2px; }
.te-sizes button { font: inherit; font-size: 14px; padding: 6px 12px; border: 1px solid #cfd8e0; border-radius: 999px; background: #fff; cursor: pointer; color: #101820; }
.te-sizes button.on { border: 2px solid #F68C11; background: #fff7ee; font-weight: 700; }
.tile-methods { display: flex; flex-wrap: nowrap; justify-content: center; gap: 4px; overflow: hidden; margin: 3px 0 2px; height: 18px; }
.tile-methods span { flex: 0 0 auto; font-size: 10.5px; font-weight: 700; color: #344054; background: #eef1f4; border-radius: 999px; padding: 2px 7px; line-height: 14px; }
@media (min-width: 1051px) and (max-height: 640px) { .tile-methods { display: none; } }
.tile-methods span.more { background: #fff7ee; color: #9a5b00; }
