/* =========================================================
   RibbonLine Account Premium UX v1.0.0
   WooCommerce My Account / Login / Register / Lost Password
   Checkout plugin과 같은 방향: 균등 여백, 화이트 카드, 리본라인 보라/레드 포인트
========================================================= */

html body.rln-account-premium-ux {
  --rlna-purple: #6d35e8;
  --rlna-purple-dark: #4d20c8;
  --rlna-red: #dc2f34;
  --rlna-red-dark: #bf2328;
  --rlna-ink: #0f172a;
  --rlna-text: #334155;
  --rlna-muted: #64748b;
  --rlna-line: rgba(15, 23, 42, 0.10);
  --rlna-line-strong: rgba(15, 23, 42, 0.16);
  --rlna-card: #ffffff;
  --rlna-soft: #f8fafc;
  --rlna-soft-purple: #f5f0ff;
  --rlna-soft-red: #fff1f2;
  --rlna-radius-xl: 24px;
  --rlna-radius-lg: 18px;
  --rlna-radius-md: 14px;
  --rlna-shadow-lg: 0 20px 46px rgba(15, 23, 42, 0.08);
  --rlna-shadow-md: 0 12px 26px rgba(15, 23, 42, 0.06);
  --rlna-shadow-sm: 0 8px 18px rgba(15, 23, 42, 0.045);
  color: var(--rlna-ink) !important;
  background: #ffffff !important;
  overflow-x: hidden !important;
}

