/* Core module: shared page primitives and future utilities */

.yl-market-mode-modal {
  z-index: 200000 !important;
  --yl-mm-ink: #172033;
  --yl-mm-ink-strong: #102331;
  --yl-mm-navy: #13233b;
  --yl-mm-navy-soft: #27425f;
  --yl-mm-accent: #ffd24a;
  --yl-mm-accent-strong: #f4b400;
  --yl-mm-accent-soft: rgba(255, 210, 74, 0.18);
  --yl-mm-accent-soft-strong: rgba(255, 210, 74, 0.32);
  --yl-mm-outline: rgba(203, 213, 225, 0.92);
  --yl-mm-outline-warm: rgba(231, 190, 73, 0.34);
  --yl-mm-panel: rgba(255, 255, 255, 0.94);
  --yl-mm-panel-warm: rgba(255, 251, 241, 0.96);
}

.modal-backdrop.yl-market-mode-backdrop.show {
  z-index: 199990 !important;
  opacity: 1 !important;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 210, 74, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.62) 0%, rgba(15, 23, 42, 0.78) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-backdrop.yl-market-mode-variant-backdrop.show {
  z-index: 200110 !important;
  opacity: 1 !important;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 210, 74, 0.14), transparent 24%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.28) 0%, rgba(15, 23, 42, 0.46) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-backdrop.yl-video-overlay-quickadd-backdrop.show {
  z-index: 120010 !important;
  opacity: 1 !important;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 210, 74, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.24) 0%, rgba(15, 23, 42, 0.42) 100%);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.yl-market-mode-modal .modal-content {
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  height: 100%;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.18);
}

.yl-market-mode-modal .modal-dialog {
  max-width: min(1600px, calc(100vw - 20px));
  height: calc(100vh - 20px);
  margin: 10px auto;
}

.yl-market-mode-modal .modal-dialog-scrollable .modal-body {
  overflow: hidden;
}

.yl-mm-header {
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  padding: 22px 24px;
  background:
    radial-gradient(circle at 0% 50%, rgba(255, 210, 74, 0.22), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(19, 35, 59, 0.1), transparent 26%),
    linear-gradient(100deg, rgba(255, 249, 234, 0.98) 0%, rgba(255, 253, 247, 0.98) 42%, rgba(255, 255, 255, 0.98) 100%);
}

.yl-mm-header > :not(.yl-mm-header-shell) {
  display: none !important;
}

.yl-mm-header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
}

.yl-mm-header-main {
  display: flex;
  align-items: stretch;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.yl-mm-brand-card--header {
  min-width: 300px;
  max-width: 300px;
  padding: 12px 16px;
  border-color: rgba(231, 190, 73, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 251, 241, 0.96) 100%);
}

.yl-mm-brand-card--header > .yl-mm-header-stat--reward-value {
  display: none;
}

.yl-mm-header-title-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1 1 auto;
  padding: 14px 18px;
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(255, 249, 234, 0.96) 0%, rgba(255, 255, 255, 0.92) 100%);
  border: 1px solid rgba(231, 190, 73, 0.18);
}

.yl-mm-header-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex: 0 0 auto;
}

.yl-mm-header-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  text-align: right;
}

.yl-mm-header-stat {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  line-height: 1.15;
}

.yl-mm-header-stat span {
  font-size: 0.82rem;
  color: #172033;
  font-weight: 600;
}

.yl-mm-header-stat strong {
  font-size: 0.92rem;
  color: #d99a00;
  font-weight: 900;
}

.yl-mm-header-stat--reward-value strong {
  color: #0f8a5f;
}

.yl-mm-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 210, 74, 0.1), rgba(244, 180, 0, 0.34), rgba(19, 35, 59, 0.12));
  pointer-events: none;
}

.yl-mm-kicker {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a6000;
  margin-bottom: 6px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.yl-market-mode-modal .modal-title {
  font-size: clamp(1.35rem, 1.9vw, 2rem);
  font-weight: 900;
  color: var(--yl-mm-ink-strong);
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.yl-mm-header .btn-close {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(203, 213, 225, 0.82);
  box-shadow: 0 12px 22px rgba(148, 163, 184, 0.12);
  opacity: 0.95;
}

.yl-mm-header .btn-close:hover,
.yl-mm-header .btn-close:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.12);
}

.yl-mm-body {
  padding: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 210, 74, 0.08), transparent 28%),
    linear-gradient(180deg, #fffdf8 0%, #f3f6fb 100%);
}

