/* Customer-facing order portal (detail + return + login).
   All rules are scoped under #mws-order-portal AND the class names carry the mws_ prefix,
   so they cannot collide with the theme's or any plugin's styles. */

/* Guarantee the order portal pages always scroll vertically. Some theme/menu state
   (e.g. body.mobile_menu_opened { overflow:hidden; height:100% }) or a leftover inline
   lock can pin the document height and hide the lower content (e.g. the billing address).
   !important + html coverage defeats inline/high-specificity locks; scoped to the portal
   body class so the rest of the site is untouched. */
html:has(body.mws-order-portal-page) { height: auto !important; min-height: 100% !important; overflow-y: auto !important; }
body.mws-order-portal-page { overflow-x: hidden; overflow-y: auto !important; height: auto !important; min-height: 0 !important; position: static !important; }

#mws-order-portal {
	--bg: #F4F5F7; --surface: #FFFFFF; --surface-2: #F8FAFC;
	--border: #E5E7EB; --border-strong: #CBD5E1;
	--text: #0F172A; --text-2: #334155; --muted: #64748B; --muted-2: #94A3B8;
	--link: #1A6FD8; --link-hover: #1556AD;
	--primary: #FFD200; --primary-hover: #F2C600; --primary-ink: #0F172A;
	--success: #15803D; --success-bg: #DCFCE7; --warning: #B45309; --warning-bg: #FEF3C7;
	--danger: #B91C1C; --danger-bg: #FEE2E2; --neutral-bg: #F1F5F9;
	--radius: 1; /* zaoblení rohů — master přepínač: 0 = ostré rohy, 1 = zaoblené */
	--r-sm: calc(8px * var(--radius)); --r-md: calc(10px * var(--radius)); --r-lg: calc(14px * var(--radius));
	--shadow-card: 0 2px 4px rgba(15,23,42,.015), 0 8px 20px rgba(15,23,42,.03);
	--shadow-hover: 0 4px 12px rgba(15,23,42,.08);
	background: var(--bg); color: var(--text);
	font-size: 15px; line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
#mws-order-portal * { box-sizing: border-box; }
#mws-order-portal a { color: var(--link); text-decoration: none; }
#mws-order-portal a:hover { color: var(--link-hover); text-decoration: underline; }

/* Icons are rendered with Mioweb's Icons()->printIcon('…','feather') as filled 24×24 SVGs.
   Colour follows currentColor; size is set per slot since the markup no longer carries width/height. */
#mws-order-portal svg { fill: currentColor; flex: none; }
#mws-order-portal .mws_back_link svg { width: 16px; height: 16px; }
#mws-order-portal .mws_head_help_link svg { width: 15px; height: 15px; }
#mws-order-portal .mws_status_banner_icon svg { width: 22px; height: 22px; }
#mws-order-portal .mws_item_thumb .mw_image_ratio, #mws-order-portal .mws_return_item_thumb .mw_image_ratio { border-radius: var(--r-md); }
#mws-order-portal .mws_opt_row_icon svg { width: 18px; height: 18px; }
#mws-order-portal .mws_opt_row_chev svg { width: 18px; height: 18px; }
#mws-order-portal .mws_doc_row_icon svg { width: 22px; height: 22px; }
#mws-order-portal .mws_check_box svg { width: 14px; height: 14px; }
#mws-order-portal .mws_success_card_icon svg { width: 36px; height: 36px; }
#mws-order-portal .mws_page { max-width: 1120px; margin: 0 auto; padding: 32px 28px; display: flex; flex-direction: column; gap: 20px; }

