/* WordPress and WooCommerce additions on top of main.css. Same tokens as
   the design. */

/* ---- Course card price: WooCommerce's sale markup (<del> was, <ins> now) ---- */

.jo-ccard-price del {
  margin-right: 0.375rem;
  color: var(--jo-primary-text);
  font-size: 0.8em;
  font-weight: 400;
}

.jo-ccard-price ins {
  text-decoration: none;
}

/* ---- Plain pages (basket, checkout, My Account until they are designed) ---- */

.jo-page {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.jo-page-title {
  margin-bottom: 1.5rem;
  color: var(--jo-heading);
  font-size: var(--jo-fs-h1);
}

.jo-page-entry + .jo-page-entry {
  margin-top: 2rem;
}

/* ---- Single course ---- */

.jo-notices {
  padding-top: 1.5rem;
}

.jo-sc-head-lead p {
  margin: 0 0 0.75rem;
}

.jo-sc-head-lead p:last-child {
  margin-bottom: 0;
}

/* A module with no details: same row, no toggle. */
.jo-sc-step-btn--plain {
  cursor: default;
}

/* "Show All Reviews" is a button here (the design has a link). */
button.jo-sc-reviews-all {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
}

.jo-sc-unavailable {
  margin: 0.75rem 0;
  color: var(--jo-muted);
  font-size: var(--jo-fs-sm);
}

.jo-sc-provider img {
  max-width: 100%;
  height: auto;
}

/* WooCommerce prices inside the design's price spans. */
.jo-price-old .woocommerce-Price-amount,
.jo-sc-deal-now .woocommerce-Price-amount,
.jo-sc-price-now .woocommerce-Price-amount,
.jo-sc-bar-now .woocommerce-Price-amount {
  color: inherit;
  font: inherit;
}

/* ---- All Courses ---- */

.jo-list-empty {
  padding: 2rem 0;
  color: var(--jo-muted);
}

.jo-crow-media > a {
  display: block;
}

.jo-crow-price .woocommerce-Price-amount {
  color: inherit;
}

/* WooCommerce's ajax add to cart: a spinner while adding, then a
   "View basket" link after the button. */
.jo-crow-btn.loading {
  opacity: 0.6;
  pointer-events: none;
}

.jo-crow-buy .added_to_cart {
  display: block;
  margin-top: 0.375rem;
  color: var(--jo-primary);
  font-size: var(--jo-fs-sm);
}

/* =====================================================================
   Dashboards (My Account for customers, Vendor Dashboard for providers).
   The first part is copied from the jobs theme so both sites match.
   ===================================================================== */

.jo-dash .form-label {
  margin-bottom: 0.25rem;
  font-size: var(--jo-fs-sm);
  font-weight: 500;
}

.jo-dash .form-control:focus,
.jo-dash .form-select:focus {
  border-color: var(--jo-primary);
  box-shadow: 0 0 0 0.2rem rgb(92 60 196 / 0.2);
}

.jo-dash-notice {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--jo-radius-sm);
  font-size: var(--jo-fs-sm);
}

.jo-dash-notice.is-ok {
  background-color: var(--jo-ins);
  color: var(--jo-heading);
}

.jo-dash-notice.is-error {
  background-color: #ffe9e9;
  color: #9b1c1c;
}

/* ---- Dashboard ---- */

.jo-dash {
  padding-block: 2.5rem 4rem;
}

.jo-dash-container {
  max-width: 73rem;
}

.jo-dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .jo-dash-grid {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 2rem;
  }
}

.jo-dash-side {
  align-self: start;
  padding: 1.25rem;
  border-radius: var(--jo-radius);
  background-color: var(--jo-surface-2);
}

.jo-dash-hello {
  margin: 0;
  color: var(--jo-heading);
  font-family: var(--jo-font-heading);
  font-size: var(--jo-fs-h3);
}

.jo-dash-company {
  margin: 0.125rem 0 0;
  color: var(--jo-primary-text);
  font-size: var(--jo-fs-sm);
}