html body.rln-account-premium-ux *,
html body.rln-account-premium-ux *::before,
html body.rln-account-premium-ux *::after {
  box-sizing: border-box;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* SmartMag / theme content reset: header/footer untouched */
html body.rln-account-premium-ux .sidebar,
html body.rln-account-premium-ux .main-sidebar,
html body.rln-account-premium-ux .sidebar-wrap,
html body.rln-account-premium-ux aside[class*="sidebar"] {
  display: none !important;
}

html body.rln-account-premium-ux .site-content,
html body.rln-account-premium-ux .main-wrap,
html body.rln-account-premium-ux #primary,
html body.rln-account-premium-ux #main,
html body.rln-account-premium-ux .site-main,
html body.rln-account-premium-ux .content-area,
html body.rln-account-premium-ux .entry-content,
html body.rln-account-premium-ux .post-content,
html body.rln-account-premium-ux .the-post {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body.rln-account-premium-ux .entry-content > .woocommerce,
html body.rln-account-premium-ux main .woocommerce,
html body.rln-account-premium-ux .woocommerce-page .woocommerce,
html body.rln-account-premium-ux .woocommerce {
  width: 100% !important;
  max-width: 1260px !important;
  margin: 0 auto 64px !important;
  padding-left: max(24px, env(safe-area-inset-left)) !important;
  padding-right: max(24px, env(safe-area-inset-right)) !important;
  color: var(--rlna-ink) !important;
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif !important;
}

/* Page title */
html body.rln-account-premium-ux .page-title,
html body.rln-account-premium-ux .entry-title,
html body.rln-account-premium-ux h1.entry-title {
  width: 100% !important;
  max-width: 1260px !important;
  margin: 34px auto 28px !important;
  padding-left: max(24px, env(safe-area-inset-left)) !important;
  padding-right: max(24px, env(safe-area-inset-right)) !important;
  text-align: center !important;
  color: var(--rlna-ink) !important;
  font-size: clamp(32px, 4vw, 52px) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.065em !important;
  font-weight: 950 !important;
  text-shadow: none !important;
}

html body.rln-account-premium-ux .page-title::before,
html body.rln-account-premium-ux .entry-title::before,
html body.rln-account-premium-ux h1.entry-title::before {
  content: "리본라인 계정";
  display: block !important;
  margin: 0 0 10px !important;
  color: var(--rlna-purple) !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  letter-spacing: 0.14em !important;
  font-weight: 950 !important;
}

/* Woo notices */
html body.rln-account-premium-ux .woocommerce-error,
html body.rln-account-premium-ux .woocommerce-info,
html body.rln-account-premium-ux .woocommerce-message {
  width: 100% !important;
  margin: 0 0 18px !important;
  padding: 16px 18px 16px 52px !important;
  border: 1px solid var(--rlna-line) !important;
  border-top: 2px solid var(--rlna-purple) !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: var(--rlna-shadow-sm) !important;
  color: var(--rlna-ink) !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  font-weight: 700 !important;
}

html body.rln-account-premium-ux .woocommerce-error {
  border-top-color: var(--rlna-red) !important;
}

html body.rln-account-premium-ux .woocommerce-message {
  border-top-color: #16a34a !important;
}

html body.rln-account-premium-ux .woocommerce-info::before,
html body.rln-account-premium-ux .woocommerce-error::before,
html body.rln-account-premium-ux .woocommerce-message::before {
  top: 16px !important;
  left: 20px !important;
}

/* Logged out login/register grid */
html body.rln-account-premium-ux .u-columns.col2-set {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 28px !important;
  width: 100% !important;
  margin: 0 auto !important;
}

html body.rln-account-premium-ux .u-columns.col2-set::before,
html body.rln-account-premium-ux .u-columns.col2-set::after {
  display: none !important;
}

html body.rln-account-premium-ux .u-column1.col-1,
html body.rln-account-premium-ux .u-column2.col-2,
html body.rln-account-premium-ux .woocommerce-account .woocommerce-MyAccount-content,
html body.rln-account-premium-ux .woocommerce-account .woocommerce-MyAccount-navigation {
  float: none !important;
}

html body.rln-account-premium-ux .u-column1.col-1,
html body.rln-account-premium-ux .u-column2.col-2 {
  width: 100% !important;
  min-width: 0 !important;
}

/* Login/register cards */
html body.rln-account-premium-ux .woocommerce form.login,
html body.rln-account-premium-ux .woocommerce form.register,
html body.rln-account-premium-ux .woocommerce form.lost_reset_password,
html body.rln-account-premium-ux .woocommerce-ResetPassword,
html body.rln-account-premium-ux .woocommerce .edit-account,
html body.rln-account-premium-ux .woocommerce-address-fields,
html body.rln-account-premium-ux .woocommerce-MyAccount-content > form {
  width: 100% !important;
  margin: 0 !important;
  padding: 28px !important;
  border: 1px solid var(--rlna-line) !important;
  border-radius: var(--rlna-radius-xl) !important;
  background: #ffffff !important;
  box-shadow: var(--rlna-shadow-md) !important;
}

html body.rln-account-premium-ux .u-column1 h2,
html body.rln-account-premium-ux .u-column2 h2,
html body.rln-account-premium-ux .woocommerce-MyAccount-content h2,
html body.rln-account-premium-ux .woocommerce-MyAccount-content h3,
html body.rln-account-premium-ux .woocommerce-Address-title h3,
html body.rln-account-premium-ux .woocommerce-order-details__title,
html body.rln-account-premium-ux .woocommerce-column__title {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 0 18px !important;
  padding: 0 0 14px !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: var(--rlna-ink) !important;
  font-size: clamp(22px, 2.2vw, 28px) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.055em !important;
  font-weight: 950 !important;
}

html body.rln-account-premium-ux .u-column1 h2::before,
html body.rln-account-premium-ux .u-column2 h2::before,
html body.rln-account-premium-ux .woocommerce-MyAccount-content h2::before,
html body.rln-account-premium-ux .woocommerce-MyAccount-content h3::before,
html body.rln-account-premium-ux .woocommerce-Address-title h3::before,
html body.rln-account-premium-ux .woocommerce-order-details__title::before,
html body.rln-account-premium-ux .woocommerce-column__title::before {
  content: "" !important;
  flex: 0 0 auto !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 999px !important;
  background: var(--rlna-red) !important;
  box-shadow: 0 0 0 6px rgba(220, 47, 52, 0.14) !important;
}

/* Form fields */
html body.rln-account-premium-ux .woocommerce form .form-row {
  float: none !important;
  clear: none !important;
  width: 100% !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
}

html body.rln-account-premium-ux .woocommerce form .form-row-first,
html body.rln-account-premium-ux .woocommerce form .form-row-last {
  float: none !important;
  width: 100% !important;
}

html body.rln-account-premium-ux .woocommerce form .form-row label,
html body.rln-account-premium-ux .woocommerce form fieldset legend {
  display: block !important;
  margin: 0 0 7px !important;
  color: #1e293b !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  letter-spacing: -0.03em !important;
  font-weight: 850 !important;
}

html body.rln-account-premium-ux .woocommerce form fieldset {
  margin: 22px 0 0 !important;
  padding: 20px !important;
  border: 1px solid var(--rlna-line) !important;
  border-radius: 18px !important;
  background: var(--rlna-soft) !important;
}

html body.rln-account-premium-ux .woocommerce form fieldset legend {
  padding: 0 8px !important;
  color: var(--rlna-purple) !important;
  font-size: 15px !important;
  font-weight: 950 !important;
}

html body.rln-account-premium-ux .woocommerce form .required {
  color: var(--rlna-red) !important;
  text-decoration: none !important;
}

html body.rln-account-premium-ux .woocommerce form .woocommerce-input-wrapper {
  display: block !important;
  width: 100% !important;
}

html body.rln-account-premium-ux .woocommerce input.input-text,
html body.rln-account-premium-ux .woocommerce textarea,
html body.rln-account-premium-ux .woocommerce select,
html body.rln-account-premium-ux .woocommerce .select2-container .select2-selection--single,
html body.rln-account-premium-ux .woocommerce .select2-container .select2-selection--multiple {
  width: 100% !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 1px solid var(--rlna-line-strong) !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  color: var(--rlna-ink) !important;
  box-shadow: none !important;
  outline: none !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  transition: border-color .16s ease, box-shadow .16s ease !important;
}

html body.rln-account-premium-ux .woocommerce textarea {
  min-height: 120px !important;
  padding-top: 14px !important;
}

html body.rln-account-premium-ux .woocommerce input.input-text:focus,
html body.rln-account-premium-ux .woocommerce textarea:focus,
html body.rln-account-premium-ux .woocommerce select:focus,
html body.rln-account-premium-ux .woocommerce .form-row.rlnc-is-focused input.input-text,
html body.rln-account-premium-ux .woocommerce .form-row.rlnc-is-focused textarea {
  border-color: rgba(109, 53, 232, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(109, 53, 232, 0.10) !important;
}

html body.rln-account-premium-ux .select2-container {
  width: 100% !important;
  max-width: 100% !important;
}

html body.rln-account-premium-ux .select2-selection__rendered {
  padding-left: 0 !important;
  padding-right: 28px !important;
  line-height: 52px !important;
}

html body.rln-account-premium-ux .select2-selection__arrow {
  height: 52px !important;
  right: 10px !important;
}

/* Buttons */
html body.rln-account-premium-ux .woocommerce button.button,
html body.rln-account-premium-ux .woocommerce a.button,
html body.rln-account-premium-ux .woocommerce input.button,
html body.rln-account-premium-ux .woocommerce .button {
  min-height: 52px !important;
  border: 0 !important;
  border-radius: 15px !important;
  background: linear-gradient(135deg, var(--rlna-red), var(--rlna-red-dark)) !important;
  color: #ffffff !important;
  box-shadow: 0 16px 30px rgba(220, 47, 52, 0.22) !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 950 !important;
  letter-spacing: -0.035em !important;
  text-decoration: none !important;
  text-align: center !important;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease !important;
}

html body.rln-account-premium-ux .woocommerce button.button:hover,
html body.rln-account-premium-ux .woocommerce a.button:hover,
html body.rln-account-premium-ux .woocommerce input.button:hover,
html body.rln-account-premium-ux .woocommerce .button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 18px 36px rgba(220, 47, 52, 0.26) !important;
  filter: brightness(1.02) !important;
}

html body.rln-account-premium-ux form.login .form-row:last-of-type,
html body.rln-account-premium-ux form.register .form-row:last-of-type {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  margin-top: 18px !important;
}

html body.rln-account-premium-ux form.login .woocommerce-form-login__rememberme {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  color: var(--rlna-text) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

html body.rln-account-premium-ux .lost_password {
  margin: 18px 0 0 !important;
}

html body.rln-account-premium-ux .lost_password a,
html body.rln-account-premium-ux .woocommerce a {
  color: var(--rlna-purple) !important;
  text-decoration: none !important;
  font-weight: 800 !important;
}

html body.rln-account-premium-ux .lost_password a:hover,
html body.rln-account-premium-ux .woocommerce a:hover {
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

/* My Account logged-in layout */
html body.rln-account-premium-ux .woocommerce-account .woocommerce-MyAccount-navigation {
  width: 260px !important;
  margin: 0 !important;
}

html body.rln-account-premium-ux .woocommerce-account .woocommerce-MyAccount-content {
  width: calc(100% - 292px) !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 28px !important;
  border: 1px solid var(--rlna-line) !important;
  border-radius: var(--rlna-radius-xl) !important;
  background: #ffffff !important;
  box-shadow: var(--rlna-shadow-md) !important;
}

html body.rln-account-premium-ux .woocommerce-account .woocommerce {
  display: block !important;
}

html body.rln-account-premium-ux .woocommerce-account .woocommerce::after {
  content: "" !important;
  display: block !important;
  clear: both !important;
}

html body.rln-account-premium-ux .woocommerce-MyAccount-navigation ul {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 14px !important;
  border: 1px solid var(--rlna-line) !important;
  border-radius: var(--rlna-radius-xl) !important;
  background: #ffffff !important;
  box-shadow: var(--rlna-shadow-sm) !important;
  list-style: none !important;
}

html body.rln-account-premium-ux .woocommerce-MyAccount-navigation li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

html body.rln-account-premium-ux .woocommerce-MyAccount-navigation li a {
  display: flex !important;
  align-items: center !important;
  min-height: 46px !important;
  padding: 0 14px !important;
  border-radius: 14px !important;
  color: var(--rlna-text) !important;
  background: transparent !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  letter-spacing: -0.03em !important;
  text-decoration: none !important;
  transition: background .16s ease, color .16s ease, transform .16s ease !important;
}

html body.rln-account-premium-ux .woocommerce-MyAccount-navigation li a:hover,
html body.rln-account-premium-ux .woocommerce-MyAccount-navigation li.is-active a {
  color: var(--rlna-purple) !important;
  background: var(--rlna-soft-purple) !important;
  transform: translateX(2px) !important;
}

/* Dashboard text */
html body.rln-account-premium-ux .woocommerce-MyAccount-content p {
  color: var(--rlna-text) !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  letter-spacing: -0.025em !important;
}

html body.rln-account-premium-ux .woocommerce-MyAccount-content p:first-child {
  padding: 18px !important;
  border-radius: 18px !important;
  background: var(--rlna-soft) !important;
}

/* Tables */
html body.rln-account-premium-ux .woocommerce table.shop_table,
html body.rln-account-premium-ux .woocommerce table.my_account_orders,
html body.rln-account-premium-ux .woocommerce-orders-table {
  width: 100% !important;
  border: 1px solid var(--rlna-line) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

html body.rln-account-premium-ux .woocommerce table.shop_table th,
html body.rln-account-premium-ux .woocommerce table.shop_table td,
html body.rln-account-premium-ux .woocommerce-orders-table th,
html body.rln-account-premium-ux .woocommerce-orders-table td {
  padding: 15px 16px !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: var(--rlna-ink) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

html body.rln-account-premium-ux .woocommerce table.shop_table thead th,
html body.rln-account-premium-ux .woocommerce-orders-table thead th {
  border-top: 0 !important;
  background: var(--rlna-soft) !important;
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 950 !important;
}

/* Address cards */
html body.rln-account-premium-ux .woocommerce-Addresses {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

html body.rln-account-premium-ux .woocommerce-Address {
  width: 100% !important;
  margin: 0 !important;
  padding: 22px !important;
  border: 1px solid var(--rlna-line) !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  box-shadow: var(--rlna-shadow-sm) !important;
}

html body.rln-account-premium-ux .woocommerce-Address-title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

html body.rln-account-premium-ux .woocommerce-Address-title h3 {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

html body.rln-account-premium-ux .woocommerce-Address-title h3::before {
  width: 9px !important;
  height: 9px !important;
  box-shadow: 0 0 0 5px rgba(220, 47, 52, 0.12) !important;
}

html body.rln-account-premium-ux .woocommerce-Address address {
  margin-top: 14px !important;
  color: var(--rlna-text) !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  font-style: normal !important;
}

/* Privacy text on register */
html body.rln-account-premium-ux .woocommerce-privacy-policy-text {
  margin: 18px 0 0 !important;
  color: var(--rlna-muted) !important;
  font-size: 13.5px !important;
  line-height: 1.7 !important;
}

html body.rln-account-premium-ux .woocommerce-privacy-policy-text p {
  margin: 0 !important;
}

/* Lost password */
html body.rln-account-premium-ux .woocommerce-ResetPassword,
html body.rln-account-premium-ux .lost_reset_password {
  max-width: 680px !important;
  margin: 0 auto !important;
}

/* Theme login modal small Korean fallback */
html body.rln-account-premium-ux .login-modal,
html body.rln-account-premium-ux .ts-login-modal {
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, system-ui, sans-serif !important;
}

/* Responsive */
@media (max-width: 1100px) {
  html body.rln-account-premium-ux .u-columns.col2-set {
    gap: 20px !important;
  }
}

@media (max-width: 920px) {
  html body.rln-account-premium-ux .entry-content > .woocommerce,
  html body.rln-account-premium-ux main .woocommerce,
  html body.rln-account-premium-ux .woocommerce-page .woocommerce,
  html body.rln-account-premium-ux .woocommerce,
  html body.rln-account-premium-ux .page-title,
  html body.rln-account-premium-ux .entry-title,
  html body.rln-account-premium-ux h1.entry-title {
    max-width: 100% !important;
    padding-left: max(18px, env(safe-area-inset-left)) !important;
    padding-right: max(18px, env(safe-area-inset-right)) !important;
  }

  html body.rln-account-premium-ux .u-columns.col2-set {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  html body.rln-account-premium-ux .woocommerce-account .woocommerce-MyAccount-navigation,
  html body.rln-account-premium-ux .woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
  }

  html body.rln-account-premium-ux .woocommerce-account .woocommerce-MyAccount-navigation {
    margin: 0 0 18px !important;
  }

  html body.rln-account-premium-ux .woocommerce-MyAccount-navigation ul {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  html body.rln-account-premium-ux .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
    display: none !important;
  }

  html body.rln-account-premium-ux .woocommerce-MyAccount-navigation li {
    flex: 0 0 auto !important;
  }

  html body.rln-account-premium-ux .woocommerce-MyAccount-navigation li a {
    white-space: nowrap !important;
  }
}

@media (max-width: 640px) {
  html body.rln-account-premium-ux .entry-content > .woocommerce,
  html body.rln-account-premium-ux main .woocommerce,
  html body.rln-account-premium-ux .woocommerce-page .woocommerce,
  html body.rln-account-premium-ux .woocommerce,
  html body.rln-account-premium-ux .page-title,
  html body.rln-account-premium-ux .entry-title,
  html body.rln-account-premium-ux h1.entry-title {
    padding-left: max(16px, env(safe-area-inset-left)) !important;
    padding-right: max(16px, env(safe-area-inset-right)) !important;
  }

  html body.rln-account-premium-ux .page-title,
  html body.rln-account-premium-ux .entry-title,
  html body.rln-account-premium-ux h1.entry-title {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    font-size: 34px !important;
  }

  html body.rln-account-premium-ux .page-title::before,
  html body.rln-account-premium-ux .entry-title::before,
  html body.rln-account-premium-ux h1.entry-title::before {
    font-size: 11px !important;
    letter-spacing: 0.12em !important;
  }

  html body.rln-account-premium-ux .woocommerce form.login,
  html body.rln-account-premium-ux .woocommerce form.register,
  html body.rln-account-premium-ux .woocommerce form.lost_reset_password,
  html body.rln-account-premium-ux .woocommerce-ResetPassword,
  html body.rln-account-premium-ux .woocommerce .edit-account,
  html body.rln-account-premium-ux .woocommerce-address-fields,
  html body.rln-account-premium-ux .woocommerce-MyAccount-content > form,
  html body.rln-account-premium-ux .woocommerce-account .woocommerce-MyAccount-content {
    padding: 18px !important;
    border-radius: 18px !important;
  }

  html body.rln-account-premium-ux .u-column1 h2,
  html body.rln-account-premium-ux .u-column2 h2,
  html body.rln-account-premium-ux .woocommerce-MyAccount-content h2,
  html body.rln-account-premium-ux .woocommerce-MyAccount-content h3 {
    font-size: 24px !important;
  }

  html body.rln-account-premium-ux .woocommerce-Addresses {
    grid-template-columns: 1fr !important;
  }

  html body.rln-account-premium-ux .woocommerce input.input-text,
  html body.rln-account-premium-ux .woocommerce textarea,
  html body.rln-account-premium-ux .woocommerce select,
  html body.rln-account-premium-ux .woocommerce .select2-container .select2-selection--single,
  html body.rln-account-premium-ux .woocommerce .select2-container .select2-selection--multiple {
    min-height: 50px !important;
    border-radius: 14px !important;
  }

  html body.rln-account-premium-ux form.login .form-row:last-of-type,
  html body.rln-account-premium-ux form.register .form-row:last-of-type {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  html body.rln-account-premium-ux .woocommerce button.button,
  html body.rln-account-premium-ux .woocommerce a.button,
  html body.rln-account-premium-ux .woocommerce input.button,
  html body.rln-account-premium-ux .woocommerce .button {
    width: 100% !important;
  }

  html body.rln-account-premium-ux .woocommerce table.shop_table,
  html body.rln-account-premium-ux .woocommerce table.shop_table tbody,
  html body.rln-account-premium-ux .woocommerce table.shop_table tr,
  html body.rln-account-premium-ux .woocommerce table.shop_table td {
    display: block !important;
    width: 100% !important;
  }

  html body.rln-account-premium-ux .woocommerce table.shop_table thead {
    display: none !important;
  }

  html body.rln-account-premium-ux .woocommerce table.shop_table tr {
    padding: 12px 0 !important;
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  }

  html body.rln-account-premium-ux .woocommerce table.shop_table td {
    padding: 8px 14px !important;
    border-top: 0 !important;
  }
}

@media (max-width: 420px) {
  html body.rln-account-premium-ux .entry-content > .woocommerce,
  html body.rln-account-premium-ux main .woocommerce,
  html body.rln-account-premium-ux .woocommerce-page .woocommerce,
  html body.rln-account-premium-ux .woocommerce,
  html body.rln-account-premium-ux .page-title,
  html body.rln-account-premium-ux .entry-title,
  html body.rln-account-premium-ux h1.entry-title {
    padding-left: max(14px, env(safe-area-inset-left)) !important;
    padding-right: max(14px, env(safe-area-inset-right)) !important;
  }

  html body.rln-account-premium-ux .page-title,
  html body.rln-account-premium-ux .entry-title,
  html body.rln-account-premium-ux h1.entry-title {
    font-size: 30px !important;
  }

  html body.rln-account-premium-ux .woocommerce form.login,
  html body.rln-account-premium-ux .woocommerce form.register,
  html body.rln-account-premium-ux .woocommerce form.lost_reset_password,
  html body.rln-account-premium-ux .woocommerce-ResetPassword,
  html body.rln-account-premium-ux .woocommerce .edit-account,
  html body.rln-account-premium-ux .woocommerce-address-fields,
  html body.rln-account-premium-ux .woocommerce-MyAccount-content > form,
  html body.rln-account-premium-ux .woocommerce-account .woocommerce-MyAccount-content {
    padding: 16px !important;
  }
}


/* =========================================================
   v1.2 Dashboard text styling patch
   - 내 계정 대시보드 본문 문단을 카드형으로 정리
   - 안내문 / 환영문 / 설명문 가독성 강화
========================================================= */

html body.rln-account-premium-ux .woocommerce-MyAccount-content {
  display: block !important;
}

html body.rln-account-premium-ux .woocommerce-MyAccount-content > p,
html body.rln-account-premium-ux .woocommerce-MyAccount-content .rlna-dashboard-text {
  position: relative !important;
  margin: 0 0 16px !important;
  padding: 18px 20px !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045) !important;
  color: var(--rlna-text) !important;
  font-size: 15.5px !important;
  line-height: 1.75 !important;
  letter-spacing: -0.025em !important;
  word-break: keep-all !important;
}

html body.rln-account-premium-ux .woocommerce-MyAccount-content > p:first-of-type {
  padding-left: 52px !important;
  background: #fbfaff !important;
  border-color: rgba(109, 53, 232, 0.16) !important;
}

html body.rln-account-premium-ux .woocommerce-MyAccount-content > p:first-of-type::before {
  content: "" !important;
  position: absolute !important;
  left: 22px !important;
  top: 24px !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 999px !important;
  background: var(--rlna-red) !important;
  box-shadow: 0 0 0 7px rgba(220, 47, 52, 0.13) !important;
}

html body.rln-account-premium-ux .woocommerce-MyAccount-content > p:last-child {
  margin-bottom: 0 !important;
}

html body.rln-account-premium-ux .woocommerce-MyAccount-content > p a {
  color: var(--rlna-purple) !important;
  font-weight: 950 !important;
  text-decoration: none !important;
}

html body.rln-account-premium-ux .woocommerce-MyAccount-content > p a:hover {
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

html body.rln-account-premium-ux .woocommerce-MyAccount-content .woocommerce-info,
html body.rln-account-premium-ux .woocommerce-MyAccount-content .woocommerce-message,
html body.rln-account-premium-ux .woocommerce-MyAccount-content .woocommerce-error {
  margin-bottom: 18px !important;
  font-size: 15.5px !important;
  line-height: 1.65 !important;
  font-weight: 800 !important;
}

/* dashboard content with no orders/downloads */
html body.rln-account-premium-ux .woocommerce-MyAccount-content .woocommerce-info + p,
html body.rln-account-premium-ux .woocommerce-MyAccount-content .woocommerce-message + p {
  margin-top: 0 !important;
}

/* make account dashboard area look intentional even when only text exists */
html body.rln-account-premium-ux .woocommerce-MyAccount-content:empty {
  min-height: 160px !important;
}

@media (max-width: 640px) {
  html body.rln-account-premium-ux .woocommerce-MyAccount-content > p,
  html body.rln-account-premium-ux .woocommerce-MyAccount-content .rlna-dashboard-text {
    padding: 16px !important;
    font-size: 14.5px !important;
    line-height: 1.7 !important;
    border-radius: 16px !important;
  }

  html body.rln-account-premium-ux .woocommerce-MyAccount-content > p:first-of-type {
    padding-left: 46px !important;
  }

  html body.rln-account-premium-ux .woocommerce-MyAccount-content > p:first-of-type::before {
    left: 18px !important;
    top: 22px !important;
    width: 10px !important;
    height: 10px !important;
    box-shadow: 0 0 0 6px rgba(220, 47, 52, 0.13) !important;
  }
}
