:root {
  --rs-red: #df1722;
  --rs-red-dark: #b7121b;
  --rs-ink: #181818;
  --rs-muted: #666b72;
  --rs-surface: #fff;
  --rs-soft: #fff5f5;
  --rs-page: #f7f5f2;
  --rs-line: #dedede;
}

body.rs-account-presented {
  overflow-x: clip;
  background: var(--rs-page);
}

body.rs-account-presented main .woocommerce,
body.rs-account-presented .entry-content > .woocommerce,
body.rs-account-presented .woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
  gap: 24px;
  box-sizing: border-box;
  width: min(1100px, calc(100% - 28px));
  max-width: 1100px;
  margin: 34px auto 72px;
  color: var(--rs-ink);
  font-family: "Open Sans", Arial, sans-serif;
}

.rs-account-hero {
  grid-column: 1 / -1;
  position: relative;
  left: 50%;
  width: 100vw;
  box-sizing: border-box;
  margin: -34px 0 10px -50vw;
  padding: 28px 24px;
  background: var(--rs-red);
  color: #fff;
}

.rs-account-hero__inner {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 16px;
}

.rs-account-hero__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  font-size: 22px;
}

.rs-account-hero h1 {
  margin: 0;
  color: #fff;
  font-family: Nunito, Arial, sans-serif;
  font-size: clamp(25px, 2.5vw, 34px);
  font-weight: 900;
  line-height: 1.08;
  text-transform: uppercase;
}

.rs-account-hero p { margin: 4px 0 0; color: rgba(255, 255, 255, .86); font-size: 13px; }
body.rs-account-presented .woocommerce-MyAccount-navigation,
body.rs-account-presented .woocommerce-MyAccount-content,
body.rs-account-presented #customer_login > div,
body.rs-account-presented .woocommerce > form.login,
body.rs-account-presented .woocommerce > form.register {
  box-sizing: border-box;
  border: 1px solid var(--rs-line);
  border-radius: 16px;
  background: var(--rs-surface);
  box-shadow: 0 7px 22px rgba(25, 25, 25, .06);
}