.jo-dash-nav {
  display: grid;
  gap: 0.375rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.jo-dash-link {
  display: block;
  padding: 0.5rem 0.875rem;
  border: 2px solid transparent;
  border-radius: var(--jo-radius-pill);
  color: var(--jo-heading);
  font-size: var(--jo-fs-body);
  transition: background-color 0.15s, color 0.15s;
}

.jo-dash-link:hover {
  border-color: var(--jo-primary);
  color: var(--jo-heading);
}

.jo-dash-link.active {
  background-color: var(--jo-primary);
  color: var(--jo-white);
}

.jo-dash-logout {
  margin-top: 0.5rem;
  color: var(--jo-primary-text);
  font-size: var(--jo-fs-sm);
}

.jo-dash-panel {
  min-width: 0;
  padding: 1.75rem;
  border: 2px solid var(--jo-line-purple);
  border-radius: var(--jo-radius);
}

.jo-dash-title {
  margin: 0 0 0.5rem;
  font-family: var(--jo-font-heading);
  font-size: var(--jo-fs-h2);
  font-weight: 400;
}

.jo-dash-intro {
  margin: 0 0 1.5rem;
  color: var(--jo-primary-text);
}

.jo-dash-submit {
  margin-top: 1.75rem;
}

.jo-dash-logo {
  display: block;
  width: 9.375rem;
  height: 9.375rem;
  object-fit: cover;
  border: 2px solid var(--jo-line-purple);
  border-radius: 50%;
}

.jo-dash-empty {
  padding: 3rem 1.5rem;
  border: 2px dashed var(--jo-line-purple);
  border-radius: var(--jo-radius);
  color: var(--jo-primary-text);
  text-align: center;
}

.jo-dash-empty p {
  margin: 0;
}

/* Login form (wp_login_form markup) */
.jo-dash-login {
  max-width: 26rem;
  margin: 0 auto;
  padding: 1.75rem;
  border: 2px solid var(--jo-line-purple);
  border-radius: var(--jo-radius);
}

.jo-dash-login label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: var(--jo-fs-sm);
  font-weight: 500;
}

.jo-dash-login .input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--jo-line-purple);
  border-radius: var(--jo-radius-sm);
}

.jo-dash-login .login-remember label {
  display: inline;
  font-weight: 400;
}

.jo-dash-login .button-primary {
  padding: 0.5rem 1.75rem;
  border: 0;
  border-radius: var(--jo-radius-pill);
  background-color: var(--jo-primary);
  color: var(--jo-white);
}

.jo-dash-login .button-primary:hover {
  background-color: var(--jo-primary-dark);
}

.jo-dash-login-links {
  margin: 1rem 0 0;
  font-size: var(--jo-fs-sm);
}

@media (max-width: 767.98px) {
  .jo-dash-panel {
    padding: 1.25rem;
  }
}

/* ---- Dashboard: shared pieces ---- */

.jo-dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.jo-dash-head .jo-dash-title {
  margin: 0;
}

.jo-dash-subtitle {
  margin: 0 0 0.75rem;
  color: var(--jo-heading);
  font-family: var(--jo-font-heading);
  font-size: var(--jo-fs-h3);
  font-weight: 400;
}

.jo-dash-muted {
  color: var(--jo-muted);
}

.jo-dash-strong {
  color: var(--jo-heading);
  font-weight: 500;
}

a.jo-dash-strong:hover {
  color: var(--jo-primary);
}

.jo-dash-danger {
  color: #b42318;
}

.jo-dash-back {
  margin: 0 0 1rem;
  font-size: var(--jo-fs-sm);
}

.jo-dash-notice.is-info {
  background-color: var(--jo-primary-soft);
  color: var(--jo-heading);
}

.jo-dash-badge {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0 0.5rem;
  border-radius: var(--jo-radius-pill);
  background-color: var(--jo-amber);
  color: var(--jo-navy);
  font-size: var(--jo-fs-xs);
}

/* Tables (My Jobs, Applications) */
.jo-dash-table {
  --bs-table-bg: transparent;
  margin: 0;
  font-size: var(--jo-fs-body);
}

.jo-dash-table thead th {
  color: var(--jo-primary-text);
  font-size: var(--jo-fs-sm);
  font-weight: 500;
  border-bottom-color: var(--jo-line-purple);
}

.jo-dash-row {
  cursor: pointer;
}

.jo-dash-row:hover > * {
  background-color: var(--jo-surface-2);
}

.jo-dash-row.is-new .jo-dash-strong {
  font-weight: 700;
}

.jo-dash-actions {
  text-align: right;
  white-space: nowrap;
}

.jo-dash-actions form {
  display: inline-flex;
  gap: 0.25rem;
}

/* Status pills */
.jo-dash-pill {
  display: inline-block;
  padding: 0.125rem 0.625rem;
  border-radius: var(--jo-radius-pill);
  background-color: var(--jo-surface);
  color: var(--jo-heading);
  font-size: var(--jo-fs-xs);
  font-weight: 500;
  white-space: nowrap;
}