.yl-mm-shell {
  display: grid;
  grid-template-columns: minmax(138px, 168px) minmax(0, 1fr) minmax(250px, 300px);
  gap: 14px;
  padding: 16px;
  height: 100%;
  min-height: 0;
  align-items: stretch;
}

.yl-mm-summary,
.yl-mm-categories,
.yl-mm-products {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.yl-mm-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  grid-column: 3;
  grid-row: 1;
}

.yl-mm-categories {
  grid-column: 1;
  grid-row: 1;
}

.yl-mm-products {
  grid-column: 2;
  grid-row: 1;
}

.yl-mm-brand-card,
.yl-mm-member-card,
.yl-mm-total-card,
.yl-mm-draft-card,
.yl-mm-categories,
.yl-mm-products {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: var(--yl-mm-panel);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(148, 163, 184, 0.1);
}

.yl-mm-brand-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.yl-mm-summary > .yl-mm-brand-card {
  display: none;
}

.yl-mm-brand-logo {
  width: 92px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
}

.yl-mm-brand-copy {
  min-width: 0;
}

.yl-mm-brand-name {
  font-size: 1rem;
  font-weight: 800;
  color: #172033;
}

.yl-mm-brand-sub {
  color: #64748b;
  font-size: 0.88rem;
}

.yl-mm-member-card,
.yl-mm-total-card {
  padding: 14px;
}

.yl-mm-member-title,
.yl-mm-total-label {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 10px;
}

.yl-mm-member-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.58), rgba(248, 250, 252, 0.96));
  border: 1px solid rgba(203, 213, 225, 0.82);
}

.yl-mm-member-name {
  font-weight: 800;
  color: #172033;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.yl-mm-member-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--yl-mm-navy) 0%, var(--yl-mm-navy-soft) 100%);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
}

.yl-mm-total-card {
  background: linear-gradient(135deg, var(--yl-mm-navy) 0%, var(--yl-mm-navy-soft) 100%);
  color: #fff;
}

.yl-mm-total-card .yl-mm-total-label,
.yl-mm-total-card .yl-mm-total-note {
  color: rgba(255, 255, 255, 0.76);
}

.yl-mm-total-value {
  font-size: clamp(1.2rem, 2.1vw, 2rem);
  font-weight: 900;
  line-height: 0.94;
}

.yl-mm-total-note {
  margin-top: 8px;
  font-size: 0.86rem;
}

.yl-mm-draft-card {
  padding: 14px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.yl-mm-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.yl-mm-section-head--compact {
  margin-bottom: 10px;
}

.yl-mm-section-head h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #172033;
}

.yl-mm-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 210, 74, 0.16);
  color: var(--yl-mm-ink-strong);
  font-size: 0.72rem;
  font-weight: 700;
}

.yl-mm-draft-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  min-height: 0;
}

.yl-mm-draft-list,
.yl-mm-category-list,
.yl-mm-product-grid {
  scrollbar-width: auto;
  scrollbar-color: rgba(37, 99, 235, 0.72) transparent;
}

.yl-mm-draft-list::-webkit-scrollbar,
.yl-mm-category-list::-webkit-scrollbar,
.yl-mm-product-grid::-webkit-scrollbar {
  width: 18px;
  height: 18px;
}

.yl-mm-draft-list::-webkit-scrollbar-track,
.yl-mm-category-list::-webkit-scrollbar-track,
.yl-mm-product-grid::-webkit-scrollbar-track {
  background: transparent;
}

.yl-mm-draft-list::-webkit-scrollbar-thumb,
.yl-mm-category-list::-webkit-scrollbar-thumb,
.yl-mm-product-grid::-webkit-scrollbar-thumb {
  border: 5px solid transparent;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.72);
  background-clip: padding-box;
  min-height: 34px;
}

.yl-mm-draft-list:hover::-webkit-scrollbar-thumb,
.yl-mm-category-list:hover::-webkit-scrollbar-thumb,
.yl-mm-product-grid:hover::-webkit-scrollbar-thumb {
  background: rgba(29, 78, 216, 0.9);
  background-clip: padding-box;
}

.yl-mm-draft-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 16px;
  background: #fff;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.yl-mm-draft-item::before {
  content: attr(data-market-line-qty);
  position: absolute;
  top: 8px;
  left: 8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(191, 219, 254, 0.95);
  color: #0f5f88;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
  z-index: 2;
}

.yl-mm-draft-item:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 197, 94, 0.32);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.yl-mm-draft-item--synced {
  border-color: rgba(59, 130, 246, 0.52);
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.yl-mm-draft-item--synced:hover {
  border-color: rgba(37, 99, 235, 0.62);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
}

.yl-mm-draft-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.92);
}

