/* ROSHAN v2 · the account pages. The section also carries .rv2-co, so the fields, checkboxes, buttons, tables and notices are the
   checkout's (checkout.css); this file lays the pages out: the head, sign-in beside a new account, the signed-in menu beside the
   page, orders as rows (cards on a phone), addresses side by side. The old Additional CSS paints WooCommerce buttons with
   !important, hence the few !important below. */
.rv2-acct__in{max-width:1200px;margin:0 auto;padding-inline:max(16px,2.5vw)}
.rv2-acct__head{display:grid;gap:10px;padding-block:28px 24px;margin-bottom:clamp(24px,3vw,40px);border-bottom:1px solid var(--hair)}
.rv2-acct__lede{max-width:60ch;margin:0;font:400 16px/1.6 var(--sans);color:var(--mist)}
.rv2.rv2-acct .rv2-cart__h1{overflow-wrap:anywhere;text-wrap:balance}
.rv2.rv2-acct :is(h2,h3){margin:0 0 16px;font:400 clamp(24px,.8vw + 18px,30px)/1.2 var(--display);letter-spacing:0;text-transform:none;color:var(--cream)}
.rv2.rv2-acct p{margin:0 0 12px;font:400 16px/1.6 var(--sans);color:var(--cream)}
/* links in the page's text (not the menu: it has its own look) */
.rv2.rv2-acct .woocommerce :is(.woocommerce-MyAccount-content,form,.woocommerce-notices-wrapper) a:not(.button){color:var(--cream);text-decoration:underline;
  text-decoration-color:rgba(194,165,113,.7);text-underline-offset:4px}
@media (hover:hover){ .rv2.rv2-acct .woocommerce :is(.woocommerce-MyAccount-content,form,.woocommerce-notices-wrapper) a:not(.button):hover{text-decoration-color:var(--cream)} }
.rv2.rv2-acct .woocommerce .clear{display:none}

/* the buttons: the checkout's pay button, smaller */
.rv2.rv2-acct .woocommerce :is(button.button,a.button,input.button){display:inline-flex!important;align-items:center;justify-content:center;gap:8px;
  min-height:48px;margin:0;padding:0 24px!important;border:0!important;border-radius:2px!important;background:var(--champ)!important;box-shadow:none!important;
  font:500 16px/1.2 var(--sans)!important;letter-spacing:0!important;text-transform:none!important;color:var(--on-light)!important;text-decoration:none;cursor:pointer}
@media (hover:hover) and (pointer:fine){ .rv2.rv2-acct .woocommerce :is(button.button,a.button,input.button):hover{background:var(--champ-hi)!important} }
.rv2.rv2-acct .woocommerce :is(button.button,a.button,input.button):focus-visible{outline:2px solid var(--cream);outline-offset:3px}
/* secondary actions in tables (view, pay, cancel): outlined */
.rv2.rv2-acct .woocommerce table a.button{min-height:40px;padding:0 16px!important;background:transparent!important;border:1px solid rgba(194,165,113,.7)!important;
  color:var(--cream)!important;font-size:15px!important}
@media (hover:hover) and (pointer:fine){ .rv2.rv2-acct .woocommerce table a.button:hover{background:rgba(194,165,113,.14)!important;border-color:var(--champ)!important} }

/* ---------- a guest: sign in beside a new account ---------- */
.rv2.rv2-acct #customer_login{grid-template-columns:minmax(0,1fr);gap:20px;margin:0}
@media (min-width:900px){ .rv2.rv2-acct #customer_login{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px} }
/* 'התחברות' and 'הרשמה': the theme sets them 16px bold capitals through the form's id (seen 30 Sep), so the id is named here too */
.rv2.rv2-acct #customer_login > [class*="u-column"] > :is(h2,h3){margin:0 0 16px;font:400 clamp(24px,.8vw + 18px,30px)/1.2 var(--display)!important;
  letter-spacing:0!important;text-transform:none!important;color:var(--cream)}
.rv2.rv2-acct #customer_login > [class*="u-column"],.rv2.rv2-acct.is-guest .woocommerce > form:is(.login,.lost_reset_password){
  padding:clamp(20px,3vw,36px);background:#1D4135;border:1px solid var(--hair)}
