/* Sellory — Minimalist Redesign custom utilities */

.product-card-hover {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.product-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
}

/* Custom hide scrollbar utility */
.hide-scrollbars::-webkit-scrollbar {
  display: none;
}
.hide-scrollbars {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Modal styling following the editorial theme guidelines */
.modal-backdrop-layer {
  position: absolute;
  inset: 0;
  background: rgba(28, 27, 27, 0);
  backdrop-filter: blur(0px);
  transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#subscriptionModal.open .modal-backdrop-layer {
  background: rgba(28, 27, 27, 0.3);
  backdrop-filter: blur(8px);
}

.modal-container {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border: 1px solid rgba(116, 120, 120, 0.15);
  border-radius: 24px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 50px rgba(28, 27, 27, 0.04);
  opacity: 0;
  transform: scale(0.95) translateY(12px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#subscriptionModal.open .modal-container {
  opacity: 1;
  transform: scale(1) translateY(0);
}

#subscriptionModal.closing .modal-container {
  opacity: 0;
  transform: scale(0.95) translateY(12px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#subscriptionModal.closing .modal-backdrop-layer {
  background: rgba(28, 27, 27, 0);
  backdrop-filter: blur(0px);
}

/* Plan card designs */
.plan-variant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(116, 120, 120, 0.2);
  border-radius: 8px;
  padding: 14px 18px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  margin-bottom: 10px;
  background: #ffffff;
}

.plan-variant:hover {
  border-color: #1c1b1b;
  background-color: #f7f3f2;
}

.plan-variant.active {
  border-color: #000000;
  background-color: #f1edec;
  border-width: 2px;
}

.plan-variant-info h4 {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1c1b1b;
}

.plan-variant-info p {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #444748;
  margin-top: 2px;
}

.plan-variant-price {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #1c1b1b;
  white-space: nowrap;
}

.plan-variant-price .unit {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: #747878;
  margin-left: 2px;
}

/* Tooltip styles */
.tooltip-container {
  position: relative;
}

.tooltip-text {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) !important;
  margin-bottom: 14px;
  width: 192px;
  background-color: #313030;
  color: #f4f0ef;
  font-size: 12px;
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  font-family: 'Inter', sans-serif;
  text-transform: none;
  line-height: 1.5;
  z-index: 50;
}

.tooltip-container:hover .tooltip-text {
  opacity: 1;
}

.tooltip-arrow {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) !important;
  margin-top: -4px;
  border-width: 4px;
  border-style: solid;
  border-color: #313030 transparent transparent transparent;
  width: 0;
  height: 0;
  display: block;
}
