/* Course detail — premium landing page */

.apm-cd {
  padding: 32px 0 80px;
  background: #f8fafc;
}

/* Breadcrumb */
.apm-cd-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.8125rem;
  color: #64748b;
}

.apm-cd-breadcrumb a {
  color: #64748b;
  text-decoration: none;
}

.apm-cd-breadcrumb a:hover {
  color: #0d5bdb;
}

.apm-cd-breadcrumb__current {
  color: #0f172a;
  font-weight: 500;
}

/* Hero */
.apm-cd-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
}

.apm-cd-page__main {
  min-width: 0;
}

.apm-cd-page__aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: start;
  position: sticky;
  top: 96px;
}

.apm-cd-hero {
  margin-bottom: 32px;
}

.apm-cd-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.apm-cd-badge--soft { background: #e0f2fe; color: #0369a1; }
.apm-cd-badge--pro { background: #dcfce7; color: #166534; }
.apm-cd-badge--manage { background: #ede9fe; color: #6d28d9; }
.apm-cd-badge--default { background: #f1f5f9; color: #475569; }

.apm-cd-hero__title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: #0f172a;
}

.apm-cd-hero__desc {
  margin: 0 0 24px;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #64748b;
  max-width: 640px;
}

.apm-cd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 24px;
  font-size: 0.875rem;
  color: #475569;
}

.apm-cd-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.apm-cd-meta svg {
  flex-shrink: 0;
  color: #0d5bdb;
}

/* Purchase card */
.apm-cd-purchase__card {
  padding: 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.apm-cd-page__aside .apm-cd-purchase {
  position: static;
}

.apm-cd-purchase__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
}

.apm-cd-purchase__price {
  font-size: 2rem;
  font-weight: 700;
  color: #16a34a;
  line-height: 1;
}

.apm-cd-purchase__price-old {
  font-size: 1rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.apm-cd-purchase__discount {
  padding: 4px 8px;
  border-radius: 6px;
  background: #dcfce7;
  color: #16a34a;
  font-size: 0.75rem;
  font-weight: 700;
}

.apm-cd-purchase__perks {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.apm-cd-purchase__perks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.875rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}

.apm-cd-purchase__perks li:last-child {
  border-bottom: 0;
}

.apm-cd-purchase__perks svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #16a34a;
}

.apm-cd-purchase__watchers {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  font-size: 0.8125rem;
  color: #64748b;
}

.apm-cd-purchase__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: apm-cd-pulse 2s ease infinite;
}

@keyframes apm-cd-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Buttons */
.apm-cd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 300ms ease, border-color 300ms ease, color 300ms ease, transform 300ms ease;
}

.apm-cd-btn--primary {
  background: #0d5bdb;
  color: #fff;
}

.apm-cd-btn--primary:hover {
  background: #0947ad;
  color: #fff;
}

.apm-cd-btn--outline {
  background: #fff;
  border-color: #e2e8f0;
  color: #0f172a;
}

.apm-cd-btn--outline:hover {
  border-color: #0d5bdb;
  color: #0d5bdb;
}

.apm-cd-btn--white {
  background: #fff;
  color: #0d5bdb;
}

.apm-cd-btn--white:hover {
  background: #f8fafc;
}

