/* OKKwork — боковая панель «Возможности тарифа» */

:root {
  --okkwork-tariff-features-slide-ms: var(--okkwork-profile-slide-ms, 0.4s);
  --okkwork-tariff-features-slide-ease: var(--okkwork-profile-slide-ease, ease-in-out);
}

#okkwork-tariff-features-panel,
#okkwork-tariff-features-panel .okkwork-tariff-features-panel__scroll {
  font-family: "Rubik", "Rubik-Medium", "Rubik-Light", system-ui, sans-serif;
  color: rgba(81, 95, 108, 1);
  -webkit-font-smoothing: antialiased;
}

#okkwork-tariff-features-panel {
  display: none !important;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.okkwork-tariff-features-from-balance.okkwork-balance-page-open #okkwork-balance-page.is-open {
  z-index: 101570 !important;
}

body.okkwork-tariff-features-from-balance #okkwork-tariff-features-panel.is-open {
  z-index: 101575 !important;
}

#okkwork-tariff-features-panel.is-open {
  display: flex !important;
  flex-direction: column !important;
  position: fixed !important;
  z-index: 101575 !important;
  top: 0 !important;
  left: auto !important;
  right: 0 !important;
  bottom: 0 !important;
  width: var(
    --okkwork-profile-panel-width,
    min(var(--okkwork-profile-panel-max-width, 920px), 100vw)
  ) !important;
  min-width: 0 !important;
  max-width: min(var(--okkwork-profile-panel-max-width, 920px), 100vw) !important;
  height: 100% !important;
  height: 100dvh !important;
  margin: 0 !important;
  background: #f8fafc !important;
  border-left: 1px solid rgba(6, 88, 162, 0.16) !important;
  box-shadow: -8px 0 28px rgba(15, 23, 42, 0.12) !important;
  overflow: hidden !important;
  visibility: visible !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(100%) !important;
  transform-origin: right center;
  transition: transform var(--okkwork-tariff-features-slide-ms) var(--okkwork-tariff-features-slide-ease) !important;
  will-change: transform;
}

#okkwork-tariff-features-panel.is-open.is-profile-entering,
#okkwork-tariff-features-panel.is-open.is-slide-open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

#okkwork-tariff-features-panel.is-open.is-slide-open,
body.okkwork-tariff-features-panel-open #okkwork-tariff-features-panel.is-open.is-slide-open {
  transform: translateX(0) !important;
}

#okkwork-tariff-features-panel.is-open.is-profile-leaving {
  opacity: 1 !important;
  pointer-events: none !important;
  transform: translateX(100%) !important;
}

body.okkwork-tariff-features-from-balance.okkwork-page-stack-active
  #okkwork-tariff-features-panel.is-open.is-okkwork-page-top {
  top: var(--okkwork-balance-header-offset, 71px) !important;
  bottom: 0 !important;
  height: auto !important;
  right: 0 !important;
  left: auto !important;
  width: var(--okkwork-balance-split-half, 50vw) !important;
  max-width: var(--okkwork-balance-split-half, 50vw) !important;
  min-width: 0 !important;
  z-index: 101575 !important;
  box-shadow: -8px 0 28px rgba(15, 23, 42, 0.12) !important;
  transition:
    transform var(--okkwork-tariff-features-slide-ms) var(--okkwork-tariff-features-slide-ease),
    width var(--okkwork-tariff-features-slide-ms) var(--okkwork-tariff-features-slide-ease) !important;
}

.okkwork-tariff-features-panel__close {
  position: absolute;
  top: 12px;
  right: 17px;
  z-index: 6;
}

#okkwork-tariff-features-panel.is-open .okkwork-tariff-features-panel__close .profile-panel__close-ico {
  transform: rotate(90deg);
}