.rv2.rv2-acct.is-guest .woocommerce > form:is(.login,.lost_reset_password){max-width:560px}
.rv2.rv2-acct form:is(.login,.register,.lost_reset_password){display:grid;gap:16px;margin:0;padding:0;border:0;background:none;box-shadow:none}
.rv2.rv2-acct form:is(.login,.register,.lost_reset_password) > p:not(.form-row){margin:0;font-size:15px;color:var(--mist)}
.rv2.rv2-acct form .form-row{margin:0}
.rv2.rv2-acct .form-row:has(.woocommerce-form-login__rememberme){display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}
.rv2.rv2-acct .woocommerce-form-login__rememberme{display:inline-flex!important;align-items:center;gap:10px;min-height:44px;font-weight:400!important}
.rv2.rv2-acct .woocommerce-form-login__rememberme span{font:400 15px/1.4 var(--sans);color:var(--cream)}
.rv2.rv2-acct .lost_password{margin:0}
.rv2.rv2-acct .woocommerce-privacy-policy-text p{font-size:14px;color:var(--mist)}
/* the password field and its eye */
.rv2.rv2-acct .password-input{position:relative;display:block}
.rv2.rv2-acct .password-input input,.rv2.rv2-co.rv2-acct .form-row .password-input :is(input.input-text,input[type="password"],input[type="text"]){padding-left:48px}
.rv2.rv2-acct .show-password-input{position:absolute;top:0;bottom:0;left:0;width:44px;margin:0;padding:0;border:0;background:none;color:var(--champ);cursor:pointer}
.rv2.rv2-acct .show-password-input::after{color:var(--champ)}

/* ---------- signed in: the menu beside the page ---------- */
.rv2-acct.is-in .woocommerce{display:grid;gap:0}
/* The menu has the start column to itself, from the first row down; everything else the page prints (the page itself, a notices
   box, and whatever the theme puts before the menu) stacks in the wide column in its own order. Until 30 Sep an invisible box
   printed before the menu took the menu's cell: the menu fell into the wide column and the page into the narrow one (seen signed
   in). Row gaps stay 0 so an empty box costs no space */
@media (min-width:900px){
  .rv2-acct.is-in .woocommerce{grid-template-columns:230px minmax(0,1fr);column-gap:56px;align-items:start}
  .rv2-acct.is-in .woocommerce > *{grid-column:2}
  .rv2-acct.is-in .woocommerce > :is(.woocommerce-MyAccount-navigation,:has(.woocommerce-MyAccount-navigation):not(:has(.woocommerce-MyAccount-content))){grid-column:1;grid-row:1 / span 30}
}
.rv2-acct.is-in .woocommerce > .woocommerce-notices-wrapper:not(:has(*)){display:none}
/* the theme's counters on the menu (a 0 beside 'הזמנות') say nothing; the names are never set in capitals */
.rv2.rv2-acct .woocommerce-MyAccount-navigation a :is(sup,[class*="count"]){display:none!important}
.rv2.rv2-acct .woocommerce-MyAccount-navigation a::before,.rv2.rv2-acct .woocommerce-MyAccount-navigation a::after{content:none!important;display:none!important}
.rv2.rv2-acct .woocommerce-MyAccount-navigation a{text-transform:none!important;letter-spacing:0!important}
/* a notice (the temporary password one, a saved change): one box, its text wraps and its button sits on its own line inside it.
   Never flex: a sentence with a link or bold word in it would come apart */
.rv2.rv2-acct .woocommerce :is(.woocommerce-info,.woocommerce-message){display:flow-root!important;position:static;width:auto!important;margin:0 0 20px!important;
  padding:14px 16px!important;border:1px solid rgba(194,165,113,.32);font:400 15px/1.6 var(--sans);text-align:start;overflow-wrap:anywhere}
.rv2.rv2-acct .woocommerce :is(.woocommerce-info,.woocommerce-message,.woocommerce-error) :is(a.button,button.button){float:none!important;display:flex!important;
  width:fit-content;max-width:100%;margin:12px 0 0!important;white-space:normal}
/* the theme and WooCommerce size these (30% and 68%, floated; the menu came out 246px inside the wide column): here they fill their columns */
.rv2.rv2-acct .woocommerce-MyAccount-navigation,.rv2.rv2-acct .woocommerce-MyAccount-content{float:none!important;width:auto!important;max-width:none!important;
  margin:0!important;padding:0!important;min-width:0}
.rv2.rv2-acct .woocommerce-MyAccount-navigation{margin-bottom:24px!important}
@media (min-width:900px){ .rv2.rv2-acct .woocommerce-MyAccount-navigation{margin-bottom:0!important} }
.rv2.rv2-acct .woocommerce-MyAccount-navigation ul{display:flex;gap:8px;width:auto!important;max-width:none!important;float:none!important;margin:0;padding:0 0 4px;
  list-style:none;overflow-x:auto;scrollbar-width:thin;padding-block:6px;margin-block:-6px 0}   /* room for the focus ring */
.rv2.rv2-acct .woocommerce-MyAccount-navigation li{flex:none;margin:0;padding:0;border:0;list-style:none}
.rv2.rv2-acct .woocommerce-MyAccount-navigation li a{display:flex;align-items:center;min-height:44px;padding:0 16px;border:1px solid var(--hair);border-radius:2px;
  font:400 15px/1.3 var(--sans);color:var(--cream);text-decoration:none;white-space:nowrap;transition:background-color .15s,border-color .15s}
