/* Payments (pilot; employers?a=payments): the employer's side of paying the people who worked —
   the product page in the Geofencing page's shape (hero, steps, a settings card) plus the
   preview of the hours review. markup from class.employer_payments.php. placeholder: every
   control is disabled */

.employer_payments { width: 100%; max-width: 1380px; margin: 0 auto; color: #16211f; padding: 0 26px 56px; }

/* ---- page heading and intro, in the Availability page's shape ---- */
.pay_page_header { margin-top: 2px; }
.pay_page_eyebrow { color: #0f7777; font-size: .72em; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.pay_page_eyebrow i { font-size: 1.1em; margin-right: 5px; }
.pay_page_title { font-family: 'Alegreya Sans', sans-serif; font-size: 1.9em; font-weight: 700; line-height: 1.15; }
.pay_page_subtitle { margin-top: 4px; color: #58696b; font-family: Alegreya, serif; font-size: 1.05em; }
.pay_hero { display: grid; grid-template-columns: minmax(360px, .92fr) minmax(380px, 1.08fr); align-items: center; min-height: 370px; margin-top: 22px; overflow: hidden; border: 1px solid #cfe9e8; border-radius: 20px; background: linear-gradient(110deg, #edfbfa 0%, #faffff 58%, #f5edfb 100%); box-shadow: 0 12px 30px rgba(16, 38, 52, .07); }
.pay_hero_copy { padding: 42px clamp(30px, 4vw, 64px); }
.pay_hero_art_wrap { align-self: end; display: flex; justify-content: center; padding: 18px 24px 0; }
.pay_intro_art { display: block; width: 100%; height: auto; }
.pay_intro_kicker { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pay_intro_title { font-family: 'Alegreya Sans', sans-serif; font-size: clamp(2.15em, 3.4vw, 3.2em); line-height: 1.02; margin-top: 14px; }
.pay_intro_title span { color: #0f7777; }
.pay_intro_text { max-width: 560px; color: #435b64; font-size: 1.05em; line-height: 1.6; margin: 16px 0; }
.pay_intro_button { background: #111; border-color: #111; color: white; padding-left: 50px; padding-right: 50px; margin-top: 10px; }
.pay_intro_soon { font-size: .8em; color: #b45309; font-weight: 600; margin-top: 8px; }
.pay_trust_row { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; margin: 15px 0 18px; border: 1px solid #dfe8ea; border-radius: 12px; background: white; }
.pay_trust_row > div { display: flex; gap: 10px; align-items: center; padding: 13px 18px; color: #62727b; font-size: .82em; }
.pay_trust_row > div + div { border-left: 1px solid #dfe8ea; }.pay_trust_row > div > i { color: #0f7777; font-size: 1.25em; }.pay_trust_row b { display: block; color: #16211f; }
.pay_pill { display: inline-flex; align-items: center; gap: 4px; font-size: .74em; font-weight: 700; border-radius: 10px; padding: 2px 9px; background: #f1f3f3; color: #6b7a7e; }
.pay_pill_premium { background: #fff4d6; color: #8a6300; }
.pay_pill_premium i { font-size: .85em; }
.pay_pill_soft { background: #eef3f3; color: #0f7777; font-weight: 600; }

/* the money's path, three boxes and two arrows */
.pay_flow_card { background: white; border: 1px solid #e8eaed; border-radius: 14px; overflow: hidden; }
.pay_flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pay_flow_box { flex: 1 1 0; min-width: 0; background: #f6f9f9; border: 1px solid #e3ebeb; border-radius: 10px; padding: 14px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pay_flow_box i { width: 34px; height: 34px; border-radius: 10px; background: #e3f1f2; color: #0f7777; display: flex; align-items: center; justify-content: center; font-size: 17px; margin-bottom: 4px; }
.pay_flow_box b { font-size: .92em; line-height: 1.2; }
.pay_flow_box span { font-size: .78em; color: #6b7a7e; line-height: 1.4; max-width: 220px; }
.pay_flow_box em { margin-top: 7px; padding: 3px 7px; border-radius: 10px; background: #eef7f7; color: #387077; font-size: .72em; font-style: normal; font-weight: 700; }.pay_flow_box em i { display: inline; width: auto; height: auto; background: none; font-size: 1em; margin: 0 3px 0 0; }
.pay_flow_arrow { display: none; }

/* ---- sections ---- */
.pay_section { padding: 18px 2px 6px; }
.pay_section_head { font-size: 1.3em; font-weight: 700; color: #16211f; letter-spacing: -.02em; margin-bottom: 12px; }.pay_section_head span { display: block; margin-top: 3px; color: #6b7a7e; font-size: .68em; font-weight: 400; letter-spacing: 0; }
.pay_head_tag { font-size: .85em; font-weight: 700; color: #8a9a9f; background: #f1f3f3; border-radius: 10px; padding: 1px 8px; text-transform: uppercase; letter-spacing: .03em; }

.pay_steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pay_step { background: white; border: 1px solid #e8eaed; border-radius: 12px; padding: 16px; }
.pay_step_num { width: 28px; height: 28px; border-radius: 14px; background: #0f7777; color: white; font-weight: 800; font-size: .85em; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.pay_step_title { font-weight: 700; font-size: .95em; }
.pay_step_copy { font-size: .84em; color: #46575b; margin-top: 4px; line-height: 1.5; }

/* ---- setup card ---- */
.pay_settings_card { background: white; border: 1px solid #e8eaed; border-radius: 12px; padding: 4px 16px 4px; }
.pay_setting_row { display: flex; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px solid #f2f4f4; }
.pay_setting_row_last { border-bottom: 0; }
.pay_setting_text { flex: 1; min-width: 0; }
.pay_setting_label { font-weight: 700; font-size: .95em; }
.pay_setting_help { font-size: .82em; color: #6b7a7e; margin-top: 3px; line-height: 1.5; }
.pay_soon { color: #b45309; font-weight: 600; }
.pay_button_soon { flex: none; font-size: .85em; opacity: .55; cursor: not-allowed; }
.pay_switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; margin-top: 4px; }
.pay_switch input { opacity: 0; width: 0; height: 0; }
.pay_switch_track { position: absolute; inset: 0; background: #d5dfe0; border-radius: 12px; transition: background .15s; }
.pay_switch_track:after { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: white; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.pay_switch input:disabled + .pay_switch_track { opacity: .55; cursor: not-allowed; }

/* ---- the hours review ---- */
.pay_review_card { background: white; border: 1px solid #e8eaed; border-radius: 12px; overflow: hidden; }
.pay_preview_note { display: flex; gap: 8px; align-items: flex-start; font-size: .82em; color: #6b7a7e; padding: 12px 16px; background: #f8fafa; border-bottom: 1px solid #f2f4f4; line-height: 1.45; }
.pay_preview_note i { color: #0f7777; margin-top: 1px; }
.pay_table_wrap { overflow-x: auto; }
.pay_table { width: 100%; border-collapse: collapse; font-size: .88em; }
.pay_table th { text-align: left; font-size: .78em; font-weight: 700; color: #6b7a7e; text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid #e8eaed; white-space: nowrap; }
.pay_table td { padding: 11px 14px; border-bottom: 1px solid #f2f4f4; vertical-align: top; }
.pay_table tr:last-child td { border-bottom: 0; }
.pay_cell_main { font-weight: 600; white-space: nowrap; }
.pay_cell_sub { font-size: .82em; color: #6b7a7e; margin-top: 2px; white-space: nowrap; }
.pay_cell_amount { font-weight: 700; white-space: nowrap; }
.pay_dim { color: #9fb3b4; font-weight: 400; font-style: italic; }
.pay_state { display: inline-block; font-size: .78em; font-weight: 700; border-radius: 10px; padding: 2px 9px; white-space: nowrap; }
.pay_state_wait { background: #fff4d6; color: #8a6300; }
.pay_state_ok { background: #e3f1f2; color: #0f7777; }
.pay_state_done { background: #e6f4ea; color: #1a7f37; }
.pay_review_foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid #e8eaed; background: #f8fafa; }
.pay_review_sum { font-size: .84em; color: #46575b; }
.pay_review_buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.pay_release { background: #0f7777; border-color: #0f7777; }

/* ---- costs ---- */
.pay_costs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; background: white; border: 1px solid #e8eaed; border-radius: 12px; padding: 16px; }
.pay_cost_title { font-weight: 700; font-size: .9em; display: flex; align-items: center; gap: 6px; color: #0f7777; }
.pay_costs ul { margin: 6px 0 0; padding-left: 18px; }
.pay_costs li { font-size: .84em; color: #46575b; line-height: 1.5; margin-bottom: 4px; }
.pay_note { font-size: .8em; color: #6b7a7e; margin-top: 10px; line-height: 1.5; padding: 0 2px; }
.pay_check_cost { display: grid; grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr); overflow: hidden; border: 1px solid #ecdcae; border-radius: 14px; background: #fffdf6; }
.pay_check_main { padding: 20px; background: #fff9e9; }.pay_check_kicker { color: #9a701e; font-size: .72em; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.pay_check_main > b { display: block; margin: 8px 0; color: #7b5615; font-size: 2em; }.pay_check_main small { color: #9a7c43; font-size: .38em; }.pay_check_main > span { color: #73623c; font-size: .8em; line-height: 1.5; }.pay_check_points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 20px; }.pay_check_points i { color: #aa7b1f; font-size: 1.15em; }.pay_check_points b,.pay_check_points span { display: block; }.pay_check_points b { margin-top: 5px; color: #584921; font-size: .82em; }.pay_check_points span { margin-top: 2px; color: #88784f; font-size: .72em; line-height: 1.35; }.pay_check_source { grid-column: 1 / -1; padding: 10px 20px; border-top: 1px solid #f2e6c4; color: #908263; font-size: .7em; }

@media (max-width: 860px)
{
  .pay_hero { grid-template-columns: 1fr; }
  .pay_hero_art_wrap { max-height: 330px; }
  .pay_intro_art { width: auto; max-width: 100%; max-height: 330px; object-fit: contain; }
  .pay_steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pay_check_cost { grid-template-columns: 1fr; }.pay_check_points { grid-template-columns: repeat(4, 1fr); }.pay_check_source { grid-column: auto; }
}
@media (max-width: 560px)
{
  .employer_payments { padding-left: 12px; padding-right: 12px; }
  .pay_hero_copy { padding: 30px 24px 0; }
  .pay_hero_art_wrap { padding: 8px 16px 0; max-height: none; }.pay_intro_art { width: 100%; max-height: none; aspect-ratio: 3 / 2; object-fit: contain; }
  .pay_intro_kicker { margin-top: 18px; }
  .pay_intro_title { font-size: 1.8em; }
  .pay_intro_text { font-size: 20px; }
  .pay_steps, .pay_costs, .pay_flow { grid-template-columns: 1fr; }
  .pay_flow_box + .pay_flow_box { border-top: 1px solid #e3ebeb; }
  .pay_trust_row { grid-template-columns: 1fr; }.pay_trust_row > div + div { border-left: 0; border-top: 1px solid #dfe8ea; }
  .pay_check_points { grid-template-columns: 1fr 1fr; }
  .pay_setting_row { flex-wrap: wrap; }
  .pay_setting_row .pay_button_soon { flex: 1 1 100%; }
}