.apm-cd-btn--ghost {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.apm-cd-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.apm-cd-btn--block {
  width: 100%;
}

.apm-cd-btn--sm {
  padding: 8px 14px;
  font-size: 0.8125rem;
}

.apm-cd-purchase .apm-cd-btn--primary {
  width: 100%;
  margin-bottom: 10px;
}

.apm-cd-purchase .apm-cd-btn--outline {
  width: 100%;
}

/* Layout — legacy aliases kept for safety */
.apm-cd-layout {
  display: block;
}

.apm-cd-layout__sidebar {
  display: none;
}

.apm-cd-section {
  margin-bottom: 40px;
}

.apm-cd-section__title {
  margin: 0 0 20px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

/* Video */
.apm-cd-video {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.apm-cd-video__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
}

.apm-cd-video__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.apm-cd-video:hover .apm-cd-video__thumb img {
  transform: scale(1.03);
}

.apm-cd-video__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #0d5bdb;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
  transition: transform 300ms ease, background 300ms ease;
}

.apm-cd-video__play:hover {
  transform: scale(1.08);
  background: #fff;
}

.apm-cd-video__embed {
  aspect-ratio: 16 / 9;
}

.apm-cd-video__embed iframe,
.apm-cd-video__embed video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.apm-cd-video.is-playing .apm-cd-video__thumb {
  display: none;
}

.apm-cd-video.is-playing .apm-cd-video__embed {
  display: block !important;
}

.apm-cd-video__caption {
  margin: 12px 0 0;
  font-size: 0.875rem;
  color: #64748b;
}

/* Content tabs under trailer */
.apm-cd-tabs {
  position: sticky;
  top: 72px;
  z-index: 20;
  margin: 8px 0 8px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;
}

.apm-cd-tabs__inner {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(20px, 4vw, 40px);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 2px;
}

.apm-cd-tabs__inner::-webkit-scrollbar {
  display: none;
}

.apm-cd-tabs__link {
  flex: 0 0 auto;
  padding: 16px 0 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.apm-cd-tabs__link:hover {
  color: #0f172a;
}

.apm-cd-tabs__link.is-active {
  color: #0f172a;
  font-weight: 700;
  border-bottom-color: #0f172a;
}

/* Benefits section (Lợi ích) */
.apm-cd-benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.apm-cd-benefit-card {
  position: relative;
  overflow: hidden;
  min-height: 140px;
  padding: 24px 28px;
  background: #fff4e8;
  border-radius: 4px;
}

.apm-cd-benefit-card__watermark {
  position: absolute;
  right: 12px;
  bottom: 8px;
  width: 88px;
  height: 88px;
  color: rgba(251, 146, 60, 0.28);
  pointer-events: none;
}

.apm-cd-benefit-card__watermark svg {
  width: 100%;
  height: 100%;
}

.apm-cd-benefit-card__eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.apm-cd-benefit-card__title {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 18ch;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
}

.apm-cd-description__body {
  color: #334155;
  font-size: 1rem;
  line-height: 1.75;
}

.apm-cd-description__body p {
  margin: 0 0 1em;
}

.apm-cd-description__body p:last-child {
  margin-bottom: 0;
}

.apm-cd-section {
  scroll-margin-top: 120px;
}

/* Learn cards */
.apm-cd-learn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.apm-cd-learn-card {
  padding: 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.apm-cd-learn-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.apm-cd-learn-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: #eff6ff;
  color: #0d5bdb;
}

.apm-cd-learn-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #0f172a;
}

.apm-cd-learn-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #64748b;
}

/* Accordion */
.apm-cd-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.apm-cd-accordion__item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
}

.apm-cd-accordion__trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: background 300ms ease;
}

.apm-cd-accordion__trigger:hover {
  background: #f8fafc;
}

.apm-cd-accordion__title {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
}

.apm-cd-accordion__meta {
  font-size: 0.8125rem;
  color: #64748b;
  white-space: nowrap;
}

.apm-cd-accordion__chevron {
  flex-shrink: 0;
  color: #94a3b8;
  transition: transform 300ms ease;
}

.apm-cd-accordion__item.is-open .apm-cd-accordion__chevron {
  transform: rotate(180deg);
}

.apm-cd-accordion__panel {
  overflow: hidden;
  transition: max-height 300ms ease;
}

.apm-cd-accordion__panel[hidden] {
  display: none;
}

.apm-cd-accordion__panel ul {
  margin: 0;
  padding: 0 18px 16px;
  list-style: none;
}

.apm-cd-accordion__panel li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.875rem;
  color: #475569;
  border-top: 1px solid #f1f5f9;
}

.apm-cd-accordion__panel li svg {
  flex-shrink: 0;
  color: #0d5bdb;
}

