:root {
  --kbsp-ink: #111111;
  --kbsp-muted: #737373;
  --kbsp-line: #e4e4e4;
  --kbsp-soft: #f6f6f6;
  --kbsp-green: #148a2c;
  --kbsp-orange: #f4511e;
}

.kbs-profile,
.kbs-profile * { box-sizing: border-box; }

.kbs-profile {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 18px 24px 140px;
  color: var(--kbsp-ink);
  font-family: "Roboto Condensed", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.kbs-profile a { color: inherit; text-decoration: none; }
.kbs-profile button,
.kbs-profile input,
.kbs-profile textarea { font: inherit; }
.kbs-profile button,
.kbs-profile a,
.kbs-profile input,
.kbs-profile textarea,
.kbs-favorite-button { -webkit-tap-highlight-color: transparent; }

.kbs-profile-notice {
  margin: 0 0 20px;
  padding: 13px 16px;
  color: #0d5d1d;
  background: #eef9f0;
  border: 1px solid #ccebd1;
  border-radius: 12px;
  font-weight: 700;
}

.kbs-profile-hero {
  min-height: 380px;
  padding: 54px 16px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.kbs-profile-hero img,
.kbs-profile-avatar-edit img {
  width: 116px;
  height: 116px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--kbsp-soft);
}

.kbs-profile-hero h1 { margin: 22px 0 16px; font-size: clamp(26px, 5vw, 38px); line-height: 1.08; font-weight: 600; }

.kbs-profile-outline,
.kbs-profile-primary {
  min-height: 52px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.kbs-profile-outline { background: #fff; border: 1px solid #bdbdbd; }
.kbs-profile-primary { color: #fff !important; background: var(--kbsp-ink) !important; border: 0; }
.kbs-profile-outline:active,
.kbs-profile-primary:active { transform: translateY(2px) scale(.98); box-shadow: inset 0 4px 10px rgba(0,0,0,.18); }

.kbs-profile-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  border-bottom: 1px solid var(--kbsp-line);
}

.kbs-profile-shortcuts a {
  position: relative;
  min-height: 112px;
  padding: 18px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-right: 1px solid var(--kbsp-line);
  text-align: center;
}

.kbs-profile-shortcuts a:last-child { border-right: 0; }
.kbs-profile-shortcuts .dashicons { width: 30px; height: 30px; font-size: 30px; }
.kbs-profile-shortcuts span:not(.dashicons) { font-size: 14px; font-weight: 700; }
.kbs-profile-shortcuts small { position: absolute; top: 12px; right: calc(50% - 31px); min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; color: #fff; background: var(--kbsp-orange); border-radius: 999px; font-size: 11px; font-weight: 800; }

.kbs-profile-menu { margin-top: 28px; }
.kbs-profile-menu > a,
.kbs-profile-menu > div {
  min-height: 112px;
  padding: 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--kbsp-line);
}
.kbs-profile-menu span { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.kbs-profile-menu strong { font-size: clamp(20px, 4vw, 27px); line-height: 1.1; font-weight: 600; }
.kbs-profile-menu small { color: var(--kbsp-muted); font-size: 16px; line-height: 1.35; }
.kbs-profile-menu b { flex: 0 0 auto; }
.kbs-profile-menu b .dashicons { width: 25px; height: 25px; font-size: 25px; }

.kbs-profile-subhead {
  min-height: 82px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--kbsp-line);
}
.kbs-profile-subhead h1 { margin: 0; font-size: 25px; font-weight: 700; text-align: center; }

.kbs-profile-form { width: min(100%, 640px); margin: 0 auto; display: grid; gap: 22px; }
.kbs-profile-avatar-edit { position: relative; margin: 4px auto 8px; display: flex !important; flex-direction: column; align-items: center; gap: 10px; overflow: hidden; font-weight: 700; cursor: pointer; }
.kbs-profile-avatar-edit input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.kbs-profile-form > label,
.kbs-profile-form .kbs-profile-field-group label { position: relative; display: grid; gap: 9px; font-size: 16px; font-weight: 700; }
.kbs-profile-field-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kbs-profile-form input[type="text"],
.kbs-profile-form textarea,
.kbs-profile-settings-form input {
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  color: var(--kbsp-ink);
  background: #fff;
  border: 1px solid #a9a9a9;
  border-radius: 8px;
  outline: 0;
}
.kbs-profile-form textarea { resize: vertical; min-height: 140px; }
.kbs-profile-form input:focus,
.kbs-profile-form textarea:focus,
.kbs-profile-settings-form input:focus { border-color: #111; box-shadow: 0 0 0 1px #111; }
.kbs-profile-counter { position: absolute; top: 0; right: 0; color: var(--kbsp-muted); font-weight: 500; }
.kbs-profile-counter b { font-weight: 500; }
.kbs-profile-form .kbs-profile-primary { width: 100%; margin-top: 4px; }

.kbs-profile-orders { display: grid; gap: 0; }
.kbs-profile-order { border-bottom: 1px solid #cfcfcf; }
.kbs-profile-order-summary { width: 100%; padding: 24px 0; display: grid; grid-template-columns: 180px minmax(0,1fr) 28px; align-items: center; gap: 26px; color: var(--kbsp-ink); background: transparent; border: 0; text-align: left; cursor: pointer; }
.kbs-profile-order-summary img { width: 180px; aspect-ratio: 1; object-fit: cover; background: var(--kbsp-soft); }
.kbs-profile-order-summary > span { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.kbs-profile-order-summary em { color: var(--kbsp-green); font-size: 17px; font-style: normal; font-weight: 700; }
.kbs-profile-order-summary strong { font-size: 23px; line-height: 1.15; }
.kbs-profile-order-summary small { color: var(--kbsp-muted); font-size: 15px; line-height: 1.35; }
.kbs-profile-order-summary > .dashicons { transition: transform .2s ease; }
.kbs-profile-order-summary[aria-expanded="true"] > .dashicons { transform: rotate(180deg); }
.kbs-profile-order-details { margin: 0 0 24px 206px; padding: 20px; background: var(--kbsp-soft); border-radius: 14px; }
.kbs-profile-order-details dl { margin: 0 0 18px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.kbs-profile-order-details dl div { display: grid; gap: 4px; }
.kbs-profile-order-details dt { color: var(--kbsp-muted); font-size: 13px; }
.kbs-profile-order-details dd { margin: 0; font-weight: 700; }
.kbs-profile-order-address { margin-bottom: 16px; }
.kbs-profile-order-address p { margin: 5px 0 0; color: var(--kbsp-muted); }
.kbs-profile-order-details ul { margin: 0 0 18px; padding: 0; list-style: none; }
.kbs-profile-order-details li { padding: 9px 0; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #ddd; }
.kbs-profile-order-details .kbs-profile-outline { min-height: 44px; padding: 0 20px; font-size: 14px; }

.kbs-profile-product-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 36px 8px; }
.kbs-profile-product-card { position: relative; min-width: 0; }
.kbs-profile-product-card > a:first-child { display: block; background: var(--kbsp-soft); }
.kbs-profile-product-card img { width: 100%; aspect-ratio: 1; display: block; object-fit: contain; background: var(--kbsp-soft); }
.kbs-profile-product-card h2 { margin: 14px 0 6px; font-size: 18px; line-height: 1.2; }
.kbs-profile-product-card .price { color: var(--kbsp-ink); font-size: 16px; font-weight: 700; }

.kbs-favorite-button {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 10px !important;
  display: inline-grid !important;
  place-items: center;
  color: #111 !important;
  background: rgba(255,255,255,.94) !important;
  border: 0 !important;
  border-radius: 50% !important;
  box-shadow: 0 5px 18px rgba(0,0,0,.1) !important;
  cursor: pointer;
}
.kbs-profile-product-card > .kbs-favorite-button { position: absolute; top: 12px; right: 12px; z-index: 6; }
body.woocommerce ul.products li.product > .kbs-favorite-button,
body.kbs-hg-archive.woocommerce ul.products li.product > .kbs-favorite-button {
  position: absolute !important;
  top: 12px !important;
  right: auto !important;
  bottom: auto !important;
  left: 12px !important;
  z-index: 7;
}
.kbs-favorite-button .dashicons { width: 23px; height: 23px; font-size: 23px; }
.kbs-favorite-button.is-favorite { color: #fff !important; background: #111 !important; }
.kbs-favorite-button:active { transform: scale(.9); }
.kbs-single-favorite { margin: 18px 0; display: flex; align-items: center; gap: 10px; font-weight: 700; }

.kbs-profile-settings-form { display: grid; border-top: 1px solid var(--kbsp-line); }
.kbs-profile-settings-form label { min-height: 68px; padding: 9px 0; display: grid; grid-template-columns: minmax(120px,.6fr) 1.4fr; align-items: center; gap: 14px; border-bottom: 1px solid var(--kbsp-line); font-size: 15px; }
.kbs-profile-settings-form input { min-height: 44px; padding: 9px 12px; text-align: right; }
.kbs-profile-settings-form .kbs-profile-primary { min-height: 46px; padding: 0 22px; justify-self: end; margin: 14px 0; font-size: 15px; }
.kbs-profile-settings-menu { margin-top: 12px; background: var(--kbsp-soft); border: 1px solid var(--kbsp-line); border-radius: 14px; overflow: hidden; }
.kbs-profile-settings-menu > * { min-height: 78px; padding: 13px 16px; background: #fff; }
.kbs-profile-settings-menu strong { font-size: 18px; }
.kbs-profile-settings-menu small { font-size: 14px; }

.kbs-profile-inbox article { padding: 24px 0; display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 24px; border-bottom: 1px solid var(--kbsp-line); }
.kbs-profile-inbox img { width: 112px; height: 112px; object-fit: cover; background: var(--kbsp-soft); }
.kbs-profile-inbox h2 { margin: 0 0 5px; font-size: 19px; }
.kbs-profile-inbox p { margin: 0 0 14px; color: var(--kbsp-muted); font-size: 16px; line-height: 1.35; }
.kbs-profile-inbox small { color: var(--kbsp-muted); }

.kbs-profile-points-card { min-height: 240px; padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: #111; border-radius: 24px; box-shadow: 0 20px 45px rgba(0,0,0,.16); }
.kbs-profile-points-card > span { color: #bbb; font-size: 16px; }
.kbs-profile-points-card > strong { margin: 10px 0; color: #fff; font-size: clamp(38px,8vw,62px); line-height: 1; }
.kbs-profile-points-card small { color: #ddd; }
.kbs-profile-points-info { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kbs-profile-points-info div { min-height: 120px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; background: var(--kbsp-soft); border-radius: 16px; }
.kbs-profile-points-info strong { font-size: 24px; }
.kbs-profile-points-info span { color: var(--kbsp-muted); }
.kbs-profile-benefits { padding: 32px 4px; }
.kbs-profile-benefits h2 { margin: 0 0 10px; font-size: 25px; }
.kbs-profile-benefits p { color: var(--kbsp-muted); font-size: 17px; line-height: 1.5; }

.kbs-profile-empty,
.kbs-profile-guest { min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.kbs-profile-empty-icon { width: 84px; height: 84px; display: grid; place-items: center; color: #111; background: var(--kbsp-soft); border-radius: 50%; }
.kbs-profile-empty-icon .dashicons { width: 38px; height: 38px; font-size: 38px; }
.kbs-profile-empty h2,
.kbs-profile-guest h2 { margin: 22px 0 8px; font-size: 28px; }
.kbs-profile-empty p,
.kbs-profile-guest p { max-width: 420px; margin: 0 0 24px; color: var(--kbsp-muted); font-size: 17px; }

.kbs-profile-toast { position: fixed; z-index: 100002; right: 20px; bottom: 112px; left: 20px; max-width: 420px; margin: auto; padding: 13px 18px; color: #fff; background: #111; border-radius: 999px; text-align: center; font-weight: 700; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; }
.kbs-profile-toast.is-visible { opacity: 1; transform: translateY(0); }

body.kbsneak-profile-page .woocommerce-MyAccount-navigation { display: none !important; }
body.kbsneak-profile-page .woocommerce-MyAccount-content { width: 100% !important; float: none !important; }
body.kbsneak-profile-dashboard-active .woocommerce-MyAccount-content > p,
body.kbsneak-profile-dashboard-active article > .entry-header,
body.kbsneak-profile-dashboard-active .page-header,
body.kbsneak-profile-dashboard-active .entry-title,
body.kbsneak-profile-dashboard-active .page-title { display: none !important; }

.kbs-reward-use { margin: 18px 0; padding: 16px; color: #111; background: #f6f6f6; border: 1px solid #e2e2e2; border-radius: 14px; }
.kbs-reward-use label { display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; }
.kbs-reward-use label > span { display: grid; gap: 4px; }
.kbs-reward-use strong { font-size: 17px; }
.kbs-reward-use small { color: #737373; }
.kbs-reward-use input { position: absolute; opacity: 0; pointer-events: none; }
.kbs-reward-use i { position: relative; width: 48px; height: 28px; flex: 0 0 auto; background: #c9c9c9; border-radius: 999px; transition: background .2s ease; }
.kbs-reward-use i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: #fff; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,.18); transition: transform .2s ease; }
.kbs-reward-use input:checked + i { background: #111; }
.kbs-reward-use input:checked + i::after { transform: translateX(20px); }

@media (max-width: 680px) {
  .kbs-profile { padding: 8px 20px 138px; }
  .kbs-profile-hero { min-height: 350px; padding-top: 38px; }
  .kbs-profile-hero img,
  .kbs-profile-avatar-edit img { width: 104px; height: 104px; }
  .kbs-profile-shortcuts { margin-right: -8px; margin-left: -8px; }
  .kbs-profile-shortcuts a { min-height: 104px; padding-right: 4px; padding-left: 4px; }
  .kbs-profile-shortcuts span:not(.dashicons) { font-size: 12px; }
  .kbs-profile-menu { margin-top: 18px; }
  .kbs-profile-menu > a,
  .kbs-profile-menu > div { min-height: 105px; }
  .kbs-profile-menu strong { font-size: 21px; }
  .kbs-profile-subhead { margin-right: -8px; margin-left: -8px; }
  .kbs-profile-field-group { grid-template-columns: 1fr; }
  .kbs-profile-order-summary { grid-template-columns: 126px minmax(0,1fr) 20px; gap: 16px; padding: 18px 0; }
  .kbs-profile-order-summary img { width: 126px; }
  .kbs-profile-order-summary strong { font-size: 18px; }
  .kbs-profile-order-summary small { font-size: 13px; }
  .kbs-profile-order-details { margin: 0 0 18px; padding: 16px; }
  .kbs-profile-order-details dl { grid-template-columns: 1fr; }
  .kbs-profile-inbox article { grid-template-columns: 94px minmax(0,1fr); gap: 16px; }
  .kbs-profile-inbox img { width: 94px; height: 94px; }
  .kbs-profile-settings-form label { grid-template-columns: 1fr; gap: 8px; }
  .kbs-profile-settings-form input { text-align: left; }
  .kbs-profile-points-card { min-height: 220px; padding: 24px; }
}

/* 1.2: theme-proof order cards and compact account screens. */
.kbs-profile-orders { gap: 12px; }
.kbs-profile-order {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(17,17,17,.045);
}
.kbs-profile button.kbs-profile-order-summary,
.kbs-profile button.kbs-profile-order-summary:hover,
.kbs-profile button.kbs-profile-order-summary:active,
.kbs-profile button.kbs-profile-order-summary:focus,
.kbs-profile button.kbs-profile-order-summary[aria-expanded="true"] {
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 16px !important;
  display: grid !important;
  grid-template-columns: 112px minmax(0,1fr) 24px !important;
  gap: 16px !important;
  align-items: center !important;
  color: #111 !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0;
  appearance: none;
  text-align: left !important;
  text-transform: none !important;
  transform: none !important;
}
.kbs-profile button.kbs-profile-order-summary[aria-expanded="true"] { background: #fafafa !important; }
.kbs-profile button.kbs-profile-order-summary:focus-visible { outline: 2px solid #111 !important; outline-offset: -3px; }
.kbs-profile-order-summary img { width: 112px !important; aspect-ratio: 1; border-radius: 10px; }
.kbs-profile-order-summary > span { color: #111 !important; }
.kbs-profile-order-summary em { color: #15802f !important; font-size: 15px; }
.kbs-profile-order-summary strong { color: #111 !important; font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
.kbs-profile-order-summary small { color: #737373 !important; font-size: 13px; }
.kbs-profile-order-summary > .dashicons { color: #111 !important; }
.kbs-profile-order-details {
  margin: 0 !important;
  padding: 16px !important;
  color: #111;
  background: #fafafa !important;
  border-top: 1px solid #e7e7e7;
  border-radius: 0 !important;
}
.kbs-profile-order-details dl { margin-bottom: 14px; }
.kbs-profile-order-details dl div { padding: 10px; background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; }
.kbs-profile-order-address { padding: 14px; background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; }
.kbs-profile-order-details li { align-items: flex-start; font-size: 14px; }

.kbs-profile-settings-menu {
  margin: 10px 0 110px;
  display: grid;
  gap: 8px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.kbs-profile-settings-menu > a {
  min-height: 68px !important;
  padding: 12px 15px !important;
  background: #fff;
  border: 1px solid #e1e1e1 !important;
  border-radius: 12px;
}
.kbs-profile-settings-menu strong { font-size: 17px !important; }
.kbs-profile-settings-menu small { font-size: 13px !important; }
.kbs-profile-dashboard-footer { margin-top: 34px; padding: 20px 0 6px; border-top: 1px solid var(--kbsp-line); }
.kbs-profile-dashboard-logout {
  min-height: 64px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #a52920 !important;
  background: #fff8f7;
  border: 1px solid #f0d2ce;
  border-radius: 14px;
}
.kbs-profile-dashboard-logout > span:first-child { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: #b42318; border-radius: 50%; }
.kbs-profile-dashboard-logout > span:last-child { min-width: 0; display: grid; gap: 3px; }
.kbs-profile-dashboard-logout strong { font-size: 16px; line-height: 1.2; }
.kbs-profile-dashboard-logout small { color: #934038; font-size: 13px; }
.kbs-profile-dashboard-logout:active { transform: translateY(2px) scale(.99); }
.kbs-profile-dashboard-logout:focus-visible { outline: 2px solid #111; outline-offset: 3px; }

.kbs-profile-menu b { display: inline-flex; align-items: center; gap: 7px; }
.kbs-profile-menu-badge { min-width: 23px; height: 23px; padding: 0 6px; display: inline-grid; place-items: center; color: #fff; background: #e60012; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 800; }

.kbs-profile-inbox-section-title { margin: 28px 0 8px; font-size: 20px; }
.kbs-profile-inbox-section-title:first-child { margin-top: 0; }
.kbs-profile-message-list { display: grid; }
.kbs-profile-message-card {
  position: relative;
  padding: 15px 0;
  display: grid;
  grid-template-columns: 92px minmax(0,1fr);
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--kbsp-line);
}
.kbs-profile-message-card.is-unread::after { content: ""; position: absolute; top: 18px; right: 2px; width: 9px; height: 9px; background: #e60012; border-radius: 50%; }
.kbs-profile-message-card > img,
.kbs-profile-message-placeholder { width: 92px; height: 92px; border-radius: 8px; object-fit: cover; background: var(--kbsp-soft); }
.kbs-profile-message-placeholder { display: grid; place-items: center; }
.kbs-profile-message-placeholder .dashicons { width: 30px; height: 30px; font-size: 30px; }
.kbs-profile-message-card > span:last-child { min-width: 0; display: grid; gap: 4px; padding-right: 16px; }
.kbs-profile-message-card strong { font-size: 17px; line-height: 1.25; }
.kbs-profile-message-card em { color: var(--kbsp-muted); font-size: 14px; font-style: normal; line-height: 1.35; }
.kbs-profile-message-card small { color: var(--kbsp-muted); font-size: 12px; }
.kbs-profile-inbox-back { margin-bottom: 16px; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.kbs-profile-inbox .kbs-profile-message-detail { padding: 0 0 30px; display: block; border: 0; }
.kbs-profile-message-detail > img { width: 100%; height: auto; max-height: 420px; margin-bottom: 20px; border-radius: 16px; object-fit: cover; }
.kbs-profile-message-detail > small { color: var(--kbsp-muted); }
.kbs-profile-message-detail h2 { margin: 8px 0 16px; font-size: clamp(24px,5vw,34px); }
.kbs-profile-message-content { color: #333; font-size: 16px; line-height: 1.65; }
.kbs-profile-message-content img { max-width: 100%; height: auto; }

body.kbsneak-profile-page:not(.kbsneak-profile-dashboard-active) article > .entry-header,
body.kbsneak-profile-page:not(.kbsneak-profile-dashboard-active) .page-header,
body.kbsneak-profile-page:not(.kbsneak-profile-dashboard-active) .entry-title,
body.kbsneak-profile-page:not(.kbsneak-profile-dashboard-active) .page-title { display: none !important; }
body.kbsneak-profile-page:not(.kbsneak-profile-dashboard-active) .woocommerce-MyAccount-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 20px 150px;
  color: #111;
}
body.kbsneak-profile-page:not(.kbsneak-profile-dashboard-active) .woocommerce-MyAccount-content > p {
  margin: 0 0 14px;
  padding: 14px 16px;
  color: #666;
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  font-size: 15px !important;
  line-height: 1.5;
}
body.kbsneak-profile-page .woocommerce-Addresses { margin: 0 !important; display: grid !important; grid-template-columns: 1fr !important; gap: 12px; }
body.kbsneak-profile-page .woocommerce-Addresses::before,
body.kbsneak-profile-page .woocommerce-Addresses::after { display: none !important; }
body.kbsneak-profile-page .woocommerce-Address {
  width: 100% !important;
  min-height: 0;
  margin: 0 !important;
  padding: 16px !important;
  float: none !important;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(17,17,17,.04);
}
body.kbsneak-profile-page .woocommerce-Address-title { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.kbsneak-profile-page .woocommerce-Address-title h2,
body.kbsneak-profile-page .woocommerce-Address-title h3 { margin: 0 !important; font-size: 20px !important; line-height: 1.25 !important; }
body.kbsneak-profile-page .woocommerce-Address-title .edit { padding: 8px 12px; float: none !important; background: #f3f3f3; border-radius: 999px; font-size: 13px; font-weight: 700; }
body.kbsneak-profile-page .woocommerce-Address address { margin: 0; color: #666; font-size: 14px; font-style: normal; line-height: 1.65; }
body.kbsneak-profile-page .woocommerce-address-fields,
body.kbsneak-profile-page .woocommerce-EditAccountForm,
body.kbsneak-profile-page .woocommerce-MyAccount-paymentMethods,
body.kbsneak-profile-page .woocommerce-PaymentMethods,
body.kbsneak-profile-page .woocommerce-customer-details,
body.kbsneak-profile-page .woocommerce-order-details {
  margin: 12px 0 !important;
  padding: 16px !important;
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 14px;
}
body.kbsneak-profile-page .woocommerce-MyAccount-content h2,
body.kbsneak-profile-page .woocommerce-MyAccount-content h3 { font-size: 21px !important; line-height: 1.3 !important; }
body.kbsneak-profile-page .woocommerce-MyAccount-content input,
body.kbsneak-profile-page .woocommerce-MyAccount-content select,
body.kbsneak-profile-page .woocommerce-MyAccount-content textarea { min-height: 46px; padding: 10px 12px; border: 1px solid #cfcfcf; border-radius: 9px; font-size: 15px; }
body.kbsneak-profile-page .woocommerce-MyAccount-content table { font-size: 14px; }

.kbs-reward-fallback { width: min(calc(100% - 32px), 620px); margin: 18px auto 120px; }
.kbs-reward-fallback:empty { display: none; }

@media (max-width: 1024px) {
  body.kbsneak-profile-page .kbs-mgn-shell {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 2147483000 !important;
  }
  body.kbsneak-profile-page .kbs-profile,
  body.kbsneak-profile-page .woocommerce-MyAccount-content { padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)) !important; }
}

@media (max-width: 680px) {
  .kbs-profile button.kbs-profile-order-summary,
  .kbs-profile button.kbs-profile-order-summary:hover,
  .kbs-profile button.kbs-profile-order-summary:active,
  .kbs-profile button.kbs-profile-order-summary:focus,
  .kbs-profile button.kbs-profile-order-summary[aria-expanded="true"] { grid-template-columns: 92px minmax(0,1fr) 20px !important; gap: 12px !important; padding: 12px !important; }
  .kbs-profile-order-summary img { width: 92px !important; }
  .kbs-profile-order-summary strong { font-size: 16px; }
  .kbs-profile-order-details dl { grid-template-columns: 1fr; gap: 7px; }
  .kbs-profile-order-details dl div { padding: 8px; }
  .kbs-profile-order-details dd { font-size: 13px; overflow-wrap: anywhere; }
  .kbs-profile-message-card { grid-template-columns: 76px minmax(0,1fr); gap: 12px; }
  .kbs-profile-message-card > img,
  .kbs-profile-message-placeholder { width: 76px; height: 76px; }
  body.kbsneak-profile-page:not(.kbsneak-profile-dashboard-active) .woocommerce-MyAccount-content { padding-right: 14px; padding-left: 14px; }
}

/* 1.3: responsive WooCommerce account login. */
body.kbsneak-profile-login-page .woocommerce {
  width: min(100%, 1120px);
  min-height: 620px;
  margin: 0 auto;
  padding: 42px 24px 150px;
  color: #111;
  font-family: "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
}
body.kbsneak-profile-login-page .woocommerce * { box-sizing: border-box; }
body.kbsneak-profile-login-page .kbs-profile-login-intro {
  width: min(100%, 560px);
  margin: 0 auto 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
body.kbsneak-profile-login-page .kbs-profile-login-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #111;
  border-radius: 50%;
}
body.kbsneak-profile-login-page .kbs-profile-login-icon .dashicons { width: 28px; height: 28px; font-size: 28px; }
body.kbsneak-profile-login-page .kbs-profile-login-intro small { margin-bottom: 8px; color: #6f6f6f; font-size: 12px; font-weight: 800; letter-spacing: .14em; }
body.kbsneak-profile-login-page .kbs-profile-login-intro h1 { margin: 0; color: #111; font-size: clamp(30px, 4vw, 42px); line-height: 1.08; font-weight: 700; }
body.kbsneak-profile-login-page .kbs-profile-login-intro p { max-width: 470px; margin: 12px 0 0; color: #6b6b6b; font-size: 16px; line-height: 1.5; }

body.kbsneak-profile-login-page #customer_login {
  width: min(100%, 1020px);
  margin: 0 auto !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
}
body.kbsneak-profile-login-page #customer_login::before,
body.kbsneak-profile-login-page #customer_login::after { display: none !important; }
body.kbsneak-profile-login-page #customer_login > .u-column1,
body.kbsneak-profile-login-page #customer_login > .u-column2 {
  width: 100% !important;
  max-width: 498px;
  margin: 0 !important;
  padding: 30px !important;
  flex: 1 1 420px;
  float: none !important;
  color: #111;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(17,17,17,.07);
}
body.kbsneak-profile-login-page #customer_login h2 { margin: 0 0 22px !important; color: #111 !important; font-size: 26px !important; line-height: 1.2 !important; font-weight: 700 !important; text-align: center; }
body.kbsneak-profile-login-page .woocommerce form.login,
body.kbsneak-profile-login-page .woocommerce form.register {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.kbsneak-profile-login-page .woocommerce form.login p,
body.kbsneak-profile-login-page .woocommerce form.register p { font-size: 15px; line-height: 1.45; }
body.kbsneak-profile-login-page .woocommerce form.login .form-row,
body.kbsneak-profile-login-page .woocommerce form.register .form-row { width: 100% !important; margin: 0 0 17px !important; padding: 0 !important; float: none !important; }
body.kbsneak-profile-login-page .woocommerce form.login label,
body.kbsneak-profile-login-page .woocommerce form.register label { margin: 0 0 7px; display: block; color: #222; font-size: 15px; line-height: 1.35; font-weight: 600; }
body.kbsneak-profile-login-page .woocommerce form.login input.input-text,
body.kbsneak-profile-login-page .woocommerce form.register input.input-text {
  width: 100%;
  height: 52px;
  min-height: 52px;
  margin: 0;
  padding: 0 14px;
  color: #111;
  background: #fff;
  border: 1px solid #bdbdbd;
  border-radius: 10px;
  box-shadow: none;
  outline: 0;
  font-size: 16px;
}
body.kbsneak-profile-login-page .woocommerce form.login input.input-text:focus,
body.kbsneak-profile-login-page .woocommerce form.register input.input-text:focus { border-color: #111; box-shadow: 0 0 0 1px #111; }
body.kbsneak-profile-login-page .woocommerce .password-input { width: 100%; display: block; }
body.kbsneak-profile-login-page .woocommerce .password-input input.input-text { padding-right: 48px; }
body.kbsneak-profile-login-page .woocommerce .show-password-input { right: 14px; top: 50%; transform: translateY(-50%); }
body.kbsneak-profile-login-page .woocommerce-form-login__rememberme {
  margin: 2px 0 12px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  color: #5d5d5d !important;
  cursor: pointer;
}
body.kbsneak-profile-login-page .woocommerce-form-login__rememberme input {
  position: static !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  opacity: 1 !important;
  appearance: auto !important;
  accent-color: #111;
}
body.kbsneak-profile-login-page .woocommerce .woocommerce-form-login__submit,
body.kbsneak-profile-login-page .woocommerce .woocommerce-form-register__submit {
  width: 100% !important;
  min-height: 52px !important;
  margin: 5px 0 0 !important;
  padding: 0 22px !important;
  float: none !important;
  color: #fff !important;
  background: #111 !important;
  border: 1px solid #111 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-align: center;
  cursor: pointer;
}
body.kbsneak-profile-login-page .woocommerce .woocommerce-form-login__submit:hover,
body.kbsneak-profile-login-page .woocommerce .woocommerce-form-register__submit:hover { background: #2a2a2a !important; }
body.kbsneak-profile-login-page .woocommerce .woocommerce-form-login__submit:active,
body.kbsneak-profile-login-page .woocommerce .woocommerce-form-register__submit:active { transform: translateY(2px) scale(.99); box-shadow: inset 0 4px 9px rgba(255,255,255,.12) !important; }
body.kbsneak-profile-login-page .woocommerce .woocommerce-form-login__submit:focus-visible,
body.kbsneak-profile-login-page .woocommerce .woocommerce-form-register__submit:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
body.kbsneak-profile-login-page .woocommerce-LostPassword,
body.kbsneak-profile-login-page .lost_password { margin: 16px 0 0 !important; text-align: center; }
body.kbsneak-profile-login-page .woocommerce-LostPassword a,
body.kbsneak-profile-login-page .lost_password a { color: #111; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
body.kbsneak-profile-login-page .woocommerce-notices-wrapper,
body.kbsneak-profile-login-page .woocommerce-error,
body.kbsneak-profile-login-page .woocommerce-message,
body.kbsneak-profile-login-page .woocommerce-info { width: min(100%, 498px); margin-right: auto !important; margin-left: auto !important; }

@media (max-width: 680px) {
  body.kbsneak-profile-login-page .woocommerce { min-height: 560px; padding: 24px 16px calc(155px + env(safe-area-inset-bottom, 0px)); }
  body.kbsneak-profile-login-page .kbs-profile-login-intro { margin-bottom: 22px; }
  body.kbsneak-profile-login-page .kbs-profile-login-icon { width: 52px; height: 52px; margin-bottom: 12px; }
  body.kbsneak-profile-login-page .kbs-profile-login-intro h1 { font-size: 30px; }
  body.kbsneak-profile-login-page .kbs-profile-login-intro p { margin-top: 9px; font-size: 14px; }
  body.kbsneak-profile-login-page #customer_login { gap: 14px; }
  body.kbsneak-profile-login-page #customer_login > .u-column1,
  body.kbsneak-profile-login-page #customer_login > .u-column2 { padding: 21px !important; border-radius: 18px; }
  body.kbsneak-profile-login-page #customer_login h2 { margin-bottom: 18px !important; font-size: 23px !important; }
  body.kbsneak-profile-login-page .woocommerce form.login input.input-text,
  body.kbsneak-profile-login-page .woocommerce form.register input.input-text { height: 50px; min-height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .kbs-profile *,
  .kbs-favorite-button { transition-duration: .01ms !important; }
}

/* Pointer taps stay clean; keyboard focus stays visible. */
:is(.kbs-profile,body.kbsneak-profile-login-page) :is(a,button,summary,[tabindex]):not([data-kbs-hero-slider]){-webkit-tap-highlight-color:transparent;touch-action:manipulation}
:is(.kbs-profile,body.kbsneak-profile-login-page) :is(a,button,summary,[tabindex]):not([data-kbs-hero-slider]):focus:not(:focus-visible){outline:none!important;box-shadow:none!important}
:is(.kbs-profile,body.kbsneak-profile-login-page) :is(a,button,summary,[tabindex]):not([data-kbs-hero-slider]):focus-visible{outline:2px solid #111!important;outline-offset:3px}

.kbs-profile-auth-links{display:flex;gap:12px;margin-top:20px}.kbs-profile-auth-links a{padding:10px 18px;border:1px solid #ddd;border-radius:99px;color:#111;font-size:14px;font-weight:600}#kbs-login,#kbs-register{display:block;scroll-margin-top:130px}
