@charset "UTF-8";
/* ============================================================
   Gift Milestones — Popup chọn quà
   Scope: .gm-popup
   ============================================================ */
.gm-data {
  display: none !important; }

/* ── Popup overlay + panel ───────────────────────────── */
.gm-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px; }

.gm-popup.is-open {
  display: flex; }

.gm-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  animation: gmFadeIn .2s ease; }

.gm-popup__panel {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: gmSlideUp .25s ease;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18); }

.gm-popup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0; }

.gm-popup__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: #0a0a0a; }

.gm-popup__title svg {
  color: #0a6174;
  flex-shrink: 0; }

.gm-popup__close {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #737373;
  cursor: pointer;
  border-radius: 6px;
  transition: background .15s, color .15s; }

.gm-popup__close:hover {
  background: #f5f5f5;
  color: #0a0a0a; }

.gm-popup__note {
  padding: 12px 20px;
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: #404040;
  background: #f9f9f9;
  border-bottom: 1px solid #f0f0f0; }

.gm-popup__note strong {
  color: #0a6174; }

.gm-popup__body {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px 20px; }

.gm-popup__group {
  display: none; }

.gm-popup__group.is-active {
  display: block; }

.gm-popup__items {
  display: flex;
  flex-direction: column;
  gap: 10px; }

.gm-popup__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 2px solid #f0f0f0;
  border-radius: 10px;
  transition: border-color .15s, background .15s; }

.gm-popup__item:hover {
  border-color: #b3d3d9; }

.gm-popup__item.is-selected {
  border-color: #0a6174;
  background: #e9f3f5; }

.gm-popup__item.is-disabled {
  opacity: 0.5;
  pointer-events: none; }

.gm-popup__item-img {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5; }

.gm-popup__item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; }

.gm-popup__item-info {
  flex: 1 1 0;
  min-width: 0; }

.gm-popup__item-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #0a0a0a;
  margin: 0 0 4px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden; }

.gm-popup__item-price {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: #16a34a; }

.gm-popup__variant {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 4px 8px;
  font-family: var(--font-body);
  font-size: 12px;
  color: #0a0a0a;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  outline: none; }

.gm-popup__variant:focus {
  border-color: #0a6174; }

.gm-popup__btn {
  flex-shrink: 0;
  padding: 8px 18px;
  border: 2px solid #0a6174;
  border-radius: 100px;
  background: #fff;
  color: #0a6174;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.1px;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap; }

.gm-popup__btn:hover {
  background: #0a6174;
  color: #fff; }

.gm-popup__btn.is-selected {
  background: #0a6174;
  color: #fff; }

.gm-popup__empty {
  text-align: center;
  padding: 32px 16px;
  color: #737373;
  font-size: 14px; }

/* ── Mark step bar item achieved (bs_cart + sc) ─────── */
.bs_cart__step.gm-reached .bs_cart__step-dot,
.sc__step.gm-reached .sc__step-dot {
  cursor: pointer;
  animation: gmPulse 2.4s ease-in-out infinite; }

/* Selected gift indicator on cart line */
.bs_cart__item.gm-is-gift,
.sc__item.gm-is-gift {
  background: linear-gradient(0deg, rgba(10, 97, 116, 0.04), rgba(10, 97, 116, 0.04)), #fff; }

.bs_cart__item.gm-is-gift::before,
.sc__item.gm-is-gift::before {
  content: '🎁 Quà tặng';
  position: absolute;
  top: 8px;
  left: 8px;
  background: #0a6174;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: -0.1px;
  z-index: 2; }

.bs_cart__item.gm-is-gift {
  position: relative; }

.sc__item.gm-is-gift {
  position: relative; }

/* Sidebar cart "is-gift" — disable controls (qty, size/color, remove) */
.sc__item.gm-is-gift .sc__item-controls,
.sc__item.gm-is-gift .sc__item-remove,
.bs_cart__item.gm-is-gift .bs_cart__item-controls,
.bs_cart__item.gm-is-gift .bs_cart__item-remove {
  display: none !important; }

/* ── Animations ─────────────────────────────────────── */
@keyframes gmFadeIn {
  from {
    opacity: 0; }
  to {
    opacity: 1; } }

@keyframes gmSlideUp {
  from {
    transform: translateY(24px);
    opacity: 0; }
  to {
    transform: translateY(0);
    opacity: 1; } }

@keyframes gmPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(10, 97, 116, 0.5); }
  50% {
    box-shadow: 0 0 0 8px rgba(10, 97, 116, 0); } }

/* ── Responsive mobile ──────────────────────────────── */
@media (max-width: 767px) {
  .gm-popup {
    padding: 0;
    align-items: flex-end; }
  .gm-popup__panel {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 90vh; }
  .gm-popup__head {
    padding: 14px 16px; }
  .gm-popup__title {
    font-size: 16px; }
  .gm-popup__note {
    padding: 10px 16px;
    font-size: 12px; }
  .gm-popup__body {
    padding: 12px 16px 20px; }
  .gm-popup__item-img {
    width: 56px;
    height: 56px; }
  .gm-popup__btn {
    padding: 7px 14px;
    font-size: 12px; } }
