.screen-home .proxy-status-card,
.screen-home .hero-topup,
.screen-home .quick-actions button {
  touch-action: manipulation;
}

.screen-home .quick-actions {
  margin: 3px 0 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.screen-home .quick-actions.quick-actions-services,
.screen-home .quick-actions.quick-actions-stores {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  grid-template-columns: none !important;
  gap: 0 !important;
}

.screen-home .home-quick-shelves {
  margin: 8px 0 0 !important;
  padding: 0 10px !important;
}

.screen-home .quick-shelf-title {
  margin: 0 !important;
  padding: 10px 0 8px !important;
  width: 100% !important;
  flex: 0 0 auto !important;
  color: #151515 !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  letter-spacing: -.01em !important;
}

.screen-home .quick-actions-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 0 12px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}

.screen-home .quick-actions-track::-webkit-scrollbar {
  display: none;
}

.screen-home .quick-actions-track::after {
  content: "";
  flex: 0 0 8px;
}

.screen-home .quick-actions .shelf-heading {
  display: none !important;
}

.screen-home .quick-actions button,
.screen-home .quick-actions button:first-of-type {
  position: relative !important;
  flex: 0 0 148px !important;
  width: 148px !important;
  min-height: 76px !important;
  grid-template-columns: 38px minmax(0, 1fr) !important;
  gap: 10px !important;
  padding: 12px !important;
  overflow: hidden !important;
  border: 1px solid #eeeeef !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(25, 30, 38, .045) !important;
  flex-shrink: 0 !important;
}

.screen-home .quick-actions button + button {
  border-left: 1px solid #eeeeef !important;
}

.screen-home .quick-actions .promo-duck {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  z-index: 1 !important;
  display: grid !important;
  width: 24px !important;
  height: 24px !important;
  place-items: center !important;
  overflow: hidden !important;
  padding: 2px !important;
  border: 1px solid rgba(255, 79, 94, .1) !important;
  border-radius: 9px !important;
  background: rgba(255, 240, 241, .86) !important;
  opacity: .95 !important;
  pointer-events: none !important;
}

.screen-home .quick-actions .promo-duck img,
.screen-home .quick-actions .promo-duck svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.screen-home .quick-actions button > span:not(.promo-duck):not(.store-quick-logo),
.screen-home .quick-actions .promo-duck + span,
.screen-home .quick-actions button:first-of-type .promo-duck + span {
  display: grid !important;
  width: 38px !important;
  height: 38px !important;
  place-items: center !important;
  border: 1px solid #cde9ff !important;
  border-radius: 14px !important;
  background: #e8f5ff !important;
  color: var(--blue) !important;
}

.screen-home .quick-actions #mailQuickBtn > span {
  border-color: #c9f2df !important;
  background: #edfff5 !important;
  color: #15b76b !important;
}

.screen-home .quick-actions #ymQuickBtn > span {
  border-color: #ead8ff !important;
  background: #f7f0ff !important;
  color: #8e44f2 !important;
}

.screen-home .quick-actions strong {
  position: relative !important;
  z-index: 2 !important;
  min-width: 0 !important;
  padding-right: 8px !important;
  color: #151515 !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  white-space: normal !important;
}

.screen-home .quick-actions strong small {
  display: block !important;
  overflow: hidden !important;
  max-width: 76px !important;
  color: #989ba1 !important;
  font-size: 8px !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.screen-home .quick-actions button:hover,
.screen-home .quick-actions button:focus-visible {
  background: #fffafa !important;
  transform: none;
}

.screen-home .quick-actions #mailQuickBtn::after,
.screen-home .quick-actions #simQuickBtn::after {
  content: "NEW";
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .04em;
}

.screen-home .quick-actions-stores .store-quick-logo {
  display: grid !important;
  width: 38px !important;
  height: 38px !important;
  place-items: center !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.screen-home .quick-actions-stores .store-quick-logo svg,
.screen-home .quick-actions-stores .store-quick-logo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.screen-home .quick-actions-stores .store-quick-logo-5ka {
  box-shadow: 0 8px 18px rgba(228, 0, 43, .18) !important;
}

.screen-home .quick-actions-stores #store5kaQuickBtn::after {
  content: "NEW";
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  padding: 3px 6px;
  border-radius: 999px;
  background: #e4002b;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .04em;
}

.screen-mailboxes {
  min-height: calc(100dvh - 64px) !important;
  padding: 18px 20px 42px !important;
  background: #fff !important;
  color: #111 !important;
}

.tg-chrome[data-view="mailboxes"] {
  background: #fff !important;
}

.tg-chrome[data-view="simcards"] {
  background: #fff !important;
}

.tg-chrome[data-view="mailboxes"] .back-action,
.tg-chrome[data-view="mailboxes"] .chrome-title strong,
.tg-chrome[data-view="simcards"] .back-action,
.tg-chrome[data-view="simcards"] .chrome-title strong {
  color: #111 !important;
}

.mail-overview {
  padding: 0 0 12px !important;
  border: 0 !important;
  border-bottom: 1px solid #eeeeef !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.mail-overview h1 {
  color: #111 !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  letter-spacing: -1.2px !important;
  margin: 0 !important;
}

.mail-summary,
.mailboxes-list {
  overflow: hidden !important;
  border: 1px solid #eeeeef !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 10px 28px rgba(25, 30, 38, .05) !important;
}

.screen-mailboxes .list-pagination {
  margin-top: 12px !important;
}

.screen-mailboxes .list-pagination button {
  background: #fff !important;
  color: #111 !important;
  box-shadow: 0 8px 20px rgba(20, 24, 32, .04) !important;
}

.screen-mailboxes .list-pagination button:disabled {
  background: #f1f2f4 !important;
  color: #b2b6bd !important;
  opacity: 1 !important;
}

.screen-mailboxes .list-pagination span {
  color: #8f949d !important;
  font-weight: 850 !important;
}

.mail-summary {
  margin-top: 14px !important;
}

.mail-summary span {
  min-height: 52px !important;
  padding: 0 14px !important;
  border-bottom: 1px solid #eeeeef !important;
}

.mail-summary small {
  color: #9297a0 !important;
  font-size: 9px !important;
  font-weight: 850 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mail-summary strong {
  color: #111 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

.screen-mailboxes .topup-field {
  height: 52px !important;
  padding: 6px 12px !important;
  border: 1px solid #eeeeef !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 8px 20px rgba(20, 24, 32, .03) !important;
}

.screen-stores #storesStepAddress {
  padding-inline: 10px;
}

.screen-stores #storesStepAddress .mail-overview {
  padding: 0 0 14px !important;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #eeeeef !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.screen-stores #storesStepAddress .mail-overview p {
  max-width: none !important;
  margin-top: 6px !important;
}

.screen-stores #storesAddressForm {
  padding-inline: 0 !important;
  display: grid;
  gap: 10px;
}

.screen-stores #storesAddressForm .topup-field {
  display: grid !important;
  align-content: center !important;
  gap: 4px !important;
  min-height: 58px !important;
  height: auto !important;
  padding: 10px 14px !important;
  border: 1px solid #eeeeef !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.screen-stores #storesAddressForm .topup-field span {
  margin: 0 !important;
  color: #9297a0 !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
}

.screen-stores #storesAddressForm .topup-field input {
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  box-shadow: none !important;
}

.screen-stores #storesAddressForm .topup-submit {
  margin-top: 2px !important;
}

.screen-stores #storesAddressForm .topup-field,
.screen-stores #storesAddressForm .topup-submit,
.screen-stores #storesAddressForm .stores-address-hint,
.screen-stores #storesAddressForm .stores-suggestions,
.screen-stores #storesAddressForm .stores-store-list,
.screen-stores #storesAddressForm .stores-city-progress {
  max-width: 100% !important;
}

.screen-stores #storesAddressQuery {
  padding-right: 28px !important;
  text-overflow: ellipsis;
}

.screen-stores .stores-address-input-row {
  display: block;
}

.screen-stores .stores-address-input-row .topup-field {
  min-width: 0;
}

.screen-stores .stores-map-wrapper {
  overflow: hidden;
  width: 100%;
  height: 260px;
  border: 1px solid #eeeeef;
  border-radius: 18px;
  background: #f4f5f6;
}

.screen-stores .stores-leaflet-map {
  width: 100%;
  height: 100%;
}

.screen-stores .stores-leaflet-map .leaflet-control-zoom {
  border: 1px solid #eeeeef;
  box-shadow: 0 8px 18px rgba(20, 24, 32, .08);
}

.screen-stores .stores-leaflet-map .leaflet-control-zoom a {
  color: #111318;
}

.screen-stores .map-marker-user {
  position: relative;
  width: 24px;
  height: 24px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #ff2f6d;
  box-shadow: 0 6px 18px rgba(255, 47, 109, .28);
}

.screen-stores .map-marker-user .marker-pulse {
  position: absolute;
  inset: -7px;
  border: 2px solid rgba(255, 47, 109, .26);
  border-radius: 50%;
}

.screen-stores .map-marker-store {
  display: grid;
  place-items: center;
  filter: drop-shadow(0 8px 12px rgba(20, 24, 32, .18));
}

.screen-stores .map-marker-store.is-selected {
  transform: scale(1.08);
}

.screen-mailboxes .topup-field span {
  color: #9297a0 !important;
  font-size: 9px !important;
  font-weight: 850 !important;
}

.screen-mailboxes .topup-field input {
  color: #111 !important;
  font-size: 16px !important;
  font-weight: 850 !important;
}

.screen-mailboxes .topup-submit {
  min-height: 52px !important;
  margin-top: 0 !important;
  border-radius: 16px !important;
  background: var(--accent) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  box-shadow: 0 10px 24px rgba(255, 79, 94, .18) !important;
}

