.ka-account-page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 32px 32px 72px;
  color: #222;
}
.ka-account-heading {
  margin-bottom: 26px;
}
.ka-account-heading h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.3;
}
.ka-account-heading p {
  margin: 0;
  color: #666;
  font-size: 15px;
}
.ka-account-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.ka-account-sidebar {
  border: 1px solid #e7e7e7;
  border-radius: 5px;
  background: #fff;
  padding: 20px 14px;
}
.ka-session-summary {
  padding: 0 8px 16px;
  border-bottom: 1px solid #e7e7e7;
}
.ka-session-summary strong {
  font-size: 16px;
}
.ka-session-summary p {
  margin: 7px 0 0;
  color: #666;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.ka-account-page button:disabled,
.checkout-page button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}
.ka-settings-form,
#ka-reset-form {
  max-width: 460px;
  margin-top: 24px;
}
.ka-settings-form h3 {
  font-size: 17px;
  margin: 0 0 20px;
}
.ka-download-list {
  display: grid;
  gap: 16px;
}
.ka-download-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px;
  border: 1px solid #e7e7e7;
  border-radius: 4px;
  align-items: center;
}
.ka-download-card > img {
  width: 96px;
  height: 64px;
  object-fit: contain;
  background: #f5f5f3;
}
.ka-download-card > div {
  min-width: 0;
}
.ka-download-card h3 {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 7px;
}
.ka-download-card p,
.ka-download-card details {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
  margin: 5px 0;
}
.ka-download-card code {
  display: block;
  overflow-wrap: anywhere;
  font-size: 11px;
  padding-top: 7px;
}
@media (max-width: 650px) {
  .ka-download-card {
    grid-template-columns: 65px minmax(0, 1fr);
    padding: 13px 12px;
    gap: 12px;
  }
  .ka-download-card > img,
  .ka-download-card > .ka-order-image-placeholder {
    width: 65px;
    height: 54px;
  }
  .ka-download-card > button {
    grid-column: 1 / -1;
    width: 100%;
  }
}
.ka-account-tabs {
  display: grid;
  gap: 4px;
  padding-top: 14px;
}
.ka-account-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #444;
  padding: 10px 12px;
  text-align: left;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ka-account-tabs button.is-active {
  background: #edf5f0;
  color: #176b50;
  font-weight: 650;
}
.ka-account-tabs button:hover {
  background: #f5f5f3;
}
.ka-account-tabs button span {
  color: #666;
  font-size: 13px;
}
.ka-account-main {
  min-width: 0;
}
.ka-account-content,
.ka-auth-card {
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 5px;
  padding: 26px;
}
.ka-auth-card {
  margin-bottom: 22px;
}
.ka-auth-intro h2,
.ka-content-heading h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.4;
}
.ka-auth-intro p {
  margin: 9px 0 0;
  max-width: 650px;
  color: #666;
  font-size: 14px;
  line-height: 1.75;
}
.ka-auth-modes {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #e7e7e7;
  margin: 18px 0 22px;
}
.ka-auth-modes button {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 11px 2px;
  min-height: 44px;
  background: transparent;
  color: #666;
  font-size: 15px;
}
.ka-auth-modes button.is-active {
  border-bottom-color: #176b50;
  color: #176b50;
  font-weight: 650;
}
#ka-auth-form {
  max-width: 460px;
}
.ka-field {
  margin-bottom: 17px;
}
.ka-field > label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  color: #333;
}
.ka-field input {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid #d9ddd9;
  background: #fff;
  border-radius: 4px;
  padding: 10px 12px;
  color: #222;
  font-size: 16px;
}
.ka-field input[aria-invalid="true"] {
  border-color: #a13b28;
}
.ka-password-input {
  position: relative;
}
.ka-password-input input {
  padding-right: 66px;
}
.ka-password-input button {
  position: absolute;
  right: 1px;
  top: 1px;
  min-height: 42px;
  min-width: 58px;
  border: 0;
  background: transparent;
  color: #176b50;
  font-size: 14px;
}
.ka-field-help {
  color: #666;
  font-size: 13px;
  line-height: 1.6;
  margin: 7px 0 0;
}
.ka-field-error {
  color: #a13b28;
  font-size: 13px;
  line-height: 1.6;
  margin: 6px 0 0;
}
.ka-field-error:empty {
  display: none;
}
.ka-check-field {
  margin-bottom: 15px;
}
.ka-check-field label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #555;
  font-size: 14px;
  line-height: 1.7;
}
.ka-check-field input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  flex: 0 0 18px;
  accent-color: #176b50;
}
.ka-inline-button {
  border: 0;
  background: transparent;
  color: #176b50;
  font-size: 14px;
  padding: 0;
  line-height: inherit;
  text-align: left;
}
.ka-inline-button:hover {
  text-decoration: underline;
}
.ka-primary-button,
.ka-secondary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.ka-primary-button {
  background: #176b50;
  border: 1px solid #176b50;
  color: #fff;
}
.ka-primary-button:hover {
  background: #10503b;
  border-color: #10503b;
}
.ka-secondary-button {
  background: #fff;
  border: 1px solid #d9ddd9;
  color: #176b50;
}
.ka-secondary-button:hover {
  border-color: #176b50;
  background: #f7faf8;
}
.ka-auth-submit {
  width: 100%;
}
.ka-forgot-password {
  display: block;
  min-height: 44px;
  margin-top: 8px;
}
.ka-form-message {
  margin: 10px 0 14px;
  color: #555;
  font-size: 14px;
  line-height: 1.7;
}
.ka-form-message:empty {
  display: none;
}
.ka-session-note {
  border: 1px solid #dbe7de;
  background: #f5f8f5;
  padding: 12px 15px;
  color: #45634e;
  font-size: 14px;
  line-height: 1.7;
  border-radius: 4px;
  margin-bottom: 20px;
}
.ka-content-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.ka-content-heading p {
  margin: 8px 0 0;
  color: #666;
  font-size: 14px;
  line-height: 1.7;
}
.ka-empty-state {
  padding: 34px 20px 30px;
  text-align: center;
}
.ka-empty-icon {
  width: 44px;
  height: 44px;
  background: #f5f5f3;
  border: 1px solid #e7e7e7;
  border-radius: 4px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  color: #718477;
  font-size: 26px;
}
.ka-empty-state h3 {
  font-size: 18px;
  margin: 0 0 11px;
}
.ka-empty-state p {
  color: #666;
  font-size: 15px;
  max-width: 480px;
  margin: 0 auto 22px;
  line-height: 1.8;
}
.ka-empty-state > .ka-inline-button {
  display: block;
  margin: 12px auto 0;
  min-height: 44px;
}
.ka-notice {
  background: #f5f5f3;
  color: #666;
  font-size: 14px;
  line-height: 1.75;
  padding: 12px 15px;
  margin: 0 0 20px;
  border-radius: 4px;
}
.ka-inline-error {
  color: #a13b28;
  font-size: 14px;
  line-height: 1.7;
}
.ka-order-list {
  display: grid;
  gap: 16px;
}
.ka-order-card {
  border: 1px solid #e7e7e7;
  border-radius: 4px;
  overflow: hidden;
}
.ka-order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding: 13px 15px;
  background: #fafaf9;
  border-bottom: 1px solid #e7e7e7;
}
.ka-order-card-head > div {
  min-width: 0;
}
.ka-order-card-head strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.ka-order-card-head > div > span {
  display: block;
  color: #666;
  font-size: 13px;
  margin-top: 5px;
}
.ka-order-status {
  color: #666;
  font-size: 14px;
  flex-shrink: 0;
  padding-top: 2px;
}
.ka-order-status.is-pending {
  color: #98612a;
}
.ka-order-card-body {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
}
.ka-order-card-body > img,
.ka-order-detail-item > img {
  width: 96px;
  height: 64px;
  object-fit: contain;
  background: #f5f5f3;
  border: 1px solid #e7e7e7;
  border-radius: 3px;
}
.ka-order-image-placeholder {
  width: 96px;
  height: 64px;
  display: grid;
  place-items: center;
  background: #f5f5f3;
  border: 1px solid #e7e7e7;
  color: #888;
  font-size: 13px;
}
.ka-order-product-summary {
  min-width: 0;
}
.ka-order-product-summary h3,
.ka-order-detail-item h3 {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 6px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.ka-order-product-summary p,
.ka-order-detail-item p {
  color: #666;
  font-size: 13px;
  line-height: 1.7;
  margin: 3px 0 0;
}
.ka-order-card-end {
  display: grid;
  gap: 9px;
  justify-items: end;
}
.ka-order-card-end > strong {
  font-size: 18px;
}
.ka-order-card-end .ka-secondary-button {
  font-size: 14px;
  padding: 9px 13px;
}
.ka-back-link {
  min-height: 35px;
  margin-bottom: 10px;
}
.ka-order-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 0 0 24px;
}
.ka-order-meta > div {
  min-width: 0;
}
.ka-order-meta dt {
  color: #666;
  font-size: 13px;
  margin-bottom: 6px;
}
.ka-order-meta dd {
  color: #333;
  font-size: 14px;
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.ka-order-detail-items {
  border-top: 1px solid #e7e7e7;
}
.ka-order-detail-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #e7e7e7;
}
.ka-order-detail-item > div {
  min-width: 0;
}
.ka-order-detail-item h3 a:hover {
  color: #176b50;
  text-decoration: underline;
}
.ka-order-total {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 24px;
  margin-top: 20px;
  font-size: 15px;
}
.ka-order-total strong {
  font-size: 24px;
}
.ka-order-availability {
  background: #f5f5f3;
  border-radius: 4px;
  padding: 15px;
  margin-top: 24px;
}
.ka-order-availability strong {
  font-size: 15px;
}
.ka-order-availability p {
  color: #666;
  font-size: 14px;
  line-height: 1.7;
  margin: 7px 0 0;
}
.ka-order-detail-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.ka-order-detail-actions > .ka-inline-button {
  min-height: 44px;
}
.ka-settings-list {
  margin: 0;
}
.ka-settings-list > div {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e7e7e7;
  line-height: 1.7;
  font-size: 14px;
}
.ka-settings-list dt {
  color: #666;
}
.ka-settings-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.ka-setting-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.ka-setting-actions > .ka-inline-button {
  min-height: 44px;
}
.ka-sidebar-session-end {
  min-height: 44px;
  padding: 8px;
  margin-top: 12px;
}
.ka-account-page button:focus-visible,
.ka-account-page a:focus-visible,
.ka-account-page input:focus-visible {
  outline: 2px solid #176b50;
  outline-offset: 3px;
}
@media (max-width: 900px) {
  .ka-account-page {
    padding-left: 24px;
    padding-right: 24px;
  }
  .ka-account-layout {
    grid-template-columns: 165px minmax(0, 1fr);
    gap: 20px;
  }
  .ka-account-content,
  .ka-auth-card {
    padding: 22px;
  }
  .ka-order-card-body {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
  }
  .ka-order-card-body > img,
  .ka-order-card-body > .ka-order-image-placeholder {
    width: 80px;
    height: 58px;
  }
  .ka-order-card-end {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }
}
@media (max-width: 650px) {
  .ka-account-page {
    padding: 24px 14px 52px;
  }
  .ka-account-heading {
    margin-bottom: 19px;
  }
  .ka-account-heading h1 {
    font-size: 25px;
  }
  .ka-account-layout {
    display: block;
  }
  .ka-account-sidebar {
    border: 0;
    padding: 0;
    border-radius: 0;
    margin-bottom: 21px;
    background: transparent;
  }
  .ka-session-summary {
    border: 0;
    padding: 0 2px 12px;
  }
  .ka-session-summary strong {
    font-size: 15px;
  }
  .ka-session-summary p {
    display: inline;
    margin-left: 9px;
    font-size: 13px;
  }
  .ka-account-tabs {
    display: flex;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid #e7e7e7;
  }
  .ka-account-tabs button {
    flex: 1;
    justify-content: center;
    white-space: nowrap;
    padding: 10px 6px;
    border-radius: 0;
    font-size: 14px;
    border-bottom: 2px solid transparent;
  }
  .ka-account-tabs button.is-active {
    color: #176b50;
    border-bottom-color: #176b50;
    background: transparent;
  }
  .ka-account-content,
  .ka-auth-card {
    padding: 20px 16px;
  }
  .ka-auth-intro h2,
  .ka-content-heading h2 {
    font-size: 20px;
  }
  .ka-empty-state {
    padding: 26px 0 20px;
  }
  .ka-empty-state p {
    font-size: 14px;
  }
  .ka-order-card-head {
    padding: 12px;
  }
  .ka-order-card-head strong {
    font-size: 13px;
  }
  .ka-order-card-head > div > span,
  .ka-order-status {
    font-size: 12px;
  }
  .ka-order-card-body {
    padding: 13px 12px;
    grid-template-columns: 65px minmax(0, 1fr);
    gap: 12px;
  }
  .ka-order-card-body > img,
  .ka-order-card-body > .ka-order-image-placeholder {
    width: 65px;
    height: 54px;
  }
  .ka-order-product-summary h3 {
    font-size: 14px;
  }
  .ka-order-card-end {
    grid-column: 1 / -1;
  }
  .ka-order-card-end > strong {
    font-size: 19px;
  }
  .ka-order-detail-item {
    gap: 12px;
    align-items: flex-start;
  }
  .ka-order-detail-item > img,
  .ka-order-detail-item > .ka-order-image-placeholder {
    width: 70px;
    height: 56px;
    flex: 0 0 70px;
  }
  .ka-order-meta {
    gap: 16px;
  }
  .ka-settings-list > div {
    grid-template-columns: 75px minmax(0, 1fr);
    gap: 12px;
  }
  .ka-notice,
  .ka-order-availability {
    padding: 12px;
  }
  .ka-sidebar-session-end {
    margin-top: 5px;
    padding-left: 2px;
  }
}
@media (max-width: 360px) {
  .ka-account-page {
    padding-left: 12px;
    padding-right: 12px;
  }
  .ka-account-content,
  .ka-auth-card {
    padding: 18px 12px;
  }
  .ka-session-summary p {
    display: block;
    margin: 5px 0 0;
  }
  .ka-order-meta {
    grid-template-columns: 1fr;
  }
  .ka-order-detail-actions {
    gap: 12px;
  }
}
.delivery-usage {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.8;
  font-size: 14px;
  color: #555;
  padding: 18px;
  border: 1px solid #e5e9e3;
  border-radius: 4px;
  background: #fafbf9;
  margin: 18px 0;
}
.delivery-usage {
  white-space: normal;
}
.delivery-usage h3 {
  font-size: 17px;
  margin: 20px 0 12px;
}
.delivery-usage h3:first-child {
  margin-top: 0;
}
.delivery-usage p {
  margin: 10px 0;
}
.delivery-usage ul {
  margin: 10px 0;
  padding-left: 22px;
}
.delivery-usage code {
  font-size: 12px;
  background: #eef1eb;
  border-radius: 2px;
  padding: 2px 4px;
  overflow-wrap: anywhere;
}
