/* ==========================================================================
   RECODE40 — Account + Order Received + Trainer Panel
   File: assets/css/recode-account.css
   ========================================================================== */

:root {
  --r40-black: #050505;
  --r40-dark: #111111;
  --r40-ink: #171717;
  --r40-muted: #6f747b;
  --r40-muted-2: #8a9098;
  --r40-soft: #f5f5f6;
  --r40-soft-2: #eeeeef;
  --r40-white: #ffffff;
  --r40-border: rgba(5, 5, 5, 0.09);
  --r40-border-strong: rgba(5, 5, 5, 0.15);
  --r40-lime: #d7ff00;
  --r40-lime-dark: #a7c800;
  --r40-danger: #b42318;
  --r40-danger-bg: #feeaea;
  --r40-warning: #a15c00;
  --r40-warning-bg: #fff4df;
  --r40-success: #0f7a3b;
  --r40-success-bg: #e8f8ee;
  --r40-radius-xl: 36px;
  --r40-radius-lg: 30px;
  --r40-radius-md: 22px;
  --r40-radius-sm: 14px;
  --r40-shadow: 0 18px 55px rgba(0, 0, 0, 0.06);
  --r40-shadow-soft: 0 10px 32px rgba(0, 0, 0, 0.045);
}


/* ==========================================================================
   SHARED — Woo notices
   ========================================================================== */

body.recode40-account-page .woocommerce-notices-wrapper,
body.recode40-checkout-page .woocommerce-notices-wrapper {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto 24px;
}

body.recode40-account-page .woocommerce-message,
body.recode40-account-page .woocommerce-info,
body.recode40-account-page .woocommerce-error,
body.recode40-checkout-page .woocommerce-message,
body.recode40-checkout-page .woocommerce-info,
body.recode40-checkout-page .woocommerce-error {
  border: 1px solid var(--r40-border);
  border-left: 5px solid var(--r40-lime);
  border-radius: 18px;
  background: var(--r40-white);
  box-shadow: var(--r40-shadow-soft);
  color: var(--r40-ink);
  padding: 18px 22px;
  font-size: 15px;
  line-height: 1.55;
}

body.recode40-account-page .woocommerce-error,
body.recode40-checkout-page .woocommerce-error {
  border-left-color: var(--r40-danger);
}


/* ==========================================================================
   FRONTEND — WooCommerce My Account layout
   ========================================================================== */

body.recode40-account-page {
  background: #f5f5f6;
}

body.recode40-account-page .site-main,
body.recode40-account-page main {
  background:
    radial-gradient(circle at 20% 0%, rgba(215, 255, 0, 0.08), transparent 34%),
    linear-gradient(180deg, #f7f7f8 0%, #f3f3f4 100%);
}

body.recode40-account-page .woocommerce {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 110px;
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--r40-black);
}

body.recode40-account-page .woocommerce::before,
body.recode40-account-page .woocommerce::after {
  content: "";
  display: table;
  clear: both;
}

body.recode40-account-page .woocommerce-MyAccount-navigation {
  float: left;
  width: 280px;
  margin: 0;
}

body.recode40-account-page .woocommerce-MyAccount-content {
  float: right;
  width: calc(100% - 320px);
  min-height: 420px;
}

/* Usuwa standardowy tekst WooCommerce z Kokpitu: "Witaj..." oraz opis linków */
body.recode40-account-page .woocommerce-MyAccount-content > p:not([class]) {
  display: none;
}

body.recode40-account-page .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 12px;
  background: var(--r40-white);
  border: 1px solid var(--r40-border);
  border-radius: 28px;
  box-shadow: var(--r40-shadow-soft);
  position: sticky;
  top: 110px;
}

body.recode40-account-page .woocommerce-MyAccount-navigation li {
  margin: 0;
  padding: 0;
}

body.recode40-account-page .woocommerce-MyAccount-navigation a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 13px 18px;
  border-radius: 18px;
  color: var(--r40-ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body.recode40-account-page .woocommerce-MyAccount-navigation a:hover {
  background: #f3f3f4;
  color: var(--r40-black);
  transform: translateX(2px);
}

body.recode40-account-page .woocommerce-MyAccount-navigation .is-active a {
  background: var(--r40-black);
  color: var(--r40-white);
}

body.recode40-account-page .woocommerce-MyAccount-content a {
  color: var(--r40-black);
  font-weight: 700;
}


/* ==========================================================================
   FRONTEND — Login / register forms
   ========================================================================== */

body.recode40-account-page:not(.logged-in) .woocommerce {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 110px;
}

/*
 * Ważne:
 * WooCommerce dodaje clearfix przez ::before i ::after.
 * Przy display:grid te pseudo-elementy stają się elementami siatki
 * i rozwalają układ kolumn. Dlatego usuwamy je tylko dla #customer_login.
 */
body.recode40-account-page:not(.logged-in) .woocommerce #customer_login::before,
body.recode40-account-page:not(.logged-in) .woocommerce #customer_login::after {
  content: none;
  display: none;
}

body.recode40-account-page:not(.logged-in) .woocommerce #customer_login.u-columns.col2-set {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 64px);
  width: 100%;
  margin: 0;
  padding: 0;
}

body.recode40-account-page:not(.logged-in) .woocommerce #customer_login .u-column1.col-1,
body.recode40-account-page:not(.logged-in) .woocommerce #customer_login .u-column2.col-2 {
  float: none;
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  flex: initial;
  display: flex;
  flex-direction: column;
}