.screen-mailboxes .topup-submit:disabled {
  border: 0 !important;
  background: #eff1f4 !important;
  color: #a6abb3 !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

.screen-simcards .mail-form {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  margin-top: 16px !important;
}

.sim-picker {
  position: relative !important;
}

.sim-picker.full {
  grid-column: 1 / -1 !important;
}

.sim-picker-trigger {
  width: 100% !important;
  min-height: 64px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 10px 16px !important;
  border: 1px solid #eeeeef !important;
  border-radius: 20px !important;
  background: #fff !important;
  color: #111 !important;
  text-align: left !important;
  box-shadow: 0 10px 26px rgba(20, 24, 32, .04) !important;
}

.sim-picker-trigger > span:not(.sim-picker-icon) {
  min-width: 0 !important;
  display: grid !important;
  gap: 3px !important;
}

.sim-picker-icon {
  width: 36px !important;
  height: 36px !important;
  flex: 0 0 36px !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  border: 1px solid #eef0f3 !important;
  border-radius: 12px !important;
  background: #f7f8fa !important;
  color: #111 !important;
  font-size: 16px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  user-select: none !important;
}

.sim-picker-icon img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
}

.sim-picker-icon[data-icon-type="flag"] {
  padding: 3px !important;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
  font-size: 20px !important;
}

.sim-picker-icon[data-icon-type="flag"] img {
  object-fit: contain !important;
}

.sim-picker-trigger small {
  color: #9297a0 !important;
  font-size: 10px !important;
  font-weight: 850 !important;
}

.sim-picker-trigger strong {
  overflow: hidden !important;
  color: #111 !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.sim-picker-trigger b {
  color: #8f949d !important;
  font-size: 10px !important;
  font-weight: 800 !important;
}

