/* =========================================================
   LIGHT INSURANCE CARD (Enterprise Hover)
   Static ID: sell_cards_Cards
========================================================= */

#sell_cards_Cards {
  --header-height: 100px;
  --card-height: 420px;
  --accent-color: #2563eb; /* синий как на примере */
  --card-radius: 22px;
}

/* GRID */
#sell_cards_Cards .a-CardView {
  overflow: visible !important;
}

/* ---------- CARD ---------- */
#sell_cards_Cards .a-CardView-item {
  position: relative;
  height: var(--card-height);
  background: #ffffff;
  overflow: hidden;
  display: flex;
  border-radius: var(--card-radius);
  flex-direction: column;
  isolation: isolate;
  transition: transform .25s cubic-bezier(0.4,0,0.2,1), box-shadow .25s cubic-bezier(0.4,0,0.2,1), border-color .25s ease;
}

#sell_cards_Cards .a-CardView-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 5px 15px rgba(0,0,0,.10);
}

#sell_cards_Cards .a-CardView {
    border-radius: 22px;
}

/* ---------- HEADER ---------- */
#sell_cards_Cards .a-CardView-header {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  z-index: 10;
  flex-shrink: 0;
  border-radius: 22px;
}

#sell_cards_Cards .a-CardView-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

#sell_cards_Cards .a-CardView-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

#sell_cards_Cards .a-CardView-subTitle {
  margin-top: 4px;
  font-size: .85rem;
  color: #64748b;
}

/* ---------- MEDIA (UNDER HEADER) ---------- */
#sell_cards_Cards .a-CardView-media {
  position: absolute;
  top: var(--header-height); 
  left: 0;
  right: 0;
  bottom: 0; 
  border-radius: inherit;
  z-index: 1;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#sell_cards_Cards .a-CardView-mediaImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: transform 0.6s ease;
}

/* #sell_cards_Cards .a-CardView-item:hover .a-CardView-mediaImg {
  transform: scale(1.08);
} */

/* ---------- BODY (OPEN PANEL) ---------- */
#sell_cards_Cards .a-CardView-body {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(10px);
  padding: 32px;
  display: flex;
  align-items: center;

  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;

  transition: all .35s cubic-bezier(0.4,0,0.2,1);
}

#sell_cards_Cards .a-CardView-item.is-open .a-CardView-body {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ---------- TOGGLE BUTTON (CAPSULE) ---------- */
#sell_cards_Cards .card-toggle-btn {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 30;

  width: 92px;
  height: 46px;
  border-radius: 999px;
  border: none;

  background: rgba(15,23,42,.15);
  backdrop-filter: blur(6px);

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  box-shadow: 0 8px 16px rgba(0,0,0,.18);
}

#sell_cards_Cards .card-toggle-btn img {
  width: 20px;
  transition: transform .3s ease;
}

#sell_cards_Cards .a-CardView-item.is-open .card-toggle-btn img {
  transform: rotate(180deg);
}

/* ---------- FULL LINK ---------- */
#sell_cards_Cards .a-CardView-fullLink {
  position: absolute;
  inset: 0;
  z-index: 5;
}

/* ---------- APEX CLEAN ---------- */
#sell_cards_Cards .a-CardView-main,
#sell_cards_Cards .a-CardView-footer {
  background: transparent;
  border: none;
  padding: 0;
}

