/* My Account: My enquiries, My documents, Refer a friend. Loaded after account.css (lib/page-top.php). */

/* ---------- shared ---------- */
.mtm-acc .acc-eq-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.mtm-acc .acc-eq-head h2 { margin-bottom: 4px; }
.mtm-acc .acc-eq textarea, .mtm-acc .acc-gd textarea, .mtm-acc .acc-rf textarea { width: 100%; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--acc-text); border: 1px solid var(--acc-line); border-radius: 8px; background: #fff; resize: vertical; }
.mtm-acc .acc-eq textarea:focus { outline: 2px solid var(--acc-brand); outline-offset: -1px; }

/* ---------- My enquiries ---------- */
.mtm-acc .acc-eq-item { border: 1px solid var(--acc-line); border-radius: 14px; margin: 0 0 12px; background: #fff; overflow: hidden; }
.mtm-acc .acc-eq-item[open] { box-shadow: 0 6px 22px rgba(1, 30, 74, .07); border-color: #d7dce6; }
.mtm-acc .acc-eq-item.closed { background: #fafbfc; }
.mtm-acc .acc-eq-item > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.mtm-acc .acc-eq-item > summary::-webkit-details-marker { display: none; }
.mtm-acc .acc-eq-ico { width: 40px; height: 40px; border-radius: 12px; background: #fff1ec; color: var(--acc-brand); display: grid; place-items: center; flex: none; font-size: 17px; }
.mtm-acc .acc-eq-item.closed .acc-eq-ico { background: #eef0f4; color: #7b8698; }
.mtm-acc .acc-eq-sum { flex: 1; min-width: 0; }
.mtm-acc .acc-eq-sum b { display: block; font-size: 16px; color: var(--acc-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtm-acc .acc-eq-sum small { color: var(--acc-muted); font-size: 12.5px; }
.mtm-acc .acc-eq-st { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; background: #eef3ff; color: #1d4ed8; }
.mtm-acc .acc-eq-st.st-ok { background: #e8f7ef; color: #157347; }
.mtm-acc .acc-eq-st.st-due { background: #fd4621; color: #fff; }
.mtm-acc .acc-eq-st.st-off { background: #eef0f4; color: #5b6578; }
.mtm-acc .acc-eq-chev { color: #98a2b3; transition: transform .2s; font-size: 13px; }
.mtm-acc .acc-eq-item[open] .acc-eq-chev { transform: rotate(180deg); }
.mtm-acc .acc-eq-body { padding: 4px 16px 16px; border-top: 1px solid var(--acc-line); }

.mtm-acc .acc-eq-steps { list-style: none; display: flex; margin: 16px 0 6px; padding: 0; counter-reset: s; }
.mtm-acc .acc-eq-steps li { flex: 1; position: relative; text-align: center; min-width: 0; }
.mtm-acc .acc-eq-steps li::before { content: ""; position: absolute; top: 7px; left: -50%; right: 50%; height: 3px; background: #e3e7ee; z-index: 0; }
.mtm-acc .acc-eq-steps li:first-child::before { display: none; }
.mtm-acc .acc-eq-steps li.done::before, .mtm-acc .acc-eq-steps li.now::before { background: var(--acc-brand); }
.mtm-acc .acc-eq-steps li span { position: relative; z-index: 1; display: block; width: 17px; height: 17px; margin: 0 auto 4px; border-radius: 50%; background: #fff; border: 3px solid #d5dae3; }
.mtm-acc .acc-eq-steps li.done span { background: var(--acc-brand); border-color: var(--acc-brand); }
.mtm-acc .acc-eq-steps li.now span { border-color: var(--acc-brand); box-shadow: 0 0 0 4px #ffe4da; }
.mtm-acc .acc-eq-steps small { font-size: 11.5px; color: var(--acc-muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtm-acc .acc-eq-steps li.now small { color: var(--acc-text); font-weight: 700; }
.mtm-acc .acc-eq-help { margin: 10px 0 12px; padding: 10px 12px; border-radius: 10px; background: #fff8ec; font-size: 14px; color: #6b4a00; }
.mtm-acc .acc-eq-help i { margin-right: 4px; }

.mtm-acc .acc-eq-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mtm-acc .acc-eq-facts div { background: var(--acc-bg); border-radius: 10px; padding: 8px 11px; min-width: 0; }
.mtm-acc .acc-eq-facts small { display: block; font-size: 11.5px; color: var(--acc-muted); }
.mtm-acc .acc-eq-facts b { font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mtm-acc .acc-eq-quote { border: 1.5px solid #ffd2c2; background: #fff9f6; border-radius: 12px; padding: 13px 14px; margin: 0 0 10px; }
.mtm-acc .acc-eq-quote.q-accepted { border-color: #bfe8cf; background: #f3fbf6; }
.mtm-acc .acc-eq-quote.q-changes, .mtm-acc .acc-eq-quote.q-exp { border-color: var(--acc-line); background: #fafbfc; }
.mtm-acc .acc-eq-qtop { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.mtm-acc .acc-eq-qtop b { display: block; font-size: 15.5px; }
.mtm-acc .acc-eq-qtop small { color: var(--acc-muted); font-size: 12.5px; }
.mtm-acc .acc-eq-qtop strong { font-size: 20px; color: var(--acc-text); white-space: nowrap; text-align: right; line-height: 1.1; }
.mtm-acc .acc-eq-qtop strong small { display: block; font-size: 11px; font-weight: 500; }
.mtm-acc .acc-eq-qdet { margin: 8px 0 0; font-size: 14px; color: #344054; }
.mtm-acc .acc-eq-qact { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.mtm-acc .acc-eq-qact form { margin: 0; }
.mtm-acc .acc-eq-badge { font-size: 13px; font-weight: 600; color: var(--acc-muted); }
.mtm-acc .acc-eq-badge.ok { color: #157347; }

.mtm-acc .acc-eq-mini { margin-top: 8px; }
.mtm-acc .acc-eq-mini > summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--acc-brand); list-style: none; display: inline-block; }
.mtm-acc .acc-eq-mini > summary::-webkit-details-marker { display: none; }
.mtm-acc .acc-eq-mini form { display: grid; gap: 8px; margin-top: 8px; max-width: 520px; }
.mtm-acc .acc-eq-mini form label { margin: 0; }
.mtm-acc .acc-eq-mini .acc-btn { justify-self: start; }

.mtm-acc .acc-eq-thread { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; padding: 10px; background: var(--acc-bg); border-radius: 12px; }
.mtm-acc .acc-eq-empty { margin: 4px; }
.mtm-acc .acc-eq-msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 14px; background: #fff; border: 1px solid var(--acc-line); }
.mtm-acc .acc-eq-msg p { margin: 0; white-space: normal; word-wrap: break-word; }
.mtm-acc .acc-eq-msg small { display: block; font-size: 11px; color: #98a2b3; margin-top: 3px; }
.mtm-acc .acc-eq-msg.them { align-self: flex-start; border-bottom-left-radius: 4px; }
.mtm-acc .acc-eq-msg.me { align-self: flex-end; background: #011e4a; border-color: #011e4a; color: #fff; border-bottom-right-radius: 4px; }
.mtm-acc .acc-eq-msg.me small { color: #b8c3d6; text-align: right; }
.mtm-acc .acc-eq-who { display: block; font-size: 12px; font-weight: 700; color: var(--acc-brand); margin-bottom: 2px; }
.mtm-acc .acc-eq-msg details summary { cursor: pointer; }
.mtm-acc .acc-eq-msg details p { margin-top: 6px; }
.mtm-acc .acc-eq-file { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 600; }
.mtm-acc .acc-eq-reply { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.mtm-acc .acc-eq-reply textarea { flex: 1; min-height: 46px; }
.mtm-acc .acc-eq-tools { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.mtm-acc .acc-eq-wa { font-size: 13.5px; font-weight: 600; color: #128c4b !important; margin-top: 8px; text-decoration: none; }

.mtm-acc .acc-eq-new { margin-top: 14px; border: 1.5px dashed #ffc3ad; border-radius: 14px; background: #fffaf7; }
.mtm-acc .acc-eq-new > summary { cursor: pointer; list-style: none; padding: 13px 16px; font-weight: 700; color: var(--acc-text); }
.mtm-acc .acc-eq-new > summary::-webkit-details-marker { display: none; }
.mtm-acc .acc-eq-new > summary i { color: var(--acc-brand); margin-right: 6px; }
.mtm-acc .acc-eq-new form { padding: 0 16px 16px; }
.mtm-acc .acc-eq-new .acc-btn { margin-top: 12px; }
.mtm-acc .acc-eq-new .acc-fieldnote { display: block; margin-top: 8px; }

/* ---------- My documents ---------- */
.mtm-acc .acc-gd-safe { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #f1f8f4; border: 1px solid #cfeadb; margin-bottom: 16px; }
.mtm-acc .acc-gd-safe > i { color: #157347; font-size: 18px; margin-top: 2px; }
.mtm-acc .acc-gd-safe b { display: block; color: #0f5132; }
.mtm-acc .acc-gd-safe small { color: #3d5a4a; font-size: 13px; }
.mtm-acc .acc-gd .acc-h3 i { color: var(--acc-brand); margin-right: 4px; }
.mtm-acc .acc-gd-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.mtm-acc .acc-gd-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--acc-line); border-radius: 12px; background: #fff; }
.mtm-acc .acc-gd-ico { width: 38px; height: 38px; border-radius: 10px; background: #eef3ff; color: #1d4ed8; display: grid; place-items: center; flex: none; }
.mtm-acc .acc-gd-main { flex: 1; min-width: 0; }
.mtm-acc .acc-gd-main b { display: block; font-size: 14.5px; }
.mtm-acc .acc-gd-main small { display: block; font-size: 12.5px; color: var(--acc-muted); }
.mtm-acc .acc-gd-main .acc-gd-note { color: #b42318; font-weight: 600; }
.mtm-acc .acc-gd-side { display: flex; align-items: center; gap: 10px; }
.mtm-acc .acc-gd-act { display: flex; gap: 4px; }
.mtm-acc .acc-gd-act form { margin: 0; }
.mtm-acc .acc-gd-act a, .mtm-acc .acc-gd-act button { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--acc-line); background: #fff; color: var(--acc-text); font: inherit; font-size: 13px; cursor: pointer; text-decoration: none; }
.mtm-acc .acc-gd-act button:hover { color: #b42318; border-color: #f5c2c0; }
.mtm-acc .acc-gd-up { margin-top: 14px; border: 1.5px dashed #ffc3ad; border-radius: 14px; background: #fffaf7; }
.mtm-acc .acc-gd-up > summary { cursor: pointer; list-style: none; padding: 13px 16px; font-weight: 700; }
.mtm-acc .acc-gd-up > summary::-webkit-details-marker { display: none; }
.mtm-acc .acc-gd-up > summary i { color: var(--acc-brand); margin-right: 6px; }
.mtm-acc .acc-gd-form { padding: 0 16px 16px; }
.mtm-acc .acc-gd-drop { position: relative; display: grid; justify-items: center; gap: 2px; text-align: center; margin: 14px 0 12px; padding: 20px 14px; border: 2px dashed #d5dae3; border-radius: 12px; background: #fff; cursor: pointer; font-weight: 400; }
.mtm-acc .acc-gd-drop:hover, .mtm-acc .acc-gd-drop:focus-within { border-color: var(--acc-brand); }
.mtm-acc .acc-gd-drop > i { font-size: 26px; color: var(--acc-brand); }
.mtm-acc .acc-gd-drop small { color: var(--acc-muted); font-size: 12.5px; }
.mtm-acc .acc-gd-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.mtm-acc .acc-gd-fname { font-style: normal; font-weight: 700; font-size: 13.5px; color: #157347; }
.mtm-acc .acc-gd-fname.bad { color: #b42318; }

/* ---------- Refer a friend ---------- */
.mtm-acc .acc-rf-hero { display: flex; gap: 16px; align-items: stretch; flex-wrap: wrap; padding: 20px; border-radius: 16px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #fd4621 0%, #c8311c 35%, #011e4a 80%); }
.mtm-acc .acc-rf-hero-l { flex: 1 1 300px; }
.mtm-acc .acc-rf-hero-l small { text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; opacity: .85; }
.mtm-acc .acc-rf-hero-l b { display: block; font-size: 21px; line-height: 1.25; margin: 4px 0 6px; }
.mtm-acc .acc-rf-hero-l span { font-size: 13.5px; opacity: .9; }
.mtm-acc .acc-rf-code { flex: 0 0 auto; display: grid; align-content: center; justify-items: center; gap: 4px; min-width: 170px; padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,.12); border: 1.5px dashed rgba(255,255,255,.55); }
.mtm-acc .acc-rf-code small { font-size: 11.5px; opacity: .85; }
.mtm-acc .acc-rf-code b { font-size: 24px; letter-spacing: 3px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.mtm-acc .acc-rf-code .acc-rf-copy { background: #fff; color: #011e4a; border: 0; border-radius: 20px; padding: 4px 14px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.mtm-acc .acc-rf-share { margin-top: 16px; }
.mtm-acc .acc-rf-share > label { margin-top: 0; }
.mtm-acc .acc-rf-linkrow { display: flex; gap: 8px; }
.mtm-acc .acc-rf-linkrow input { flex: 1; min-width: 0; font-size: 14px; }
.mtm-acc .acc-rf-linkrow .acc-btn { white-space: nowrap; }
.mtm-acc .acc-rf-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mtm-acc .acc-rf-btns a, .mtm-acc .acc-rf-btns button { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 30px; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid var(--acc-line); background: #fff; color: var(--acc-text); }
.mtm-acc .acc-rf-btns .acc-rf-wa { background: #25d366; border-color: #25d366; color: #fff; }
.mtm-acc .acc-rf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 4px; }
.mtm-acc .acc-rf-stats div { background: var(--acc-bg); border-radius: 12px; padding: 10px 12px; text-align: center; }
.mtm-acc .acc-rf-stats b { display: block; font-size: 20px; }
.mtm-acc .acc-rf-stats small { color: var(--acc-muted); font-size: 12.5px; }
.mtm-acc .acc-rf-invite { margin-top: 14px; border: 1px solid var(--acc-line); border-radius: 12px; }
.mtm-acc .acc-rf-invite > summary { cursor: pointer; list-style: none; padding: 12px 14px; font-weight: 600; font-size: 14.5px; }
.mtm-acc .acc-rf-invite > summary::-webkit-details-marker { display: none; }
.mtm-acc .acc-rf-invite > summary i { color: var(--acc-brand); margin-right: 6px; }
.mtm-acc .acc-rf-invite form { padding: 0 14px 14px; }
.mtm-acc .acc-rf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mtm-acc .acc-rf-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--acc-line); border-radius: 12px; }
.mtm-acc .acc-rf-av { width: 36px; height: 36px; border-radius: 50%; background: #fff1ec; color: var(--acc-brand); font-weight: 800; display: grid; place-items: center; flex: none; }
.mtm-acc .acc-rf-list li > div:nth-child(2) { flex: 1; min-width: 0; }
.mtm-acc .acc-rf-list b { display: block; font-size: 14.5px; }
.mtm-acc .acc-rf-list small { display: block; font-size: 12.5px; color: var(--acc-muted); }
.mtm-acc .acc-rf-list .acc-rf-why { font-style: italic; }
.mtm-acc .acc-rf-r { display: grid; justify-items: end; gap: 3px; }
.mtm-acc .acc-rf .acc-clubalert { margin-top: 14px; }

@media (max-width: 640px) {
  .mtm-acc .acc-eq-facts { grid-template-columns: 1fr 1fr; }
  .mtm-acc .acc-eq-item > summary { padding: 12px; gap: 10px; }
  .mtm-acc .acc-eq-st { font-size: 11px; padding: 2px 8px; }
  .mtm-acc .acc-eq-body { padding: 4px 12px 14px; }
  .mtm-acc .acc-eq-msg { max-width: 92%; }
  .mtm-acc .acc-eq-reply { flex-direction: column; align-items: stretch; }
  .mtm-acc .acc-gd-list li { flex-wrap: wrap; }
  .mtm-acc .acc-gd-main { flex: 1 1 calc(100% - 52px); }
  .mtm-acc .acc-gd-list li { min-width: 0; }
  .mtm-acc .acc-gd-side { flex: 1 1 100%; justify-content: space-between; }
  .mtm-acc .acc-rf-linkrow { flex-direction: column; }
  .mtm-acc .acc-rf-hero-l b { font-size: 18px; }
  .mtm-acc .acc-rf-code { width: 100%; }
}

/* Side menu badge for things that need the guest's attention */
.mtm-acc .acc-side a em.hot { background: #fd4621; color: #fff; }
.mtm-acc .acc-gd-side .acc-pill, .mtm-acc .acc-rf-r .acc-pill { order: 0; margin-left: 0; }
/* Guest's own chat bubbles: keep text white even if the website theme colours paragraphs */
.mtm-acc .acc-eq-msg.me p, .mtm-acc .acc-eq-msg.me { color: #fff !important; }
