/* The client ends their own contract (client-end.js, round 57): a calm block in the plan pane and the dialog it opens.
   The dialog is the withdrawal dialog's shell (client-withdraw.css) with the billing dialog's blue confirm (client-billing.css's idea); only what differs is here. */

/* ---- the pane ---------------------------------------------------------------------------------------------------------------------- */

.plan-end { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.plan-end[hidden] { display: none; }
.pe-h { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.005em; }
.pe-lead { margin-top: 0.35rem; max-width: 34rem; color: var(--ink-2); text-wrap: pretty; }
.pe-open { margin-top: 0.8rem; max-width: 100%; padding-block: 0.5rem; line-height: 1.25; }
.pe-line { display: flex; align-items: baseline; gap: 0.65rem; margin-top: 0.5rem; max-width: 34rem; text-wrap: pretty; }
.pe-line .mk { position: relative; top: -0.04em; flex: none; --mk: var(--blue-lit); }
.ce-dlg .wd-done-h .mk { --mk: var(--blue-lit); }
.pe-line b { font-weight: 620; }
.pe-note { margin-top: 0.55rem; max-width: 34rem; color: var(--ink-2); text-wrap: pretty; }
.pe-facts { display: grid; gap: 0.45rem; margin-top: 0.7rem; max-width: 34rem; }
.pe-facts li { position: relative; padding-left: 1.4rem; text-wrap: pretty; }
.pe-facts li::before { content: ""; position: absolute; left: 0.2rem; top: 0.62em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--ink-3); }
.pe-facts a, .pe-wrong a { color: var(--ink); font-weight: 560; text-underline-offset: 0.2em; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.pe-facts a { display: inline-block; padding-block: 0.6rem; margin-block: -0.6rem; }
.pe-wrong .psw-links { display: inline-flex; vertical-align: middle; }
.pe-open:focus-visible, .pe-facts a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (max-width: 380px) { .pe-open { width: 100%; } }

/* ---- the dialog -------------------------------------------------------------------------------------------------------------------- */

.ce-dlg [hidden] { display: none; }
.ce-dlg .wd-form { overflow-x: clip; }
.ce-field { margin-top: 1.3rem; }
.ce-label { display: block; margin-bottom: 0.55rem; font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); }
.ce-day { min-width: 0; max-width: 100%; margin-top: 0.7rem; font-family: inherit; color: var(--ink); color-scheme: dark; }
.ce-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.ce-picks[data-n="1"] { grid-template-columns: minmax(0, 1fr); }

/* a quick pick: a choice among two, blue when it is the one in the field */
.ce-pick { display: grid; gap: 0.1rem; align-content: center; justify-items: start; min-height: 3.4rem; padding: 0.5rem 0.95rem; text-align: left; background: transparent; color: var(--ink); border: 1px solid var(--line-2); border-radius: 14px; touch-action: manipulation; transition: transform 0.12s ease-out; }
.ce-pick-l { font-size: 0.9375rem; font-weight: 600; line-height: 1.25; }
.ce-pick-d { color: var(--ink-2); font-size: 0.875rem; }
.ce-pick[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.ce-pick[aria-pressed="true"] .ce-pick-d { color: var(--on-blue); }
.ce-pick:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .ce-pick:hover:not([aria-pressed="true"]) { border-color: var(--blue-lit); } }
.ce-pick:focus-visible, .ce-retry:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* the quote: the answer to "what does this day do?", in the place the eye is already on */
.ce-quote { margin-top: 1rem; padding: 0.2rem 1rem 0.9rem; background: var(--sheet-2); border: 1px solid var(--line-2); border-radius: 14px; transition: opacity 0.15s ease-out; }
.ce-quote[aria-busy="true"] { opacity: 0.55; }
.ce-quote[data-kind="note"], .ce-quote[data-kind="err"] { padding-block: 0.9rem; }
.ce-quote[data-kind="note"] { background: transparent; border-style: dashed; border-color: var(--line); }
.ce-note { color: var(--ink-2); text-wrap: pretty; }
.ce-quote[data-kind="err"] .ce-note { color: var(--ink); }
.ce-retry { margin-top: 0.7rem; }
.ce-note .psw-links { display: flex; margin-top: 0.2rem; }
.ce-note .psw-links a { color: var(--ink); }
.ce-q-h { margin-top: 0.8rem; font-size: 1.0625rem; font-weight: 620; line-height: 1.35; text-wrap: pretty; }
.ce-detail { margin-top: 1.2rem; }
.ce-detail-h { color: var(--ink-3); font-size: 0.875rem; font-weight: 560; letter-spacing: 0.01em; }
.ce-rows { margin-top: 0.2rem; }
.ce-r { display: grid; gap: 0.15rem; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.ce-r:first-child { border-top: 0; }
.ce-r-n { display: flex; flex-wrap: wrap; gap: 0 0.5rem; font-size: 0.9375rem; }
.ce-r-n .mute { white-space: nowrap; }
.ce-r-n b { font-weight: 620; }
.ce-r-t { color: var(--ink-2); line-height: 1.45; text-wrap: pretty; }
.ce-res { display: grid; gap: 0.5rem; margin-top: 0.6rem; padding-top: 0.7rem; border-top: 1px solid var(--line-2); }
.ce-res-r { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.7rem; }
.ce-res-r dt { color: var(--ink-2); font-size: 0.9375rem; font-weight: 560; }
.ce-res-r dd.num { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.ce-res-s { flex-basis: 100%; color: var(--ink-2); font-size: 0.875rem; }
.ce-q-zero { margin-top: 0.6rem; padding-top: 0.7rem; border-top: 1px solid var(--line-2); font-weight: 560; }

.ce-iban { margin-top: 1.2rem; }
.ce-stays { margin-top: 1.1rem; max-width: none; color: var(--ink-2); font-size: 0.9375rem; }
.ce-dlg .ob-error { scroll-margin-bottom: 9rem; }

/* the confirm is a choice, not a warning: blue (the withdrawal's is red) */
.ce-confirm { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.ce-confirm:disabled { background: transparent; border: 1px solid var(--line-2); color: var(--ink-3); opacity: 1; cursor: default; }
.ce-confirm[aria-busy="true"] { opacity: 0.6; cursor: progress; }
@media (prefers-reduced-motion: reduce) { .ce-pick, .ce-quote { transition: none; } }