.jo-dash-pill.is-publish,
.jo-dash-pill.is-offered,
.jo-dash-pill.is-interview {
  background-color: var(--jo-green);
  color: var(--jo-navy);
}

.jo-dash-pill.is-pending,
.jo-dash-pill.is-new {
  background-color: var(--jo-amber);
  color: var(--jo-navy);
}

.jo-dash-pill.is-shortlisted {
  background-color: var(--jo-periwinkle);
}

.jo-dash-pill.is-private,
.jo-dash-pill.is-draft,
.jo-dash-pill.is-rejected {
  background-color: var(--jo-line);
  color: var(--jo-muted);
}

.jo-dash-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.jo-dash-filter .form-select {
  width: auto;
  max-width: 100%;
}

.jo-dash-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 1.25rem;
}


/* ---- Dashboards: courses site additions ---- */

/* Order status pills (WooCommerce statuses). */
.jo-dash-pill.is-completed {
  background-color: var(--jo-green);
  color: var(--jo-navy);
}

.jo-dash-pill.is-processing {
  background-color: var(--jo-periwinkle);
}

.jo-dash-pill.is-on-hold,
.jo-dash-pill.is-pending {
  background-color: var(--jo-amber);
  color: var(--jo-navy);
}

.jo-dash-pill.is-cancelled,
.jo-dash-pill.is-refunded,
.jo-dash-pill.is-failed,
.jo-dash-pill.is-checkout-draft {
  background-color: var(--jo-line);
  color: var(--jo-muted);
}

/* Overview figures and shortcuts. */
.jo-dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.jo-dash-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--jo-radius);
  background-color: var(--jo-surface-2);
  color: var(--jo-primary-text);
  font-size: var(--jo-fs-sm);
  transition: background-color 0.15s;
}

a.jo-dash-stat:hover {
  background-color: var(--jo-surface);
  color: var(--jo-primary-text);
}

.jo-dash-stat-num {
  color: var(--jo-heading);
  font-family: var(--jo-font-heading);
  font-size: var(--jo-fs-h2);
  line-height: 1.1;
}

.jo-dash-more {
  margin: 0.75rem 0 2rem;
  font-size: var(--jo-fs-sm);
}

.jo-dash-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
}

.jo-dash-tile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--jo-line-purple);
  border-radius: var(--jo-radius);
  color: var(--jo-primary-text);
  font-size: var(--jo-fs-sm);
  transition: border-color 0.15s;
}

.jo-dash-tile strong {
  color: var(--jo-heading);
  font-size: var(--jo-fs-body);
  font-weight: 500;
}

.jo-dash-tile:hover {
  border-color: var(--jo-primary);
  color: var(--jo-primary-text);
}

.jo-dash-side-logo {
  display: block;
  max-width: 8rem;
  max-height: 4rem;
  margin-bottom: 0.75rem;
  object-fit: contain;
}

/* ---- WooCommerce inside the dashboard ---- */

/* WooCommerce floats the menu and content at 30% / 68%: the grid does it. */
.jo-dash .woocommerce .woocommerce-MyAccount-navigation,
.jo-dash .woocommerce .woocommerce-MyAccount-content {
  float: none;
  width: auto;
}

.jo-dash .woocommerce::before,
.jo-dash .woocommerce::after {
  content: none;
}

.jo-dash .woocommerce-MyAccount-navigation ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

/* Headings in WooCommerce's own templates (order details, addresses) and
   the plugin's Reviews and Refunds pages. */
.jo-dash .woocommerce-MyAccount-content h2,
.jo-dash .woocommerce-MyAccount-content h3,
.jo-dash .joc-account-subtitle {
  margin: 2rem 0 0.75rem;
  color: var(--jo-heading);
  font-family: var(--jo-font-heading);
  font-size: var(--jo-fs-h3);
  font-weight: 400;
}

.jo-dash .woocommerce-MyAccount-content .jo-dash-title,
.jo-dash .woocommerce-MyAccount-content .joc-account-title {
  margin: 0 0 0.5rem;
  font-size: var(--jo-fs-h2);
}

.jo-dash .woocommerce-MyAccount-content .jo-dash-head + * {
  margin-top: 0;
}

.jo-dash .joc-account-intro {
  margin: 0 0 1.5rem;
  color: var(--jo-primary-text);
}