#mws-order-portal .mws_pagehead { display: flex; flex-direction: column; gap: 14px; }
#mws-order-portal .mws_pagehead_main { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
#mws-order-portal .mws_pagehead_title { font-size: 32px; font-weight: 700; letter-spacing: -.02em; margin: 0; line-height: 1.1; }
#mws-order-portal .mws_pagehead_meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 14px; color: var(--muted); }
#mws-order-portal .mws_pagehead_meta .mws_dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
#mws-order-portal .mws_head_help { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
#mws-order-portal .mws_head_help_title { font-size: 15px; font-weight: 600; }
#mws-order-portal .mws_head_help_contacts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
#mws-order-portal .mws_head_help_link { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 400; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
#mws-order-portal .mws_head_help_link:hover { background: var(--surface); border-color: var(--shop-color); color: var(--shop-color); text-decoration: none; }
#mws-order-portal .mws_head_help_link svg { color: var(--muted); flex: none; }
#mws-order-portal .mws_head_help_link:hover svg { color: var(--shop-color); }
#mws-order-portal .mws_back_link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 6px; width: fit-content; }
#mws-order-portal .mws_back_link:hover { color: var(--text); text-decoration: none; }

#mws-order-portal .mws_grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
#mws-order-portal .mws_grid_main, #mws-order-portal .mws_grid_side { display: flex; flex-direction: column; gap: 20px; }

#mws-order-portal .mws_card { background: var(--surface); border-radius: var(--r-lg); padding: 22px 24px; box-shadow: var(--shadow-card); }
#mws-order-portal .mws_card_title { font-size: 17px; font-weight: 600; margin: 0 0 16px; }
#mws-order-portal .mws_card_sub { margin: -10px 0 16px; font-size: 13.5px; color: var(--muted); }

#mws-order-portal .mws_btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-sm); border: 1px solid transparent; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s ease; text-decoration: none; white-space: nowrap; }
#mws-order-portal .mws_btn_lg { padding: 14px 22px; font-size: 15.5px; min-height: 50px; }
#mws-order-portal .mws_btn_block { width: 100%; }
#mws-order-portal .mws_btn_primary { background: var(--primary); color: var(--primary-ink); border-color: rgba(0,0,0,.04); }
#mws-order-portal .mws_btn_primary:hover { background: var(--primary-hover); text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
#mws-order-portal .mws_btn_ghost { background: transparent; color: var(--text-2); border-color: var(--border); }
#mws-order-portal .mws_btn_ghost:hover { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); text-decoration: none; }
#mws-order-portal .mws_btn_shop { background: var(--shop-color); color: #fff; border-color: var(--shop-color); }
#mws-order-portal .mws_btn_shop:hover { background: var(--shop-color-hover); color: #fff; text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
#mws-order-portal .mws_btn:disabled { opacity: .45; cursor: not-allowed; }
#mws-order-portal .mws_btn:disabled:hover { background: var(--primary); box-shadow: none; }
#mws-order-portal .mws_btn_shop:disabled:hover { background: var(--shop-color); box-shadow: none; }
/* Loading state (return submit): hide the label, show a spinner, stay full-opacity even while disabled. */
#mws-order-portal .mws_btn.mws_is_loading { position: relative; color: transparent !important; opacity: 1 !important; cursor: default; pointer-events: none; }
#mws-order-portal .mws_btn.mws_is_loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: mws-op-spin .6s linear infinite; }
@keyframes mws-op-spin { to { transform: rotate(360deg); } }

