/* ===========================================================================
   OPPOSITE LOCK -- MY ACCOUNT

   Everything here is scoped to #ol-acc, the id page-account.php puts on
   .page-content. The reason is the one the cart stylesheet learned the hard
   way: WooCommerce writes its account rules as long descendant chains, and a
   body class plus a component class loses to them silently, on specificity,
   no matter what order the sheets load in. One id clears all of them.

   Two inherited rules from Hello Elementor also reach in here, and neither is
   WooCommerce. theme.css underlines every link inside .page-content -- which
   #ol-acc is -- and reset.css zebra-stripes every table on the site. Both are
   answered below rather than worked around one component at a time.

   This page is a SHORTCODE, not a block, so unlike the cart every template
   here could have been overridden instead. Almost none were: a stylesheet is
   one file to carry forward, and six copied templates are six files that have
   to be re-merged every time WooCommerce touches them.
   =========================================================================== */


/* --- 25a. THE PAGE ------------------------------------------------------- */

body.ol-account .site-main{max-width:none;width:100%;padding-left:0;padding-right:0}
#ol-acc{padding:26px 0 72px}

/* The head block belongs to page-account.php, not to this component, but its
   spacing only matters here -- the flow stylesheet that normally gives it a
   bottom margin is not loaded on this page, so without this the heading sits
   directly on the rail. */
body.ol-account .ol-flow-head{margin:0 0 4px}
#ol-acc a{text-decoration:none}
#ol-acc .ol-acc-blurb,
#ol-acc .woocommerce-MyAccount-content p{font-family:var(--body);font-size:14.5px;
  line-height:1.65;color:var(--granite)}
.ol-flow-head .ol-acc-blurb{max-width:60ch;margin:10px 0 0;font-family:var(--body);
  font-size:14.5px;line-height:1.65;color:var(--granite)}

/* WooCommerce wraps the shortcode in a bare .woocommerce div that carries its
   own clearfix pseudo-elements. Harmless until something inside becomes a
   grid, at which point they become grid items -- see 25b. */
#ol-acc .woocommerce::before,
#ol-acc .woocommerce::after{content:none}


/* --- 25b. SIGN IN AND REGISTER ------------------------------------------- */

/* WooCommerce clearfixes .col2-set with ::before and ::after carrying
   content:" ". On the float layout it shipped with, those are invisible. In a
   grid they are two more ITEMS, so the two columns land in cells 2 and 3 and
   the first cell sits empty. Exactly the same trap as the order confirmation
   page, and the same one-line answer. */
#ol-acc #customer_login::before,
#ol-acc #customer_login::after{content:none}
#ol-acc #customer_login{display:grid;gap:20px;grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;max-width:980px;margin:0}
#ol-acc #customer_login .u-column1,
#ol-acc #customer_login .u-column2{width:auto;float:none;margin:0;padding:28px 30px;
  background:#fff;border:1px solid var(--hair);border-radius:var(--r2)}
#ol-acc #customer_login .u-column2{background:var(--bone)}
/* WooCommerce gives form.login and form.register a border, a radius and 20px
   of padding of their own, from the days when they were not inside anything.
   Inside the two cards above they draw a second frame a few pixels in from the
   first, which reads as a rendering fault rather than as a design. */
#ol-acc form.login,
#ol-acc form.register{border:0;border-radius:0;padding:0;margin:0}

#ol-acc #customer_login h2{font-family:var(--body);font-size:12px;font-weight:800;
  font-style:normal;letter-spacing:.14em;text-transform:uppercase;color:var(--dust);
  margin:0 0 16px}
#ol-acc .ol-acc-why{margin:0 0 18px;font-family:var(--body);font-size:13.5px;
  line-height:1.6;color:var(--granite)}
#ol-acc .woocommerce-privacy-policy-text p{font-size:12.5px;line-height:1.55;
  color:var(--dust);margin:14px 0 0}
