* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f3f7f3;
}

body.mc-page {
  min-height: 100vh;
  margin: 0;
  color: #29362f;
  background:
    radial-gradient(circle at 50% -10%, rgba(210, 227, 216, 0.72), transparent 38rem),
    #f3f7f3;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}

.mc-page button,
.mc-page input {
  font: inherit;
}

.mc-shell {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  padding: 28px 0 52px;
}

.mc-brand {
  display: flex;
  justify-content: center;
  padding: 2px 0 22px;
}

.mc-brand a {
  display: inline-flex;
  border-radius: 10px;
}

.mc-brand a:focus-visible,
.mc-page a:focus-visible,
.mc-page button:focus-visible,
.mc-page input:focus-visible {
  outline: 3px solid rgba(44, 95, 79, 0.28);
  outline-offset: 3px;
}

.mc-logo {
  display: block;
  width: 152px;
  height: auto;
}

.mc-card {
  margin: 0 0 20px;
  padding: 28px;
  border: 1px solid #d9e6dd;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 32px rgba(38, 82, 66, 0.07);
}

.mc-card h1,
.mc-card h2,
.mc-dashboard-heading h1 {
  margin: 0;
  color: #2c5f4f;
  font-weight: 600;
  line-height: 1.15;
}

.mc-card h1,
.mc-dashboard-heading h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.mc-card h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.mc-auth-card {
  width: min(100%, 660px);
  margin: 0 auto 24px;
  padding: clamp(26px, 5vw, 44px);
}

.mc-auth-copy {
  max-width: 540px;
  margin: 0 auto 28px;
  text-align: center;
}

.mc-eyebrow {
  margin: 0 0 6px;
  color: #688176;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.mc-lead {
  margin: 14px auto 0;
  color: #536159;
  font-size: 1.06rem;
}

.mc-auth-controls {
  width: min(100%, 400px);
  margin: 0 auto;
}

.mc-google-wrap {
  position: relative;
  width: 100%;
  height: 44px;
  max-height: 44px;
  overflow: hidden;
  contain: layout paint;
}

.mc-google-placeholder,
.mc-google-button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 44px;
  max-height: 44px;
  overflow: hidden;
}

.mc-google-placeholder {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  color: #52605a;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
}

.mc-google-loading-mark {
  width: 15px;
  height: 15px;
  border: 2px solid #d5ddd8;
  border-top-color: #4285f4;
  border-radius: 50%;
  animation: mc-google-loading 0.8s linear infinite;
}

.mc-google-button {
  z-index: 1;
  pointer-events: none;
}

.mc-google-button > div,
.mc-google-button iframe {
  max-width: 100%;
}

.mc-google-wrap.mc-google-ready .mc-google-placeholder {
  visibility: hidden;
  pointer-events: none;
}

.mc-google-wrap.mc-google-ready .mc-google-button {
  pointer-events: auto;
}

@keyframes mc-google-loading {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .mc-google-loading-mark {
    animation: none;
  }
}

.mc-button-passkey {
  width: 100%;
  margin-top: 12px;
  border-color: #b9cec1;
  color: #2c5f4f;
  background: #fff;
}

.mc-button-passkey:hover {
  border-color: #2c5f4f;
  color: #fff;
}

.mc-button-passkey span {
  margin-right: 8px;
  font-size: 1.25rem;
  line-height: 1;
}

.mc-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin: 20px 0;
  color: #7a857f;
  font-size: 0.92rem;
  text-align: center;
}

.mc-divider::before,
.mc-divider::after {
  height: 1px;
  background: #e2e9e4;
  content: "";
}

.mc-form,
.mc-field {
  display: grid;
  gap: 8px;
}

.mc-form {
  gap: 14px;
}

.mc-field label {
  color: #34473e;
  font-weight: 600;
}

.mc-field input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #b8cabf;
  border-radius: 9px;
  color: #24322b;
  background: #fff;
}

.mc-field input:focus {
  border-color: #2c5f4f;
  box-shadow: 0 0 0 3px rgba(44, 95, 79, 0.1);
  outline: none;
}

.mc-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid #2c5f4f;
  border-radius: 9px;
  color: #fff;
  background: #2c5f4f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.mc-button:hover {
  border-color: #234b3f;
  background: #234b3f;
}

.mc-button:active {
  transform: translateY(1px);
}