.rv2.rv2-acct .woocommerce-MyAccount-navigation li.is-active a{background:rgba(194,165,113,.16);border-color:rgba(194,165,113,.7);font-weight:500}
.rv2.rv2-acct .woocommerce-MyAccount-navigation-link--customer-logout a{color:var(--mist)}
@media (hover:hover){ .rv2.rv2-acct .woocommerce-MyAccount-navigation li:not(.is-active) a:hover{border-color:var(--champ)} }
@media (min-width:900px){
  .rv2.rv2-acct .woocommerce-MyAccount-navigation ul{position:sticky;top:calc(24px + var(--rv2-under,0px));flex-direction:column;gap:2px;overflow:visible;padding:0}
  .rv2.rv2-acct .woocommerce-MyAccount-navigation li a{border-color:transparent;padding:0 14px}
  .rv2.rv2-acct .woocommerce-MyAccount-navigation-link--customer-logout{margin-top:12px;padding-top:12px;border-top:1px solid var(--hair)}
}

/* orders: rows on a screen, cards on a phone (WooCommerce's labels in data-title) */
.rv2.rv2-acct table.shop_table{width:100%}
.rv2.rv2-acct table.shop_table td.woocommerce-orders-table__cell-order-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
@media (max-width:767px){
  .rv2.rv2-acct table.shop_table_responsive thead{display:none}
  .rv2.rv2-acct table.shop_table_responsive tr{display:grid;gap:2px;padding:14px 16px;margin-bottom:12px;background:#1D4135;border:1px solid var(--hair)}
  /* the label floats at the right, the value (however many pieces) sits together at the left */
  .rv2.rv2-acct table.shop_table_responsive :is(td,th){display:block;padding:6px 0;border:0;text-align:left!important}
  .rv2.rv2-acct table.shop_table_responsive :is(td,th)[data-title]::before{content:attr(data-title);float:right;margin-left:16px;font:400 14px/1.6 var(--sans);color:var(--mist)}
  .rv2.rv2-acct table.shop_table_responsive td.woocommerce-orders-table__cell-order-actions{justify-content:flex-start;padding-top:10px}
  .rv2.rv2-acct table.shop_table_responsive td.woocommerce-orders-table__cell-order-actions::before{content:none}
}
.rv2.rv2-acct mark{background:none;color:var(--cream);font-weight:500}
.rv2.rv2-acct .woocommerce-pagination{display:flex;gap:12px;margin-top:20px}

/* addresses side by side, each a panel with its change link */
.rv2.rv2-acct .woocommerce-Addresses{grid-template-columns:minmax(0,1fr);gap:20px;margin:0}
@media (min-width:700px){ .rv2.rv2-acct .woocommerce-Addresses{grid-template-columns:repeat(2,minmax(0,1fr))} }
.rv2.rv2-acct .woocommerce-Address,.rv2.rv2-acct .woocommerce-customer-details address{padding:20px;background:#1D4135;border:1px solid var(--hair)}
.rv2.rv2-acct .woocommerce-Address-title{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:12px}
.rv2.rv2-acct .woocommerce-Address-title :is(h2,h3){margin:0}
.rv2.rv2-acct address{font:400 16px/1.7 var(--sans);font-style:normal;color:var(--cream);overflow-wrap:anywhere}
.rv2.rv2-acct .woocommerce-address-fields__field-wrapper{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:20px}

/* account details: the password block (Rey paints legends white: the legend floats clear of the line) */
.rv2.rv2-acct form.edit-account{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.rv2.rv2-acct form.edit-account > :is(p,fieldset,div){grid-column:1 / -1}
.rv2.rv2-acct form.edit-account > .form-row-first,.rv2.rv2-acct form.edit-account > .form-row-last{grid-column:auto}
@media (max-width:599px){ .rv2.rv2-acct form.edit-account > :is(.form-row-first,.form-row-last){grid-column:1 / -1} }
.rv2.rv2-acct fieldset{display:grid;gap:16px;margin:8px 0 0;padding:20px;border:1px solid var(--hair);background:none}
.rv2.rv2-acct legend{float:right;width:100%;margin:0 0 4px;padding:0;background:none!important;font:500 17px/1.4 var(--sans);color:var(--cream)}
.rv2.rv2-acct fieldset > legend + *{clear:both}
.rv2.rv2-acct form.edit-account em{display:block;margin-top:4px;font:400 14px/1.45 var(--sans);font-style:normal;color:var(--mist)}

/* one order */
.rv2.rv2-acct .woocommerce-order-details,.rv2.rv2-acct .woocommerce-customer-details{margin-top:28px}
.rv2.rv2-acct .woocommerce-customer-details .woocommerce-columns{display:grid;gap:20px}
@media (min-width:700px){ .rv2.rv2-acct .woocommerce-customer-details .woocommerce-columns{grid-template-columns:repeat(2,minmax(0,1fr))} }