#ol-acc .woocommerce-privacy-policy-text a{color:var(--navy);font-weight:700}
#ol-acc .woocommerce-LostPassword{margin:14px 0 0;font-size:13.5px}
#ol-acc .woocommerce-LostPassword a{color:var(--navy);font-weight:700}
#ol-acc .woocommerce-LostPassword a:hover{color:var(--red)}


/* --- 25c. FORM CONTROLS -------------------------------------------------- */

/* One set of rules for every form in the account area -- login, register,
   lost password, addresses, account details. They all use the same
   .form-row / .input-text pair, so styling the pair once is what keeps the
   five screens looking like one product. */
#ol-acc .form-row{display:block;margin:0 0 16px;padding:0}
#ol-acc .form-row:last-child{margin-bottom:0}
#ol-acc .form-row label:not(.woocommerce-form__label-for-checkbox),
#ol-acc label.woocommerce-form__label:not(.woocommerce-form__label-for-checkbox){
  display:block;margin:0 0 6px;font-family:var(--mono);font-size:9.5px;
  letter-spacing:.16em;text-transform:uppercase;color:var(--dust)}
#ol-acc .form-row label .required{color:var(--red);border:0;text-decoration:none}
#ol-acc .input-text,
#ol-acc input[type=text],
#ol-acc input[type=email],
#ol-acc input[type=tel],
#ol-acc input[type=password],
#ol-acc select{width:100%;box-sizing:border-box;font-family:var(--body);
  font-size:15px;color:var(--navy);background:#fff;border:1px solid var(--hair);
  border-radius:var(--r);padding:12px 15px;line-height:1.3;
  transition:border-color .2s var(--ease),box-shadow .2s var(--ease)}
#ol-acc .input-text:focus,
#ol-acc input:focus,
#ol-acc select:focus{border-color:var(--navy);box-shadow:0 0 0 3px rgba(0,45,82,.08);outline:0}
#ol-acc .woocommerce-form__label-for-checkbox{display:flex;align-items:center;gap:9px;
  font-family:var(--body);font-size:13.5px;color:var(--granite);cursor:pointer}
#ol-acc .woocommerce-form__input-checkbox{width:16px;height:16px;margin:0;accent-color:var(--navy)}
#ol-acc .woocommerce-form-login__rememberme{margin:0 0 16px}
#ol-acc .password-input{display:block;position:relative}
#ol-acc .show-password-input{position:absolute;right:12px;top:50%;transform:translateY(-50%)}
#ol-acc em,
#ol-acc .woocommerce-form-row span em{display:block;margin-top:5px;font-family:var(--body);
  font-size:12.5px;font-style:normal;color:var(--dust)}
#ol-acc fieldset{border:1px solid var(--hair);border-radius:var(--r2);padding:22px 24px;
  margin:26px 0 0}
#ol-acc fieldset legend{font-family:var(--body);font-size:12px;font-weight:800;
  font-style:normal;letter-spacing:.14em;text-transform:uppercase;color:var(--dust);
  padding:0 8px}

/* Buttons. WooCommerce styles a.button and button.button at a specificity
   .ol-btn cannot reach, so the skin is restated here under the id rather than
   the class being added to every template. */
#ol-acc .button,
#ol-acc button[type=submit],
#ol-acc .woocommerce-Address .edit,
#ol-acc .woocommerce-Button{display:inline-block;background:var(--red);color:#fff;
  border:0;border-radius:var(--r3);font-family:var(--body);font-weight:800;
  font-size:13px;letter-spacing:.02em;text-transform:uppercase;line-height:1.1;
  padding:14px 26px;cursor:pointer;text-decoration:none;
  transition:background .2s var(--ease)}
#ol-acc .button:hover,
#ol-acc button[type=submit]:hover,
#ol-acc .woocommerce-Button:hover{background:var(--redhover);color:#fff}
#ol-acc .button:focus-visible,
#ol-acc button[type=submit]:focus-visible{outline:2px solid var(--navy);outline-offset:2px}