.sim-picker-trigger svg {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 auto !important;
  fill: none !important;
  stroke: #9aa0aa !important;
  stroke-width: 2.4 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.sim-picker-trigger[aria-expanded="true"] {
  border-color: #d9dce2 !important;
  box-shadow: 0 14px 34px rgba(20, 24, 32, .08) !important;
}

.sim-picker-trigger:disabled {
  background: #f4f5f7 !important;
  color: #a6abb3 !important;
  box-shadow: none !important;
  cursor: default !important;
  opacity: 1 !important;
}

.sim-picker-trigger:disabled strong,
.sim-picker-trigger:disabled b,
.sim-picker-trigger:disabled small {
  color: #a6abb3 !important;
}

.sim-picker-trigger:disabled .sim-picker-icon {
  opacity: .72 !important;
}

.sim-picker-panel {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: calc(100% + 8px) !important;
  z-index: 40 !important;
  overflow: hidden !important;
  padding: 10px !important;
  border: 1px solid #e7e9ee !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 22px 44px rgba(20, 24, 32, .14) !important;
}

.sim-picker-panel input {
  width: 100% !important;
  height: 42px !important;
  padding: 0 12px !important;
  border: 1px solid #eeeeef !important;
  border-radius: 14px !important;
  background: #f7f8fa !important;
  color: #111 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  outline: none !important;
}

.sim-picker-list {
  max-height: 236px !important;
  margin-top: 8px !important;
  overflow-y: auto !important;
}

.sim-picker-option {
  width: 100% !important;
  min-height: 54px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 9px 10px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: transparent !important;
  color: #111 !important;
  text-align: left !important;
  user-select: none !important;
}

.sim-picker-option[data-selected="true"] {
  background: #fff4f5 !important;
}

.sim-picker-option > span:not(.sim-picker-icon) {
  min-width: 0 !important;
  display: grid !important;
  gap: 3px !important;
}

.sim-picker-option strong {
  overflow: hidden !important;
  color: #111 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.sim-picker-option small,
.sim-picker-option b,
.sim-picker-empty {
  color: #8f949d !important;
  font-size: 10px !important;
  font-weight: 800 !important;
}

.sim-picker-empty {
  padding: 18px 10px !important;
  text-align: center !important;
}

.mail-list-section {
  margin-top: 34px !important;
}

.screen-mailboxes .section-heading h1 {
  color: #111 !important;
  font-size: 27px !important;
  font-weight: 900 !important;
  letter-spacing: -1.7px !important;
}

.screen-mailboxes .section-heading span {
  color: var(--blue) !important;
  font-size: 11px !important;
  font-weight: 850 !important;
}

.mailbox-row {
  min-height: 70px !important;
  padding: 0 16px !important;
  border-bottom: 1px solid #eeeeef !important;
  background: #fff !important;
  color: #111 !important;
}

.mailbox-row:hover {
  background: #fffafa !important;
}

.mailbox-row strong {
  color: #111 !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

.mailbox-row small,
.mailbox-row b {
  color: #8f949d !important;
  font-size: 10px !important;
  font-weight: 700 !important;
}

.mailbox-row-meta {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.mailbox-row-chevron {
  width: 14px !important;
  height: 14px !important;
  stroke: #c0c4cc !important;
  stroke-width: 2 !important;
  fill: none !important;
  flex-shrink: 0 !important;
}

.sim-card-row .sim-refresh-btn {
  min-width: 44px !important;
  min-height: 28px !important;
  padding: 0 10px !important;
  border: 1px solid #eeeeef !important;
  border-radius: 999px !important;
  background: #f7f8fa !important;
  color: #111 !important;
  font-size: 10px !important;
  font-weight: 850 !important;
}

.screen-mailboxes .cards-empty {
  min-height: 126px !important;
  padding: 26px !important;
  border: 1px dashed #d8dbe0 !important;
  border-radius: 24px !important;
  background: #fff !important;
  color: #111 !important;
  box-shadow: none !important;
}

.screen-mailboxes .cards-empty strong {
  color: #111 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
}

.screen-mailboxes .cards-empty span {
  color: #8f949d !important;
  font-size: 12px !important;
}

/* ── NotLetters compact redesign ── */

.mail-overview-header {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.mail-overview-header h1 {
  margin: 0 !important;
}

.mail-badge {
  display: inline-flex !important;
  align-items: center !important;
  height: 22px !important;
  padding: 0 9px !important;
  border-radius: 7px !important;
  background: linear-gradient(135deg, #15b76b 0%, #0fa85e 100%) !important;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 850 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  line-height: 22px !important;
  box-shadow: 0 4px 12px rgba(21, 183, 107, .25) !important;
}

.mail-summary-compact {
  grid-template-columns: 1fr 1fr 1fr !important;
  margin-top: 14px !important;
  border-radius: 18px !important;
}

.mail-summary-compact span {
  min-height: 52px !important;
  padding: 8px 12px !important;
  border-bottom: 0 !important;
  border-right: 1px solid #eeeeef !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 3px !important;
}

.mail-summary-compact span:last-child {
  border-right: 0 !important;
}

.mail-summary-compact small {
  font-size: 9px !important;
}

.mail-summary-compact strong {
  font-size: 15px !important;
  font-weight: 900 !important;
  letter-spacing: -.3px !important;
}

/* ── Inline form (qty + buy button on one row) ── */

.mail-form-inline {
  display: grid !important;
  grid-template-columns: 100px 1fr !important;
  gap: 10px !important;
  margin-top: 14px !important;
}

.mail-qty-field {
  height: 52px !important;
  padding: 6px 12px !important;
  border-radius: 16px !important;
}

.mail-qty-field span {
  font-size: 9px !important;
}

.mail-qty-field input {
  font-size: 16px !important;
}

.mail-buy-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 52px !important;
  margin-top: 0 !important;
  border-radius: 16px !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  transition: transform .15s, box-shadow .15s !important;
}

.mail-buy-btn:active:not(:disabled) {
  transform: scale(.97) !important;
}

.mail-buy-btn svg {
  flex-shrink: 0 !important;
  opacity: .85 !important;
}

/* ── Compact mail list heading ── */

.mail-list-section {
  margin-top: 24px !important;
}

.screen-mailboxes .section-heading h2 {
  color: #111 !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  letter-spacing: -.8px !important;
  margin: 0 !important;
}

.mail-count-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 22px !important;
  height: 22px !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  background: #f0f1f4 !important;
  color: #6b7280 !important;
  font-size: 11px !important;
  font-weight: 850 !important;
}

/* ── Mailbox row with avatar ── */

.mailbox-row {
  min-height: 56px !important;
  padding: 0 14px !important;
  grid-template-columns: 36px minmax(0, 1fr) 14px !important;
  gap: 10px !important;
}

.mailbox-avatar {
  width: 36px !important;
  height: 36px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 11px !important;
  background: hsl(var(--av-hue, 200) 65% 94%) !important;
  color: hsl(var(--av-hue, 200) 55% 42%) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
  transition: transform .15s !important;
  user-select: none !important;
}

.mailbox-row:hover .mailbox-avatar {
  transform: scale(1.06) !important;
}

.mailbox-info {
  display: grid !important;
  min-width: 0 !important;
  gap: 2px !important;
}

.mailbox-info strong {
  font-size: 12.5px !important;
  font-weight: 800 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.mailbox-info small {
  font-size: 10px !important;
  color: #9ca3af !important;
  font-weight: 600 !important;
}

.mailbox-row-chevron {
  width: 14px !important;
  height: 14px !important;
  stroke: #c5c9d0 !important;
  stroke-width: 2 !important;
  fill: none !important;
  flex-shrink: 0 !important;
  transition: transform .15s !important;
}

.mailbox-row:hover .mailbox-row-chevron {
  transform: translateX(2px) !important;
  stroke: #8f949d !important;
}

.mailboxes-list {
  border-radius: 18px !important;
}

.mailbox-row:last-child {
  border-bottom: 0 !important;
}

.screen-yoomoney {
  background: #fff !important;
  color: #111 !important;
}

.screen-yoomoney .ym-overview {
  border-bottom-color: #eeeeef !important;
}

.screen-yoomoney .ym-overview h1,
.screen-yoomoney .section-heading h1 {
  color: #111 !important;
}

.screen-yoomoney .ym-overview p,
.screen-yoomoney .ym-status,
.screen-yoomoney .ym-empty {
  color: #8f949d !important;
}

.admin-dashboard {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.admin-stat-grid article {
  min-height: 74px;
  padding: 13px;
  border: 1px solid #eeeeef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(20, 24, 32, .04);
}

.admin-stat-grid small,
.admin-grant-form span {
  color: #9297a0;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-stat-grid strong {
  display: block;
  margin-top: 8px;
  color: #111;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -1px;
}

.admin-grant-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  gap: 10px;
  padding: 12px;
  border: 1px solid #eeeeef;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(20, 24, 32, .04);
}

.admin-grant-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.admin-grant-form input {
  min-width: 0;
  height: 36px;
  border: 0;
  border-bottom: 1px solid #eeeeef;
  background: transparent;
  color: #111;
  font-size: 14px;
  font-weight: 800;
}

.admin-grant-form button {
  grid-column: 1 / -1;
  min-height: 46px;
  border-radius: 17px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.screen-yoomoney .ym-list,
.screen-yoomoney .ym-log {
  border-color: #eeeeef !important;
  background: #fff !important;
  box-shadow: 0 10px 26px rgba(20, 24, 32, .035) !important;
}

.screen-yoomoney .ym-account-row,
.screen-yoomoney .ym-log-entry {
  border-bottom-color: #eeeeef !important;
}

.screen-yoomoney .ym-account-text strong,
.screen-yoomoney .ym-log-entry b {
  color: #111 !important;
}

.screen-yoomoney .ym-account-text small,
.screen-yoomoney .ym-log-entry small,
.screen-yoomoney .ym-log-entry .ym-log-text {
  color: #8f949d !important;
}

.screen-yoomoney .ym-account-actions button {
  border-color: #eeeeef !important;
  background: #f7f8fa !important;
  color: #686e78 !important;
}

.admin-card-list {
  max-height: 360px;
  overflow: auto !important;
}

.admin-subsection {
  display: grid;
  gap: 10px;
}

.admin-subsection + .admin-subsection {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #eeeeef;
}

.admin-subsection-head h2 {
  margin: 0 !important;
  color: #111 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  letter-spacing: -.02em !important;
}

.admin-subsection-head p {
  margin: 4px 0 0 !important;
  color: #9297a0 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.admin-pools-hub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-pools-tile {
  display: grid;
  gap: 4px;
  min-height: 118px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(20, 24, 32, .04);
  color: var(--text);
  text-align: left;
}

.admin-pools-tile:active,
.admin-pools-tile:focus-visible {
  border-color: rgba(145, 180, 211, 0.4);
  background: var(--soft-hover);
}

.admin-pools-tile small {
  color: #15b76b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.admin-pools-tile strong {
  align-self: end;
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1px;
}

.admin-pools-tile strong span {
  color: #9297a0;
  font-size: 16px;
  font-weight: 800;
}

.admin-pools-tile > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-pools-tile em {
  color: #686e78;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
}

.admin-pools-details {
  display: grid;
  gap: 14px;
}

.admin-pool-detail {
  display: grid;
  gap: 12px;
}

.admin-pool-detail-head small {
  color: #15b76b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.admin-pool-detail-head h2 {
  margin: 4px 0 0 !important;
  color: #111 !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  letter-spacing: -.03em !important;
}

.admin-pool-detail-head p {
  margin: 6px 0 0 !important;
  color: #9297a0 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.admin-pool-toolbar {
  display: grid;
  gap: 10px;
}

.admin-pool-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
}

.admin-pool-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-pool-filters button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
}

.admin-pool-filters button.is-active {
  border-color: rgba(21, 183, 107, 0.35);
  background: rgba(21, 183, 107, 0.08);
  color: #0f8f57;
}

.admin-pool-meta {
  margin: 0 !important;
  color: #9297a0 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

.admin-pool-list-wrap .admin-card-list,
.admin-pool-list-wrap .ym-list.admin-card-list {
  max-height: min(52vh, 420px);
}

.admin-pool-list-wrap .admin-grant-form {
  margin-bottom: 4px;
}

.screen-yoomoney .admin-panel-title.hidden {
  display: none;
}

.screen-yoomoney .ym-overview {
  padding-bottom: 18px !important;
}

.screen-yoomoney .ym-overview h1 {
  font-size: 26px !important;
  letter-spacing: -1px !important;
}

.admin-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.admin-menu button {
  display: grid;
  min-height: 112px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(20, 24, 32, .04);
  color: var(--text);
  text-align: left;
}

.admin-menu button:active,
.admin-menu button:focus-visible {
  border-color: rgba(145, 180, 211, 0.4);
  background: var(--soft-hover);
}

.admin-menu small,
.admin-panel-title span,
.admin-textarea-field span {
  color: #15b76b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.admin-menu strong {
  align-self: end;
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1px;
}

.admin-menu > button > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-panels {
  margin-top: 14px;
}

.admin-panel {
  display: grid;
  gap: 14px;
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
}

.admin-panel-back,
.admin-secondary-btn {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 850;
}

.admin-icon-btn {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(145, 180, 211, 0.2);
  border-radius: 15px;
  background: var(--soft);
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
}

.admin-panel-title h1 {
  margin-top: 5px;
  color: #111;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1px;
}

.admin-panel-title p {
  max-width: 310px;
  margin-top: 5px;
  color: #8f949d;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.admin-textarea-field {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #eeeeef;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(20, 24, 32, .04);
}

.admin-textarea-field textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  border: 0;
  outline: none;
  background: transparent;
  color: #111;
  font: 750 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.admin-panel-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.admin-primary-btn {
  min-height: 48px;
  border-radius: 17px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.admin-users-list {
  max-height: 320px;
  overflow: auto !important;
}

.header-bell-slot {
  position: fixed !important;
  top: max(14px, env(safe-area-inset-top)) !important;
  right: 18px !important;
  z-index: 1000 !important;
  display: flex !important;
  pointer-events: none !important;
}

.header-bell-slot.hidden {
  display: none !important;
}

.bell-button {
  position: relative !important;
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(20, 24, 32, .08) !important;
  pointer-events: auto !important;
}

.notification-badge:not(.hidden) {
  display: grid !important;
  min-width: 18px !important;
  height: 18px !important;
  place-items: center !important;
  border-radius: 999px !important;
  background: var(--accent) !important;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 900 !important;
}

@media (max-width: 360px) {
  .screen-home .quick-actions {
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .screen-home .quick-actions button,
  .screen-home .quick-actions button:first-of-type {
    flex-basis: 140px !important;
    width: 140px !important;
    padding: 11px !important;
  }

  .screen-mailboxes {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  .admin-grant-form {
    grid-template-columns: 1fr;
  }
}

/* ── Maintenance screen ─────────────────────────────────────── */

.maintenance-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.maintenance-screen.hidden {
  display: none !important;
  pointer-events: none !important;
}

.maintenance-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 32px 24px;
  text-align: center;
}

.maintenance-duck {
  width: 120px;
  height: 120px;
}

.maintenance-content h1 {
  margin: 0;
  color: #111;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.5px;
}

.maintenance-content p {
  margin: 0;
  color: #8f949d;
  font-size: 14px;
  font-weight: 600;
}

/* ── Admin maintenance panel ────────────────────────────────── */

.admin-maintenance-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.admin-maintenance-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f7f8fa;
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

.maintenance-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c8ccd4;
  flex-shrink: 0;
  transition: background 0.2s;
}

.maintenance-dot-active {
  background: #ff4f5e;
  box-shadow: 0 0 0 3px rgba(255, 79, 94, .18);
}

/* Admin menu maintenance button highlight when active */
.admin-menu-maintenance-active {
  background: rgba(255, 79, 94, .06) !important;
  border: 1px solid rgba(255, 79, 94, .18) !important;
}

/* ── Mailbox detail screen ── */
.screen-mailbox-detail {
  background: var(--bg) !important;
}

.screen-mailbox-detail .mail-panel {
  padding: 22px 16px 48px !important;
}

/* Rekvizity heading */
.screen-mailbox-detail h2 {
  margin: 0 0 10px !important;
  color: #8f949d !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
}

/* Requisites block – two white cards stacked */
.screen-mailbox-detail .requisites {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  overflow: hidden !important;
  border: 1px solid #eeeeef !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(20, 24, 32, .055) !important;
}

.screen-mailbox-detail .requisite,
.screen-mailbox-detail .requisite.full {
  position: relative !important;
  display: flex !important;
  min-height: 68px !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 3px !important;
  padding: 14px 48px 14px 16px !important;
  border: 0 !important;
  border-bottom: 1px solid #eeeeef !important;
  border-radius: 0 !important;
  background: #fff !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: background .12s !important;
  grid-column: unset !important;
  width: 100% !important;
}

.screen-mailbox-detail .requisite:last-child {
  border-bottom: 0 !important;
}

.screen-mailbox-detail .requisite:hover,
.screen-mailbox-detail .requisite:active {
  background: #fafafa !important;
}

.screen-mailbox-detail .requisite span {
  color: #9297a0 !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
}

.screen-mailbox-detail .requisite strong {
  max-width: 100% !important;
  overflow: hidden !important;
  color: #111 !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.screen-mailbox-detail .requisite .copy-icon {
  position: absolute !important;
  top: 50% !important;
  right: 14px !important;
  width: 28px !important;
  height: 28px !important;
  padding: 6px !important;
  transform: translateY(-50%) !important;
  stroke: #b0b5be !important;
  stroke-width: 1.6 !important;
  fill: none !important;
  border-radius: 9px !important;
  background: #f2f2f4 !important;
}

/* Section heading – matches home page */
.screen-mailbox-detail .section-heading {
  margin-top: 30px !important;
  margin-bottom: 12px !important;
}

.screen-mailbox-detail .section-heading h1 {
  color: #111 !important;
  font-size: 27px !important;
  font-weight: 900 !important;
  letter-spacing: -1.7px !important;
}

.screen-mailbox-detail .section-heading span {
  color: #8f949d !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

/* Inbox list */
.mailbox-inbox-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  overflow: hidden !important;
  border: 1px solid #eeeeef !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(20, 24, 32, .045) !important;
}

.inbox-message {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  width: 100% !important;
  padding: 13px 15px !important;
  background: #fff !important;
  border: 0 !important;
  border-bottom: 1px solid #eeeeef !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: background .12s !important;
}

.inbox-subject-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

.inbox-chevron {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;
  fill: none !important;
  stroke: #b5bac2 !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.screen-mailbox-detail .list-pagination {
  margin-top: 12px !important;
}

.screen-mailbox-detail .list-pagination button {
  width: 38px !important;
  height: 38px !important;
}

.mailbox-letter-view {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin-top: 1.5rem !important;
  padding: 16px !important;
  border: 1px solid #eeeeef !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(20, 24, 32, .045) !important;
}

.mailbox-letter-back {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  align-self: flex-start !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #6b7280 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

.mailbox-letter-back svg {
  width: 16px !important;
  height: 16px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.mailbox-letter-meta {
  display: flex !important;
  justify-content: space-between !important;
  gap: 10px !important;
  align-items: center !important;
}

.mailbox-letter-from {
  font-size: 12px !important;
  color: #9297a0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.mailbox-letter-time {
  font-size: 11px !important;
  color: #b0b5bd !important;
  white-space: nowrap !important;
}

.mailbox-letter-subject {
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
  color: #141820 !important;
}

.mailbox-letter-body {
  max-height: 52vh !important;
  overflow: auto !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: #3b4048 !important;
}

.letter-link {
  display: inline;
  padding: 1px 4px;
  margin: 0 1px;
  border: none;
  border-radius: 6px;
  background: rgba(47, 111, 237, 0.1);
  color: #2f6fed;
  font: inherit;
  text-align: left;
  word-break: break-all;
  cursor: pointer;
}

.letter-link:active {
  background: rgba(47, 111, 237, 0.22);
}

.mailbox-letter-copy {
  align-self: flex-start !important;
  padding: 10px 14px !important;
  border: 1px solid #e6e7ea !important;
  border-radius: 14px !important;
  background: #fafafa !important;
  color: #141820 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

.inbox-message:last-child {
  border-bottom: 0 !important;
}

.inbox-message:hover {
  background: #fafafa !important;
}

.inbox-message-meta {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 8px !important;
}

.inbox-from {
  font-size: 11px !important;
  color: #9297a0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  max-width: 65% !important;
  font-weight: 700 !important;
}

.inbox-time {
  font-size: 10px !important;
  color: #b8bcc4 !important;
  flex-shrink: 0 !important;
  font-weight: 700 !important;
}

.inbox-subject {
  font-size: 13px !important;
  font-weight: 780 !important;
  color: #111 !important;
  line-height: 1.35 !important;
}

.inbox-preview {
  font-size: 12px !important;
  color: #9297a0 !important;
  line-height: 1.45 !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  margin: 0 !important;
}

.inbox-sms-code {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef8f0;
  color: #1a7f37;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.inbox-copy-code-btn {
  align-self: flex-start;
  margin-top: 8px;
  padding: 6px 12px;
  border: 1px solid #d8e8dc;
  border-radius: 999px;
  background: #f4fbf5;
  color: #1a7f37;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.mailbox-letter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mailbox-letter-copy-code {
  background: #1a7f37;
  color: #fff;
  border-color: #1a7f37;
}

/* Empty state */
.mailbox-inbox-empty {
  padding: 36px 20px !important;
  gap: 8px !important;
  background: #fff !important;
  border: 1px solid #eeeeef !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 24px rgba(20, 24, 32, .035) !important;
}

.mailbox-inbox-empty strong {
  color: #111 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
}

.mailbox-inbox-empty span {
  color: #9297a0 !important;
  font-size: 12px !important;
}

.inbox-duck {
  width: 72px !important;
  height: 72px !important;
  margin-bottom: 4px !important;
}

.inbox-duck img {
  width: 72px !important;
  height: 72px !important;
}

/* Loading state — no !important on display so .hidden class can override it */
.mailbox-inbox-loading {
  display: flex;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 36px 0 !important;
  color: #9297a0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.inbox-spinner {
  width: 18px !important;
  height: 18px !important;
  border: 2.5px solid #eeeeef !important;
  border-top-color: #db4b5e !important;
  border-radius: 50% !important;
  animation: spin .75s linear infinite !important;
  flex-shrink: 0 !important;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Admin workspace polish */
.screen-yoomoney {
  --admin-bg: #f6f7f8;
  --admin-surface: #ffffff;
  --admin-border: #e7e9ec;
  --admin-border-strong: #d8dce1;
  --admin-text: #15171a;
  --admin-muted: #6f7782;
  --admin-muted-soft: #9aa1aa;
  --admin-accent: #ff4f5e;
  --admin-accent-soft: #fff0f2;
  --admin-green: #12a05c;
  --admin-green-soft: #e8f7ef;
  --admin-blue: #1769d1;
  --admin-blue-soft: #eaf2ff;
  min-height: calc(100dvh - 68px);
  padding: 14px 16px 34px !important;
  background:
    linear-gradient(180deg, #ffffff 0, var(--admin-bg) 188px),
    var(--admin-bg) !important;
  color: var(--admin-text) !important;
}

.tg-chrome[data-view="yoomoney"] {
  background: #ffffff !important;
  border-bottom: 1px solid #eef0f2;
}

.tg-chrome[data-view="yoomoney"] .back-action,
.tg-chrome[data-view="yoomoney"] .chrome-title strong {
  color: #15171a !important;
}

.tg-chrome[data-view="yoomoney"] .chrome-title span {
  color: #8f98a3 !important;
}

.screen-yoomoney .ym-section { margin: 0 !important; }

.screen-yoomoney .ym-overview.hidden,
.screen-yoomoney .admin-menu.hidden,
.screen-yoomoney .admin-panel.hidden {
  display: none !important;
}

.screen-yoomoney.admin-panel-open {
  min-height: calc(100dvh - 68px);
  padding-top: 12px !important;
  background: var(--admin-bg) !important;
}

.screen-yoomoney.admin-panel-open .admin-panels {
  margin-top: 0 !important;
}

.screen-yoomoney.admin-panel-open .admin-panel:not(.hidden) {
  display: grid !important;
  animation: admin-panel-in .18s ease-out;
}

@keyframes admin-panel-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.screen-yoomoney .ym-overview {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 4px 0 18px !important;
  border-bottom: 0 !important;
}

.screen-yoomoney .ym-overview-kicker {
  margin-bottom: 8px;
  color: var(--admin-accent) !important;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
}

.screen-yoomoney .ym-overview h1 {
  color: var(--admin-text) !important;
  font-size: 29px !important;
  font-weight: 880 !important;
  letter-spacing: 0 !important;
  line-height: .96;
  text-wrap: balance;
}

.screen-yoomoney .ym-overview p {
  max-width: 286px;
  margin-top: 9px;
  color: var(--admin-muted) !important;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.38;
}

.screen-yoomoney #ymAddBtn,
.screen-yoomoney .admin-icon-btn {
  display: grid !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  place-items: center;
  border: 1px solid var(--admin-border) !important;
  border-radius: 13px !important;
  background: var(--admin-surface) !important;
  color: var(--admin-text) !important;
  box-shadow: 0 8px 18px rgba(21, 23, 26, .06);
  font-size: 22px !important;
  font-weight: 760 !important;
}

.admin-menu {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-top: 2px !important;
}

.admin-menu button {
  position: relative;
  display: grid !important;
  min-height: 118px !important;
  grid-template-rows: 34px auto 1fr auto;
  gap: 8px;
  overflow: hidden;
  padding: 14px !important;
  border: 1px solid var(--admin-border) !important;
  border-radius: 18px !important;
  background: var(--admin-surface) !important;
  box-shadow: 0 10px 24px rgba(21, 23, 26, .045) !important;
  color: var(--admin-text) !important;
  text-align: left !important;
}

.admin-menu button::before {
  content: none !important;
  display: none !important;
}

.admin-menu-icon {
  display: block;
  width: 31px;
  height: 31px;
  padding: 8px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: var(--admin-blue-soft);
  color: var(--admin-blue);
  fill: currentColor;
}

.admin-menu button[data-admin-panel="yoomoney"] .admin-menu-icon,
.admin-menu button[data-admin-panel="users"] .admin-menu-icon {
  background: var(--admin-green-soft);
  color: var(--admin-green);
}

.admin-menu button[data-admin-panel="pools"] .admin-menu-icon {
  background: #f3f1ff;
  color: #6956d9;
}

.admin-menu button[data-admin-panel="maintenance"] .admin-menu-icon {
  background: var(--admin-accent-soft);
  color: var(--admin-accent);
}

.admin-menu button::before {
  content: "";
  width: 31px;
  height: 31px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background:
    linear-gradient(90deg, currentColor 0 2px, transparent 2px 9px, currentColor 9px 11px, transparent 11px 18px, currentColor 18px 20px),
    var(--admin-blue-soft);
  color: var(--admin-blue);
  opacity: .95;
}

.admin-menu button[data-admin-panel="yoomoney"]::before {
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, currentColor 0 4px, transparent 4.5px),
    radial-gradient(ellipse at 50% 78%, currentColor 0 9px, transparent 9.5px),
    var(--admin-green-soft);
  color: var(--admin-green);
}

.admin-menu button[data-admin-panel="users"]::before {
  background:
    linear-gradient(currentColor 0 0) center 9px / 12px 2px no-repeat,
    linear-gradient(currentColor 0 0) center 18px / 12px 2px no-repeat,
    var(--admin-green-soft);
  color: var(--admin-green);
}

.admin-menu button[data-admin-panel="pools"]::before {
  background:
    linear-gradient(currentColor 0 0) 7px 9px / 16px 2px no-repeat,
    linear-gradient(currentColor 0 0) 7px 18px / 10px 2px no-repeat,
    var(--admin-blue-soft);
  color: var(--admin-blue);
}

.admin-menu button[data-admin-panel="maintenance"]::before {
  background:
    radial-gradient(circle, currentColor 0 3px, transparent 3.5px),
    var(--admin-accent-soft);
  color: var(--admin-accent);
}

.admin-menu button::before {
  content: none !important;
  display: none !important;
}

.admin-menu button:hover,
.admin-menu button:focus-visible {
  border-color: var(--admin-border-strong) !important;
  background: #fff !important;
  box-shadow: 0 14px 30px rgba(21, 23, 26, .075) !important;
  transform: translateY(-1px);
}

.admin-menu small,
.admin-panel-title span,
.admin-textarea-field span,
.admin-grant-form span {
  color: var(--admin-muted-soft) !important;
  font-size: 9px !important;
  font-weight: 850 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

.admin-menu strong {
  align-self: end !important;
  color: var(--admin-text) !important;
  font-size: 25px !important;
  font-weight: 880 !important;
  letter-spacing: 0 !important;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.admin-menu > button > span {
  min-width: 0;
  overflow: hidden;
  color: var(--admin-muted) !important;
  font-size: 11px !important;
  font-weight: 680 !important;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-menu-maintenance-active {
  border-color: rgba(255, 79, 94, .26) !important;
  background: var(--admin-accent-soft) !important;
}

.admin-panels { margin-top: 6px !important; }
.admin-panel { gap: 14px !important; }
.admin-panel-head { min-height: 42px !important; }

.admin-panel-back,
.admin-secondary-btn {
  min-height: 40px !important;
  padding: 0 14px !important;
  border: 1px solid var(--admin-border) !important;
  border-radius: 13px !important;
  background: var(--admin-surface) !important;
  color: var(--admin-text) !important;
  font-size: 12px !important;
  font-weight: 760 !important;
}

.admin-panel-title h1 {
  margin: 6px 0 0 !important;
  color: var(--admin-text) !important;
  font-size: 25px !important;
  font-weight: 880 !important;
  letter-spacing: 0 !important;
}

.admin-panel-title p {
  max-width: 318px;
  margin: 7px 0 0 !important;
  color: var(--admin-muted) !important;
  font-size: 12px !important;
  font-weight: 620 !important;
  line-height: 1.4 !important;
}

.admin-textarea-field,
.admin-grant-form,
.screen-yoomoney .ym-list,
.screen-yoomoney .ym-log {
  border: 1px solid var(--admin-border) !important;
  border-radius: 18px !important;
  background: var(--admin-surface) !important;
  box-shadow: 0 10px 24px rgba(21, 23, 26, .045) !important;
}

.admin-textarea-field {
  gap: 10px !important;
  padding: 14px !important;
}

.admin-textarea-field textarea {
  min-height: 218px !important;
  color: var(--admin-text) !important;
  font: 700 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
}

.admin-panel-actions {
  grid-template-columns: 1fr auto !important;
  gap: 10px !important;
}

.admin-primary-btn,
.admin-grant-form button {
  min-height: 48px !important;
  border-radius: 14px !important;
  background: var(--admin-accent) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(255, 79, 94, .18);
  font-size: 13px !important;
  font-weight: 850 !important;
}

.admin-primary-btn:hover,
.admin-grant-form button:hover {
  background: #f34252 !important;
}

.admin-grant-form {
  grid-template-columns: 1fr 108px !important;
  gap: 10px !important;
  padding: 12px !important;
}

.admin-grant-form label {
  min-width: 0;
  gap: 6px !important;
}

.admin-grant-form input {
  height: 38px !important;
  padding: 0 2px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--admin-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--admin-text) !important;
  font-size: 14px !important;
  font-weight: 760 !important;
}

.screen-yoomoney .ym-status {
  min-height: 0 !important;
  padding: 0 !important;
  color: var(--admin-muted) !important;
}

.screen-yoomoney .ym-list,
.screen-yoomoney .ym-log {
  margin-top: 0 !important;
  overflow: hidden !important;
}

.admin-users-list,
.admin-card-list {
  max-height: min(430px, calc(100dvh - 260px)) !important;
  overflow: auto !important;
  overscroll-behavior: contain;
}

.screen-yoomoney .card-row.card-summary-row {
  display: grid !important;
  width: 100%;
  min-height: 62px !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--admin-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--admin-text) !important;
  text-align: left;
}

.screen-yoomoney .card-row.card-summary-row:last-child {
  border-bottom: 0 !important;
}

.screen-yoomoney .card-row.card-summary-row:hover,
.screen-yoomoney .card-row.card-summary-row:focus-visible {
  background: #fafbfc !important;
}

.screen-yoomoney .wallet-card-copy {
  display: grid !important;
  min-width: 0;
  gap: 4px !important;
  padding: 0 !important;
}

.screen-yoomoney .wallet-card-copy strong {
  min-width: 0;
  overflow: hidden;
  color: var(--admin-text) !important;
  font-size: 13px !important;
  font-weight: 780 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-yoomoney .wallet-card-copy small {
  min-width: 0;
  overflow: hidden;
  color: var(--admin-muted) !important;
  font-size: 10px !important;
  font-weight: 640 !important;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-yoomoney .ym-account-actions {
  display: flex !important;
  gap: 6px !important;
  align-items: center;
  margin-left: 0 !important;
}

.screen-yoomoney .ym-account-actions button,
.screen-yoomoney .btn-danger {
  min-height: 30px !important;
  padding: 0 10px !important;
  border: 1px solid var(--admin-border) !important;
  border-radius: 10px !important;
  background: #f7f8fa !important;
  color: var(--admin-text) !important;
  font-size: 10px !important;
  font-weight: 760 !important;
  white-space: nowrap;
}

.screen-yoomoney .ym-account-actions button:disabled {
  border-color: transparent !important;
  background: #f0f1f3 !important;
  color: var(--admin-muted-soft) !important;
  opacity: 1 !important;
}

.screen-yoomoney .ym-card-btn {
  border-color: rgba(18, 160, 92, .22) !important;
  background: var(--admin-green-soft) !important;
  color: var(--admin-green) !important;
}

.screen-yoomoney .ym-del-btn,
.screen-yoomoney .btn-danger {
  border-color: rgba(255, 79, 94, .18) !important;
  background: var(--admin-accent-soft) !important;
  color: var(--admin-accent) !important;
}

.screen-yoomoney .ym-empty,
.screen-yoomoney .ym-log-empty {
  padding: 28px 16px !important;
  color: var(--admin-muted) !important;
  font-size: 12px !important;
  font-weight: 620;
  text-align: center;
}

.screen-yoomoney .ym-log-entry {
  min-height: 58px !important;
  padding: 10px 12px !important;
  border-bottom: 1px solid var(--admin-border) !important;
}

.screen-yoomoney .ym-log-entry b {
  color: var(--admin-text) !important;
  font-size: 12px !important;
}

.screen-yoomoney .ym-log-entry small,
.screen-yoomoney .ym-log-entry .ym-log-text {
  color: var(--admin-muted) !important;
}

.admin-maintenance-body {
  gap: 12px !important;
  margin-top: 6px !important;
}

.admin-maintenance-status {
  min-height: 52px;
  border: 1px solid var(--admin-border);
  border-radius: 16px !important;
  background: var(--admin-surface) !important;
  color: var(--admin-text) !important;
  box-shadow: 0 10px 24px rgba(21, 23, 26, .045);
}

.maintenance-dot { background: var(--admin-green) !important; }

.maintenance-dot-active {
  background: var(--admin-accent) !important;
  box-shadow: 0 0 0 4px rgba(255, 79, 94, .14) !important;
}

.screen-yoomoney .modal-card {
  border: 1px solid var(--admin-border) !important;
  border-radius: 18px !important;
  background: var(--admin-surface) !important;
  color: var(--admin-text) !important;
}

.screen-yoomoney .ym-input {
  border-color: var(--admin-border) !important;
  background: #f7f8fa !important;
  color: var(--admin-text) !important;
}

/* Stable sticker rendering */
.duck-sticker[data-duck-sticker] {
  overflow: hidden !important;
  transform: translateZ(0);
}

.duck-sticker[data-duck-sticker] > svg,
.duck-sticker[data-duck-sticker] > canvas,
.duck-sticker[data-duck-sticker] > img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  transform: translateZ(0);
}

.topup-hero .duck-sticker,
.maintenance-content .duck-sticker,
.creation-loading .duck-sticker,
.cards-empty .duck-sticker,
.notifications-empty .duck-sticker,
.mailbox-inbox-empty .duck-sticker {
  flex-shrink: 0;
}

@media (max-width: 360px) {
  .screen-yoomoney {
    padding-inline: 12px !important;
  }

  .admin-menu {
    gap: 8px !important;
  }

  .admin-menu button {
    min-height: 108px !important;
    padding: 12px !important;
    border-radius: 16px !important;
  }

  .admin-menu strong {
    font-size: 22px !important;
  }

  .admin-grant-form {
    grid-template-columns: 1fr !important;
  }

  .screen-yoomoney .card-row.card-summary-row {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }

  .screen-yoomoney .ym-account-actions {
    width: 100%;
  }

  .screen-yoomoney .ym-account-actions button {
    flex: 1;
  }
}

/* ── Stores / 5ka ───────────────────────────────────────────── */

.screen-stores .stores-shop-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.screen-stores .stores-shop-card > div:nth-child(2) {
  flex: 1;
}

.screen-stores .stores-shop-buy {
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #15171a;
  font-size: 12px;
  font-weight: 800;
  padding: 10px 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.screen-stores .stores-shop-logo-samokat {
  box-shadow: 0 8px 18px rgba(255, 45, 135, .22);
  background: #fff;
}

.screen-stores .stores-shop-logo-samokat img {
  padding: 6px;
}

.screen-stores .stores-shop-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(228, 0, 43, .18);
}

.screen-stores .stores-shop-logo svg,
.screen-stores .stores-shop-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.screen-stores .stores-shop-card strong {
  display: block;
  font-size: 16px;
}

.screen-stores .stores-shop-card small {
  color: var(--muted, rgba(255, 255, 255, 0.55));
}

.screen-stores .stores-accounts-section {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.screen-stores .stores-accounts-heading {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted, rgba(255, 255, 255, 0.55));
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.screen-stores .stores-accounts-list {
  display: grid;
  gap: 10px;
}

.screen-stores .stores-account-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 12px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.screen-stores .stores-account-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.screen-stores .stores-account-delete {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: transparent;
  color: var(--muted, rgba(255, 255, 255, 0.55));
  font-size: 12px;
  font-weight: 700;
}

.screen-stores .stores-account-receipt {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.screen-stores .stores-account-row strong {
  display: block;
  font-size: 15px;
}

.screen-stores .stores-account-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted, rgba(255, 255, 255, 0.55));
  font-size: 12px;
}

.screen-stores .stores-account-open {
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  background: #e4002b;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.screen-stores .stores-order-account-label {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(228, 0, 43, 0.12);
  color: #ffd8de;
  font-size: 13px;
  font-weight: 700;
}

.screen-stores .stores-search-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.screen-stores .stores-product-row,
.screen-stores .stores-cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.screen-stores .stores-product-row {
  text-align: left;
}

.screen-stores .stores-product-row strong,
.screen-stores .stores-cart-row strong {
  display: block;
}

.screen-stores .stores-product-row small,
.screen-stores .stores-cart-row small {
  color: var(--muted, rgba(255, 255, 255, 0.55));
}

.screen-stores .stores-cart-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.screen-stores .stores-cart-controls button {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
}

.screen-stores .stores-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.screen-stores .stores-search-empty {
  padding: 14px;
  text-align: center;
  color: var(--muted, rgba(255, 255, 255, 0.55));
}

.screen-stores .stores-search-error {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.screen-stores .stores-inline-retry {
  width: min(180px, 100%);
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: #ff4b61;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.screen-stores .stores-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 14px;
}

.screen-stores .stores-stepper-item {
  padding: 8px 6px;
  border-radius: 12px;
  background: #f4f5f7;
  color: #8f949d;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
}

.screen-stores .stores-stepper-item.is-active {
  background: rgba(228, 0, 43, 0.1);
  color: #c4002a;
}

.screen-stores .stores-stepper-item.is-done {
  color: #2f6fed;
}

.screen-stores .stores-step {
  display: grid;
  gap: 12px;
}

.screen-stores .stores-suggestions {
  display: grid;
  gap: 8px;
  margin-top: 0;
}

.screen-stores .stores-address-hint {
  margin: 0;
  padding: 0 2px;
  line-height: 1.45;
}

.screen-stores .stores-city-progress {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0;
  padding: 14px 12px 12px;
  border: 1px solid #eeeeef;
  border-radius: 18px;
  background: #fafafa;
}

.screen-stores .stores-address-duck {
  width: 92px;
  height: 92px;
}

.screen-stores .stores-city-progress span {
  color: #686e78;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
  line-height: 1.35;
}

.screen-stores #storesAddressQuery.is-locked {
  background: #f6f7f9;
  color: #1b1d22;
  cursor: default;
}

.screen-stores .stores-city-change {
  align-self: flex-start;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #2f6fed;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

@keyframes stores-city-progress-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.screen-stores #storesAddressContinueBtn {
  margin-top: 2px;
}

.screen-stores .stores-store-list {
  display: grid;
  gap: 8px;
  margin-top: 0;
}

.screen-stores .stores-store-list-hint {
  margin: 0;
  padding: 0 2px;
}

.screen-stores .stores-suggestion-row.is-selected {
  border-color: rgba(228, 0, 43, 0.45);
  background: rgba(228, 0, 43, 0.06);
}

.screen-stores .stores-store-empty {
  padding: 12px 14px;
  border: 1px solid #eeeeef;
  border-radius: 14px;
  background: #fff;
  color: #686e78;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.screen-stores .stores-store-row {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #eeeeef;
  border-radius: 14px;
  background: #fff;
  color: #15171a;
  text-align: left;
}

.screen-stores .stores-store-row.is-selected {
  border-color: rgba(228, 0, 43, 0.45);
  background: rgba(228, 0, 43, 0.06);
}

.screen-stores .stores-store-row strong {
  display: block;
  font-size: 13px;
  line-height: 1.3;
}

.screen-stores .stores-store-row small {
  display: block;
  margin-top: 4px;
  color: #9297a0;
  font-size: 11px;
}

.screen-stores .stores-suggestion-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #eeeeef;
  border-radius: 14px;
  background: #fff;
  color: #15171a;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.screen-stores .stores-suggestion-pin {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fff0f0;
  position: relative;
}

.screen-stores .stores-suggestion-pin::after {
  content: "";
  position: absolute;
  inset: 8px 9px 9px 9px;
  border-radius: 999px 999px 999px 0;
  background: #e52322;
  transform: rotate(-45deg);
}

.screen-stores .stores-suggestion-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.screen-stores .stores-suggestion-copy strong {
  color: #15171a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.screen-stores .stores-suggestion-copy small {
  color: #686e78;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.screen-stores .stores-address-preview {
  padding: 12px 14px;
  border: 1px solid #eeeeef;
  border-radius: 16px;
  background: #fafafa;
}

.screen-stores .stores-address-preview strong {
  display: block;
  color: #15171a;
  font-size: 14px;
}

.screen-stores .stores-address-preview small {
  display: block;
  margin-top: 4px;
  color: #9297a0;
  font-size: 12px;
}

.screen-stores .stores-order-summary {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #eeeeef;
  border-radius: 18px;
  background: #fff;
}

.screen-stores .stores-order-summary small {
  display: block;
  color: #9297a0;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.screen-stores .stores-order-summary strong {
  display: block;
  margin-top: 4px;
  color: #15171a;
  font-size: 14px;
  font-weight: 800;
}

.screen-stores .stores-payment-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 12px;
}

.screen-stores .stores-payment-tab {
  border: 1px solid #e8e8ea;
  border-radius: 14px;
  background: #fff;
  color: #5b6068;
  font-size: 13px;
  font-weight: 800;
  padding: 12px 10px;
  cursor: pointer;
}

.screen-stores .stores-payment-tab.is-active {
  border-color: #15171a;
  background: #15171a;
  color: #fff;
}

.screen-stores .stores-payment-panel {
  display: grid;
  gap: 12px;
}

.screen-stores .stores-payment-panel.hidden {
  display: none;
}

.screen-stores .stores-payment-methods {
  display: grid;
  gap: 8px;
}

.screen-stores .stores-payment-method {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid #e8e8ea;
  border-radius: 16px;
  background: #fff;
  padding: 12px 14px;
  cursor: pointer;
}

.screen-stores .stores-payment-method.is-active {
  border-color: #15171a;
  box-shadow: inset 0 0 0 1px #15171a;
}

.screen-stores .stores-payment-method strong {
  display: block;
  color: #15171a;
  font-size: 14px;
}

.screen-stores .stores-payment-method small {
  display: block;
  margin-top: 2px;
  color: #9297a0;
  font-size: 12px;
}

.screen-stores .stores-payment-hint {
  display: block;
  color: #9297a0;
  font-size: 12px;
}

.screen-stores .stores-payment-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #ffd7de;
  border-radius: 8px;
  background: #fff6f8;
}

.screen-stores .stores-payment-error.hidden {
  display: none;
}

.screen-stores .stores-payment-error span {
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
}

.screen-stores .stores-payment-error button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #e4002b;
  font-size: 12px;
  font-weight: 900;
}

.screen-stores .stores-sbp-payment {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  background: #f7f8fa;
  text-align: center;
}

.screen-stores .stores-sbp-payment.hidden {
  display: none;
}

.screen-stores .stores-sbp-qr {
  width: min(240px, 100%);
  margin: 0 auto;
  border-radius: 12px;
  background: #fff;
}

.screen-stores .stores-sbp-modal-body {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  padding-bottom: 8px;
}

.screen-stores .stores-sbp-modal-panel .stores-sbp-qr {
  width: min(280px, 100%);
}

.screen-stores .stores-checkout-breakdown {
  display: grid;
  gap: 10px;
  margin: 12px 0 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f7f7f8;
}

.screen-stores .stores-checkout-address {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e6ea;
}

.screen-stores .stores-checkout-address small {
  color: #8b92a0;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.screen-stores .stores-checkout-address strong {
  color: #15171a;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.screen-stores .stores-checkout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #8b9098;
  font-size: 14px;
}

.screen-stores .stores-checkout-row strong {
  color: #15171a;
  font-size: 14px;
  font-weight: 700;
}

.screen-stores .stores-checkout-row.is-accent strong {
  color: #e53955;
}

.screen-stores .stores-checkout-total {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #e8e8ea;
  color: #15171a;
  font-weight: 800;
}

.screen-stores .stores-checkout-total strong {
  font-size: 16px;
}

.screen-stores .stores-promo-section {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(21, 23, 26, .06);
}

.screen-stores .stores-promo-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.screen-stores .stores-promo-label {
  color: #8b9098;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.screen-stores .stores-promo-hint {
  margin: 0;
  color: #8b9098;
  font-size: 12px;
  line-height: 1.35;
}

.screen-stores .stores-loyalty-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff0e8;
  color: #e53955;
  font-size: 12px;
  font-weight: 800;
}

.screen-stores .stores-promo-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.screen-stores .stores-promo-input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #e8e8ea;
  border-radius: 16px;
  background: #fff;
  color: #15171a;
  font-size: 14px;
}

.screen-stores .stores-promo-apply-btn {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: #35c759;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.screen-stores .stores-promo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.screen-stores .stores-promo-chip {
  border: 0;
  border-radius: 999px;
  background: #f1f2f4;
  color: #15171a;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
}

.screen-stores .stores-promo-chip.is-active {
  background: #15171a;
  color: #fff;
}

.screen-stores .stores-first-order-promo-btn {
  width: 100%;
  margin: 12px 0 10px;
  padding: 14px 16px;
  border: 1px solid #e8e8ea;
  border-radius: 16px;
  background: #fff;
  color: #15171a;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.screen-stores .stores-first-order-promo-btn.is-active {
  border-color: #e53955;
  background: #fff0e8;
  color: #e53955;
}

.screen-stores .stores-first-order-promo-btn.hidden {
  display: none;
}

.screen-stores .stores-card-field .custom-select-trigger {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #e8e8ea;
  border-radius: 16px;
  background: #fff;
  color: #15171a;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.screen-stores .stores-card-field .custom-select-menu {
  width: 100%;
  margin-top: 8px;
  border-radius: 16px;
  overflow: hidden;
}

.screen-stores .stores-card-handoff {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #e5e7ea;
  border-radius: 8px;
  background: #f7f8f9;
}

.screen-stores .stores-card-handoff.hidden {
  display: none;
}

.screen-stores .stores-card-handoff > strong {
  color: #15171a;
  font-size: 13px;
}

.screen-stores .stores-card-handoff > p {
  margin: 0;
  color: #7d838c;
  font-size: 11px;
  line-height: 1.4;
}

.screen-stores .stores-card-handoff-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 4px;
}

.screen-stores .stores-card-handoff-actions button {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 36px;
  padding: 6px 7px;
  border: 1px solid #dfe2e5;
  border-radius: 8px;
  background: #fff;
  color: #15171a;
  font-size: 10px;
  font-weight: 800;
}

.screen-stores .stores-card-handoff-actions button:disabled {
  color: #a7abb1;
  cursor: default;
}

.screen-stores .stores-card-handoff-actions svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.screen-stores .stores-card-handoff-actions span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-stores .stores-payment-tab.hidden {
  display: none;
}

.screen-stores .stores-payment-tabs.hidden {
  display: none;
}

.screen-stores .stores-used-order {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e4e6e9;
  border-radius: 8px;
  background: #fff;
}

.screen-stores .stores-used-order.hidden {
  display: none;
}

.screen-stores .stores-used-order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.screen-stores .stores-used-order-head div {
  min-width: 0;
}

.screen-stores .stores-used-order-head small,
.screen-stores .stores-used-order-head strong {
  display: block;
}

.screen-stores .stores-used-order-head small {
  color: #e4002b;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.screen-stores .stores-used-order-head strong {
  margin-top: 3px;
  color: #15171a;
  font-size: 15px;
}

.screen-stores .stores-used-order-head > span {
  color: #15171a;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.screen-stores .stores-used-order p {
  margin: 0;
  color: #686e78;
  font-size: 12px;
  line-height: 1.4;
}

.screen-stores .stores-used-order-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
}

.screen-stores .stores-used-order-actions button {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #e1e3e6;
  border-radius: 8px;
  background: #f6f7f8;
  color: #15171a;
  font-size: 12px;
  font-weight: 900;
}

.screen-stores .stores-delivery-tracker {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid #ececf0;
  border-radius: 18px;
  background: #fafafb;
}

.screen-stores .stores-delivery-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.screen-stores .stores-delivery-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.screen-stores .stores-delivery-title strong {
  font-size: 15px;
}

.screen-stores .stores-delivery-status {
  font-size: 13px;
  color: #6b6b73;
  font-weight: 500;
}

.screen-stores .stores-delivery-refresh {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid #e4e4ea;
  border-radius: 999px;
  background: #fff;
  color: #15171a;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.screen-stores .stores-delivery-refresh:hover {
  background: #f3f3f5;
}

.screen-stores .stores-delivery-meta {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #6b6b73;
}

.screen-stores .stores-delivery-meta strong {
  color: #15171a;
}

.screen-stores .stores-delivery-payment {
  color: #15171a;
}

.screen-stores .stores-delivery-option {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.screen-stores .stores-delivery-option span {
  color: #8b92a0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.screen-stores .stores-delivery-option select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #e6e7ec;
  border-radius: 14px;
  background: #fff;
  color: #15171a;
  font: inherit;
  font-weight: 700;
  padding: 0 38px 0 14px;
}

.screen-stores .stores-delivery-option.is-compact {
  margin: 0;
}

.screen-stores .stores-delivery-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.screen-stores .stores-delivery-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-size: 11px;
  color: #8d8d95;
}

.screen-stores .stores-delivery-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d7d7dd;
}

.screen-stores .stores-delivery-step.is-done .stores-delivery-dot,
.screen-stores .stores-delivery-step.is-active .stores-delivery-dot {
  background: #15171a;
}

.screen-stores .stores-delivery-step.is-active {
  color: #15171a;
  font-weight: 700;
}

.screen-stores .stores-delivery-step.is-done {
  color: #15171a;
}

@media (max-width: 720px) {
  .screen-stores .stores-delivery-track {
    grid-template-columns: 1fr;
  }

  .screen-stores .stores-delivery-step {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }
}

.screen-stores .stores-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.screen-stores .stores-address-hint {
  margin: -4px 0 0;
  color: #9297a0;
  font-size: 12px;
  line-height: 1.45;
}

.screen-stores .stores-address-hint strong {
  color: #686e78;
  font-weight: 800;
}

.screen-stores .stores-category-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.screen-stores .stores-category-back {
  padding: 8px 12px;
  border: 1px solid #eeeeef;
  border-radius: 12px;
  background: #fff;
  color: #e4002b;
  font-size: 13px;
  font-weight: 800;
}

.screen-stores .stores-category-title {
  color: #15171a;
  font-size: 15px;
  font-weight: 800;
}

.screen-stores .stores-categories {
  display: grid;
  gap: 14px;
}

.screen-stores .stores-category-group {
  color: #15171a;
  font-size: 15px;
  font-weight: 850;
}

.screen-stores .stores-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.screen-stores .stores-category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border: 1px solid #eeeeef;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.screen-stores .stores-category-tile img,
.screen-stores .stores-category-noimg {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
  background: #f6f6f7;
}

.screen-stores .stores-category-tile b {
  color: #15171a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.screen-stores .stores-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.screen-stores .stores-product-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid #eeeeef;
  border-radius: 18px;
  background: #fff;
}

.screen-stores .stores-product-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: #f6f6f7;
  overflow: hidden;
}

.screen-stores .stores-product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.screen-stores .stores-product-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e4002b;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.screen-stores .stores-product-stock-badge {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  padding: 5px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #15171a;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 4px 14px rgba(21, 23, 26, 0.08);
}

.screen-stores .stores-product-stock-badge.is-low {
  color: #d9480f;
}

.screen-stores .stores-product-stock-badge.is-out {
  color: #9297a0;
}

.screen-stores .stores-product-stock-badge.is-ok {
  color: #2f9e44;
}

.screen-stores .stores-product-body {
  display: grid;
  gap: 4px;
  flex: 1 1 auto;
  min-height: 0;
}

.screen-stores .stores-product-body strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #15171a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  min-height: 31px;
}

.screen-stores .stores-product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.screen-stores .stores-product-price span {
  color: #15171a;
  font-size: 15px;
  font-weight: 900;
}

.screen-stores .stores-product-price s {
  color: #9297a0;
  font-size: 12px;
}

.screen-stores .stores-product-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 16px;
}