body.recode40-account-page:not(.logged-in) .woocommerce #customer_login .u-column1.col-1 {
  grid-column: 1;
}

body.recode40-account-page:not(.logged-in) .woocommerce #customer_login .u-column2.col-2 {
  grid-column: 2;
}

body.recode40-account-page:not(.logged-in) .woocommerce #customer_login h2 {
     margin: 0 0 30px;
    color: var(--r40-black);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 0.92;
    font-weight: 600;
}


body.recode40-account-page:not(.logged-in) .woocommerce form.login,
body.recode40-account-page:not(.logged-in) .woocommerce form.register {
  width: 100%;
  margin: 0;
  border: 1px solid var(--r40-border);
  border-radius: var(--r40-radius-lg);
  background: var(--r40-white);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--r40-shadow);
}

body.recode40-account-page:not(.logged-in) .woocommerce form.login {
  max-width: none;
}

body.recode40-account-page:not(.logged-in) .woocommerce form.register {
  max-width: none;
}

body.recode40-account-page:not(.logged-in) .woocommerce form .form-row {
  margin: 0 0 20px;
  padding: 0;
}

body.recode40-account-page:not(.logged-in) .woocommerce form label {
  display: block;
  margin: 0 0 9px;
  color: var(--r40-ink);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

body.recode40-account-page:not(.logged-in) .woocommerce form .required {
  color: var(--r40-lime-dark);
}

body.recode40-account-page:not(.logged-in) .woocommerce form input.input-text,
body.recode40-account-page:not(.logged-in) .woocommerce form input[type="text"],
body.recode40-account-page:not(.logged-in) .woocommerce form input[type="email"],
body.recode40-account-page:not(.logged-in) .woocommerce form input[type="password"],
body.recode40-account-page:not(.logged-in) .woocommerce form input[type="tel"] {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--r40-border-strong);
  border-radius: 16px;
  background: var(--r40-white);
  padding: 0 18px;
  color: var(--r40-black);
  font-size: 16px;
  font-family: inherit;
  line-height: 1.3;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.recode40-account-page:not(.logged-in) .woocommerce form input:focus,
body.recode40-account-page:not(.logged-in) .woocommerce form textarea:focus {
  border-color: var(--r40-black);
  box-shadow: 0 0 0 4px rgba(215, 255, 0, 0.24);
}

/* Pole hasła z ikoną WooCommerce */
body.recode40-account-page:not(.logged-in) .woocommerce .password-input {
  position: relative;
  display: block;
  width: 100%;
}

body.recode40-account-page:not(.logged-in) .woocommerce .password-input input {
  padding-right: 52px;
}

body.recode40-account-page:not(.logged-in) .woocommerce .show-password-input {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 32px;
  height: 32px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

/* Dolny wiersz logowania: button + checkbox */
body.recode40-account-page:not(.logged-in) .woocommerce form.login p.form-row:has(button[name="login"]) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 18px;
  margin: 6px 0 18px;
}

body.recode40-account-page:not(.logged-in) .woocommerce form.login p.form-row:has(button[name="login"]) button {
  order: 1;
}

body.recode40-account-page:not(.logged-in) .woocommerce form.login p.form-row:has(button[name="login"]) .woocommerce-form-login__rememberme {
  order: 2;
}

body.recode40-account-page:not(.logged-in) .woocommerce form .woocommerce-form-login__rememberme {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--r40-ink);
  font-size: 14px;
  font-weight: 700;
}

body.recode40-account-page:not(.logged-in) .woocommerce form .woocommerce-form-login__rememberme input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--r40-lime);
}