.yl-mm-draft-main {
  min-width: 0;
}

.yl-mm-draft-name {
  font-weight: 800;
  color: #172033;
  line-height: 1.25;
  font-size: 0.98rem;
}

.yl-mm-draft-meta {
  margin-top: 4px;
  color: #64748b;
  font-size: 0.76rem;
}

.yl-mm-draft-origin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.yl-mm-draft-price {
  margin-top: 6px;
  font-weight: 800;
  color: #0f766e;
  font-size: 0.96rem;
}

.yl-mm-draft-old-price {
  margin-top: 6px;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: line-through;
}

.yl-mm-draft-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yl-mm-draft-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  width: 30px;
}

.yl-mm-qty {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, minmax(0, auto));
  justify-items: center;
  gap: 3px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.yl-mm-qty-btn[data-market-line-action="increase"] {
  grid-row: 1;
}

.yl-mm-qty-btn[data-market-line-action="decrease"] {
  grid-row: 2;
}

.yl-mm-qty-btn,
.yl-mm-remove-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 12px;
}

.yl-mm-qty-input {
  display: none;
}

.yl-mm-remove-btn {
  color: #b91c1c;
  border-color: rgba(248, 113, 113, 0.32);
}

.yl-mm-empty {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border: 1px dashed rgba(148, 163, 184, 0.34);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.82);
  color: #64748b;
  text-align: center;
  padding: 14px;
  font-size: 0.88rem;
}

.yl-mm-empty.is-visible {
  display: flex;
}

.yl-mm-action-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.yl-mm-action-btn {
  min-height: 42px;
  padding-inline: 14px;
  border-radius: 20px !important;
  border: 1px solid var(--yl-mm-outline-warm) !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%) !important;
  color: var(--yl-mm-ink) !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 18px rgba(148, 163, 184, 0.08);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.yl-mm-primary-btn {
  border-color: rgba(231, 171, 22, 0.5) !important;
  background: linear-gradient(135deg, var(--yl-mm-accent) 0%, var(--yl-mm-accent-strong) 100%) !important;
  color: var(--yl-mm-ink-strong) !important;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
}

.yl-mm-action-btn:hover,
.yl-mm-action-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(231, 171, 22, 0.48) !important;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.14);
}

.yl-mm-categories {
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 210, 74, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, var(--yl-mm-panel-warm) 100%);
  border-color: rgba(231, 190, 73, 0.22);
}

.yl-mm-category-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding: 12px 8px 6px 0;
}

.yl-mm-category-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 74px;
  padding: 15px 56px 15px 18px;
  border-radius: 18px;
  border: 1px solid rgba(199, 211, 225, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 251, 254, 0.98) 100%);
  color: var(--yl-mm-ink);
  font-weight: 800;
  line-height: 1.16;
  text-align: left;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.yl-mm-category-btn:hover,
.yl-mm-category-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(231, 171, 22, 0.4);
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 248, 229, 0.92) 100%);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

.yl-mm-category-btn.is-active {
  background: linear-gradient(135deg, var(--yl-mm-accent) 0%, var(--yl-mm-accent-strong) 100%);
  border-color: rgba(231, 171, 22, 0.72);
  color: var(--yl-mm-ink-strong);
  box-shadow: 0 18px 30px rgba(244, 180, 0, 0.22);
}

.yl-mm-category-count {
  position: absolute;
  top: -10px;
  right: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(226, 232, 240, 0.96) 100%);
  color: var(--yl-mm-ink-strong);
  font-size: 0.88rem;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.yl-mm-category-btn.is-active .yl-mm-category-count {
  background: linear-gradient(180deg, #ffca2f 0%, #f0b10a 100%);
  border-color: rgba(255, 236, 177, 0.96);
  box-shadow: 0 12px 24px rgba(244, 180, 0, 0.26);
}

.yl-mm-products {
  padding: 14px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.yl-mm-products-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.yl-mm-products-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: #172033;
}

.yl-mm-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(420px, 100%);
  max-width: 100%;
  min-width: min(100%, 260px);
  flex: 1 1 320px;
}

.yl-mm-search .form-control {
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid var(--yl-mm-outline-warm);
  box-shadow: none;
}