.screen-stores .stores-product-meta small {
  color: #9297a0;
  font-size: 11px;
}

.screen-stores .stores-product-meta small.stores-product-stock-meta.is-ok {
  color: #2f9e44;
}

.screen-stores .stores-product-meta small.stores-product-stock-meta.is-low {
  color: #d9480f;
}

.screen-stores .stores-product-meta small.stores-product-stock-meta.is-out {
  color: #9297a0;
}

.screen-stores .stores-product-actions {
  margin-top: auto;
}

.screen-stores .stores-product-add {
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: 12px;
  background: #e4002b;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.screen-stores .stores-product-add:disabled {
  background: #eff1f4;
  color: #a6abb3;
  cursor: default;
}

.screen-stores .stores-product-qty {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 40px;
  padding: 4px;
  border-radius: 12px;
  background: #f4f5f7;
}

.screen-stores .stores-product-qty button {
  width: 36px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #15171a;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.screen-stores .stores-product-qty button:disabled {
  opacity: .45;
  cursor: default;
}

.screen-stores .stores-product-qty b {
  text-align: center;
  color: #15171a;
  font-size: 14px;
  font-weight: 800;
}

.screen-stores .stores-cart-list {
  display: grid;
  gap: 8px;
}

.screen-stores .stores-cart-empty {
  padding: 10px 2px 2px;
  color: #686e78;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.screen-stores .stores-cart-share {
  display: grid;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid #f1f2f4;
}