/* The .edit link on an address carries no .button class of its own -- it is
   just a.edit -- so it has to be named in the skin above as well as here, or
   it renders as a bordered box in body case while every other button on the
   page is an uppercase pill.

   The secondary action on a row of two -- View on an order, Edit on an
   address. Red everywhere would make every table look like a call to action. */
#ol-acc .woocommerce-orders-table__cell-order-actions .button,
#ol-acc .woocommerce-Address .edit{background:#fff;color:var(--navy);
  border:1px solid var(--hair);padding:9px 18px;font-size:12px}
#ol-acc .woocommerce-orders-table__cell-order-actions .button:hover,
#ol-acc .woocommerce-Address .edit:hover{background:#fff;color:var(--navy);
  border-color:var(--navy)}


/* --- 25d. THE SIGNED-IN LAYOUT AND ITS RAIL ------------------------------ */

/* WooCommerce floats the navigation left at 30% and the content right at 68%.
   Replaced with a grid so the two columns share a row rather than a float
   context -- which is what stops a long rail from dragging the footer up. */
#ol-acc .woocommerce-MyAccount-navigation{width:auto;float:none;margin:0}
#ol-acc .woocommerce-MyAccount-content{width:auto;float:none;margin:0;min-width:0}

/* The grid is keyed off WordPress own logged-in body class, not off :has() and
   not off the page. Logged out there is no rail at all, and a sign-in card in a
   240px track would be a very narrow sign-in card. body.logged-in is put there
   by body_class() on every install, which makes this the one signal that
   cannot go missing. */
@media (min-width:860px){
  body.logged-in #ol-acc .woocommerce{display:grid;gap:36px;
    grid-template-columns:240px minmax(0,1fr);align-items:start}
  body.logged-in #ol-acc .woocommerce-MyAccount-navigation{grid-column:1;grid-row:1}
  body.logged-in #ol-acc .woocommerce-MyAccount-content{grid-column:2;grid-row:1}
  body.logged-in #ol-acc .woocommerce-notices-wrapper{grid-column:1 / -1;grid-row:auto}
}

#ol-acc .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0;
  display:grid;gap:2px}
#ol-acc .woocommerce-MyAccount-navigation li{margin:0}
#ol-acc .woocommerce-MyAccount-navigation li a{display:block;padding:11px 16px;
  border-radius:var(--r);font-family:var(--body);font-size:14px;font-weight:700;
  color:var(--granite);text-decoration:none;
  transition:background .18s var(--ease),color .18s var(--ease)}
#ol-acc .woocommerce-MyAccount-navigation li a:hover{background:var(--bone);color:var(--navy)}
#ol-acc .woocommerce-MyAccount-navigation li.is-active a{background:var(--navy);color:#fff}
#ol-acc .woocommerce-MyAccount-navigation li a:focus-visible{outline:2px solid var(--navy);
  outline-offset:2px}

/* Log out is an action, not a place. It gets a rule above it and a quieter
   weight so it stops reading as the last tab in the set. */
#ol-acc .woocommerce-MyAccount-navigation-link--customer-logout{margin-top:10px;
  padding-top:10px;border-top:1px solid var(--hair)}
#ol-acc .woocommerce-MyAccount-navigation-link--customer-logout a{font-weight:400;
  color:var(--dust)}


/* --- 25e. THE DASHBOARD TILES -------------------------------------------- */

.ol-acc-quick{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr));
  margin:0 0 26px}
.ol-acc-tile{display:block;padding:18px 20px;background:#fff;border:1px solid var(--hair);
  border-radius:var(--r2);text-decoration:none;
  transition:border-color .22s var(--ease),box-shadow .22s var(--ease),transform .22s var(--ease)}