.yl-mm-search .btn {
  min-height: 42px;
  padding-inline: 18px;
  border-radius: 20px !important;
  border: 1px solid rgba(19, 35, 59, 0.32) !important;
  background: linear-gradient(135deg, var(--yl-mm-navy) 0%, var(--yl-mm-navy-soft) 100%) !important;
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.yl-mm-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.yl-mm-products-meta,
.yl-mm-status {
  color: #64748b;
  font-size: 0.84rem;
}

.yl-mm-status {
  text-align: right;
  min-height: 1.4em;
}

.yl-mm-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  grid-template-rows: none;
  grid-auto-rows: minmax(336px, auto);
  gap: 12px;
  flex: 1 1 0;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  padding-right: 8px;
  align-content: start;
  scrollbar-gutter: stable;
}

.yl-mm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 336px;
  border: 1px solid rgba(226, 232, 240, 0.98);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 7px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.yl-mm-card:hover {
  transform: translateY(-3px);
  border-color: rgba(231, 171, 22, 0.32);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.1);
}

.yl-mm-card-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  aspect-ratio: 1 / 0.72;
  min-height: clamp(88px, 8.4vw, 138px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.yl-mm-card-media img {
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  object-fit: contain;
  display: block;
}

.yl-mm-stock-badge,
.yl-mm-sale-badge {
  position: absolute;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.1);
}

.yl-mm-stock-badge {
  bottom: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #166534;
}

.yl-mm-stock-badge.is-out {
  color: #b91c1c;
}

.yl-mm-sale-badge {
  top: 10px;
  background: #14213d;
  color: #fff;
}

.yl-mm-card-title {
  font-size: 0.64rem;
  font-weight: 800;
  color: #172033;
  line-height: 1.08;
  min-height: 3.2em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.yl-mm-card-code {
  margin-top: 1px;
  color: #64748b;
  font-size: 0.62rem;
}

.yl-mm-card-pricing {
  margin-top: auto;
  padding-top: 6px;
}

.yl-mm-card-old {
  color: #94a3b8;
  font-size: 0.66rem;
  text-decoration: line-through;
  min-height: 1em;
}

.yl-mm-card-price {
  color: #059669;
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.yl-mm-card-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yl-mm-price-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 33, 61, 0.08);
  color: #13233b;
  animation: yl-mm-price-info-pulse 1.6s ease-in-out infinite;
}

.yl-mm-price-info:hover,
.yl-mm-price-info:focus-visible {
  background: rgba(20, 33, 61, 0.14);
  color: #0f1d31;
  outline: 0;
}

.yl-mm-price-info i {
  font-size: 0.82rem;
}

.yl-mm-price-info--draft {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.yl-mm-price-info--draft .yl-mm-price-tooltip {
  left: auto;
  right: 0;
  transform: translateY(6px);
  min-width: 210px;
  max-width: 240px;
}

.yl-mm-price-info--draft .yl-mm-price-tooltip::after {
  left: auto;
  right: 8px;
  transform: rotate(45deg);
}

.yl-mm-price-info--draft:hover .yl-mm-price-tooltip,
.yl-mm-price-info--draft:focus-visible .yl-mm-price-tooltip,
.yl-mm-price-info--draft:focus .yl-mm-price-tooltip {
  transform: translateY(0);
}

.yl-mm-price-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(19, 35, 59, 0.96);
  color: #fff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 8;
}

.yl-mm-price-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 12px;
  height: 12px;
  background: rgba(19, 35, 59, 0.96);
  transform: translateX(-50%) rotate(45deg);
}

.yl-mm-price-info:hover .yl-mm-price-tooltip,
.yl-mm-price-info:focus-visible .yl-mm-price-tooltip,
.yl-mm-price-info:focus .yl-mm-price-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.yl-mm-price-tooltip-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  line-height: 1.3;
}

.yl-mm-price-tooltip-label {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.72rem;
  font-weight: 700;
}

.yl-mm-price-tooltip-amount {
  color: #ffd24a;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

@keyframes yl-mm-price-info-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(244, 180, 0, 0.14);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 6px rgba(244, 180, 0, 0);
  }
}