.screen-stores .stores-cart-share-btn {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  background: #15171a;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.screen-stores .stores-cart-share-btn:disabled {
  background: #eff1f4;
  color: #a6abb3;
  cursor: default;
}

.screen-stores .stores-cart-share-btn-secondary {
  background: #f4f5f7;
  color: #15171a;
}

.screen-stores #storesUseNewCardBtn.is-active {
  outline: 2px solid #15171a;
  outline-offset: -2px;
}

.screen-stores #storesStepCatalog {
  padding-bottom: 88px;
}

.screen-stores .stores-catalog-pagination {
  margin-top: 10px;
}

.screen-stores .stores-catalog-load-more {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  border: 0;
  border-radius: 14px;
  background: #f4f5f7;
  color: #15171a;
  font-size: 13px;
  font-weight: 800;
}

.screen-stores .stores-catalog-load-more:disabled {
  color: #a6abb3;
}

.screen-stores .stores-cart-dock {
  position: fixed;
  right: calc(14px + env(safe-area-inset-right, 0px));
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 35;
  width: auto;
  transform: none;
  left: auto;
  pointer-events: none;
}

.screen-stores .stores-cart-dock-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 12px 0 10px;
  border: 0;
  border-radius: 999px;
  background: #15171a;
  color: #fff;
  box-shadow: 0 10px 24px rgba(21, 23, 26, 0.22);
  cursor: pointer;
  pointer-events: auto;
}

