/* My Account: Trip review, Notifications, Verify email. Loaded after modules.css (lib/page-top.php). */

/* ---------- Trip review (inside a completed trip in My Trips) ---------- */
.mtm-acc .acc-rv { margin-top: 12px; border: 1.5px solid #ffd2c2; background: #fff9f6; border-radius: 12px; }
.mtm-acc .acc-rv > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.mtm-acc .acc-rv > summary::-webkit-details-marker { display: none; }
.mtm-acc .acc-rv > summary > span:nth-child(2) { flex: 1; min-width: 0; }
.mtm-acc .acc-rv > summary b { display: block; font-size: 15px; color: var(--acc-text); }
.mtm-acc .acc-rv > summary small { display: block; font-size: 13px; color: var(--acc-muted); }
.mtm-acc .acc-rv > summary small b { display: inline; font-size: inherit; color: #a56a00; }
.mtm-acc .acc-rv-ico { width: 38px; height: 38px; border-radius: 50%; background: #f5a524; color: #fff; display: grid; place-items: center; flex: none; font-size: 16px; }
.mtm-acc .acc-rv-chev { color: #98a2b3; font-size: 13px; transition: transform .2s; }
.mtm-acc .acc-rv[open] .acc-rv-chev { transform: rotate(180deg); }
.mtm-acc .acc-rv-form { padding: 0 14px 14px; }
.mtm-acc .acc-rv-form 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-rv-form textarea:focus { outline: 2px solid var(--acc-brand); outline-offset: -1px; }
.mtm-acc .acc-rv-form .acc-check { margin: 10px 0 12px; font-size: 13.5px; align-items: flex-start; }
.mtm-acc .acc-rv-note { display: block; margin-top: 8px; font-size: 12.5px; }
/* Star picker: inputs are in order 5..1 and shown right-to-left, so hovering a star lights up the ones before it. */
.mtm-acc .acc-rv-pick { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin: 4px 0 0; }
.mtm-acc .acc-rv-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.mtm-acc .acc-rv-pick label { margin: 0; cursor: pointer; font-size: 34px; line-height: 1; color: #d5dae3; font-family: Arial, sans-serif; transition: color .12s, transform .12s; }
.mtm-acc .acc-rv-pick label:hover, .mtm-acc .acc-rv-pick label:hover ~ label,
.mtm-acc .acc-rv-pick input:checked ~ label { color: #f5a524; }
.mtm-acc .acc-rv-pick label:active { transform: scale(.9); }
.mtm-acc .acc-rv-pick input:focus-visible + label { outline: 2px solid var(--acc-brand); outline-offset: 2px; border-radius: 4px; }
.mtm-acc .acc-rv-word { display: block; min-height: 18px; font-size: 13px; color: var(--acc-muted); margin-bottom: 4px; }
.mtm-acc .acc-rv-word.on { color: #a56a00; font-weight: 700; }
.mtm-acc .acc-rv-done { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #f3fbf6; border: 1px solid #bfe8cf; }
.mtm-acc .acc-rv-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.mtm-acc .acc-rv-head b { font-size: 14.5px; color: #157347; }
.mtm-acc .acc-rv-done p { margin: 6px 0; font-size: 14px; color: #344054 !important; white-space: normal; }
.mtm-acc .acc-rv-done small { font-size: 12.5px; color: var(--acc-muted); }
.mtm-acc .acc-rv-stars { color: #f5a524; font-size: 15px; letter-spacing: 1px; white-space: nowrap; }
.mtm-acc .acc-rv-stars .fa-regular { color: #d5dae3; }
.mtm-acc .acc-rv-pub { color: #157347; font-weight: 600; }

/* ---------- Notifications ---------- */
.mtm-acc .acc-np-email { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; margin: 4px 0 18px; border: 1px solid var(--acc-line); background: #fff; flex-wrap: wrap; }
.mtm-acc .acc-np-email.warn { background: #fff8ec; border-color: #ffd9a8; }
.mtm-acc .acc-np-email.ok { background: #f3fbf6; border-color: #bfe8cf; }
.mtm-acc .acc-np-eico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 17px; background: #fff1ec; color: var(--acc-brand); }
.mtm-acc .acc-np-email.ok .acc-np-eico { background: #e6f7ee; color: #157347; }
.mtm-acc .acc-np-etxt { flex: 1 1 220px; min-width: 0; }
.mtm-acc .acc-np-etxt b { display: block; font-size: 15px; word-break: break-all; }
.mtm-acc .acc-np-etxt b em { font-style: normal; margin-left: 6px; vertical-align: 1px; word-break: normal; }
.mtm-acc .acc-np-etxt small { display: block; font-size: 13px; color: var(--acc-muted); }
.mtm-acc .acc-np-email form { margin: 0; }

.mtm-acc .acc-np-grid { border: 1px solid var(--acc-line); border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.mtm-acc .acc-np-row { display: grid; grid-template-columns: 1fr 86px 86px 96px; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--acc-line); }
.mtm-acc .acc-np-row:first-child { border-top: 0; }
.mtm-acc .acc-np-headrow { background: var(--acc-bg); padding-top: 9px; padding-bottom: 9px; }
.mtm-acc .acc-np-headrow span { font-size: 12.5px; font-weight: 700; color: var(--acc-muted); text-align: center; white-space: nowrap; }
.mtm-acc .acc-np-headrow .fa-whatsapp { color: #25d366; }
.mtm-acc .acc-np-row > div b { display: block; font-size: 14.5px; color: var(--acc-text); }
.mtm-acc .acc-np-row > div b i { color: var(--acc-brand); width: 18px; margin-right: 4px; }
.mtm-acc .acc-np-row > div small { display: block; font-size: 12.5px; color: var(--acc-muted); margin-top: 2px; }
.mtm-acc .acc-np-lock { background: #fafbfc; }
.mtm-acc .acc-np-lock > div b i { color: #98a2b3; }

/* On/off switch */
.mtm-acc .acc-np-sw { position: relative; display: flex; justify-content: center; align-items: center; gap: 8px; margin: 0; cursor: pointer; font-weight: 400; }
.mtm-acc .acc-np-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mtm-acc .acc-np-sw span { position: relative; width: 44px; height: 26px; border-radius: 26px; background: #d5dae3; transition: background .15s; flex: none; }
.mtm-acc .acc-np-sw span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(1, 30, 74, .25); transition: transform .15s; }
.mtm-acc .acc-np-sw input:checked + span { background: var(--acc-brand); }
.mtm-acc .acc-np-sw input:checked + span::after { transform: translateX(18px); }
.mtm-acc .acc-np-sw input:disabled + span { background: #9db5d6; cursor: not-allowed; }
.mtm-acc .acc-np-sw input:focus-visible + span { outline: 2px solid var(--acc-navy, #011e4a); outline-offset: 2px; }
.mtm-acc .acc-np-sw em { display: none; font-style: normal; font-size: 13px; color: var(--acc-muted); }
.mtm-acc .acc-np-saved { margin-left: 10px; font-size: 12.5px; }

/* Profile: verified / not verified under the email field */
.mtm-acc .acc-ev-note { color: #a56a00; }
.mtm-acc .acc-ev-note.ok { color: #157347; }
.mtm-acc .acc-ev-note a { color: inherit; font-weight: 700; }

@media (max-width: 640px) {
  .mtm-acc .acc-np-headrow { display: none; }
  .mtm-acc .acc-np-row { grid-template-columns: 1fr 1fr 1fr; gap: 10px 6px; }
  .mtm-acc .acc-np-row > div { grid-column: 1 / -1; }
  .mtm-acc .acc-np-sw { flex-direction: column; gap: 4px; }
  .mtm-acc .acc-np-sw em { display: block; font-size: 12px; }
  .mtm-acc .acc-rv-pick label { font-size: 34px; }
}

/* ---------- Pop-up messages (success / error) on My Account pages ---------- */
.acc-toast { box-sizing: border-box; position: fixed; top: 22px; right: 22px; z-index: 2147483000; display: flex; align-items: flex-start; gap: 12px; width: 380px; max-width: calc(100vw - 32px);
  padding: 14px 40px 14px 14px; border-radius: 14px; background: #fff; color: #011e4a; box-shadow: 0 14px 40px rgba(1, 30, 74, .22); border-left: 5px solid #157347;
  font-family: inherit; font-size: 14px; line-height: 1.45; overflow: hidden; animation: accToastIn .35s cubic-bezier(.2, .9, .3, 1.2) both; }
.acc-toast.err { border-left-color: #e8261b; }
.acc-toast.out { animation: accToastOut .3s ease forwards; }
.acc-toast-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; background: #e6f7ee; color: #157347; }
.acc-toast.err .acc-toast-ico { background: #ffecec; color: #e8261b; }
.acc-toast-txt { flex: 1; min-width: 0; }
.acc-toast-txt b { display: block; font-size: 15px; margin-bottom: 2px; color: #011e4a; }
.acc-toast-txt span { display: block; color: #3c4658; word-wrap: break-word; }
.acc-toast-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: #98a2b3; font-size: 22px; line-height: 1; cursor: pointer; padding: 0; }
.acc-toast-x:hover { background: #f2f4f7; color: #011e4a; }
.acc-toast-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #157347; opacity: .5; transform-origin: left; animation: accToastBar 6s linear forwards; }
.acc-toast.hold .acc-toast-bar { animation-play-state: paused; }
@keyframes accToastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes accToastOut { to { opacity: 0; transform: translateX(40px); } }
@keyframes accToastBar { to { transform: scaleX(0); } }
@media (max-width: 640px) {
  .acc-toast { top: 12px; left: 50%; right: auto; transform: translateX(-50%); animation-name: accToastInM; }
  .acc-toast.out { animation-name: accToastOutM; }
}
@keyframes accToastInM { from { opacity: 0; transform: translate(-50%, -30px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes accToastOutM { to { opacity: 0; transform: translate(-50%, -30px); } }
@media (prefers-reduced-motion: reduce) { .acc-toast, .acc-toast.out, .acc-toast-bar { animation-duration: .01s; } }