.apm-cd-accordion--faq .apm-cd-accordion__meta {
  display: none;
}

.apm-cd-accordion--faq .apm-cd-accordion__panel p {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #64748b;
}

/* Reviews */
.apm-cd-reviews {
  overflow: hidden;
  padding-bottom: 36px;
}

.apm-cd-review {
  height: auto;
  padding: 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.apm-cd-review__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.apm-cd-review__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.apm-cd-review__avatar--initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1e4ed8;
  color: #fff;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1;
}

.apm-cd-review__stars {
  display: flex;
  gap: 2px;
  color: #fbbf24;
  margin-top: 4px;
}

.apm-cd-review__date {
  font-size: 0.75rem;
  color: #94a3b8;
}

.apm-cd-review p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #475569;
}

.apm-cd-reviews__dots {
  bottom: 0 !important;
}

.apm-cd-reviews__dots .swiper-pagination-bullet {
  background: #cbd5e1;
  opacity: 1;
}

.apm-cd-reviews__dots .swiper-pagination-bullet-active {
  background: #0d5bdb;
  width: 20px;
  border-radius: 4px;
}

/* Sidebar cards */
.apm-cd-side-card {
  padding: 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.apm-cd-side-card h3 {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.apm-cd-side-perks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.apm-cd-side-perks li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.apm-cd-side-perks li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.apm-cd-side-perks__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.apm-cd-side-perks__icon--blue { background: #dbeafe; color: #1d4ed8; }
.apm-cd-side-perks__icon--green { background: #dcfce7; color: #16a34a; }

.apm-cd-side-perks strong {
  display: block;
  font-size: 0.875rem;
  color: #0f172a;
  margin-bottom: 2px;
}

.apm-cd-side-perks p {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.45;
}

.apm-cd-instructor__head {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
}

.apm-cd-instructor__head img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.apm-cd-instructor__head strong {
  display: block;
  font-size: 1rem;
  color: #0f172a;
}

.apm-cd-instructor__head span {
  font-size: 0.8125rem;
  color: #64748b;
}

.apm-cd-instructor p {
  margin: 0 0 12px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #64748b;
}

.apm-cd-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0d5bdb;
  text-decoration: none;
}

.apm-cd-link:hover {
  text-decoration: underline;
}

/* Rating card */
.apm-cd-rating-card__score {
  text-align: center;
  margin-bottom: 16px;
}

.apm-cd-rating-card__num {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1;
}

.apm-cd-rating-card__stars {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin: 8px 0;
  color: #fbbf24;
}

.apm-cd-rating-card__count {
  font-size: 0.8125rem;
  color: #64748b;
}

.apm-cd-rating-bar {
  display: grid;
  grid-template-columns: 28px 1fr 36px;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.75rem;
  color: #64748b;
}

.apm-cd-rating-bar__track {
  height: 8px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}

.apm-cd-rating-bar__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.apm-cd-rating-card .apm-cd-btn {
  width: 100%;
  margin-top: 12px;
}

/* Related */
.apm-cd-related__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.apm-cd-related__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.apm-cd-related__grid .apm-fc-card {
  height: 100%;
}

/* CTA */
.apm-cd-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 48px;
  padding: 40px 48px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0d5bdb 0%, #1e40af 55%, #0f172a 100%);
  color: #fff;
  overflow: hidden;
}

.apm-cd-cta h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.apm-cd-cta p {
  margin: 0 0 20px;
  opacity: 0.9;
  max-width: 480px;
}

.apm-cd-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.apm-cd-cta__art svg {
  width: 180px;
  height: auto;
}

/* Drawer */
.apm-cd-drawer[hidden] {
  display: none;
}

.apm-cd-drawer {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.apm-cd-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

.apm-cd-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(460px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -8px 0 40px rgba(15, 23, 42, 0.15);
  transform: translateX(100%);
  transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.apm-cd-drawer.is-open .apm-cd-drawer__panel {
  transform: translateX(0);
}

.apm-cd-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
}

.apm-cd-drawer__header h2 {
  margin: 0;
  font-size: 1.125rem;
}

.apm-cd-drawer__close {
  display: inline-flex;
  padding: 8px;
  border: 0;
  background: #f1f5f9;
  border-radius: 10px;
  cursor: pointer;
  color: #475569;
}

.apm-cd-drawer__steps {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  font-size: 0.75rem;
  color: #94a3b8;
  border-bottom: 1px solid #f1f5f9;
}

.apm-cd-drawer__steps span.is-active {
  color: #0d5bdb;
  font-weight: 600;
}

.apm-cd-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.apm-cd-drawer__step[hidden] {
  display: none;
}

.apm-cd-field {
  margin-bottom: 14px;
}

.apm-cd-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}

.apm-cd-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9375rem;
}

.apm-cd-field input:focus {
  outline: none;
  border-color: #0d5bdb;
  box-shadow: 0 0 0 3px rgba(13, 91, 219, 0.15);
}

.apm-cd-drawer__summary {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  padding: 14px;
  background: #f8fafc;
  border-radius: 12px;
}

.apm-cd-drawer__summary img {
  width: 64px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.apm-cd-drawer__summary strong {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.apm-cd-drawer__summary-price {
  font-weight: 700;
  color: #16a34a;
}

.apm-cd-coupon {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.apm-cd-coupon input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.apm-cd-drawer__total {
  margin: 0 0 16px;
  font-size: 0.9375rem;
  color: #64748b;
}

.apm-cd-drawer__total strong {
  font-size: 1.25rem;
  color: #16a34a;
}

.apm-cd-pay-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.apm-cd-pay-method {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 300ms ease;
}

.apm-cd-pay-method:has(input:checked) {
  border-color: #0d5bdb;
  background: #eff6ff;
}

.apm-cd-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  cursor: pointer;
}

.apm-cd-drawer__actions {
  display: flex;
  gap: 10px;
}

.apm-cd-drawer__actions--col {
  flex-direction: column;
}

.apm-cd-success {
  text-align: center;
  padding: 24px 0;
}

.apm-cd-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
}

.apm-cd-success h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.apm-cd-success p {
  margin: 0 0 24px;
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.6;
}

/* Mobile bar */
.apm-cd-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
}

.apm-cd-mobile-bar[hidden] {
  display: none;
}

.apm-cd-mobile-bar__price {
  font-size: 1.125rem;
  font-weight: 700;
  color: #16a34a;
}

.apm-cd-mobile-bar .apm-cd-btn {
  flex: 1;
  max-width: 200px;
}

body.apm-cd-drawer-open {
  overflow: hidden;
}

/* Hide duplicate purchase in layout on mobile */
@media (max-width: 1024px) {
  .apm-cd-page {
    grid-template-columns: 1fr;
  }

  .apm-cd-page__aside {
    position: static;
    order: -1;
  }

  .apm-cd-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .apm-cd-tabs {
    top: 56px;
  }

  .apm-cd-tabs__link {
    padding: 14px 0 12px;
    font-size: 0.875rem;
  }

  .apm-cd-benefits__grid {
    grid-template-columns: 1fr;
  }

  .apm-cd-learn-grid {
    grid-template-columns: 1fr;
  }

  .apm-cd-accordion__meta {
    display: none;
  }

  .apm-cd-cta {
    flex-direction: column;
    padding: 32px 24px;
    text-align: center;
  }

  .apm-cd-cta__actions {
    justify-content: center;
  }

  .apm-cd-cta__art {
    display: none;
  }

  .apm-cd-drawer__panel {
    width: 100%;
  }

  .apm-cd-related__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .apm-cd-page__aside .apm-cd-purchase {
    display: none;
  }

  .apm-cd-mobile-bar {
    display: flex;
  }

  .apm-cd {
    padding-bottom: 88px;
  }
}

@media (min-width: 641px) {
  .apm-cd-mobile-bar {
    display: none !important;
  }
}