.screen-stores .stores-cart-dock-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.screen-stores .stores-cart-dock-icon svg {
  width: 18px;
  height: 18px;
}

.screen-stores .stores-cart-dock-count {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e4002b;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  line-height: 1.2;
}

.screen-stores .stores-cart-dock-total {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0.92;
}

body.stores-cart-open,
body.stores-sbp-open,
body.stores-receipt-open {
  overflow: hidden;
}

.screen-stores .stores-cart-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  align-items: end;
  justify-items: end;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
}

.screen-stores .stores-cart-modal.hidden {
  display: none;
}

.screen-stores .stores-cart-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(21, 23, 26, 0.42);
  backdrop-filter: blur(4px);
}

.screen-stores .stores-cart-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(calc(100% - 24px), 340px);
  max-height: min(72vh, 560px);
  margin-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(21, 23, 26, 0.2);
}

.screen-stores .stores-cart-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 8px;
  border-bottom: 1px solid #f1f2f4;
}

.screen-stores .stores-cart-modal-head h2 {
  margin: 0;
  color: #15171a;
  font-size: 16px;
  font-weight: 900;
}

.screen-stores .stores-cart-modal-subtitle {
  margin: 2px 0 0;
  color: #686e78;
  font-size: 11px;
  font-weight: 650;
}