#mws-order-portal .mws_status_banner { display: flex; flex-direction: column; gap: 22px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-card); }
#mws-order-portal .mws_status_banner_head { display: flex; align-items: center; gap: 16px; }
#mws-order-portal .mws_status_banner_icon { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; flex: none; background: var(--neutral-bg); color: var(--text-2); }
#mws-order-portal .mws_status_banner.mws_tone_success .mws_status_banner_icon { background: var(--success-bg); color: #16A34A; }
#mws-order-portal .mws_status_banner.mws_tone_warning .mws_status_banner_icon { background: var(--warning-bg); color: #F59E0B; }
#mws-order-portal .mws_status_banner.mws_tone_danger .mws_status_banner_icon { background: var(--danger-bg); color: #DC2626; }
#mws-order-portal .mws_status_banner_headline { font-size: 20px; font-weight: 600; letter-spacing: -.01em; flex: 1; min-width: 0; }
#mws-order-portal .mws_status_banner_cta { margin-left: auto; flex: none; }
@media (max-width: 540px) { #mws-order-portal .mws_status_banner_head { flex-wrap: wrap; } #mws-order-portal .mws_status_banner_cta { width: 100%; margin-left: 0; } }

/* Wire-transfer payment instructions (ShopComponents::paymentStatus) — present it as a white portal card. */
#mws-order-portal .mws_order_finished_box { background: var(--surface); border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 24px 28px; max-width: none; margin: 0; }
#mws-order-portal .mws_order_finished_box p { margin: 0; }
#mws-order-portal .mws_table_wire_info_container { margin-top: 0; }

#mws-order-portal .mws_items { list-style: none; padding: 0; margin: 0; }
#mws-order-portal .mws_item { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--border); }
#mws-order-portal .mws_item:first-child { border-top: 0; padding-top: 4px; }
#mws-order-portal .mws_item_thumb { width: 72px; border-radius: var(--r-md); background: var(--neutral-bg); }
#mws-order-portal .mws_item_name { font-weight: 600; line-height: 1.35; }
#mws-order-portal .mws_item_qty { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
#mws-order-portal .mws_item_price { font-weight: 600; font-size: 15px; white-space: nowrap; }

#mws-order-portal .mws_dpa { margin-top: 18px; padding: 12px 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); }
#mws-order-portal .mws_dpa_title { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
#mws-order-portal .mws_dpa_row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 10px 0; }
#mws-order-portal .mws_dpa_row + .mws_dpa_row { border-top: 1px solid var(--border); }
#mws-order-portal .mws_dpa_label { font-weight: 600; }
#mws-order-portal .mws_dpa_sub { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
#mws-order-portal .mws_dpa_price { font-weight: 600; white-space: nowrap; }
#mws-order-portal .mws_totals { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
#mws-order-portal .mws_totals_row { display: flex; justify-content: space-between; color: var(--text-2); font-size: 14.5px; }
#mws-order-portal .mws_totals_row_grand { font-size: 19px; font-weight: 700; color: var(--text); }

/* Mioweb price markup (Price::htmlPriceFull / htmlPriceVatIncluded). Override the theme's
   oversized defaults: the VAT-included price inherits its slot's size; the "bez DPH" line
   (rendered only for VAT-payer shops) shows small and muted beneath it. */
#mws-order-portal .mws_price_vatincluded { display: inline-block; font-size: inherit; line-height: 1.2; padding: 0; }
#mws-order-portal .mws_price_vatexcluded { display: block; font-size: 12px; font-weight: 500; color: var(--muted); line-height: 1.35; }
#mws-order-portal .mws_item_price, #mws-order-portal .mws_dpa_price { text-align: right; }
#mws-order-portal .mws_totals_row_grand > span:last-child { text-align: right; }

#mws-order-portal .mws_opts { display: flex; flex-direction: column; gap: 8px; }
#mws-order-portal .mws_opt_row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 12px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-size: 14px; font-weight: 600; transition: all .15s ease; }
#mws-order-portal .mws_opt_row:hover { background: #fff; border-color: var(--border-strong); box-shadow: var(--shadow-card); text-decoration: none; }
#mws-order-portal .mws_opt_row_icon { width: 36px; height: 36px; border-radius: var(--r-sm); flex: none; display: grid; place-items: center; background: var(--neutral-bg); color: var(--text-2); }
#mws-order-portal .mws_opt_row_label { flex: 1; min-width: 0; line-height: 1.3; }
#mws-order-portal .mws_opt_row_chev { color: var(--muted-2); flex: none; display: inline-flex; }

#mws-order-portal .mws_doc_row { display: flex; align-items: center; gap: 12px; padding: 10px; margin-top: 4px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); color: var(--text); transition: all .15s ease; }
#mws-order-portal .mws_doc_row:hover { background: #fff; border-color: var(--border-strong); text-decoration: none; box-shadow: var(--shadow-card); }
#mws-order-portal .mws_doc_row_icon { width: 38px; height: 44px; display: grid; place-items: center; color: var(--text-2); }
#mws-order-portal .mws_doc_row_title { display: block; font-weight: 600; font-size: 14px; }
#mws-order-portal .mws_doc_row_sub { display: block; font-size: 12.5px; color: var(--muted); }
#mws-order-portal .mws_doc_empty { padding: 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px dashed var(--border-strong); font-size: 13.5px; color: var(--muted); }

#mws-order-portal .mws_cust { display: flex; flex-direction: column; gap: 4px; }
#mws-order-portal .mws_cust_name { font-weight: 600; }
#mws-order-portal .mws_cust_line { font-size: 14px; color: var(--text-2); }
#mws-order-portal .mws_cust_label { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 16px 0 8px; }
#mws-order-portal .mws_cust_addr { font-style: normal; color: var(--text-2); font-size: 14px; line-height: 1.55; }

/* Login — full viewport height comes from Mioweb's .row_height_full (in the markup), which adapts to
   header transparency: 100vh under a transparent header, calc(100vh - header) under a solid one.
   Don't hard-code min-height here or it would force the transparent-header value onto solid headers. */
#mws-order-portal.mws_login_page { box-sizing: border-box; display: grid; place-items: center; padding: 96px 20px; }
#mws-order-portal .mws_login_box { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 24px; }
#mws-order-portal .mws_login_card { width: 100%; background: var(--surface); border-radius: var(--r-lg); padding: 40px 36px; box-shadow: var(--shadow-card); }
#mws-order-portal .mws_login_help { text-align: center; color: var(--muted); }
#mws-order-portal .mws_login_help .mws_head_help_title { color: var(--text-2); margin-bottom: 10px; }
#mws-order-portal .mws_login_help .mws_head_help_contacts { justify-content: center; }
/* On the login screen the support contacts are plain links, not the white pill buttons used in the detail page header. */
#mws-order-portal .mws_login_help .mws_head_help_link, #mws-order-portal .mws_login_help .mws_head_help_link:hover { background: transparent; border-color: transparent; padding-left: 0; padding-right: 0; }
#mws-order-portal .mws_login_card_title { margin: 0 0 8px; font-size: 24px; font-weight: 700; letter-spacing: -.01em; text-align: center; }
#mws-order-portal .mws_login_card_lead { margin: 0 0 28px; color: var(--muted); font-size: 14.5px; text-align: center; }
#mws-order-portal .mws_login_form { display: flex; flex-direction: column; gap: 16px; }
#mws-order-portal .mws_field { display: flex; flex-direction: column; gap: 6px; }
#mws-order-portal .mws_field_label { font-size: 13px; font-weight: 600; color: var(--text-2); }
#mws-order-portal .mws_field_input { width: 100%; border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; font-family: inherit; font-size: 15px; color: var(--text); padding: 12px 14px; outline: none; transition: all .15s ease; }
#mws-order-portal .mws_field_input:focus { border-color: var(--text); box-shadow: 0 0 0 3px rgba(15,23,42,.08); }
#mws-order-portal .mws_field_input::placeholder { color: var(--muted-2); }
#mws-order-portal .mws_form_error { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #FEF2F2; border: 1px solid #FCA5A5; border-radius: var(--r-md); color: #B91C1C; font-size: 13.5px; }

/* Return */
#mws-order-portal .mws_return_items { list-style: none; padding: 0; margin: 0; }
#mws-order-portal .mws_return_item { display: grid; grid-template-columns: auto 64px 1fr auto; gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid var(--border); }
#mws-order-portal .mws_return_item:first-child { border-top: 0; padding-top: 4px; }
#mws-order-portal .mws_return_item_check { padding-top: 4px; cursor: pointer; }
#mws-order-portal .mws_return_item_check input { position: absolute; opacity: 0; pointer-events: none; }
#mws-order-portal .mws_check_box { width: 20px; height: 20px; border-radius: var(--r-sm); border: 1.5px solid var(--border-strong); background: #fff; display: grid; place-items: center; color: #fff; transition: all .15s ease; }
#mws-order-portal .mws_return_item.mws_is_selected .mws_check_box { background: var(--text); border-color: var(--text); }
#mws-order-portal .mws_return_item_thumb { width: 64px; border-radius: var(--r-md); background: var(--neutral-bg); }
#mws-order-portal .mws_return_item_body { min-width: 0; padding-top: 4px; }
#mws-order-portal .mws_return_item_name { font-weight: 600; line-height: 1.35; }
#mws-order-portal .mws_return_item_meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-top: 4px; }
#mws-order-portal .mws_return_item_meta .mws_dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
#mws-order-portal .mws_return_item_price { font-weight: 600; padding-top: 6px; white-space: nowrap; min-width: 80px; text-align: right; }
#mws-order-portal .mws_return_item_price .mws_muted { color: var(--muted-2); font-weight: 400; }
#mws-order-portal .mws_return_item_controls { display: none; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding: 14px; background: var(--surface-2); border-radius: var(--r-md); border: 1px solid var(--border); }
#mws-order-portal .mws_return_item.mws_is_selected .mws_return_item_controls { display: flex; }
#mws-order-portal .mws_ctl { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; }
#mws-order-portal .mws_ctl_col { flex-direction: column; align-items: stretch; gap: 6px; }
#mws-order-portal .mws_ctl_label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
#mws-order-portal .mws_qty_stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--r-sm); background: #fff; width: fit-content; }
#mws-order-portal .mws_qty_stepper_btn { width: 34px; height: 34px; display: grid; place-items: center; background: transparent; border: 0; color: var(--text-2); cursor: pointer; border-radius: var(--r-sm); font: inherit; }
#mws-order-portal .mws_qty_stepper_btn:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
#mws-order-portal .mws_qty_stepper_btn:disabled { opacity: .3; cursor: not-allowed; }
#mws-order-portal .mws_qty_stepper_val { min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
#mws-order-portal .mws_select { font-family: inherit; width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--r-sm); background: #fff; font-size: 14px; color: var(--text); cursor: pointer; }
#mws-order-portal .mws_select:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(15,23,42,.08); }
#mws-order-portal .mws_textarea { width: 100%; font-family: inherit; font-size: 14.5px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; resize: vertical; color: var(--text); line-height: 1.5; }
#mws-order-portal .mws_textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(15,23,42,.08); }
#mws-order-portal .mws_summary { position: sticky; top: 20px; }
#mws-order-portal .mws_summary_count { display: flex; justify-content: space-between; align-items: center; font-size: 14.5px; color: var(--text-2); margin-bottom: 12px; }
#mws-order-portal .mws_summary_count > span:last-child { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
#mws-order-portal .mws_summary_grand { display: flex; justify-content: space-between; margin: 0 0 18px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 18px; font-weight: 700; color: var(--text); }
#mws-order-portal .mws_summary_legal { font-size: 12px; color: var(--muted); margin: 12px 0 0; text-align: center; line-height: 1.5; }

/* Success — full viewport height via Mioweb's .row_height_full (markup), like the login screen. */
#mws-order-portal.mws_success_page { box-sizing: border-box; display: grid; place-items: center; padding: 96px 20px; }
#mws-order-portal .mws_success_card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 48px 40px; box-shadow: var(--shadow-card); max-width: 640px; margin: 0 auto; text-align: center; }
#mws-order-portal .mws_success_card_icon { width: 72px; height: 72px; border-radius: 50%; background: var(--success-bg); color: #16A34A; display: grid; place-items: center; margin: 0 auto 20px; }
#mws-order-portal .mws_success_card_title { font-size: 26px; font-weight: 700; margin: 0 0 12px; letter-spacing: -.01em; }
#mws-order-portal .mws_success_card_text { color: var(--text-2); font-size: 15px; max-width: 48ch; margin: 0 auto 28px; }

@media (max-width: 920px) {
	#mws-order-portal .mws_grid { grid-template-columns: 1fr; }
	#mws-order-portal .mws_summary { position: static; }
	#mws-order-portal .mws_pagehead_title { font-size: 26px; }
}
@media (max-width: 540px) {
	#mws-order-portal .mws_return_item { grid-template-columns: auto 1fr; }
	#mws-order-portal .mws_return_item_thumb { display: none; }
	#mws-order-portal .mws_return_item_price { grid-column: 2 / -1; padding-top: 0; text-align: left; }
}

/* "Potřebujete poradit?" — on mobile keep the title centred and the phone + e-mail side by side, centred. */
@media (max-width: 600px) {
	#mws-order-portal .mws_head_help { width: 100%; align-items: stretch; }
	#mws-order-portal .mws_head_help_title { text-align: center; }
	#mws-order-portal .mws_head_help_contacts { justify-content: center; flex-wrap: nowrap; }
}

/* Payment result (templates/payment-result.php) — the post-checkout confirmation / failure
   screen. Reuses the portal tokens, .mws_card, .mws_btn and .mws_totals; only the centred hero,
   the "confirmation sent" note and the failure-reasons list are specific to this screen. */
#mws-order-portal.mws_result_page { min-height: 80vh; }
#mws-order-portal .mws_result { max-width: 640px; margin: 0 auto; padding: 40px 20px 64px; display: flex; flex-direction: column; gap: 16px; }
/* Everything lives in one shared white card; hero, summary, reasons and actions stack inside it. */
#mws-order-portal .mws_result_card { display: flex; flex-direction: column; gap: 22px; padding: 32px 28px; }
#mws-order-portal .mws_result_hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
#mws-order-portal .mws_result_icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--neutral-bg); color: var(--text-2); }
#mws-order-portal .mws_result_icon svg { width: 36px; height: 36px; }
#mws-order-portal.mws_result_success .mws_result_icon { background: var(--success-bg); color: #16A34A; }
#mws-order-portal.mws_result_danger .mws_result_icon { background: var(--danger-bg); color: #DC2626; }
#mws-order-portal .mws_result_status { font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--success); }
#mws-order-portal .mws_result_title { font-size: 30px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
#mws-order-portal .mws_result_lead { color: var(--text-2); font-size: 15px; max-width: 50ch; margin: 0; }
#mws-order-portal .mws_result_order_no { font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px; }

/* Inner light panels (order summary, failure reasons) inside the main card. */
#mws-order-portal .mws_result_box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px 18px; }
#mws-order-portal .mws_result_box_label { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
#mws-order-portal .mws_result_box .mws_totals { margin-top: 0; }

/* "Confirmation sent to <e-mail>" note. */
#mws-order-portal .mws_result_note { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--success-bg); color: var(--success); font-size: 14px; }
#mws-order-portal .mws_result_note svg { width: 20px; height: 20px; color: #16A34A; }
#mws-order-portal .mws_result_note strong { font-weight: 600; }

/* Failure reasons. */
#mws-order-portal .mws_result_reasons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
#mws-order-portal .mws_result_reason { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
#mws-order-portal .mws_result_reason .mws_result_dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); flex: none; }

/* Stacked actions + help line. The primary action reuses the theme's configured button
   (.ve_content_button_style_basic) — stretched full width, label centred, no e-shop colour. */
#mws-order-portal .mws_result_actions { display: flex; flex-direction: column; gap: 12px; }
#mws-order-portal .mws_result_actions .ve_content_button { width: 100%; box-sizing: border-box; justify-content: center; text-align: center; }
/* The label colour comes from the button settings; never underline it like a portal link. */
#mws-order-portal .mws_result_actions .ve_content_button,
#mws-order-portal .mws_result_actions .ve_content_button:hover { text-decoration: none; }
#mws-order-portal .mws_result_back { text-align: center; font-size: 14px; color: var(--muted); }
#mws-order-portal .mws_result_back:hover { color: var(--text); text-decoration: none; }
#mws-order-portal .mws_result_help { text-align: center; font-size: 14px; color: var(--muted); }
/* Footer support contacts must not switch to the e-shop colour on hover on this screen. */
#mws-order-portal.mws_result_page .mws_head_help_link:hover, #mws-order-portal.mws_result_page .mws_head_help_link:hover svg { color: var(--link-hover); }