.mc-button-secondary {
  color: #2c5f4f;
  background: #fff;
}

.mc-button-secondary:hover {
  color: #fff;
}

.mc-button-compact {
  min-height: 44px;
  margin-top: 18px;
}

.mc-button-small {
  min-height: 40px;
  padding: 9px 15px;
  white-space: nowrap;
}

.mc-security-note,
.mc-field-note {
  margin: 18px 0 0;
  color: #738078;
  font-size: 0.85rem;
  line-height: 1.55;
}

.mc-pin-panel {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid #d5e7df;
  border-radius: 12px;
  background: #f2f8f4;
}

.mc-pin-panel h2 {
  margin: 0;
  color: #2c5f4f;
  font-size: 1.2rem;
}

.mc-pin-panel > p {
  margin: 7px 0 16px;
  color: #637169;
  font-size: 0.9rem;
}

.mc-pin-input {
  text-align: center;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 1.35rem !important;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.mc-pin-cancel-form {
  margin-top: 12px;
  text-align: center;
}

.mc-field-note:empty {
  display: none;
}

.mc-dashboard-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 4px 2px 24px;
}

.mc-text-button {
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: #2c5f4f;
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.mc-section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.mc-inline-link {
  flex: 0 0 auto;
  margin-top: 7px;
  color: #2c5f4f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-underline-offset: 3px;
}

.mc-rewards-summary {
  display: grid;
  grid-template-columns: minmax(210px, 1.4fr) repeat(2, minmax(130px, 0.8fr));
  gap: 12px;
}

.mc-balance,
.mc-reward-stat {
  display: flex;
  min-height: 106px;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  border: 1px solid #dfe9e2;
  border-radius: 14px;
  background: #f6faf7;
}

.mc-balance {
  border-color: #cfe0d5;
  background: #edf5ef;
}

.mc-balance strong {
  color: #2c5f4f;
  font-size: clamp(2rem, 5vw, 2.85rem);
  line-height: 1;
}

.mc-balance span,
.mc-reward-stat span {
  margin-top: 7px;
  color: #6d7c74;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
}

.mc-reward-stat strong {
  order: -1;
  color: #2c5f4f;
  font-size: 1.6rem;
}

.mc-card-note {
  max-width: 680px;
  margin: 17px 0 0;
  color: #637169;
  font-size: 0.94rem;
}

.mc-notice {
  margin: 0 0 20px;
  padding: 13px 15px;
  border: 1px solid;
  border-radius: 10px;
  font-size: 0.93rem;
}

.mc-notice-success {
  border-color: #c8e1d0;
  color: #24523e;
  background: #eaf5ed;
}

.mc-notice-error {
  border-color: #efc8cc;
  color: #842029;
  background: #fcedee;
}

.mc-history-note {
  margin: 20px 0 0;
}

.mc-security-intro {
  margin-top: 0;
}

.mc-passkey-empty {
  margin-top: 18px;
}

.mc-passkey-list {
  margin-top: 18px;
  border-top: 1px solid #e2eae5;
}

.mc-passkey-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 2px;
  border-bottom: 1px solid #e2eae5;
}

.mc-passkey-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #2c5f4f;
  background: #edf5ef;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.mc-passkey-row > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.mc-passkey-row small {
  color: #78837d;
}

.mc-text-button-danger {
  color: #8a3f46;
}

.mc-tabs {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 22px;
  padding: 5px;
  border: 1px solid #dfe8e2;
  border-radius: 12px;
  background: #f4f7f5;
}

.mc-tabs-enhanced .mc-tabs {
  display: grid;
}

