/* Sol alt — video eğitim tanıtım kartı (A: Editorial) */
.mat-promo-float {
  position: fixed;
  left: 16px;
  bottom: 22px;
  z-index: 1040;
  width: min(280px, calc(100vw - 88px));
  max-width: 280px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.mat-promo-float.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.mat-promo-float__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: #f4f4f5;
  color: #666;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mat-promo-float__close:hover {
  background: #e8e8ea;
  color: #333;
}

.mat-promo-float__toggle {
  display: none;
}

.mat-promo-float__top {
  display: flex;
  gap: 12px;
  padding: 12px 36px 10px 12px;
  align-items: flex-start;
}

.mat-promo-float__img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;
  background: #16192b;
}

.mat-promo-float__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mat-promo-float__text h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.25;
  margin: 0 0 4px;
  color: #0a0a0a;
}

.mat-promo-float__text p {
  margin: 0;
  font-size: 0.72rem;
  color: #737373;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mat-promo-float__btn {
  display: block;
  margin: 0 12px 12px;
  text-align: center;
  background: #900216;
  color: #fff !important;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.mat-promo-float__btn:hover {
  background: #7a0113;
  color: #fff !important;
}

.mat-promo-float__coupon {
  margin: 0 12px 10px;
  padding: 10px;
  border-radius: 10px;
  background: #faf7f2;
  border: 1px dashed rgba(144, 2, 22, 0.28);
}

.mat-promo-float__coupon-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.mat-promo-float__coupon-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #900216;
}

.mat-promo-float__coupon-discount {
  font-size: 0.68rem;
  font-weight: 700;
  color: #166534;
}

.mat-promo-float__coupon-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mat-promo-float__coupon-code {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #0a0a0a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mat-promo-float__coupon-copy {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: #900216;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mat-promo-float__coupon-copy:hover {
  background: #7a0113;
}

.mat-promo-float__coupon-copy.is-copied {
  background: #166534;
}

@media (min-width: 769px) {
  .mat-promo-float__toggle {
    display: none !important;
  }

  .mat-promo-float.is-collapsed .mat-promo-float__body {
    display: block;
  }

  .mat-promo-float.is-collapsed {
    width: min(280px, calc(100vw - 88px));
  }
}

@media (max-width: 768px) {
  .mat-promo-float {
    left: 12px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    width: min(260px, calc(100vw - 76px));
  }

  body.has-guest-mobile-cta .mat-promo-float {
    bottom: calc(var(--guest-cta-h, 56px) + 18px + env(safe-area-inset-bottom, 0px));
  }

  body.mat-mobile-tabs .mat-promo-float {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  /* Mobilde varsayılan: kompakt — ekranı kapatmaz */
  .mat-promo-float.is-collapsed .mat-promo-float__body {
    display: none;
  }

  .mat-promo-float.is-collapsed .mat-promo-float__toggle {
    display: flex;
  }

  .mat-promo-float__toggle {
    display: none;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: none;
    background: transparent;
    padding: 10px 36px 10px 12px;
    text-align: left;
    cursor: pointer;
  }

  .mat-promo-float__toggle-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: cover;
    background: #16192b;
  }

  .mat-promo-float__toggle-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #0a0a0a;
    line-height: 1.25;
    flex: 1;
  }

  .mat-promo-float__toggle-chevron {
    color: #900216;
    font-size: 0.75rem;
    flex-shrink: 0;
  }

  .mat-promo-float.is-collapsed {
    width: min(240px, calc(100vw - 76px));
  }

  .mat-promo-float.is-collapsed .mat-promo-float__close {
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .mat-promo-float__top {
    padding-right: 34px;
  }

  .mat-promo-float__img {
    width: 56px;
    height: 56px;
  }
}