.ol-acc-tile:hover{border-color:var(--navy);box-shadow:var(--e1);transform:translateY(-1px)}
.ol-acc-tile:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
.ol-acc-tile-i{display:block;color:var(--red);margin-bottom:10px}
.ol-acc-tile-t{display:block;font-family:var(--body);font-size:15px;font-weight:800;
  color:var(--navy);letter-spacing:-.01em}
.ol-acc-tile-n{display:block;margin-top:3px;font-family:var(--body);font-size:13px;
  line-height:1.5;color:var(--granite)}
#ol-acc .ol-acc-signout{margin:0;font-size:13.5px;color:var(--dust)}
#ol-acc .ol-acc-signout a{color:var(--navy);font-weight:700}
#ol-acc .ol-acc-signout a:hover{color:var(--red)}


/* --- 25f. TABLES: ORDERS, DOWNLOADS, SAVED PARTS ------------------------- */

/* Hello Elementor reset.css zebra-stripes every table on the site with
   table tbody > tr:nth-child(2n+1) > td, which made the first order in the
   list look selected. The hairlines already separate the rows. */
#ol-acc table tbody td,
#ol-acc table tbody th{background:#fff}

#ol-acc .woocommerce-orders-table,
#ol-acc .woocommerce-table,
#ol-acc .shop_table{width:100%;border-collapse:collapse;border:1px solid var(--hair);
  border-radius:var(--r2);overflow:hidden;background:#fff;font-family:var(--body);margin:0}
#ol-acc .woocommerce-orders-table th,
#ol-acc .woocommerce-table th,
#ol-acc .shop_table th{padding:12px 18px;text-align:left;border:0;
  border-bottom:1px solid var(--hair);background:var(--bone);font-family:var(--mono);
  font-size:9.5px;font-weight:400;letter-spacing:.16em;text-transform:uppercase;
  color:var(--dust)}
#ol-acc .woocommerce-orders-table td,
#ol-acc .woocommerce-table td,
#ol-acc .shop_table td{padding:15px 18px;text-align:left;border:0;
  border-bottom:1px solid var(--hair);font-size:14px;color:var(--navy);vertical-align:middle}
#ol-acc .woocommerce-orders-table tbody tr:last-child td{border-bottom:0}
#ol-acc .woocommerce-orders-table__cell-order-number a{color:var(--navy);font-weight:800}
#ol-acc .woocommerce-orders-table__cell-order-number a:hover{color:var(--red)}
#ol-acc .woocommerce-orders-table__cell-order-status{color:var(--granite)}
#ol-acc .woocommerce-orders-table__cell-order-actions{text-align:right;white-space:nowrap}
#ol-acc .woocommerce-Price-amount{font-family:var(--body);font-weight:700}


/* --- 25g. ADDRESSES ------------------------------------------------------ */

/* .col2-set again, and the clearfix again. Third component on this site to
   hit it; it is the single most useful thing to know about restyling
   WooCommerce with grid. */
#ol-acc .woocommerce-Addresses::before,
#ol-acc .woocommerce-Addresses::after{content:none}
#ol-acc .woocommerce-Addresses{display:grid;gap:10px;
  grid-template-columns:repeat(2,minmax(0,1fr));margin:20px 0 0}
#ol-acc .woocommerce-Address{width:auto;float:none;margin:0;padding:20px 22px;
  background:#fff;border:1px solid var(--hair);border-radius:var(--r2)}
#ol-acc .woocommerce-Address-title{display:flex;align-items:center;justify-content:space-between;
  gap:14px;margin:0 0 12px}
#ol-acc .woocommerce-Address-title h2,
#ol-acc .woocommerce-Address-title h3{margin:0;font-family:var(--body);font-size:12px;
  font-weight:800;font-style:normal;letter-spacing:.14em;text-transform:uppercase;
  color:var(--dust)}
#ol-acc .woocommerce-Address address{font-family:var(--body);font-size:14px;
  line-height:1.65;color:var(--navy);font-style:normal;border:0;padding:0;margin:0}


/* --- 25h. NOTICES AND EMPTY STATES --------------------------------------- */