.yl-mm-card-actions {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.yl-mm-card-actions .btn {
  min-height: 30px;
  border-radius: 18px !important;
  border: 1px solid var(--yl-mm-outline-warm) !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
  color: var(--yl-mm-ink);
  font-weight: 800;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.yl-mm-card-actions .btn:hover,
.yl-mm-card-actions .btn:focus-visible {
  transform: translateY(-1px);
}

.yl-mm-card-view {
  flex: 0 0 32px;
  width: 32px;
  padding: 0;
  border-radius: 18px !important;
}

.yl-mm-card-add {
  flex: 0 0 auto;
  min-width: 122px;
  margin-left: auto;
  padding-inline: 14px;
  font-size: 0.7rem;
  border-color: var(--yl-mm-outline-warm) !important;
  background: linear-gradient(180deg, #ffffff 0%, #fff8e8 100%) !important;
  color: var(--yl-mm-ink) !important;
  box-shadow: 0 8px 16px rgba(148, 163, 184, 0.08);
}

.yl-mm-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  flex: 0 0 auto;
  gap: 12px;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid rgba(226, 232, 240, 0.92);
  background: rgba(255, 255, 255, 0.96);
}

.yl-mm-pagination-info {
  color: #64748b;
  font-weight: 700;
}

.yl-mm-pagination-promo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 18px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 235, 0.96) 100%);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
  color: #334155;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  flex: 1 1 auto;
  max-width: min(100%, 540px);
  margin-inline: auto;
  text-decoration: none;
  color: #334155;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.yl-mm-pagination-promo:hover,
.yl-mm-pagination-promo:focus-visible {
  color: #1e293b;
  text-decoration: none;
  transform: translateY(-1px);
  border-color: rgba(231, 190, 73, 0.42);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.1);
}

.yl-mm-pagination-promo-logo {
  width: auto;
  height: 28px;
  max-width: 124px;
  object-fit: contain;
  flex: 0 0 auto;
}

.yl-mm-pagination-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yl-mm-pagination-actions .btn {
  min-width: 96px;
  padding-inline: 14px;
  border-radius: 20px !important;
  border: 1px solid var(--yl-mm-outline-warm) !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%) !important;
  color: var(--yl-mm-ink) !important;
  font-weight: 700;
  overflow: hidden;
}

.yl-market-mode-variant-modal {
  z-index: 200120 !important;
}

.yl-market-mode-variant-modal .modal-content {
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 26px 54px rgba(15, 23, 42, 0.22);
}

.yl-market-mode-variant-modal .modal-dialog {
  width: min(880px, calc(100vw - 32px));
  max-width: min(880px, calc(100vw - 32px));
}

.yl-mmv-header {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 210, 74, 0.18), transparent 26%),
    radial-gradient(circle at 100% 100%, rgba(19, 35, 59, 0.12), transparent 24%),
    linear-gradient(110deg, rgba(255, 250, 236, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.yl-mmv-header .btn-close {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background-color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(203, 213, 225, 0.82);
  box-shadow: 0 10px 20px rgba(148, 163, 184, 0.12);
  opacity: 0.95;
}

.yl-mmv-kicker {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a6000;
  margin-bottom: 4px;
}

.yl-mmv-subtitle {
  margin-top: 4px;
  color: #64748b;
  font-size: 0.94rem;
}

.yl-mmv-body {
  padding: 20px 22px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f8fb 100%);
}

.yl-mmv-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.yl-mmv-product-card,
.yl-mmv-options-wrap {
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(148, 163, 184, 0.08);
}

.yl-mmv-product-card {
  padding: 18px;
}

.yl-mmv-thumb-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(160px, 22vw, 196px);
  border-radius: 18px;
  background: radial-gradient(circle at top, rgba(241, 245, 249, 0.96), rgba(226, 232, 240, 0.78));
  border: 1px solid rgba(226, 232, 240, 0.9);
  overflow: hidden;
}

.yl-mmv-thumb {
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: contain;
}

.yl-mmv-thumb-icon {
  font-size: 2.2rem;
  color: #94a3b8;
}

.yl-mmv-product-copy {
  margin-top: 16px;
}

.yl-mmv-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.yl-mmv-price {
  font-size: clamp(1.02rem, 1.4vw, 1.4rem);
  font-weight: 900;
  color: #102331;
  line-height: 1;
}

.yl-mmv-price-amount,
.yl-mmv-price-currency {
  display: inline-block;
}

.yl-mmv-price-currency {
  font-size: 0.7em;
  margin-left: 0.18em;
  vertical-align: baseline;
}

.yl-mmv-old-price {
  color: #94a3b8;
  font-size: 0.98rem;
  text-decoration: line-through;
}

.yl-mmv-old-price-currency {
  font-size: 0.7em;
  margin-left: 0.16em;
}

.yl-mmv-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #14213d;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
}

.yl-mmv-stock {
  margin-top: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #166534;
}

.yl-mmv-stock.is-out {
  color: #b42318;
}

.yl-mmv-hint,
.yl-mmv-status {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #64748b;
}

.yl-mmv-status {
  min-height: 1.4em;
}

.yl-mmv-options-wrap {
  padding: 18px;
}