/* Notices: same look as .jo-dash-notice. */
.jo-dash .woocommerce-message,
.jo-dash .woocommerce-info,
.jo-dash .woocommerce-error,
.jo-dash .woocommerce-notices-wrapper .wc-block-components-notice-banner {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: var(--jo-radius-sm);
  background-color: var(--jo-primary-soft);
  color: var(--jo-heading);
  font-size: var(--jo-fs-sm);
  list-style: none;
}

.jo-dash .woocommerce-message {
  background-color: var(--jo-ins);
}

.jo-dash .woocommerce-error {
  background-color: #ffe9e9;
  color: #9b1c1c;
}

.jo-dash .woocommerce-message::before,
.jo-dash .woocommerce-info::before,
.jo-dash .woocommerce-error::before {
  content: none;
}

.jo-dash .woocommerce-message .button,
.jo-dash .woocommerce-info .button {
  float: right;
  margin-left: 1rem;
}

/* Buttons: WooCommerce's grey buttons become the purple pill. */
.jo-dash .woocommerce a.button,
.jo-dash .woocommerce button.button,
.jo-dash .woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  border: 2px solid var(--jo-primary);
  border-radius: var(--jo-radius-pill);
  background-color: var(--jo-primary);
  color: var(--jo-white);
  font-family: var(--jo-font);
  font-size: var(--jo-fs-sm);
  font-weight: 500;
  line-height: 1.5;
  text-shadow: none;
}

.jo-dash .woocommerce a.button:hover,
.jo-dash .woocommerce button.button:hover,
.jo-dash .woocommerce input.button:hover {
  border-color: var(--jo-primary-dark);
  background-color: var(--jo-primary-dark);
  color: var(--jo-white);
}

/* Tables WooCommerce draws (order details, plugin's refunds list). */
.jo-dash .woocommerce table.shop_table {
  width: 100%;
  margin: 0 0 1.5rem;
  border: 0;
  border-collapse: collapse;
  border-radius: 0;
  font-size: var(--jo-fs-body);
}

.jo-dash .woocommerce table.shop_table th,
.jo-dash .woocommerce table.shop_table td {
  padding: 0.75rem 0.5rem;
  border: 0;
  border-bottom: 1px solid var(--jo-line-purple);
  vertical-align: middle;
}

.jo-dash .woocommerce table.shop_table thead th {
  color: var(--jo-primary-text);
  font-size: var(--jo-fs-sm);
  font-weight: 500;
}

.jo-dash .woocommerce table.shop_table tfoot th {
  font-weight: 500;
}

.jo-dash .woocommerce table.shop_table tfoot tr:last-child > * {
  border-bottom: 0;
  color: var(--jo-heading);
  font-size: var(--jo-fs-h3);
}

/* Forms: profile, billing, login, reviews, refunds. */
.jo-dash .woocommerce form .form-row {
  margin: 0 0 1rem;
  padding: 0;
}

.jo-dash .woocommerce form .form-row label,
.jo-dash .woocommerce fieldset legend {
  margin-bottom: 0.25rem;
  color: var(--jo-heading);
  font-size: var(--jo-fs-sm);
  font-weight: 500;
  line-height: 1.5;
}

.jo-dash .woocommerce form .form-row .input-text,
.jo-dash .woocommerce form .form-row select,
.jo-dash .woocommerce form .form-row textarea,
.jo-dash .woocommerce .select2-container .select2-selection--single {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--jo-line-purple);
  border-radius: var(--jo-radius-sm);
  background-color: var(--jo-white);
  color: var(--jo-body);
  font-size: var(--jo-fs-body);
  line-height: 1.5;
}

.jo-dash .woocommerce .select2-container .select2-selection--single .select2-selection__rendered {
  padding: 0;
  line-height: 1.5;
}

.jo-dash .woocommerce .select2-container .select2-selection--single .select2-selection__arrow {
  top: 50%;
  transform: translateY(-50%);
}

.jo-dash .woocommerce form .form-row .input-text:focus,
.jo-dash .woocommerce form .form-row select:focus,
.jo-dash .woocommerce form .form-row textarea:focus {
  border-color: var(--jo-primary);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgb(92 60 196 / 0.2);
}

.jo-dash .woocommerce form .form-row .required {
  color: var(--jo-red);
  text-decoration: none;
}

.jo-dash .woocommerce fieldset {
  margin: 1.5rem 0 0;
  padding: 1.25rem;
  border: 2px solid var(--jo-line-purple);
  border-radius: var(--jo-radius);
}