.mc-tab {
  min-width: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  color: #5b6a62;
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.mc-tab span {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  margin-left: 7px;
  border-radius: 999px;
  color: #64736b;
  background: #e1e9e4;
  font-size: 0.73rem;
}

.mc-tab.is-active {
  color: #fff;
  background: #2c5f4f;
  box-shadow: 0 2px 6px rgba(44, 95, 79, 0.18);
}

.mc-tab.is-active span {
  color: #2c5f4f;
  background: #fff;
}

.mc-tabs-enhanced .mc-tab-panel[hidden] {
  display: none;
}

.mc-tab-panel + .mc-tab-panel {
  margin-top: 28px;
}

.mc-tab-panel-heading {
  margin: 0 0 12px;
  color: #2c5f4f;
  font-size: 1.12rem;
}

.mc-tabs-enhanced .mc-tab-panel + .mc-tab-panel {
  margin-top: 0;
}

.mc-tabs-enhanced .mc-tab-panel-heading {
  display: none;
}

.mc-appointment-list {
  display: grid;
  gap: 12px;
}

.mc-appointment {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 17px;
  border: 1px solid #e0e9e3;
  border-radius: 13px;
  background: #fff;
}

.mc-appointment-date {
  display: flex;
  width: 58px;
  height: 62px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #2c5f4f;
  background: #edf5ef;
  line-height: 1;
}

.mc-appointment-date span {
  margin-bottom: 5px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.mc-appointment-date strong {
  font-size: 1.45rem;
}

.mc-appointment-details {
  min-width: 0;
}

.mc-appointment-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.mc-appointment h3 {
  margin: 0;
  overflow-wrap: anywhere;
  color: #2c5f4f;
  font-size: 1.08rem;
  line-height: 1.3;
}

.mc-appointment-when {
  margin: 4px 0 0;
  color: #46574e;
  font-size: 0.94rem;
}

.mc-appointment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 7px;
  color: #78837d;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.77rem;
}

.mc-status {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
}

.mc-status-upcoming {
  color: #23573f;
  background: #dcefe2;
}

.mc-status-previous {
  color: #59665f;
  background: #ebefec;
}

.mc-status-cancelled {
  color: #7b4248;
  background: #f7e6e8;
}

.mc-manage-form {
  margin: 0;
}

.mc-empty-state {
  padding: 28px 18px;
  border: 1px dashed #cfdcd3;
  border-radius: 12px;
  color: #5f6d65;
  background: #fafcfb;
  text-align: center;
}

.mc-empty-state strong {
  color: #3c5046;
}

.mc-empty-state p {
  margin: 5px 0 0;
  font-size: 0.9rem;
}

.mc-activity-list {
  border-top: 1px solid #e5ece7;
}

.mc-activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 2px;
  border-bottom: 1px solid #e5ece7;
}

.mc-activity-row > span {
  display: grid;
  gap: 2px;
}

.mc-activity-row small {
  color: #78837d;
}

.mc-positive {
  color: #18724e;
}

.mc-negative {
  color: #842029;
}

.mc-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  padding: 16px 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
}

.mc-footer a {
  color: #65756c;
  text-underline-offset: 3px;
}

@media (max-width: 700px) {
  .mc-shell {
    width: min(100% - 24px, 920px);
    padding-top: 18px;
  }

  .mc-brand {
    padding-bottom: 16px;
  }

  .mc-logo {
    width: 128px;
  }

  .mc-card {
    padding: 21px;
    border-radius: 15px;
  }

  .mc-rewards-summary {
    grid-template-columns: 1fr 1fr;
  }

  .mc-balance {
    grid-column: 1 / -1;
  }

  .mc-appointment {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 13px;
    padding: 14px;
  }

  .mc-appointment-date {
    width: 50px;
    height: 57px;
  }

  .mc-manage-form {
    grid-column: 2;
  }

  .mc-passkey-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .mc-passkey-row form {
    grid-column: 2;
  }
}

@media (max-width: 480px) {
  .mc-shell {
    width: min(100% - 16px, 920px);
  }

  .mc-auth-card {
    padding: 24px 18px;
  }

  .mc-dashboard-heading,
  .mc-section-heading {
    align-items: start;
  }

  .mc-section-heading {
    display: grid;
    gap: 5px;
  }

  .mc-inline-link {
    margin-top: 0;
  }

  .mc-tabs {
    gap: 3px;
    padding: 4px;
  }

  .mc-tab {
    padding: 9px 5px;
    font-size: 0.78rem;
  }

  .mc-tab span {
    min-width: 19px;
    height: 19px;
    margin-left: 3px;
    font-size: 0.65rem;
  }

  .mc-reward-stat {
    min-height: 92px;
    padding: 14px;
  }

  .mc-reward-stat strong {
    font-size: 1.35rem;
  }

  .mc-appointment-title-row {
    display: block;
  }

  .mc-status {
    margin-top: 6px;
  }

  .mc-manage-form,
  .mc-manage-form .mc-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mc-button {
    transition: none;
  }
}