.screen-stores .stores-cart-modal-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 10px;
  background: #f4f5f7;
  color: #15171a;
  font-size: 18px;
  line-height: 1;
}

.screen-stores .stores-cart-modal-body {
  display: grid;
  gap: 8px;
  min-height: 0;
  padding: 10px 14px;
  overflow: auto;
}

.screen-stores .stores-cart-modal-foot {
  display: grid;
  gap: 8px;
  padding: 10px 14px 14px;
  border-top: 1px solid #f1f2f4;
  background: #fff;
}

.screen-stores .stores-cart-modal-foot.hidden {
  display: none;
}

.screen-stores .stores-receipt-modal-panel {
  max-height: min(86vh, 700px);
}

.screen-stores .stores-receipt-modal-body {
  gap: 12px;
}

.screen-stores .stores-receipt-status {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 6px;
  background: #eef8ef;
  color: #20833a;
  font-size: 11px;
  font-weight: 900;
}

.screen-stores .stores-receipt-meta {
  display: grid;
  gap: 3px;
}

.screen-stores .stores-receipt-meta small {
  color: #9297a0;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.screen-stores .stores-receipt-meta strong {
  color: #15171a;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.screen-stores .stores-receipt-items {
  display: grid;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid #eef0f2;
}

.screen-stores .stores-receipt-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.screen-stores .stores-receipt-item-media {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 8px;
  background: #f4f5f7;
}