.yl-mmv-group + .yl-mmv-group {
  margin-top: 16px;
}

.yl-mmv-label {
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 800;
  color: #172033;
}

.yl-mmv-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.yl-mmv-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.yl-mmv-option-grid--single {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.yl-mmv-option-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 108px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 2px solid rgba(15, 23, 42, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #172033;
  text-align: center;
  font-weight: 800;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.yl-mmv-option-card:hover,
.yl-mmv-option-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(15, 23, 42, 0.5);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

.yl-mmv-option-card.is-active {
  border-color: #102331;
  background: linear-gradient(135deg, #102331 0%, #173d57 100%);
  color: #fff;
}

.yl-mmv-option-title {
  font-size: 0.98rem;
  line-height: 1.16;
}

.yl-mmv-option-price {
  margin-top: 6px;
  font-size: 0.92rem;
  opacity: 0.88;
}

.yl-mmv-option-stock {
  margin-top: 6px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #166534;
}

.yl-mmv-option-card[disabled] {
  cursor: not-allowed;
}

.yl-mmv-option-card.is-out-of-stock {
  border-style: dashed;
  color: #94a3b8;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: none;
}

.yl-mmv-option-card.is-out-of-stock .yl-mmv-option-stock {
  color: #b42318;
}

.yl-mmv-option-card.is-out-of-stock:not(.is-active):hover,
.yl-mmv-option-card.is-out-of-stock:not(.is-active):focus-visible {
  transform: none;
  border-color: rgba(15, 23, 42, 0.2);
  box-shadow: none;
}

.yl-mmv-no-combo {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(254, 240, 138, 0.28);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #92400e;
  font-size: 0.88rem;
  font-weight: 700;
}

.yl-mmv-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 22px 20px;
  border-top: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(248, 250, 252, 0.96) 100%);
}

@media (max-width: 1599.98px) {
  .yl-market-mode-modal .modal-dialog-scrollable .modal-body {
    overflow: auto;
  }

  .yl-mm-shell {
    grid-template-columns: minmax(122px, 148px) minmax(0, 1fr);
    grid-template-areas:
      "categories products"
      "summary summary";
    height: auto;
    min-height: 0;
    align-items: start;
  }

  .yl-mm-categories,
  .yl-mm-products,
  .yl-mm-summary {
    grid-column: auto;
    grid-row: auto;
    height: auto;
  }

  .yl-mm-categories {
    grid-area: categories;
    align-self: start;
  }

  .yl-mm-products {
    grid-area: products;
    overflow: visible;
  }

  .yl-mm-summary {
    grid-area: summary;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
  }

  .yl-mm-product-grid {
    flex: 0 0 auto;
    overflow: visible;
    padding-right: 0;
    scrollbar-gutter: auto;
  }

  .yl-mm-draft-card {
    grid-column: 1 / -1;
    min-height: 280px;
  }
}

@media (max-width: 1549.98px) {
  .yl-mm-shell {
    gap: 12px;
  }

  .yl-mm-product-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    grid-template-rows: none;
    overflow: auto;
  }

  .yl-mm-card-media {
    min-height: clamp(96px, 10.5vw, 142px);
  }
}

@media (max-width: 1299.98px) {
  .yl-mm-brand-card--header {
    min-width: 250px;
    max-width: 250px;
  }

  .yl-mm-header-stat {
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
  }

  .yl-mm-shell {
    gap: 10px;
  }

  .yl-mm-product-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  }

  .yl-mm-card-media {
    min-height: clamp(116px, 14vw, 164px);
  }
}

@media (max-width: 1199.98px) {
  .yl-mm-header-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .yl-mm-header-main,
  .yl-mm-header-side {
    width: 100%;
  }

  .yl-mm-header-side {
    justify-content: space-between;
  }

  .yl-mm-header-stats {
    align-items: flex-start;
    text-align: left;
  }

  .yl-mm-header-stat {
    align-items: flex-start;
  }

  .yl-market-mode-modal .modal-dialog {
    max-width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    margin: 10px auto;
  }

  .yl-mm-shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .yl-mm-summary,
  .yl-mm-categories {
    grid-column: auto;
    grid-row: auto;
  }

  .yl-mm-summary {
    order: 3;
  }

  .yl-mm-categories {
    order: 1;
  }

  .yl-mm-products {
    grid-column: auto;
    grid-row: auto;
    order: 2;
  }

  .yl-mm-category-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
  }

  .yl-mm-category-btn {
    min-height: 62px;
  }

  .yl-mm-product-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    grid-template-rows: none;
    overflow: auto;
  }
}

