
.smcc-root,
.smcc-root * {
  box-sizing: border-box;
}

.smcc-root {
  --smcc-primary: #20c997;
  --smcc-primary-dark: #0fa87f;
  --smcc-accent: #b5ffe6;
  --smcc-text: #14212b;
  --smcc-muted: #5c6975;
  --smcc-border: rgba(18, 34, 44, .08);
  --smcc-soft: #f6fffb;
  font-family: inherit;
  position: fixed;
  z-index: 99999;
  pointer-events: none;
}

.smcc-position-bottom-right {
  right: 24px;
  bottom: 24px;
}

.smcc-position-bottom-left {
  left: 24px;
  bottom: 24px;
}

.smcc-position-bottom-full {
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  padding: 18px;
}

.smcc-card,
.smcc-panel,
.smcc-reopen {
  pointer-events: auto;
}

.smcc-card {
  position: relative;
  overflow: hidden;
  width: min(470px, calc(100vw - 32px));
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,255,252,.98) 100%);
  color: var(--smcc-text);
  border: 1px solid var(--smcc-border);
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(13, 24, 33, .18), 0 3px 12px rgba(32, 201, 151, .10);
  padding: 26px;
  animation: smcc-slide-up .24s ease-out;
  backdrop-filter: blur(8px);
}

.smcc-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, #20c997 0%, #57e3b8 50%, #1cc3ff 100%);
}

.smcc-card-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  right: -44px;
  top: -58px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 201, 151, .22) 0%, rgba(32, 201, 151, 0) 72%);
  pointer-events: none;
}

.smcc-position-bottom-full .smcc-card {
  width: min(1080px, calc(100vw - 36px));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 22px;
  align-items: center;
}

.smcc-position-bottom-full .smcc-card .smcc-actions {
  grid-row: 1 / span 6;
  grid-column: 2;
  justify-content: flex-end;
  align-self: center;
}

.smcc-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--smcc-primary-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.smcc-mark::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--smcc-primary), #59e1ba);
  box-shadow: 0 0 0 6px rgba(32, 201, 151, .14);
}

.smcc-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(32,201,151,.13), rgba(32,201,151,.05));
  border: 1px solid rgba(32,201,151,.14);
  color: var(--smcc-primary-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
}

.smcc-card h2,
.smcc-panel h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 900;
  color: var(--smcc-text);
}

.smcc-card p,
.smcc-choice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--smcc-muted);
}

.smcc-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.smcc-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(32, 201, 151, .12);
  box-shadow: 0 8px 22px rgba(14, 24, 31, .05);
  color: #24404d;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
}

.smcc-policy {
  display: inline-block;
  margin-top: 14px;
  color: var(--smcc-primary-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.smcc-policy:hover {
  text-decoration: underline;
}

.smcc-actions,
.smcc-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.smcc-btn {
  position: relative;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
}

.smcc-btn:hover {
  transform: translateY(-1px) scale(1.01);
}

.smcc-btn:active {
  transform: translateY(0) scale(.99);
}

.smcc-btn-primary {
  background: linear-gradient(135deg, var(--smcc-primary) 0%, #32d6a8 60%, #1fe0bb 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(32, 201, 151, .30), inset 0 1px 0 rgba(255,255,255,.25);
}

.smcc-btn-primary:hover {
  box-shadow: 0 18px 34px rgba(32, 201, 151, .34), inset 0 1px 0 rgba(255,255,255,.25);
}

.smcc-btn-secondary {
  background: #eefcf7;
  color: #183038;
  border: 1px solid rgba(32, 201, 151, .15);
}

.smcc-btn-ghost {
  background: transparent;
  color: #53626d;
  padding-left: 4px;
  padding-right: 4px;
}

.smcc-panel {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 18, 26, .42);
  backdrop-filter: blur(8px);
  animation: smcc-fade .18s ease-out;
}

.smcc-panel-inner {
  width: min(660px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  background: linear-gradient(180deg, #ffffff 0%, #f9fffc 100%);
  color: var(--smcc-text);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(10, 18, 25, .28);
  padding: 26px;
  border: 1px solid rgba(255,255,255,.7);
}

.smcc-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.smcc-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #f3faf7;
  color: #20353f;
  cursor: pointer;
  font-size: 24px;
  line-height: 40px;
  box-shadow: inset 0 0 0 1px rgba(32, 201, 151, .10);
}

.smcc-choice {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--smcc-border);
}

.smcc-choice h3 {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 900;
  color: var(--smcc-text);
}

.smcc-choice-locked {
  opacity: .94;
}

.smcc-switch {
  position: relative;
  display: inline-flex;
  width: 54px;
  height: 32px;
}

.smcc-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.smcc-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d8e4e1;
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease;
}

.smcc-switch span::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .18);
  transition: transform .18s ease;
}

.smcc-switch input:checked + span {
  background: linear-gradient(135deg, var(--smcc-primary) 0%, #32d6a8 100%);
  box-shadow: 0 0 0 4px rgba(32,201,151,.14);
}

.smcc-switch input:checked + span::before {
  transform: translateX(22px);
}

.smcc-switch input:disabled + span {
  cursor: not-allowed;
  opacity: .95;
}

.smcc-reopen {
  display: none !important;
}

@keyframes smcc-slide-up {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes smcc-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 640px) {
  .smcc-position-bottom-right,
  .smcc-position-bottom-left {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .smcc-card {
    width: 100%;
    padding: 20px;
    border-radius: 20px;
  }

  .smcc-position-bottom-full {
    padding: 12px;
  }

  .smcc-position-bottom-full .smcc-card {
    display: block;
    width: 100%;
  }

  .smcc-benefits {
    gap: 6px;
  }

  .smcc-actions,
  .smcc-panel-actions {
    flex-direction: column;
  }

  .smcc-btn {
    width: 100%;
    justify-content: center;
  }

  .smcc-panel {
    padding: 12px;
  }

  .smcc-panel-inner {
    padding: 20px;
    border-radius: 18px;
  }

  .smcc-choice {
    grid-template-columns: 1fr;
  }
}