.jo-dash .woocommerce fieldset.joc-rate,
.jo-dash .woocommerce fieldset.joc-refund-items {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.jo-dash .woocommerce fieldset legend {
  padding: 0 0.375rem;
}

.jo-dash .woocommerce .woocommerce-address-fields__field-wrapper,
.jo-dash .woocommerce form.edit-account {
  display: block;
}

/* Order details: the billing address box. */
.jo-dash .woocommerce .woocommerce-customer-details address {
  padding: 1rem 1.25rem;
  border: 2px solid var(--jo-line-purple);
  border-radius: var(--jo-radius);
  font-style: normal;
}

.jo-dash .woocommerce mark {
  padding: 0;
  background: none;
  color: var(--jo-heading);
  font-weight: 500;
}

/* Login and register: two boxes side by side, in the jo-dash-login style. */
.jo-dash .woocommerce #customer_login {
  display: grid;
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .jo-dash .woocommerce #customer_login {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* WooCommerce's clearfix pseudo-elements would take up grid cells and push
   the register box onto a second row. */
.jo-dash .woocommerce #customer_login::before,
.jo-dash .woocommerce #customer_login::after {
  content: none;
  display: none;
}

.jo-dash .woocommerce #customer_login .u-column1,
.jo-dash .woocommerce #customer_login .u-column2 {
  float: none;
  width: auto;
  padding: 1.75rem;
  border: 2px solid var(--jo-line-purple);
  border-radius: var(--jo-radius);
}

.jo-dash .woocommerce #customer_login h2,
.jo-dash .woocommerce > h2 {
  margin: 0 0 1rem;
  color: var(--jo-heading);
  font-family: var(--jo-font-heading);
  font-size: var(--jo-fs-h2);
  font-weight: 400;
}

.jo-dash .woocommerce form.login,
.jo-dash .woocommerce form.register,
.jo-dash .woocommerce form.lost_reset_password {
  margin: 0;
  padding: 0;
  border: 0;
}

/* Login on its own (registration off), and lost password. */
.jo-dash .woocommerce > form.login,
.jo-dash .woocommerce > form.lost_reset_password {
  max-width: 26rem;
  margin: 0 auto;
  padding: 1.75rem;
  border: 2px solid var(--jo-line-purple);
  border-radius: var(--jo-radius);
}

.jo-dash .woocommerce form.login .woocommerce-form-login__rememberme {
  display: block;
  margin-bottom: 1rem;
  font-weight: 400;
}

.jo-dash .woocommerce .lost_password {
  margin: 1rem 0 0;
  font-size: var(--jo-fs-sm);
}

/* Plugin's Reviews and Refunds pages. */
.jo-dash .joc-review,
.jo-dash .joc-account-empty {
  border-color: var(--jo-line-purple);
}

.jo-dash .joc-review-name {
  color: var(--jo-heading);
}

.jo-dash .joc-review-name:hover {
  color: var(--jo-primary);
}

/* ---- Vendor Dashboard (plugin markup) in the same design ---- */

.jo-dash .joc-dash {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin: 0;
  color: var(--jo-body);
  font-size: var(--jo-fs-body);
}

@media (min-width: 992px) {
  .jo-dash .joc-dash {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 2rem;
  }
}

.jo-dash .joc-dash-main {
  min-width: 0;
  padding: 1.75rem;
  border: 2px solid var(--jo-line-purple);
  border-radius: var(--jo-radius);
}

@media (max-width: 767.98px) {
  .jo-dash .joc-dash-main {
    padding: 1.25rem;
  }
}

.jo-dash .joc-title {
  margin: 0 0 1.25rem;
  color: var(--jo-heading);
  font-family: var(--jo-font-heading);
  font-size: var(--jo-fs-h2);
  font-weight: 400;
}

.jo-dash .joc-head .joc-title {
  margin: 0;
}

.jo-dash .joc-subtitle {
  margin: 2rem 0 0.75rem;
  color: var(--jo-heading);
  font-family: var(--jo-font-heading);
  font-size: var(--jo-fs-h3);
  font-weight: 400;
}

.jo-dash .joc-help,
.jo-dash .joc-empty,
.jo-dash .joc-bulk-hint {
  color: var(--jo-primary-text);
}

.jo-dash .joc-btn {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--jo-navy);
  border-radius: var(--jo-radius-sm);
  background-color: var(--jo-periwinkle);
  color: var(--jo-navy);
  font-size: var(--jo-fs-sm);
  font-weight: 500;
  transition: background-color 0.15s, color 0.15s;
}