@media (max-width: 767.98px) {
  .yl-mm-header-main,
  .yl-mm-header-side {
    flex-direction: column;
    align-items: stretch;
  }

  .yl-mm-brand-card--header {
    min-width: 0;
    max-width: none;
  }

  .yl-mm-header-stat {
    align-items: flex-start;
  }

  .yl-mm-header {
    padding: 18px 18px 16px;
  }

  .yl-mm-shell {
    padding: 14px;
    height: auto;
  }

  .yl-mm-products-toolbar,
  .yl-mm-status-row,
  .yl-mm-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .yl-mm-pagination-promo {
    max-width: none;
    border-radius: 24px;
  }

  .yl-mm-search {
    width: 100%;
  }

  .yl-mm-category-list {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .yl-mm-product-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    grid-template-rows: none;
    overflow: auto;
  }

  .yl-mm-action-bar {
    grid-template-columns: 1fr;
  }

  .yl-market-mode-variant-modal .modal-dialog {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  .yl-mmv-layout {
    grid-template-columns: 1fr;
  }

  .yl-mmv-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .yl-market-mode-modal .modal-content {
    border-radius: 0;
  }

  .yl-mm-brand-card {
    flex-direction: column;
    text-align: center;
  }

  .yl-mm-draft-item {
    grid-template-columns: 1fr;
  }

  .yl-mm-draft-actions {
    align-items: stretch;
  }

  .yl-mm-product-grid,
  .yl-mm-category-list {
    grid-template-columns: 1fr;
  }

  .yl-mmv-body,
  .yl-mmv-footer {
    padding-inline: 14px;
  }

  .yl-mmv-option-grid {
    grid-template-columns: 1fr;
  }
}

.yl-mm-confirm-layer {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}

.yl-mm-confirm-layer[hidden] {
  display: none !important;
}

.yl-mm-confirm-layer.is-visible {
  opacity: 1;
  visibility: visible;
}

.yl-mm-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(3px);
}

.yl-mm-confirm-card {
  position: relative;
  z-index: 1;
  width: min(100%, 880px);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.28);
  padding: 42px 38px 34px;
  text-align: center;
}

.yl-mm-confirm-icon {
  width: 104px;
  height: 104px;
  margin: 0 auto 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  font-size: 3rem;
  box-shadow: 0 18px 34px rgba(220, 38, 38, 0.24);
}

.yl-mm-confirm-title {
  margin: 0 0 10px;
  font-size: 2.1rem;
  font-weight: 800;
  color: #4b5563;
}

.yl-mm-confirm-message {
  margin: 0 auto;
  max-width: 620px;
  font-size: 1.06rem;
  line-height: 1.65;
  color: #64748b;
}

.yl-mm-confirm-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.yl-mm-confirm-cancel,
.yl-mm-confirm-approve {
  min-width: 260px;
  min-height: 62px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 800;
}

.yl-mm-confirm-cancel {
  border: 1px solid rgba(100, 116, 139, 0.55);
  background: #fff;
  color: #6b7280;
}

.yl-mm-confirm-cancel:hover,
.yl-mm-confirm-cancel:focus-visible {
  background: #f8fafc;
  color: #475569;
  border-color: rgba(71, 85, 105, 0.55);
}

.yl-mm-confirm-approve {
  border: 1px solid transparent;
  background: linear-gradient(180deg, #ff4b63 0%, #ff2d55 100%);
  color: #fff;
  box-shadow: 0 16px 26px rgba(255, 45, 85, 0.22);
}

.yl-mm-confirm-approve:hover,
.yl-mm-confirm-approve:focus-visible {
  color: #fff;
  background: linear-gradient(180deg, #ff5b71 0%, #ff355e 100%);
}

@media (max-width: 767.98px) {
  .yl-mm-confirm-card {
    width: min(100%, 520px);
    padding: 28px 18px 20px;
    border-radius: 22px;
  }

  .yl-mm-confirm-icon {
    width: 82px;
    height: 82px;
    font-size: 2.35rem;
  }

  .yl-mm-confirm-title {
    font-size: 1.6rem;
  }

  .yl-mm-confirm-actions {
    flex-direction: column;
    gap: 12px;
  }

  .yl-mm-confirm-cancel,
  .yl-mm-confirm-approve {
    width: 100%;
    min-width: 0;
  }
}

.yl-behavioral-offer {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 1650;
  width: min(420px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .22s ease, transform .22s ease;
}

.yl-behavioral-offer.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.yl-behavioral-offer[hidden] {
  display: none !important;
}

body.modal-open .yl-behavioral-offer,
body.yl-kuponya-modal-open .yl-behavioral-offer {
  display: none !important;
}

.yl-behavioral-offer-character {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.yl-behavioral-offer-character img,
.yl-behavioral-offer-character-fallback {
  max-width: 100%;
  max-height: 184px;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(15, 23, 42, .18));
}

.yl-behavioral-offer-character-fallback {
  width: 102px;
  height: 132px;
  border-radius: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff7ed 0%, #fed7aa 100%);
  color: #c2410c;
  font-size: 2.1rem;
}

.yl-behavioral-offer-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(255, 251, 245, .98) 100%);
  border: 1px solid rgba(251, 146, 60, .18);
  border-radius: 26px;
  padding: 16px 16px 14px;
  box-shadow: 0 24px 54px rgba(15, 23, 42, .18);
  backdrop-filter: blur(12px);
}

.yl-behavioral-offer-session-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 72px 0 0;
  color: #64748b;
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
}