.okkwork-tariff-features-panel__scroll {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.okkwork-tariff-features-panel__header {
  flex-shrink: 0;
  padding: 16px 52px 12px 24px;
  border-bottom: 1px solid rgba(6, 88, 162, 0.1);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 4;
}

.okkwork-tariff-features-panel__title {
  margin: 0;
  font-family: "Rubik-Bold", "Rubik", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: rgba(6, 88, 162, 1);
}

.okkwork-tariff-features-panel__lead {
  margin: 6px 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(81, 95, 108, 0.82);
}

.okkwork-tariff-features-panel__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.okkwork-tariff-features-panel__nav-btn {
  border: 1px solid rgba(6, 88, 162, 0.18);
  border-radius: 999px;
  padding: 5px 12px;
  background: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  color: rgba(6, 88, 162, 0.9);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.okkwork-tariff-features-panel__nav-btn:hover,
.okkwork-tariff-features-panel__nav-btn.is-active {
  background: rgba(6, 88, 162, 0.1);
  border-color: rgba(6, 88, 162, 0.35);
}

.okkwork-tariff-features-panel__content {
  padding: 18px 20px 32px;
}

.okkwork-tariff-features-panel__plan {
  margin-bottom: 20px;
  scroll-margin-top: 140px;
}

.okkwork-tariff-features-panel__plan-card {
  border-radius: 14px;
  border: 1px solid rgba(6, 88, 162, 0.14);
  background: #fff;
  box-shadow: 0 8px 24px rgba(6, 40, 72, 0.06);
  overflow: hidden;
}

.okkwork-tariff-features-panel__plan.is-current .okkwork-tariff-features-panel__plan-card {
  border-color: rgba(6, 88, 162, 0.38);
  box-shadow: 0 10px 28px rgba(6, 88, 162, 0.12);
}

.okkwork-tariff-features-panel__plan-head {
  padding: 14px 16px 12px;
  background: linear-gradient(135deg, rgba(6, 88, 162, 0.08) 0%, rgba(120, 175, 236, 0.12) 100%);
}

.okkwork-tariff-features-panel__plan.is-popular .okkwork-tariff-features-panel__plan-head {
  background: linear-gradient(135deg, rgba(46, 185, 122, 0.14) 0%, rgba(6, 88, 162, 0.1) 100%);
}

.okkwork-tariff-features-panel__plan-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.okkwork-tariff-features-panel__plan-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: rgba(6, 88, 162, 1);
}

.okkwork-tariff-features-panel__plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(46, 185, 122, 0.18);
  font-size: 10px;
  font-weight: 600;
  color: #1f8f5c;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.okkwork-tariff-features-panel__plan-current {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(6, 88, 162, 0.12);
  font-size: 10px;
  font-weight: 600;
  color: rgba(6, 88, 162, 1);
}

.okkwork-tariff-features-panel__plan-price {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 700;
  color: rgba(55, 65, 81, 1);
}

.okkwork-tariff-features-panel__plan-meta {
  margin: 2px 0 0;
  font-size: 11px;
  color: rgba(81, 95, 108, 0.75);
}

.okkwork-tariff-features-panel__limits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(6, 88, 162, 0.08);
}

.okkwork-tariff-features-panel__limit {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(6, 88, 162, 0.04);
  font-size: 11px;
  line-height: 1.35;
  color: rgba(81, 95, 108, 1);
}

.okkwork-tariff-features-panel__limit strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  color: rgba(6, 88, 162, 1);
}

.okkwork-tariff-features-panel__features {
  padding: 12px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.okkwork-tariff-features-panel__feature {
  border-radius: 12px;
  border: 1px solid rgba(81, 95, 108, 0.12);
  padding: 12px 12px 10px;
  background: #fafbfd;
}

.okkwork-tariff-features-panel__feature.is-off {
  opacity: 0.72;
  background: #f4f6f8;
}

.okkwork-tariff-features-panel__feature-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.okkwork-tariff-features-panel__feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #e05252;
}

.okkwork-tariff-features-panel__feature.is-on .okkwork-tariff-features-panel__feature-dot {
  background: #2eb97a;
}

.okkwork-tariff-features-panel__feature-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(55, 65, 81, 1);
}

.okkwork-tariff-features-panel__feature-summary {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(81, 95, 108, 0.92);
}

.okkwork-tariff-features-panel__feature-box {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(6, 88, 162, 0.05);
  border-left: 3px solid rgba(6, 88, 162, 0.35);
}

.okkwork-tariff-features-panel__feature-box strong {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(6, 88, 162, 0.85);
}

.okkwork-tariff-features-panel__feature-box p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(81, 95, 108, 1);
}

.okkwork-tariff-features-panel__feature-off {
  margin: 0;
  font-size: 11px;
  font-style: italic;
  color: rgba(81, 95, 108, 0.65);
}

@media (max-width: 640px) {
  .okkwork-tariff-features-panel__limits {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  #okkwork-tariff-features-panel.is-open {
    transition: none !important;
  }

  #okkwork-tariff-features-panel.is-open.is-profile-entering,
  #okkwork-tariff-features-panel.is-open.is-slide-open {
    opacity: 1 !important;
    transform: translateX(0) !important;
  }
}