.jo-dash .joc-btn:hover {
  border-color: var(--jo-primary);
  background-color: var(--jo-primary);
  color: var(--jo-white);
}

.jo-dash .joc-btn--primary {
  border-color: var(--jo-primary);
  border-radius: var(--jo-radius-pill);
  background-color: var(--jo-primary);
  color: var(--jo-white);
}

.jo-dash .joc-btn--primary:hover {
  border-color: var(--jo-primary-dark);
  background-color: var(--jo-primary-dark);
}

.jo-dash .joc-notice {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: var(--jo-radius-sm);
  background-color: var(--jo-primary-soft);
  color: var(--jo-heading);
  font-size: var(--jo-fs-sm);
}

.jo-dash .joc-notice--success {
  background-color: var(--jo-ins);
}

.jo-dash .joc-notice--error {
  background-color: #ffe9e9;
  color: #9b1c1c;
}

.jo-dash .joc-stat {
  border: 0;
  background-color: var(--jo-surface-2);
  color: var(--jo-primary-text);
  font-size: var(--jo-fs-sm);
}

.jo-dash a.joc-stat:hover {
  background-color: var(--jo-surface);
}

.jo-dash .joc-stat-num {
  color: var(--jo-heading);
  font-family: var(--jo-font-heading);
  font-size: var(--jo-fs-h2);
  font-weight: 400;
}

.jo-dash .joc-table th,
.jo-dash .joc-table td {
  padding: 0.75rem 0.5rem;
  border-bottom-color: var(--jo-line-purple);
}

.jo-dash .joc-table th {
  color: var(--jo-primary-text);
  font-size: var(--jo-fs-sm);
  font-weight: 500;
}

.jo-dash .joc-table tbody tr:hover > * {
  background-color: var(--jo-surface-2);
}

.jo-dash .joc-status {
  padding: 0.125rem 0.625rem;
  background-color: var(--jo-surface);
  color: var(--jo-heading);
  font-size: var(--jo-fs-xs);
  font-weight: 500;
}

.jo-dash .joc-status--publish,
.jo-dash .joc-status--completed {
  background-color: var(--jo-green);
  color: var(--jo-navy);
}

.jo-dash .joc-status--pending,
.jo-dash .joc-status--on-hold,
.jo-dash .joc-status--refund-pending {
  background-color: var(--jo-amber);
  color: var(--jo-navy);
}

.jo-dash .joc-status--processing {
  background-color: var(--jo-periwinkle);
  color: var(--jo-heading);
}

.jo-dash .joc-status--draft,
.jo-dash .joc-status--private,
.jo-dash .joc-status--refunded,
.jo-dash .joc-status--cancelled,
.jo-dash .joc-status--refund-approved,
.jo-dash .joc-status--refund-declined {
  background-color: var(--jo-line);
  color: var(--jo-muted);
}

.jo-dash .joc-filters a.is-active {
  color: var(--jo-primary);
}

.jo-dash .joc-card,
.jo-dash .joc-order {
  border: 2px solid var(--jo-line-purple);
}

.jo-dash .joc-card legend {
  color: var(--jo-heading);
  font-family: var(--jo-font-heading);
  font-size: var(--jo-fs-h3);
  font-weight: 400;
}

.jo-dash .joc-field label {
  color: var(--jo-heading);
  font-size: var(--jo-fs-sm);
  font-weight: 500;
}

.jo-dash .joc-dash input[type="text"],
.jo-dash .joc-dash input[type="email"],
.jo-dash .joc-dash input[type="url"],
.jo-dash .joc-dash input[type="tel"],
.jo-dash .joc-dash input[type="number"],
.jo-dash .joc-dash input[type="password"],
.jo-dash .joc-dash input[type="search"],
.jo-dash .joc-dash select,
.jo-dash .joc-dash textarea {
  border-color: var(--jo-line-purple);
}

.jo-dash .joc-dash input:focus,
.jo-dash .joc-dash select:focus,
.jo-dash .joc-dash textarea:focus {
  border-color: var(--jo-primary);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgb(92 60 196 / 0.2);
}

/* Register form: first and last name side by side. */
.jo-dash .woocommerce form .form-row-first,
.jo-dash .woocommerce form .form-row-last {
  width: 48%;
}

@media (max-width: 575.98px) {
  .jo-dash .woocommerce form .form-row-first,
  .jo-dash .woocommerce form .form-row-last {
    float: none;
    width: 100%;
  }
}
