/* Карточка действий на товаре */
.mcs-actions.card{
  background:#151515; border:1px solid #2a2a2a; border-radius:12px;
  padding:16px; color:#ddd;
}
.mcs-actions .mcs-btn{
  display:block; width:100%; text-align:center; padding:12px 14px;
  border-radius:10px; border:1px solid #3a3a3a; background:#222; color:#fff; margin-bottom:12px;
}
.mcs-actions .mcs-btn.btn-red{ background:#ff1744; border-color:#ff1744; color:#fff; font-weight:600; }
.mcs-actions .mcs-btn.btn-outline{ background:#121212; border-color:#444; }
.mcs-actions .mcs-row{ display:flex; gap:12px; margin:6px 0 12px; }
.mcs-ico{ width:56px; height:48px; border-radius:10px; border:1px solid #3a3a3a; background:#1b1b1b; color:#fff; }
.mcs-ico.is-active{ outline:2px solid #ff1744; }
.mcs-notes{ list-style:none; margin:10px 0 0; padding:0; font-size:13px; opacity:.8; }
.mcs-notes li{ margin:6px 0; }
.mcs-sub-form{ display:flex; gap:10px; }
.mcs-sub-form input{ flex:1; background:#101010; border:1px solid #3a3a3a; border-radius:10px; color:#fff; padding:10px; }

/* ---- Subscribe card (как на референсе) ---- */
.mcs-sub-card{
  margin-top:16px;
  background:#1a1a1a;
  border:1px solid #2a2a2a;
  border-radius:12px;
  padding:16px 18px;
  color:#ddd;
}
.mcs-sub-card .mcs-sub-title{
  font-weight:700;
  margin-bottom:12px;
}
.mcs-sub-card .mcs-sub-form{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.mcs-sub-card .mcs-sub-email{
  width:100%;
  background:#101010;
  border:1px solid #3a3a3a;
  border-radius:10px;
  color:#fff;
  padding:12px 14px;
}
.mcs-sub-card .mcs-sub-submit{
  width:100%;
  background:#262626;
  border:1px solid #3a3a3a;
  border-radius:10px;
  color:#fff;
  padding:12px 14px;
  font-weight:600;
}
.mcs-sub-card .mcs-sub-submit:hover{ background:#2e2e2e; }
.mcs-sub-card .mcs-sub-submit:disabled{ opacity:.7; cursor:default; }

/* Top auth buttons */
.mcs-auth{ display:flex; gap:10px; align-items:center; }
.mcs-btn{ padding:10px 14px; border-radius:12px; border:1px solid #3a3a3a; background:#262626; color:#fff; font-weight:600; }
.mcs-btn.btn-red{ background:#ee2447; border-color:#ee2447; }
.mcs-btn.btn-outline{ background:#1a1a1a; }

/* Avatar + dropdown */
.mcs-auth-user{ position:relative; }
.mcs-avatar-btn{ width:36px; height:36px; border-radius:999px; overflow:hidden; border:1px solid #3a3a3a; background:#1a1a1a; display:inline-flex; align-items:center; justify-content:center; }
.mcs-avatar-btn img{ width:100%; height:100%; object-fit:cover; display:block; }
.mcs-user-dd{
  position:absolute; right:0; top:44px; width:240px;
  background:#121212; border:1px solid #2a2a2a; border-radius:14px; padding:10px;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
  z-index:9998;
}
.mcs-user-name{ font-weight:700; padding:8px 10px; color:#fff; }
.mcs-user-item{
  display:block; padding:10px 12px; border-radius:10px; color:#ddd; text-decoration:none;
  background:#181818; border:1px solid #2a2a2a; margin-top:8px;
}
.mcs-user-item:hover{ background:#202020; }
.mcs-user-sep{ height:1px; background:#2a2a2a; margin:10px 0; }

/* Modals */
.mcs-auth-modal{
  position:fixed; inset:0; background:rgba(0,0,0,.65);
  display:flex; justify-content:center; align-items:center; z-index:9999;
}
.mcs-auth-dialog{
  width:90%; max-width:420px; background:#141414; border:1px solid #2a2a2a;
  border-radius:16px; padding:20px;
}
.mcs-close{ position:absolute; margin-left:auto; right:24px; top:20px; background:#222; color:#fff; border:0; width:32px; height:32px; border-radius:8px; }
.mcs-auth-title{ font-weight:800; font-size:20px; margin-bottom:14px; }
.mcs-form{ display:flex; flex-direction:column; gap:12px; }
.mcs-form input{
  width:100%; padding:12px 14px; border-radius:10px; border:1px solid #3a3a3a;
  background:#0f0f0f; color:#fff;
}
.mcs-auth-links{ margin-top:6px; font-size:14px; }
.mcs-auth-links a{ color:#bcd; text-decoration:none; }
.mcs-auth-help{ opacity:.7; font-size:13px; }

/* Блокировка прокрутки фона для превью-модалки */
html.mcs-locked, body.mcs-locked { overflow: hidden; }

/* ===== Стили кабинета (используются в class-account.php) ===== */
.mcs-account-wrap{ max-width:1100px; margin:20px auto; padding:0 16px; }
.mcs-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
  gap:14px;
}
.mcs-card{
  display:block; text-decoration:none; color:#ddd;
  background:#131313; border:1px solid #262626; border-radius:12px; overflow:hidden;
}
.mcs-card__img img{ width:100%; height:auto; display:block; }
.mcs-card__title{ padding:10px 12px; font-weight:600; }

/* Subscriptions */
.mcs-sub-box{
  background:#141414; border:1px solid #2a2a2a; border-radius:12px; padding:14px;
  max-width:560px;
}
.mcs-sub-row{ display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px dashed #2a2a2a; }
.mcs-sub-row:last-child{ border-bottom:0; }
/* — фикс размера/формы аватара в любых областях темы (хедер/виджеты и т.п.) — */
.mcs-auth-user{ position:relative; display:inline-flex; }
.mcs-auth .mcs-avatar-btn{
  width:40px; height:40px;
  padding:0;
  line-height:0;
  border-radius:9999px;
  overflow:hidden;
  border:1px solid #3a3a3a;
  background:#1a1a1a;
  display:inline-flex; align-items:center; justify-content:center;
}
.mcs-auth .mcs-avatar-btn img{
  width:100% !important; height:100% !important;
  border-radius:50% !important;
  object-fit:cover; display:block;
}

/* ===== My Account: Tabs (как на рефе) ===== */
.mcs-tabs{
  display:flex; gap:32px; align-items:flex-end;
  padding:18px 16px 12px; margin:0 0 8px;
  border-bottom:1px solid #262626;
  background:#121212;
}
.mcs-tab{
  position:relative; display:inline-block;
  padding:6px 0; color:#c8c8c8; text-decoration:none; font-weight:700;
}
.mcs-tab:is(:hover,.is-active){ color:#fff; }
.mcs-tab.is-active::after{
  content:""; position:absolute; left:0; right:0; bottom:-13px; height:4px;
  border-radius:4px;
  background: radial-gradient(12px 6px at 50% 100%, #ff2d55 0%, #b21632 60%, transparent 100%);
}

/* Контейнер и карточки */
.mcs-account-wrap{ padding:0; }
.mcs-account-body{ padding:22px 16px 40px; }
.mcs-grid{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  gap:18px; margin-top:10px;
}
.mcs-card{ display:block; text-decoration:none; color:#fff; }
.mcs-card__img img{ width:100%; height:auto; border-radius:12px; display:block; }
.mcs-card__title{ margin-top:8px; font-weight:700; }

/* Пустое состояние */
.mcs-empty{ display:grid; place-items:center; gap:18px; padding:80px 0 40px; text-align:center; }
.mcs-empty-ico{ font-size:48px; line-height:1; opacity:.9; }
.mcs-empty-text{ font-size:22px; max-width:760px; color:#e7e7e7; }
.mcs-empty-btn{ padding:12px 22px; border-radius:12px; display:inline-block; }

/* Подправим общую кнопку (чтобы совпала со style guide) */
.mcs-btn.btn-red{ background:#ff2d55; border-color:#ff2d55; }

/* Toast-модалка подтверждения подписки */
.mcs-toast{
  position:fixed; inset:0; display:grid; place-items:center; z-index:3000;
  background:rgba(0,0,0,.55);
}
.mcs-toast-box{
  background:#141414; border:1px solid #2a2a2a; border-radius:12px;
  padding:16px 18px; color:#fff; max-width:520px; text-align:center;
}

/* Сообщение вместо формы после подписки */
.mcs-sub-msg{
  margin-top:10px; padding:14px; border:1px solid #2a2a2a; border-radius:10px;
  background:#181818; color:#ddd; text-align:center; font-weight:600;
}