body.recode40-account-page:not(.logged-in) .woocommerce button.button,
body.recode40-account-page:not(.logged-in) .woocommerce a.button,
body.recode40-account-page:not(.logged-in) .woocommerce input.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  padding: 14px 24px;
  border: 1px solid var(--r40-black);
  border-radius: 16px;
  background: var(--r40-black);
  color: var(--r40-white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.recode40-account-page:not(.logged-in) .woocommerce button.button:hover,
body.recode40-account-page:not(.logged-in) .woocommerce a.button:hover,
body.recode40-account-page:not(.logged-in) .woocommerce input.button:hover {
  background: var(--r40-lime);
  border-color: var(--r40-lime);
  color: var(--r40-black);
  transform: translateY(-1px);
}

body.recode40-account-page:not(.logged-in) .woocommerce .woocommerce-LostPassword {
  margin: 18px 0 0;
}

body.recode40-account-page:not(.logged-in) .woocommerce .woocommerce-LostPassword a {
  color: var(--r40-black);
  font-size: 15px;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

body.recode40-account-page:not(.logged-in) .woocommerce form.register > p:not(.form-row),
body.recode40-account-page:not(.logged-in) .woocommerce .woocommerce-privacy-policy-text p {
  margin: 0 0 20px;
  color: var(--r40-ink);
  font-size: 16px;
  line-height: 1.65;
}

body.recode40-account-page:not(.logged-in) .woocommerce .woocommerce-privacy-policy-text {
  margin: 4px 0 20px;
}

body.recode40-account-page:not(.logged-in) .woocommerce .woocommerce-privacy-policy-text a {
  color: var(--r40-black);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

body.recode40-account-page:not(.logged-in) .woocommerce-form-register .r40-register-field {
  margin-bottom: 20px;
}


/* ==========================================================================
   FRONTEND — Login / register responsive
   ========================================================================== */

@media (max-width: 1024px) {
  body.recode40-account-page:not(.logged-in) .woocommerce {
    width: min(760px, calc(100% - 36px));
    padding: 58px 0 90px;
  }

  body.recode40-account-page:not(.logged-in) .woocommerce #customer_login.u-columns.col2-set {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  body.recode40-account-page:not(.logged-in) .woocommerce #customer_login .u-column1.col-1,
  body.recode40-account-page:not(.logged-in) .woocommerce #customer_login .u-column2.col-2 {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  body.recode40-account-page:not(.logged-in) .woocommerce {
    width: min(100% - 28px, 620px);
    padding: 48px 0 72px;
  }

  body.recode40-account-page:not(.logged-in) .woocommerce #customer_login h2 {
    margin-bottom: 22px;
    font-size: clamp(28px, 14vw, 42px);
  }

  body.recode40-account-page:not(.logged-in) .woocommerce form.login,
  body.recode40-account-page:not(.logged-in) .woocommerce form.register {
    border-radius: 24px;
    padding: 26px;
  }

  body.recode40-account-page:not(.logged-in) .woocommerce form.login p.form-row:has(button[name="login"]) {
    align-items: stretch;
    flex-direction: column;
  }

  body.recode40-account-page:not(.logged-in) .woocommerce form.login p.form-row:has(button[name="login"]) button {
    width: 100%;
  }

  body.recode40-account-page:not(.logged-in) .woocommerce form .woocommerce-form-login__rememberme {
    width: 100%;
  }
}

@media (max-width: 520px) {
  body.recode40-account-page:not(.logged-in) .woocommerce {
    width: calc(100% - 22px);
  }

  body.recode40-account-page:not(.logged-in) .woocommerce form.login,
  body.recode40-account-page:not(.logged-in) .woocommerce form.register {
    padding: 22px;
  }

  body.recode40-account-page:not(.logged-in) .woocommerce form input.input-text,
  body.recode40-account-page:not(.logged-in) .woocommerce form input[type="text"],
  body.recode40-account-page:not(.logged-in) .woocommerce form input[type="email"],
  body.recode40-account-page:not(.logged-in) .woocommerce form input[type="password"],
  body.recode40-account-page:not(.logged-in) .woocommerce form input[type="tel"] {
    min-height: 54px;
    border-radius: 14px;
    font-size: 15px;
  }

  body.recode40-account-page:not(.logged-in) .woocommerce button.button,
  body.recode40-account-page:not(.logged-in) .woocommerce a.button,
  body.recode40-account-page:not(.logged-in) .woocommerce input.button {
    width: 100%;
    min-height: 52px;
    border-radius: 14px;
  }

  body.recode40-account-page:not(.logged-in) .woocommerce form.register > p:not(.form-row),
  body.recode40-account-page:not(.logged-in) .woocommerce .woocommerce-privacy-policy-text p {
    font-size: 15px;
  }
}


/* ==========================================================================
   FRONTEND — Shared account components
   ========================================================================== */

.r40-account-box {
  background: var(--r40-white);
  border: 1px solid var(--r40-border);
  border-radius: var(--r40-radius-xl);
  padding: clamp(28px, 4vw, 46px);
  box-shadow: var(--r40-shadow);
}

.r40-account-box + .r40-account-box {
  margin-top: 28px;
}

.r40-account-box__head {
  margin-bottom: 28px;
}

.r40-account-box__head h2 {
  margin: 0;
  color: var(--r40-black);
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 700;
}

.r40-account-box__head p {
  width: min(680px, 100%);
  margin: 16px 0 0;
  color: var(--r40-muted);
  font-size: 16px;
  line-height: 1.65;
}

.r40-account-eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--r40-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.r40-account-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--r40-border);
  border-radius: 22px;
  background: #fafafa;
}

.r40-account-empty p {
  margin: 0;
  color: var(--r40-muted);
}

.r40-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.r40-btn:hover {
  transform: translateY(-1px);
}

.r40-btn--primary {
  background: var(--r40-black);
  border-color: var(--r40-black);
  color: var(--r40-white);
}

.r40-btn--primary:hover {
  background: var(--r40-lime);
  border-color: var(--r40-lime);
  color: var(--r40-black);
}

.r40-btn--secondary {
  background: var(--r40-white);
  border-color: var(--r40-border-strong);
  color: var(--r40-black);
}

.r40-btn--secondary:hover {
  background: var(--r40-black);
  border-color: var(--r40-black);
  color: var(--r40-white);
}


/* ==========================================================================
   FRONTEND — Cooperation card
   ========================================================================== */

.r40-account-cooperation {
  position: relative;
  overflow: hidden;
}

.r40-account-cooperation::after {
  content: "RECODE/40";
  position: absolute;
  right: -38px;
  bottom: -18px;
  color: rgba(5, 5, 5, 0.035);
  font-size: clamp(54px, 10vw, 128px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.07em;
  pointer-events: none;
}

.r40-cooperation-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(230px, 0.85fr) minmax(0, 1.4fr);
  gap: 24px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--r40-border);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(215, 255, 0, 0.14), transparent 38%),
    #fbfbfb;
}

.r40-cooperation-card.is-expired {
  background:
    linear-gradient(135deg, rgba(180, 35, 24, 0.08), transparent 38%),
    #fbfbfb;
}