.yl-behavioral-offer-session-check {
  width: 16px;
  height: 16px;
  accent-color: #ea580c;
  cursor: pointer;
  flex: 0 0 16px;
}

.yl-behavioral-offer-close {
  position: absolute;
  top: -14px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, .96);
  border-radius: 999px;
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 28px rgba(234, 88, 12, .28);
  z-index: 4;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.yl-behavioral-offer-close:hover,
.yl-behavioral-offer-close:focus-visible {
  transform: translateY(-1px) scale(1.04);
  background: linear-gradient(180deg, #fdba74 0%, #f97316 100%);
  box-shadow: 0 18px 30px rgba(234, 88, 12, .34);
}

.yl-behavioral-offer-close i {
  font-size: .88rem;
  line-height: 1;
}

.yl-behavioral-offer-title {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ea580c;
}

.yl-behavioral-offer-message {
  margin-top: 6px;
  font-size: .95rem;
  line-height: 1.45;
  color: #334155;
}

.yl-behavioral-offer-product {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
  align-items: center;
}

.yl-behavioral-offer-thumb-wrap {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .95);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
}

.yl-behavioral-offer-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yl-behavioral-offer-thumb--empty {
  color: #94a3b8;
  font-size: 1.35rem;
}

.yl-behavioral-offer-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 28px;
  border: 2px solid rgba(249, 115, 22, .38);
  animation: ylBehavioralOfferPulse 1.8s ease-out infinite;
}

@keyframes ylBehavioralOfferPulse {
  0% {
    opacity: .85;
    transform: scale(.96);
  }
  70% {
    opacity: 0;
    transform: scale(1.12);
  }
  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

.yl-behavioral-offer-meta {
  min-width: 0;
}

.yl-behavioral-offer-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(249, 115, 22, .12);
  color: #c2410c;
  font-size: .73rem;
  font-weight: 700;
}

.yl-behavioral-offer-name {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.yl-behavioral-offer-name:hover,
.yl-behavioral-offer-name:focus-visible {
  color: #ea580c;
}

.yl-behavioral-offer-prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 7px;
}

.yl-behavioral-offer-price {
  color: #ea580c;
  font-size: 1.14rem;
  font-weight: 800;
}

.yl-behavioral-offer-old-price {
  color: #64748b;
  font-size: .85rem;
  text-decoration: line-through;
}

.yl-behavioral-offer-actions {
  margin-top: 14px;
}

.yl-behavioral-offer-cta {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  font-size: .94rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 24px rgba(234, 88, 12, .2);
}

.yl-behavioral-offer-cta:hover,
.yl-behavioral-offer-cta:focus-visible {
  color: #fff;
  background: linear-gradient(180deg, #fb923c 0%, #f97316 100%);
}

@media (max-width: 767.98px) {
  .yl-behavioral-offer {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
  }

  .yl-behavioral-offer-character img,
  .yl-behavioral-offer-character-fallback {
    max-height: 144px;
  }

  .yl-behavioral-offer-card {
    border-radius: 22px;
    padding: 14px 14px 12px;
  }

  .yl-behavioral-offer-session-toggle {
    margin-right: 60px;
    font-size: .7rem;
  }

  .yl-behavioral-offer-product {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .yl-behavioral-offer-thumb-wrap {
    width: 62px;
    height: 62px;
    border-radius: 18px;
  }

  .yl-behavioral-offer-message {
    font-size: .9rem;
  }

  .yl-behavioral-offer-name {
    font-size: .94rem;
  }
}