/* WooCommerce ships these as a green bar with a coloured left edge and a
   pseudo-element tick. The tick is removed rather than restyled: it is drawn
   in WooCommerce own icon font, which this theme does not load, so it renders
   as a box on any machine that reaches the page before the font does. */
#ol-acc .woocommerce-message,
#ol-acc .woocommerce-info,
#ol-acc .woocommerce-error,
#ol-acc .woocommerce-Message{display:flex;align-items:center;gap:16px;flex-wrap:wrap;
  background:var(--bone);border:1px solid var(--hair);border-left:3px solid var(--navy);
  border-radius:var(--r2);padding:16px 20px;margin:0 0 22px;list-style:none;
  font-family:var(--body);font-size:14px;line-height:1.6;color:var(--navy)}
#ol-acc .woocommerce-error{border-left-color:var(--red);color:var(--red)}
#ol-acc .woocommerce-message::before,
#ol-acc .woocommerce-info::before,
#ol-acc .woocommerce-error::before,
#ol-acc .woocommerce-Message::before{content:none}
/* The button is pushed last with order, not just with margin.

   WooCommerce puts the action BEFORE the sentence in some of these notices
   and after it in others -- the confirm-your-email one leads with the button,
   the no-orders-yet one ends with it. margin-left:auto only works on the
   second shape, so the first rendered as a red button with an explanation
   trailing off to its right. The sentence in these notices is a bare text
   node, which becomes an anonymous flex item and cannot be given an order of
   its own -- but it takes the default 0, so putting the button on 1 sends it
   last whichever way round the markup arrived. */
#ol-acc .woocommerce-message .button,
#ol-acc .woocommerce-info .button,
#ol-acc .woocommerce-Message .button{order:1;margin-left:auto;flex:0 0 auto}
#ol-acc .woocommerce-error li{margin:0}


/* --- 25i. RESPONSIVE ------------------------------------------------------ */

@media (max-width:860px){
  #ol-acc .woocommerce-MyAccount-navigation{margin:0 0 26px}
  #ol-acc .woocommerce-MyAccount-navigation ul{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:700px){
  #ol-acc #customer_login{grid-template-columns:1fr}
  #ol-acc .woocommerce-Addresses{grid-template-columns:1fr}
  .ol-acc-quick{grid-template-columns:1fr}
  #ol-acc #customer_login .u-column1,
  #ol-acc #customer_login .u-column2{padding:22px 20px}
  #ol-acc .woocommerce-MyAccount-navigation ul{grid-template-columns:1fr}
  #ol-acc .button,
  #ol-acc button[type=submit]{width:100%;text-align:center}
  #ol-acc .woocommerce-orders-table__cell-order-actions{text-align:left}
  #ol-acc .woocommerce-message .button,
  #ol-acc .woocommerce-info .button{margin-left:0;width:auto}
}


/* --- 25j. SAVED PARTS ---------------------------------------------------- */

/* This tab is the one screen in the account area that is a BLOCK -- the
   wishlist endpoint renders wp:woocommerce/wishlist and nothing else -- so
   the vocabulary changes to .wc-block-* halfway down this file. It is styled
   rather than rebuilt for the usual reason, and for one more: the block is
   still marked experimental upstream, so the less of it this theme depends
   on, the less there is to repair when it moves.

   The titles are the important fix. The block prints them as .wp-block-post-title,
   which is an h2, and section 3 of the design system gives an unclassed
   heading the uppercase italic display face. That face is reserved for page
   and section headings; twelve product names set in it read as twelve
   competing headlines. */
#ol-acc .wc-block-wishlist__list{display:grid;gap:12px;list-style:none;margin:0;padding:0;
  grid-template-columns:repeat(3,minmax(0,1fr))}