body.rs-account-presented .woocommerce-MyAccount-navigation { align-self: start; overflow: hidden; }
body.rs-account-presented .woocommerce-MyAccount-navigation ul { margin: 0; padding: 10px; list-style: none; }
body.rs-account-presented .woocommerce-MyAccount-navigation li { margin: 0; padding: 0; border: 0; }
body.rs-account-presented .woocommerce-MyAccount-navigation a {
  display: flex;
  align-items: center;
  min-height: 47px;
  box-sizing: border-box;
  margin: 2px 0;
  padding: 0 13px;
  border-radius: 10px;
  color: #333;
  font-family: Nunito, Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

body.rs-account-presented .woocommerce-MyAccount-navigation a::before {
  width: 24px;
  color: var(--rs-red);
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

.woocommerce-MyAccount-navigation-link--dashboard a::before { content: "\f3fd"; }
.woocommerce-MyAccount-navigation-link--orders a::before { content: "\f46d"; }
.woocommerce-MyAccount-navigation-link--downloads a::before { content: "\f019"; }
.woocommerce-MyAccount-navigation-link--edit-address a::before { content: "\f3c5"; }
.woocommerce-MyAccount-navigation-link--edit-account a::before { content: "\f2bd"; }
.woocommerce-MyAccount-navigation-link--customer-logout a::before { content: "\f2f5"; }
body.rs-account-presented .woocommerce-MyAccount-navigation .is-active a,
body.rs-account-presented .woocommerce-MyAccount-navigation a:hover,
body.rs-account-presented .woocommerce-MyAccount-navigation a:focus-visible {
  background: var(--rs-soft);
  color: var(--rs-red);
  outline: none;
}

body.rs-account-presented .woocommerce-MyAccount-content { min-width: 0; padding: 26px; }
body.rs-account-presented .woocommerce-MyAccount-content > :first-child { margin-top: 0; }
body.rs-account-presented .woocommerce-MyAccount-content > :last-child { margin-bottom: 0; }
body.rs-account-presented .woocommerce-MyAccount-content h2,
body.rs-account-presented #customer_login h2,
body.rs-account-presented .woocommerce h3 {
  color: var(--rs-ink);
  font-family: Nunito, Arial, sans-serif;
  font-weight: 900;
}

body.rs-account-presented .woocommerce-MyAccount-content a:not(.button) { color: var(--rs-red-dark); font-weight: 700; }
body.rs-account-presented .woocommerce-MyAccount-content p { line-height: 1.7; }

body.rs-account-presented #customer_login {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 0;
}

body.rs-account-presented #customer_login > div { width: auto; padding: 26px; }
body.rs-account-presented #customer_login form,
body.rs-account-presented .woocommerce form.login,
body.rs-account-presented .woocommerce form.register,
body.rs-account-presented .woocommerce-EditAccountForm { margin: 0; padding: 0; border: 0; }

body.rs-account-presented .woocommerce form .form-row { margin: 0 0 15px; padding: 0; }
body.rs-account-presented .woocommerce form label { margin-bottom: 6px; color: #333; font-size: 13px; font-weight: 800; }
body.rs-account-presented .woocommerce form input.input-text,
body.rs-account-presented .woocommerce form select,
body.rs-account-presented .woocommerce form textarea {
  width: 100%;
  min-height: 49px;
  box-sizing: border-box;
  padding: 10px 13px;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

body.rs-account-presented .woocommerce form input.input-text:focus,
body.rs-account-presented .woocommerce form select:focus,
body.rs-account-presented .woocommerce form textarea:focus {
  border-color: var(--rs-red);
  box-shadow: 0 0 0 3px rgba(223, 23, 34, .12);
  outline: none;
}

body.rs-account-presented .woocommerce button.button,
body.rs-account-presented .woocommerce a.button,
body.rs-account-presented .woocommerce input.button {
  min-height: 44px;
  box-sizing: border-box;
  padding: 0 22px;
  border: 2px solid var(--rs-red);
  border-radius: 999px;
  background: var(--rs-red);
  color: #fff;
  font-family: Nunito, Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 40px;
  text-decoration: none;
  text-transform: uppercase;
}

body.rs-account-presented .woocommerce button.button:hover,
body.rs-account-presented .woocommerce a.button:hover,
body.rs-account-presented .woocommerce input.button:hover { border-color: var(--rs-red-dark); background: var(--rs-red-dark); color: #fff; }

body.rs-account-presented .woocommerce table.shop_table {
  overflow: hidden;
  border: 1px solid var(--rs-line);
  border-radius: 12px;
  background: #fff;
  border-collapse: separate;
}

body.rs-account-presented .woocommerce table.shop_table th { background: #f5f5f5; font-family: Nunito, Arial, sans-serif; font-weight: 900; }
body.rs-account-presented .woocommerce table.shop_table th,
body.rs-account-presented .woocommerce table.shop_table td { padding: 13px; border-color: #e8e8e8; }
body.rs-account-presented .woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
body.rs-account-presented .woocommerce-Address {
  width: auto;
  box-sizing: border-box;
  padding: 18px;
  border: 1px solid var(--rs-line);
  border-radius: 12px;
  background: #fafafa;
}

body.rs-account-presented .woocommerce-message,
body.rs-account-presented .woocommerce-info,
body.rs-account-presented .woocommerce-error {
  grid-column: 1 / -1;
  box-sizing: border-box;
  margin: 0 0 16px;
  border: 1px solid #efcaca;
  border-top: 0;
  border-left: 4px solid var(--rs-red);
  border-radius: 12px;
  background: #fff;
}

html.rs-account-auth-frame-root { margin-top: 0 !important; background: #fff; }
body.rs-account-auth-frame { min-height: 100%; background: #fff; }
body.rs-account-auth-frame #wpadminbar,
body.rs-account-auth-frame header,
body.rs-account-auth-frame footer,
body.rs-account-auth-frame .site-header,
body.rs-account-auth-frame .site-footer,
body.rs-account-auth-frame .rs-account-hero { display: none !important; }
body.rs-account-auth-frame main { margin: 0 !important; padding: 0 !important; }
body.rs-account-auth-frame main .woocommerce,
body.rs-account-auth-frame .entry-content > .woocommerce,
body.rs-account-auth-frame .woocommerce-account .woocommerce {
  display: block;
  width: min(520px, 100%);
  max-width: 520px;
  margin: 0 auto;
  padding: 18px;
}
.rs-account-auth-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: min(520px, 100%);
  box-sizing: border-box;
  margin: 0 auto 14px;
  padding: 5px;
  border: 1px solid var(--rs-line);
  border-radius: 14px;
  background: #f5f5f5;
}
.rs-account-auth-switcher button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  gap: 8px;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #4b4b4b;
  font-family: Nunito, Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.rs-account-auth-switcher button i { color: var(--rs-red); }
.rs-account-auth-switcher button.is-selected {
  background: var(--rs-red);
  color: #fff;
  box-shadow: 0 4px 12px rgba(223, 23, 34, .2);
}
.rs-account-auth-switcher button.is-selected i { color: #fff; }
body.rs-account-auth-frame #customer_login {
  display: grid;
  grid-template-columns: 1fr;
  grid-column: 1;
  gap: 14px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}
body.rs-account-auth-frame #customer_login > div {
  width: 100%;
  padding: 20px;
}
body.rs-account-auth-frame .woocommerce > form.login,
body.rs-account-auth-frame .woocommerce > form.register {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 20px;
}

@media (max-width: 780px) {
  body.rs-account-presented main .woocommerce,
  body.rs-account-presented .entry-content > .woocommerce,
  body.rs-account-presented .woocommerce-account .woocommerce { grid-template-columns: 1fr; margin-top: 22px; gap: 14px; }
  .rs-account-hero { margin-top: -22px; }
  .rs-account-hero__inner { grid-template-columns: 40px minmax(0, 1fr); }
  .rs-account-hero__icon { width: 40px; height: 40px; }
  body.rs-account-presented .woocommerce-MyAccount-navigation ul { display: flex; overflow-x: auto; gap: 6px; }
  body.rs-account-presented .woocommerce-MyAccount-navigation li { flex: 0 0 auto; }
  body.rs-account-presented .woocommerce-MyAccount-navigation a { padding: 0 12px; white-space: nowrap; }
  body.rs-account-presented .woocommerce-MyAccount-content { padding: 18px; }
  body.rs-account-presented #customer_login { grid-template-columns: 1fr; gap: 14px; }
  body.rs-account-presented .woocommerce-Addresses { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .rs-account-hero { padding: 22px 18px; }
  .rs-account-hero h1 { font-size: 25px; }
  .rs-account-hero p { font-size: 12px; }
  body.rs-account-presented .woocommerce-MyAccount-content,
  body.rs-account-presented #customer_login > div { padding: 16px; border-radius: 14px; }
  body.rs-account-presented .woocommerce table.shop_table_responsive tr { margin-bottom: 12px; border: 1px solid var(--rs-line); border-radius: 10px; }
  .rs-account-auth-switcher button { padding: 8px; font-size: 12px; }
}