.r40-cooperation-card__main {
  min-width: 0;
}

.r40-cooperation-card__main h3 {
  margin: 14px 0 8px;
  color: var(--r40-black);
  font-size: clamp(25px, 2.6vw, 34px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 700;
  word-break: normal;
  overflow-wrap: anywhere;
}

.r40-cooperation-card__main p {
  margin: 0;
  color: var(--r40-muted);
  font-size: 16px;
}

.r40-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.r40-status-badge.is-active {
  background: var(--r40-success-bg);
  color: var(--r40-success);
}

.r40-status-badge.is-expired {
  background: var(--r40-danger-bg);
  color: var(--r40-danger);
}

.r40-cooperation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.r40-cooperation-grid > div {
  min-width: 0;
  min-height: 112px;
  padding: 20px;
  border: 1px solid var(--r40-border);
  border-radius: 22px;
  background: var(--r40-white);
}

.r40-cooperation-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--r40-muted);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
}

.r40-cooperation-grid strong {
  display: block;
  color: var(--r40-black);
  font-size: clamp(20px, 1.6vw, 22px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
  white-space: nowrap;
}

.r40-account-next-step {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--r40-border);
  border-left: 5px solid var(--r40-lime);
  border-radius: 22px;
  background: var(--r40-white);
}

.r40-account-next-step p {
  margin: 0;
  color: var(--r40-muted);
  font-size: 16px;
  line-height: 1.55;
}


/* ==========================================================================
   FRONTEND — My data form
   ========================================================================== */

.r40-account-form {
  margin: 0;
}

.r40-account-form__section {
  margin-bottom: 34px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--r40-border);
}

.r40-account-form__section:last-of-type {
  border-bottom: 0;
}

.r40-account-form__section-head {
  margin-bottom: 20px;
}