.screen-stores .stores-receipt-item-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.screen-stores .stores-receipt-item-copy {
  min-width: 0;
}

.screen-stores .stores-receipt-item-copy strong,
.screen-stores .stores-receipt-item-copy small {
  display: block;
  overflow-wrap: anywhere;
}

.screen-stores .stores-receipt-item-copy strong,
.screen-stores .stores-receipt-item > strong {
  color: #15171a;
  font-size: 11px;
}

.screen-stores .stores-receipt-item-copy small {
  margin-top: 2px;
  color: #9297a0;
  font-size: 10px;
}

.screen-stores .stores-receipt-totals {
  display: grid;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid #eef0f2;
}

.screen-stores .stores-receipt-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: #686e78;
  font-size: 11px;
}

.screen-stores .stores-receipt-total-row strong {
  color: #15171a;
  white-space: nowrap;
}

.screen-stores .stores-receipt-total-row.is-accent,
.screen-stores .stores-receipt-total-row.is-accent strong {
  color: #e4002b;
}

.screen-stores .stores-receipt-total-row.is-total {
  margin-top: 2px;
  padding-top: 9px;
  border-top: 1px solid #eef0f2;
  color: #15171a;
  font-size: 14px;
  font-weight: 900;
}

.screen-stores .stores-receipt-modal-foot {
  grid-template-columns: 1fr;
}

.screen-stores .stores-cart-modal-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: #686e78;
  font-size: 12px;
  font-weight: 700;
}

.screen-stores .stores-cart-modal-total-row strong {
  color: #15171a;
  font-size: 18px;
  font-weight: 900;
}

.screen-stores .stores-cart-share-btn {
  min-height: 40px;
  font-size: 12px;
}

.screen-stores .stores-cart-empty {
  padding: 6px 2px 2px;
  font-size: 11px;
}

.screen-stores .stores-cart-row strong {
  font-size: 12px;
}

.screen-stores .stores-cart-row small {
  font-size: 11px;
}

.screen-stores .stores-cart-product {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.screen-stores .stores-cart-modal .stores-cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
}

.screen-stores .stores-cart-modal .stores-cart-controls {
  justify-content: flex-end;
}

.screen-stores .stores-cart-product-media {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 8px;
  background: #f4f5f7;
}

.screen-stores .stores-cart-product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.screen-stores .stores-cart-product-fallback {
  width: 20px;
  height: 20px;
  border: 2px solid #c8ccd2;
  border-radius: 6px;
}

.screen-stores .stores-cart-product-info {
  min-width: 0;
}

.screen-stores .stores-cart-product-info strong,
.screen-stores .stores-cart-product-info small {
  overflow-wrap: anywhere;
}

.screen-stores details.stores-cart-share {
  display: block;
  padding-top: 0;
}

.screen-stores .stores-cart-share summary {
  min-height: 36px;
  padding: 9px 2px;
  color: #686e78;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.screen-stores .stores-cart-share-content {
  padding-top: 6px;
}

.screen-stores .stores-cart-code-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 6px;
  align-items: center;
}

.screen-stores .stores-cart-code-action {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid #e3e5e8;
  border-radius: 8px;
  background: #f4f5f7;
  color: #15171a;
  cursor: pointer;
}

.screen-stores .stores-cart-code-action:disabled {
  color: #a6abb3;
  cursor: default;
}

.screen-stores .stores-cart-code-action svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.screen-stores .stores-cart-code-input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #e3e5e8;
  border-radius: 8px;
  background: #fff;
  color: #15171a;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0;
  outline: none;
}

.screen-stores .stores-cart-code-input:focus {
  border-color: #15171a;
}

.tg-chrome[data-view="stores"] .back-action,
.tg-chrome[data-view="stores"] .chrome-title strong {
  color: #111;
}

/* Storefront polish: compact service-app hierarchy in the MegaPay palette. */
.screen-stores {
  --stores-ink: #17181b;
  --stores-muted: #858991;
  --stores-surface: #f5f6f7;
  --stores-line: #e9eaec;
  --stores-accent: #e4002b;
  color: var(--stores-ink);
}

.screen-stores .mail-panel {
  max-width: 760px;
  margin-inline: auto;
}

.screen-stores .mail-overview h1 {
  margin-top: 6px;
  letter-spacing: -0.045em;
  line-height: .96;
  text-wrap: balance;
}

.screen-stores .mail-overview p {
  max-width: 36rem;
  color: var(--stores-muted);
  line-height: 1.5;
}

.screen-stores .mail-summary {
  overflow: hidden;
  border: 1px solid var(--stores-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(39, 42, 49, .06);
}

.screen-stores .mail-summary > span {
  min-height: 52px;
  padding-inline: 16px;
  border-color: var(--stores-line);
}

.screen-stores .mail-summary strong,
.screen-stores .stores-product-price span,
.screen-stores .stores-cart-dock-total {
  font-variant-numeric: tabular-nums;
}

.screen-stores .stores-shop-card {
  padding: 14px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.screen-stores .stores-shop-logo {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(228, 0, 43, .13);
}

.screen-stores .stores-shop-card strong {
  color: var(--stores-ink);
  font-size: 17px;
  letter-spacing: -.02em;
}

.screen-stores .stores-shop-card small {
  color: var(--stores-muted);
  line-height: 1.35;
}

.screen-stores .stores-shop-buy,
.screen-stores .stores-account-open,
.screen-stores .stores-product-add {
  border-radius: 14px;
  background: var(--stores-accent);
  color: #fff;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.screen-stores .stores-shop-buy:hover,
.screen-stores .stores-account-open:hover,
.screen-stores .stores-product-add:hover:not(:disabled) {
  background: #c90026;
  box-shadow: 0 9px 20px rgba(228, 0, 43, .18);
}

.screen-stores .stores-shop-buy:active,
.screen-stores .stores-account-open:active,
.screen-stores .stores-product-add:active:not(:disabled) {
  transform: scale(.97);
}

.screen-stores .stores-accounts-section {
  gap: 12px;
  margin-top: 24px;
}

.screen-stores .stores-accounts-heading {
  color: var(--stores-muted);
  font-size: 12px;
  letter-spacing: .08em;
}

.screen-stores .stores-accounts-list {
  gap: 8px;
}

.screen-stores .stores-account-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
  border: 0;
  border-radius: 18px;
  background: var(--stores-surface);
  transition: transform .2s ease, background-color .2s ease;
}

.screen-stores .stores-account-row:hover {
  background: #f0f1f3;
  transform: translateY(-1px);
}

.screen-stores .stores-account-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.screen-stores .stores-account-brand {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}

.screen-stores .stores-account-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.screen-stores .stores-account-copy {
  min-width: 0;
}

.screen-stores .stores-account-row strong {
  color: var(--stores-ink);
  letter-spacing: -.015em;
}

.screen-stores .stores-account-row small {
  color: var(--stores-muted);
  line-height: 1.4;
}

.screen-stores .stores-account-actions {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.screen-stores .stores-account-delete,
.screen-stores .stores-account-receipt {
  border: 0;
  background: transparent;
  color: var(--stores-muted);
  transition: color .18s ease, background-color .18s ease;
}

.screen-stores .stores-account-delete:hover,
.screen-stores .stores-account-receipt:hover {
  background: #fff;
  color: var(--stores-ink);
}

.screen-stores .stores-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.screen-stores .stores-category-tile,
.screen-stores .stores-product-card,
.screen-stores .stores-payment-method {
  border-color: var(--stores-line);
  box-shadow: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.screen-stores .stores-category-tile:hover,
.screen-stores .stores-product-card:hover,
.screen-stores .stores-payment-method:hover {
  transform: translateY(-2px);
  border-color: #d9dade;
  box-shadow: 0 12px 28px rgba(39, 42, 49, .07);
}

.screen-stores .stores-payment-tab.is-active,
.screen-stores .stores-payment-method.is-active {
  border-color: var(--stores-accent);
  background: #fff0f3;
  color: var(--stores-accent);
  box-shadow: inset 0 0 0 1px var(--stores-accent);
}

.screen-stores button:focus-visible,
.screen-stores input:focus-visible {
  outline: 3px solid rgba(228, 0, 43, .2);
  outline-offset: 2px;
}

.screen-stores input[type="search"]::-webkit-search-cancel-button {
  display: none;
  appearance: none;
}

.screen-stores #storesAddressQuery {
  padding-right: 14px;
  text-overflow: ellipsis;
}

.screen-stores .stores-order-account-label {
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 1px solid rgba(228, 0, 43, .1);
  border-radius: 14px;
  background: #fff2f4;
  color: #a50020;
}

.screen-stores .stores-stepper {
  gap: 6px;
  padding: 0;
  background: transparent;
}

.screen-stores .stores-stepper-item {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f1f2f4;
  color: #8b8f96;
  font-size: 11px;
  font-weight: 750;
}

.screen-stores .stores-stepper-item.is-active {
  background: #fff0f3;
  color: var(--stores-accent);
}

@media (max-width: 520px) {
  .screen-stores .stores-account-row {
    grid-template-columns: 1fr;
  }

  .screen-stores .stores-account-actions {
    justify-content: flex-start;
    padding-left: 54px;
  }

  .screen-stores .stores-account-open {
    min-width: 112px;
  }

  .screen-stores .stores-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