#ol-acc .wc-block-shopper-list-item{position:relative;display:flex;flex-direction:column;
  margin:0;padding:0 0 18px;background:#fff;border:1px solid var(--hair);
  border-radius:var(--r);overflow:hidden;text-align:left;
  transition:border-color .22s var(--ease),box-shadow .22s var(--ease)}
#ol-acc .wc-block-shopper-list-item:hover{border-color:var(--navy);box-shadow:var(--e1)}
#ol-acc .wc-block-shopper-list-item__image-slot{background:linear-gradient(155deg,#fff,var(--bone2));
  aspect-ratio:4/3;display:grid;place-items:center;overflow:hidden;margin:0 0 14px}
#ol-acc .wc-block-shopper-list-item img{max-width:100%;height:auto}

#ol-acc .wc-block-shopper-list-item .wp-block-post-title{margin:0 18px 6px;text-align:left;
  font-family:var(--body);font-style:normal;font-weight:800;font-size:15px;
  line-height:1.3;letter-spacing:-.01em;text-transform:none}
#ol-acc .wc-block-shopper-list-item .wp-block-post-title a{color:var(--navy);text-decoration:none}
#ol-acc .wc-block-shopper-list-item .wp-block-post-title a:hover{color:var(--red)}
#ol-acc .wc-block-shopper-list-item .price,
#ol-acc .wc-block-shopper-list-item .wc-block-components-product-price{display:block;
  margin:0 18px 14px;text-align:left;font-family:var(--body);font-size:15px;
  font-weight:800;color:var(--navy)}
#ol-acc .wc-block-shopper-list-item__variation{margin:0 18px 10px;font-family:var(--mono);
  font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--dust)}

/* The add button sits at the foot of every card whatever height the title
   ran to, so a row of three does not stagger. */
#ol-acc .wc-block-shopper-list-item .wp-block-button{margin:auto 18px 0}
#ol-acc .wc-block-shopper-list-item .wp-block-button__link{display:block;width:100%;
  text-align:center;background:var(--red);color:#fff;border:0;border-radius:var(--r3);
  font-family:var(--body);font-weight:800;font-size:12.5px;letter-spacing:.02em;
  text-transform:uppercase;padding:12px 18px;text-decoration:none;
  transition:background .2s var(--ease)}
#ol-acc .wc-block-shopper-list-item .wp-block-button__link:hover{background:var(--redhover);color:#fff}

/* Remove. A circular icon button in the corner of the shot, the same shape as
   the heart that put the part here in the first place. */
#ol-acc .wc-block-shopper-list-item__remove{position:absolute;top:11px;right:11px;
  width:30px;height:30px;padding:0;border-radius:50%;background:#fff;
  border:1px solid var(--hair);color:var(--dust);display:grid;place-items:center;
  cursor:pointer;z-index:2;transition:.2s var(--ease)}
#ol-acc .wc-block-shopper-list-item__remove:hover{color:var(--red);border-color:var(--red)}
#ol-acc .wc-block-shopper-list-item__remove svg{width:15px;height:15px}

#ol-acc .wc-block-wishlist__empty{background:var(--bone);border:1px solid var(--hair);
  border-radius:var(--r2);padding:26px 24px;font-family:var(--body);font-size:14.5px;
  color:var(--granite)}

@media (max-width:1100px){
  #ol-acc .wc-block-wishlist__list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:560px){
  #ol-acc .wc-block-wishlist__list{grid-template-columns:1fr}
}


/* Accessibility: white-text buttons on the darker button red (see ol.css, 23 Oct) */
#ol-acc .button,#ol-acc button[type=submit],#ol-acc .woocommerce-Address .edit,#ol-acc .woocommerce-Button,#ol-acc .wc-block-shopper-list-item .wp-block-button__link{background:#D6111B}
#ol-acc .button:hover,#ol-acc button[type=submit]:hover,#ol-acc .woocommerce-Address .edit:hover,#ol-acc .woocommerce-Button:hover,#ol-acc .wc-block-shopper-list-item .wp-block-button__link:hover{background:#B30E17}
