/* EDU — Cart & Wishlist (LinkedIn-style navy) */

.edu-shop-icon em,
.edu-web-header__icon.edu-shop-icon em {
  position: absolute;
  top: -3px;
  inset-inline-end: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #0B1426;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(11, 20, 38, 0.25);
  pointer-events: none;
}

.edu-shop-icon--wish.is-active,
.edu-shop-btn--wish.is-active {
  color: #b32d0f;
}

.edu-shop-btn--wish.is-active .edu-nav-icon-svg,
.edu-shop-btn--wish.is-active svg {
  fill: currentColor;
}

.edu-shop-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.pro-course-card.edu-shop-wrap,
.pro-program-card.edu-shop-wrap {
  overflow: visible;
}

.edu-shop-wrap .edu-udemy-card {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}

.edu-shop-wrap .edu-shop-actions--card {
  z-index: 6;
  pointer-events: auto;
}

.edu-shop-actions {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  z-index: 4;
  display: flex;
  gap: 6px;
}

.edu-shop-actions--detail {
  position: static;
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.edu-shop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: rgba(0, 0, 0, 0.75);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  touch-action: manipulation;
}

.edu-shop-btn:hover {
  background: #fff;
  transform: scale(1.04);
  color: #0B1426;
  border-color: #0B1426;
}

.edu-shop-btn.is-active {
  border-color: #0B1426;
  color: #0B1426;
}

.edu-shop-btn--wish.is-active {
  color: #b32d0f;
  border-color: #f5c2c7;
  background: #fff5f5;
}

.edu-shop-btn .edu-nav-icon {
  width: 18px;
  height: 18px;
}

.edu-shop-actions--detail .edu-shop-btn {
  flex: 1;
  min-height: 44px;
  border-radius: 8px;
  border-color: rgba(0, 0, 0, 0.15);
  background: #fff;
  box-shadow: none;
}

.edu-shop-actions--detail .edu-shop-btn.is-active {
  border-color: #0B1426;
  background: rgba(11, 20, 38, 0.06);
  color: #0B1426;
}

.edu-shop-fab-bar {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  inset-inline-end: 12px;
  z-index: 11500;
  display: none;
  gap: 8px;
}

@media (max-width: 820px) {
  .edu-shop-fab-bar {
    display: none !important;
  }
}

@media (min-width: 481px) {
  html.edu-view-web .edu-shop-fab-bar {
    display: none !important;
  }
}

.edu-shop-fab-bar .edu-shop-fab {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  color: #0B1426;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.12);
}

.edu-shop-fab-bar .edu-shop-fab em {
  position: absolute;
  top: -2px;
  inset-inline-end: -2px;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  background: #0B1426;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.edu-shop-toast {
  position: fixed;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  inset-inline: 16px;
  margin: 0 auto;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #0B1426;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  z-index: 14000;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.edu-shop-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