.r40-account-form__section-head h3 {
  margin: 0;
  color: var(--r40-black);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.r40-account-form__section-head p {
  width: min(680px, 100%);
  margin: 10px 0 0;
  color: var(--r40-muted);
  font-size: 15px;
  line-height: 1.55;
}

.r40-account-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.r40-field {
  min-width: 0;
}

.r40-field--full {
  grid-column: 1 / -1;
}

.r40-field label {
  display: block;
  margin: 0 0 9px;
  color: var(--r40-ink);
  font-size: 14px;
  font-weight: 700;
}

.r40-field input,
.r40-field textarea {
  width: 100%;
  border: 1px solid var(--r40-border-strong);
  border-radius: 18px;
  background: var(--r40-white);
  color: var(--r40-black);
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.r40-field input {
  min-height: 58px;
  padding: 0 18px;
}

.r40-field textarea {
  min-height: 124px;
  padding: 16px 18px;
  resize: vertical;
}

.r40-field input:focus,
.r40-field textarea:focus {
  border-color: var(--r40-black);
  box-shadow: 0 0 0 4px rgba(215, 255, 0, 0.24);
}

.r40-field input.r40-readonly,
.r40-field input[readonly] {
  background: #f5f5f6;
  color: var(--r40-muted);
  cursor: not-allowed;
}


/* ==========================================================================
   RECODE40 — Account survey radio fields fix
   ========================================================================== */

body.recode40-account-page .r40-account-form .r40-radio-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

body.recode40-account-page .r40-account-form .r40-radio-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(5, 5, 5, 0.12);
  border-radius: 16px;
  background: #ffffff;
  color: var(--r40-black);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

body.recode40-account-page .r40-account-form .r40-radio-option:hover {
  border-color: rgba(5, 5, 5, 0.28);
  background: #fafafa;
}

body.recode40-account-page .r40-account-form .r40-radio-option input[type="radio"] {
  display: inline-block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  max-width: 18px;
  min-height: 18px;
  max-height: 18px;
  flex: 0 0 18px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  accent-color: var(--r40-black);
  box-shadow: none;
  cursor: pointer;
}

body.recode40-account-page .r40-account-form .r40-radio-option span {
  display: block;
  color: var(--r40-black);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

body.recode40-account-page .r40-account-form .r40-radio-option:has(input[type="radio"]:checked) {
  border-color: var(--r40-accent-dark);
  background: rgba(215, 255, 0, 0.08);
  box-shadow: 0 0 0 4px rgba(215, 255, 0, 0.14);
}

@media (max-width: 640px) {
  body.recode40-account-page .r40-account-form .r40-radio-option {
    min-height: 54px;
    padding: 13px 14px;
    border-radius: 14px;
  }

  body.recode40-account-page .r40-account-form .r40-radio-option span {
    font-size: 15px;
  }
}


/* ==========================================================================
   FRONTEND — Client materials
   ========================================================================== */

.r40-materials-list {
  display: grid;
  gap: 14px;
}

.r40-material-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px;
  border: 1px solid var(--r40-border);
  border-radius: 22px;
  background: #fbfbfb;
}

.r40-material-card h3 {
  margin: 0 0 6px;
  color: var(--r40-black);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.r40-material-card p {
  margin: 0;
  color: var(--r40-muted);
  font-size: 14px;
}


/* ==========================================================================
   ORDER RECEIVED — Base layout
   ========================================================================== */

body.recode40-checkout-page.woocommerce-order-received,
body.woocommerce-order-received {
  background: #f5f5f6;
}

body.recode40-checkout-page.woocommerce-order-received .site-main,
body.woocommerce-order-received .site-main,
body.recode40-checkout-page.woocommerce-order-received main,
body.woocommerce-order-received main {
  background:
    radial-gradient(circle at 18% 0%, rgba(215, 255, 0, 0.08), transparent 30%),
    linear-gradient(180deg, #f8f8f9 0%, #f3f3f4 100%);
}

body.woocommerce-order-received .woocommerce {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 110px;
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--r40-black);
}

body.woocommerce-order-received .woocommerce-order {
  display: grid;
  gap: 26px;
}

body.woocommerce-order-received .woocommerce-notice,
body.woocommerce-order-received .woocommerce-thankyou-order-received {
  margin: 0;
  padding: 26px 30px;
  border: 1px solid var(--r40-border);
  border-left: 5px solid var(--r40-lime);
  border-radius: 24px;
  background: var(--r40-white);
  box-shadow: var(--r40-shadow-soft);
  color: var(--r40-ink);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 500;
}

body.woocommerce-order-received .woocommerce-order-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--r40-border);
  border-radius: 24px;
  background: var(--r40-white);
  box-shadow: var(--r40-shadow-soft);
  overflow: hidden;
  list-style: none;
}

body.woocommerce-order-received .woocommerce-order-overview li {
  float: none;
  width: auto;
  margin: 0;
  padding: 22px 20px;
  border: 0;
  border-right: 1px solid var(--r40-border);
  color: var(--r40-muted);
  font-size: 11px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.woocommerce-order-received .woocommerce-order-overview li:last-child {
  border-right: 0;
}

body.woocommerce-order-received .woocommerce-order-overview strong {
  display: block;
  margin-top: 7px;
  color: var(--r40-black);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.015em;
  text-transform: none;
  word-break: break-word;
}


/* ==========================================================================
   ORDER RECEIVED — Sections and headings
   ========================================================================== */

body.woocommerce-order-received .woocommerce-order-details,
body.woocommerce-order-received .woocommerce-customer-details {
  margin: 0;
}

body.woocommerce-order-received .woocommerce-order-details__title,
body.woocommerce-order-received .woocommerce-column__title {
  margin: 18px 0 18px;
  color: var(--r40-black);
  font-size: clamp(38px, 5vw, 56px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 700;
}

body.woocommerce-order-received .woocommerce-order-details {
  display: grid;
  gap: 16px;
}

body.woocommerce-order-received .woocommerce-customer-details {
  display: grid;
  gap: 16px;
}


/* ==========================================================================
   ORDER RECEIVED — Tables
   ========================================================================== */

body.woocommerce-order-received table.shop_table {
  width: 100%;
  margin: 0;
  border: 1px solid var(--r40-border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--r40-white);
  box-shadow: var(--r40-shadow-soft);
  color: var(--r40-black);
}

body.woocommerce-order-received table.shop_table th,
body.woocommerce-order-received table.shop_table td {
  padding: 20px 22px;
  border: 0;
  border-bottom: 1px solid var(--r40-border);
  color: var(--r40-ink);
  font-size: 16px;
  line-height: 1.45;
  vertical-align: middle;
}

body.woocommerce-order-received table.shop_table tr:last-child th,
body.woocommerce-order-received table.shop_table tr:last-child td {
  border-bottom: 0;
}

body.woocommerce-order-received table.shop_table thead th {
  background: #fbfbfb;
  color: var(--r40-black);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body.woocommerce-order-received table.shop_table .product-name,
body.woocommerce-order-received table.shop_table tfoot th {
  width: 60%;
}

body.woocommerce-order-received table.shop_table .product-total,
body.woocommerce-order-received table.shop_table tfoot td {
  width: 40%;
  text-align: right;
}

body.woocommerce-order-received table.shop_table a {
  color: var(--r40-black);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.woocommerce-order-received table.shop_table .product-quantity {
  color: var(--r40-black);
  font-weight: 800;
}

body.woocommerce-order-received table.shop_table tfoot th,
body.woocommerce-order-received table.shop_table tfoot td {
  font-weight: 800;
}

body.woocommerce-order-received table.shop_table tfoot tr:last-child th,
body.woocommerce-order-received table.shop_table tfoot tr:last-child td {
  background: #fbfbfb;
  font-size: 18px;
}


/* ==========================================================================
   ORDER RECEIVED — Billing address
   ========================================================================== */

body.woocommerce-order-received .woocommerce-customer-details address {
  margin: 0;
  padding: 24px 26px;
  border: 1px solid var(--r40-border);
  border-radius: 24px;
  background: var(--r40-white);
  box-shadow: var(--r40-shadow-soft);
  color: var(--r40-ink);
  font-size: 16px;
  line-height: 1.7;
  font-style: normal;
}

body.woocommerce-order-received .woocommerce-customer-details address p {
  margin: 6px 0 0;
}

body.woocommerce-order-received .woocommerce-customer-details address .woocommerce-customer-details--phone,
body.woocommerce-order-received .woocommerce-customer-details address .woocommerce-customer-details--email {
  position: relative;
  padding-left: 28px;
}

body.woocommerce-order-received .woocommerce-customer-details address .woocommerce-customer-details--phone::before,
body.woocommerce-order-received .woocommerce-customer-details address .woocommerce-customer-details--email::before {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--r40-black);
}


/* ==========================================================================
   FRONTEND — Responsive account + order received
   ========================================================================== */

@media (max-width: 1180px) {
  .r40-cooperation-card {
    grid-template-columns: 1fr;
  }

  .r40-cooperation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.woocommerce-order-received .woocommerce-order-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.woocommerce-order-received .woocommerce-order-overview li:nth-child(3n) {
    border-right: 0;
  }

  body.woocommerce-order-received .woocommerce-order-overview li:nth-child(n + 4) {
    border-top: 1px solid var(--r40-border);
  }
}

@media (max-width: 1024px) {
  body.recode40-account-page .woocommerce {
    width: min(760px, calc(100% - 36px));
    padding: 58px 0 90px;
  }

  body.recode40-account-page .woocommerce-MyAccount-navigation,
  body.recode40-account-page .woocommerce-MyAccount-content {
    float: none;
    width: 100%;
  }

  body.recode40-account-page .woocommerce-MyAccount-navigation {
    margin-bottom: 22px;
  }

  body.recode40-account-page .woocommerce-MyAccount-navigation ul {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
  }

  body.recode40-account-page .woocommerce-MyAccount-navigation li {
    flex: 1 1 auto;
  }

  body.recode40-account-page .woocommerce-MyAccount-navigation a {
    justify-content: center;
    min-height: 46px;
    padding: 11px 14px;
    font-size: 14px;
  }

  body.recode40-account-page:not(.logged-in) .u-columns {
    grid-template-columns: 1fr;
  }

  body.woocommerce-order-received .woocommerce {
    width: min(760px, calc(100% - 36px));
    padding: 58px 0 90px;
  }
}

@media (max-width: 768px) {
  body.recode40-account-page .woocommerce,
  body.woocommerce-order-received .woocommerce {
    width: min(100% - 28px, 620px);
    padding: 48px 0 72px;
  }

  body.recode40-account-page:not(.logged-in) .woocommerce h2 {
    font-size: clamp(42px, 14vw, 58px);
    margin-bottom: 24px;
  }

  .r40-account-box {
    border-radius: 24px;
    padding: 24px;
  }

  .r40-account-box__head h2 {
    font-size: clamp(36px, 12vw, 48px);
  }

  .r40-account-form__grid,
  .r40-cooperation-grid {
    grid-template-columns: 1fr;
  }

  .r40-cooperation-grid strong {
    white-space: normal;
  }

  .r40-account-next-step,
  .r40-material-card {
    align-items: stretch;
    flex-direction: column;
  }

  .r40-account-next-step .r40-btn,
  .r40-material-card .r40-btn {
    width: 100%;
  }

  body.woocommerce-order-received .woocommerce-notice,
  body.woocommerce-order-received .woocommerce-thankyou-order-received {
    padding: 24px;
    border-radius: 22px;
    font-size: 17px;
  }

  body.woocommerce-order-received .woocommerce-order-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 22px;
  }

  body.woocommerce-order-received .woocommerce-order-overview li {
    padding: 18px;
    border-right: 1px solid var(--r40-border);
    border-top: 1px solid var(--r40-border);
  }

  body.woocommerce-order-received .woocommerce-order-overview li:nth-child(1),
  body.woocommerce-order-received .woocommerce-order-overview li:nth-child(2) {
    border-top: 0;
  }

  body.woocommerce-order-received .woocommerce-order-overview li:nth-child(even) {
    border-right: 0;
  }

  body.woocommerce-order-received .woocommerce-order-overview li:nth-child(odd) {
    border-right: 1px solid var(--r40-border);
  }

  body.woocommerce-order-received .woocommerce-order-details__title,
  body.woocommerce-order-received .woocommerce-column__title {
    font-size: clamp(38px, 11vw, 52px);
    margin: 18px 0 14px;
  }

  body.woocommerce-order-received table.shop_table {
    border-radius: 20px;
  }

  body.woocommerce-order-received table.shop_table th,
  body.woocommerce-order-received table.shop_table td {
    padding: 18px;
    font-size: 16px;
  }

  body.woocommerce-order-received table.shop_table .product-name,
  body.woocommerce-order-received table.shop_table tfoot th {
    width: 58%;
  }

  body.woocommerce-order-received table.shop_table .product-total,
  body.woocommerce-order-received table.shop_table tfoot td {
    width: 42%;
  }

  body.woocommerce-order-received .woocommerce-customer-details address {
    padding: 22px;
    border-radius: 20px;
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  body.recode40-account-page .woocommerce,
  body.woocommerce-order-received .woocommerce {
    width: calc(100% - 22px);
  }

  body.recode40-account-page .woocommerce-MyAccount-navigation ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  body.recode40-account-page .woocommerce-MyAccount-navigation a {
    font-size: 13px;
    border-radius: 14px;
  }

  .r40-account-box {
    padding: 20px;
  }

  .r40-cooperation-card {
    padding: 18px;
    border-radius: 22px;
  }

  body.woocommerce-order-received .woocommerce-order-overview {
    grid-template-columns: 1fr;
  }

  body.woocommerce-order-received .woocommerce-order-overview li,
  body.woocommerce-order-received .woocommerce-order-overview li:nth-child(odd),
  body.woocommerce-order-received .woocommerce-order-overview li:nth-child(even) {
    border-right: 0;
    border-top: 1px solid var(--r40-border);
  }

  body.woocommerce-order-received .woocommerce-order-overview li:first-child {
    border-top: 0;
  }

  body.woocommerce-order-received .woocommerce-order-overview strong {
    font-size: 18px;
  }

  body.woocommerce-order-received table.shop_table th,
  body.woocommerce-order-received table.shop_table td {
    padding: 16px;
    font-size: 15px;
  }

  body.woocommerce-order-received table.shop_table .product-name,
  body.woocommerce-order-received table.shop_table tfoot th {
    width: 56%;
  }

  body.woocommerce-order-received table.shop_table .product-total,
  body.woocommerce-order-received table.shop_table tfoot td {
    width: 44%;
  }

  body.woocommerce-order-received table.shop_table tfoot tr:last-child th,
  body.woocommerce-order-received table.shop_table tfoot tr:last-child td {
    font-size: 16px;
  }
}


/* ==========================================================================
   ADMIN — Trainer Panel base
   ========================================================================== */

.wp-admin .r40-trainer-panel {
  --r40-admin-bg: #f4f4f5;
  --r40-admin-card: #ffffff;
  --r40-admin-border: rgba(5, 5, 5, 0.1);
  --r40-admin-muted: #6b7280;

  max-width: none;
  margin: 0 20px 0 0;
  padding-top: 18px;
  color: var(--r40-black);
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wp-admin .r40-trainer-panel h1 {
  margin: 0 0 24px;
  color: var(--r40-black);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 500;
}

.wp-admin .r40-trainer-panel h2 {
  margin: 30px 0 14px;
  color: var(--r40-black);
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.wp-admin .r40-trainer-panel h3 {
  margin: 0 0 18px;
  color: var(--r40-black);
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.wp-admin .r40-trainer-panel p {
  color: var(--r40-admin-muted);
  font-size: 14px;
  line-height: 1.55;
}

.wp-admin .r40-trainer-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 44px;
}

.wp-admin .r40-trainer-search input[type="search"] {
  width: min(420px, 100%);
  min-height: 38px;
  border: 1px solid #b8c0ca;
  border-radius: 5px;
  background: #ffffff;
  padding: 0 12px;
  color: var(--r40-black);
  font-size: 14px;
  box-shadow: none;
}

.wp-admin .r40-trainer-search input[type="search"]:focus {
  border-color: var(--r40-black);
  box-shadow: 0 0 0 3px rgba(215, 255, 0, 0.28);
}


/* ==========================================================================
   ADMIN — Stats cards
   ========================================================================== */

.wp-admin .r40-trainer-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 18px;
  width: min(1240px, 100%);
  margin: 0 0 30px;
}

.wp-admin .r40-trainer-stat-card {
  min-height: 106px;
  padding: 24px;
  border: 1px solid var(--r40-admin-border);
  border-radius: 12px;
  background: var(--r40-admin-card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 28px rgba(0, 0, 0, 0.035);
}

.wp-admin .r40-trainer-stat-card span {
  display: block;
  margin: 0 0 12px;
  color: var(--r40-admin-muted);
  font-size: 14px;
  line-height: 1.3;
}

.wp-admin .r40-trainer-stat-card strong {
  display: block;
  color: var(--r40-black);
  font-size: 31px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.wp-admin .r40-trainer-stat-card strong.is-warning {
  color: var(--r40-warning);
}

.wp-admin .r40-trainer-stat-card strong.is-danger {
  color: var(--r40-danger);
}


/* ==========================================================================
   ADMIN — Tables
   ========================================================================== */

.wp-admin .r40-trainer-section {
  width: 100%;
  margin: 0 0 34px;
}

.wp-admin .r40-trainer-empty {
  margin: 0 0 28px;
  color: var(--r40-admin-muted);
}

.wp-admin .r40-trainer-table-wrap {
  overflow-x: auto;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.035);
}

.wp-admin table.r40-trainer-table {
  border: 0;
  border-collapse: collapse;
  margin: 0;
  background: #ffffff;
  font-family: inherit;
}

.wp-admin table.r40-trainer-table thead th {
  height: 42px;
  border-bottom: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}

.wp-admin table.r40-trainer-table th,
.wp-admin table.r40-trainer-table td {
  padding: 14px 14px;
  vertical-align: middle;
  color: #374151;
  font-size: 14px;
}

.wp-admin table.r40-trainer-table tbody tr {
  background: #ffffff;
}

.wp-admin table.r40-trainer-table tbody tr:nth-child(odd) {
  background: #ffffff;
}

.wp-admin table.r40-trainer-table tbody tr.is-selected {
  background: #eef4fb;
}

.wp-admin table.r40-trainer-table tbody tr:hover {
  background: #f8fafc;
}

.wp-admin table.r40-trainer-table tbody tr.is-selected:hover {
  background: #eef4fb;
}

.wp-admin table.r40-trainer-table strong {
  color: #374151;
  font-weight: 700;
}

.wp-admin .r40-row-toggle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 22px;
  margin-right: 8px;
  color: #64748b;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.wp-admin .r40-admin-badge,
.wp-admin .r40-days-pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 27px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.wp-admin .r40-admin-badge {
  margin-left: 10px;
}

.wp-admin .r40-admin-badge.is-active,
.wp-admin .r40-days-pill.is-active {
  background: var(--r40-success-bg);
  color: var(--r40-success);
}

.wp-admin .r40-admin-badge.is-expired,
.wp-admin .r40-days-pill.is-expired {
  background: var(--r40-danger-bg);
  color: var(--r40-danger);
}

.wp-admin .r40-days-pill.is-warning {
  background: var(--r40-warning-bg);
  color: var(--r40-warning);
  min-width: 72px;
}

.wp-admin .r40-days-pill.is-expired {
  min-width: 72px;
}

.wp-admin .r40-trainer-details-row td {
  padding: 0;
  background: #f8fafc;
}

.wp-admin .r40-trainer-details-row:hover {
  background: #f8fafc;
}


/* ==========================================================================
   ADMIN — Client details
   ========================================================================== */

.wp-admin .r40-trainer-client-details {
  padding: 30px;
  border-top: 1px solid #dbe2ea;
  background: #fbfcfd;
}

.wp-admin .r40-trainer-client-details > h3 {
  margin: 0 0 26px;
  font-size: 22px;
}

.wp-admin .r40-trainer-details-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.wp-admin .r40-trainer-detail-card {
  padding: 18px;
  border: 1px solid #e1e5ea;
  border-radius: 12px;
  background: #ffffff;
}

.wp-admin .r40-trainer-detail-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--r40-admin-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wp-admin .r40-trainer-detail-card strong {
  display: block;
  color: var(--r40-black);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  word-break: break-word;
}

.wp-admin .r40-trainer-subsection {
  margin-top: 26px;
}

.wp-admin .r40-trainer-subsection h3 {
  margin: 0 0 16px;
  font-size: 20px;
}

.wp-admin .r40-trainer-client-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wp-admin .r40-trainer-data-row {
  padding: 16px 18px;
  border: 1px solid #e1e5ea;
  border-radius: 12px;
  background: #ffffff;
}

.wp-admin .r40-trainer-data-row span {
  display: block;
  margin: 0 0 8px;
  color: var(--r40-admin-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.wp-admin .r40-trainer-data-row p {
  margin: 0;
  color: #374151;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
}


/* ==========================================================================
   ADMIN — Upload form
   ========================================================================== */

.wp-admin .r40-trainer-upload-form {
  padding: 18px;
  border: 1px solid #e1e5ea;
  border-radius: 12px;
  background: #ffffff;
}

.wp-admin .r40-trainer-upload-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  align-items: end;
  gap: 14px;
}

.wp-admin .r40-trainer-upload-grid label {
  display: block;
  margin: 0;
}

.wp-admin .r40-trainer-upload-grid label span {
  display: block;
  margin: 0 0 8px;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
}

.wp-admin .r40-trainer-upload-grid input[type="text"],
.wp-admin .r40-trainer-upload-grid input[type="file"] {
  width: 100%;
  min-height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  padding: 6px 10px;
  color: #111827;
  font-size: 14px;
  box-shadow: none;
}

.wp-admin .r40-trainer-upload-grid input[type="text"]:focus,
.wp-admin .r40-trainer-upload-grid input[type="file"]:focus {
  border-color: var(--r40-black);
  box-shadow: 0 0 0 3px rgba(215, 255, 0, 0.26);
}

.wp-admin .r40-trainer-upload-grid .button-primary {
  min-height: 38px;
  padding: 0 18px;
  border-color: var(--r40-black);
  background: var(--r40-black);
  color: #ffffff;
  font-weight: 700;
}

.wp-admin .r40-trainer-upload-grid .button-primary:hover {
  border-color: var(--r40-lime);
  background: var(--r40-lime);
  color: var(--r40-black);
}


/* ==========================================================================
   ADMIN — Materials cards
   ========================================================================== */

.wp-admin .r40-admin-materials-list {
  display: grid;
  gap: 12px;
}

.wp-admin .r40-admin-material-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid #e1e5ea;
  border-radius: 12px;
  background: #ffffff;
}

.wp-admin .r40-admin-material-card h4 {
  margin: 0 0 6px;
  color: #374151;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

.wp-admin .r40-admin-material-card p {
  margin: 0;
  color: var(--r40-admin-muted);
  font-size: 12px;
}

.wp-admin .r40-admin-material-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.wp-admin .r40-admin-material-actions form {
  margin: 0;
}

.wp-admin .r40-admin-material-actions .button {
  min-height: 36px;
  border-radius: 5px;
}


/* ==========================================================================
   ADMIN — Notices
   ========================================================================== */

.wp-admin .r40-trainer-panel .notice {
  max-width: 980px;
  margin: 0 0 18px;
  border-radius: 8px;
}


/* ==========================================================================
   ADMIN — Responsive
   ========================================================================== */

@media (max-width: 1200px) {
  .wp-admin .r40-trainer-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wp-admin .r40-trainer-upload-grid {
    grid-template-columns: 1fr 1fr;
  }

  .wp-admin .r40-trainer-upload-grid .button-primary {
    grid-column: 1 / -1;
    width: fit-content;
  }
}

@media (max-width: 782px) {
  .wp-admin .r40-trainer-panel {
    margin-right: 10px;
  }

  .wp-admin .r40-trainer-stats {
    grid-template-columns: 1fr;
  }

  .wp-admin .r40-trainer-search {
    align-items: stretch;
    flex-direction: column;
  }

  .wp-admin .r40-trainer-search input[type="search"] {
    width: 100%;
  }

  .wp-admin .r40-trainer-details-grid,
  .wp-admin .r40-trainer-client-data,
  .wp-admin .r40-trainer-upload-grid {
    grid-template-columns: 1fr;
  }

  .wp-admin .r40-admin-material-card {
    align-items: stretch;
    flex-direction: column;
  }

  .wp-admin .r40-admin-material-actions {
    justify-content: flex-start;
  }
}