@charset "UTF-8";
/* ==================== GIFT MILESTONES ==================== */
/* Màu lấy từ Theme Settings */
.gift-milestones {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 40px 20px 20px 20px; }

.gift-milestones__progress {
  padding: 0 30px;
  margin-top: 20px;
  margin-bottom: 8px; }

.gift-milestones__track {
  position: relative;
  height: 6px;
  background: #ddd;
  border-radius: 3px; }

.gift-milestones__bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #1e1e1e;
  border-radius: 3px;
  transition: width 0.5s ease;
  z-index: 1; }

.gift-milestones__point {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer; }

.gift-milestones__point[data-milestone="1"] {
  left: 33.33%; }

.gift-milestones__point[data-milestone="2"] {
  left: 66.66%; }

.gift-milestones__point[data-milestone="3"] {
  left: 75%; }

.gift-milestones__point[data-milestone="4"] {
  left: 100%; }

.gift-milestones__point.reached .gift-milestones__icon {
  background: #1e1e1e;
  border-color: #1e1e1e;
  color: #fff;
  animation: giftBounce 0.4s ease, giftPulse 2s ease-in-out 0.4s infinite, giftShake 2.5s ease-in-out 1s infinite;
  box-shadow: 0 0 0 0 rgba(30, 30, 30, 0.4); }

.gift-milestones__point.reached:hover .gift-milestones__icon {
  transform: scale(1.2);
  animation: giftBounce 0.4s ease;
  box-shadow: 0 0 0 6px rgba(30, 30, 30, 0.25); }

.gift-milestones__point:not(.reached) {
  cursor: default; }

.gift-milestones__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: all 0.3s ease; }

.gift-milestones__icon svg {
  width: 24px;
  height: 24px; }

.gift-milestones__label {
  position: absolute;
  top: -28px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  color: #11120D; }

.gift-milestones__message {
  font-size: 15px;
  color: #1e1e1e;
  min-height: 24px; }

.gift-milestones__message b,
.gift-milestones__message strong {
  color: #11120D; }

/* ==================== GIFT POPUP ==================== */
.gift-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease; }

.gift-popup-overlay.active {
  display: flex;
  opacity: 1; }

.gift-popup {
  background: #fff;
  border-radius: 12px;
  width: 480px;
  max-width: 92vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: giftSlideUp 0.3s ease; }

.gift-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee; }

.gift-popup__title {
  font-size: 16px;
  font-weight: 700;
  color: #1e1e1e;
  display: flex;
  align-items: center;
  gap: 8px; }

.gift-popup__title svg {
  color: #1e1e1e; }

.gift-popup__close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 0 4px; }

.gift-popup__close:hover {
  color: #1e1e1e; }

.gift-popup__note {
  padding: 10px 20px;
  margin: 0;
  font-size: 13px;
  color: #666;
  background: #f9f9f9;
  border-bottom: 1px solid #eee; }

.gift-popup__note strong {
  color: #1e1e1e; }

.gift-popup__body {
  overflow-y: auto;
  padding: 12px 20px 20px;
  flex: 1; }

.gift-popup__group {
  display: none; }

.gift-popup__group.active {
  display: block; }

.gift-popup__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 2px solid #f0f0f0;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: all 0.2s ease; }

.gift-popup__item:last-child {
  margin-bottom: 0; }

.gift-popup__item:hover {
  border-color: #6b6b6b; }

.gift-popup__item.selected {
  border-color: #1e1e1e;
  background: #eaeaea; }

.gift-popup__item.selected .gift-popup__btnselect {
  background: #1e1e1e;
  border-color: #1e1e1e;
  color: #fff; }

.gift-popup__item.disabled {
  opacity: 0.35;
  pointer-events: none; }

.gift-popup__item.out-of-stock {
  opacity: 0.55;
  position: relative; }

.gift-popup__item.out-of-stock .gift-popup__btnselect {
  background: #ccc;
  border-color: #ccc;
  color: #fff;
  cursor: not-allowed;
  pointer-events: none; }

.gift-popup__item.out-of-stock .gift-popup__item-price {
  color: #1e1e1e;
  font-weight: 600; }

.gift-popup__item-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0; }

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

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

.gift-popup__item-name {
  font-size: 13px;
  font-weight: 500;
  color: #1e1e1e;
  margin: 0 0 2px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden; }

.gift-popup__item-price {
  font-size: 12px;
  color: #22c55e;
  font-weight: 600; }

.gift-popup__variantselect {
  display: block;
  width: 100%;
  margin-top: 4px;
  font-size: 12px;
  color: #1e1e1e;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 3px 6px;
  background: #fff;
  cursor: pointer;
  outline: none; }

.gift-popup__variantselect:focus {
  border-color: #1e1e1e; }

.gift-popup__btnselect {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border: 2px solid #1e1e1e;
  color: #1e1e1e;
  background: #fff;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap; }

.gift-popup__btnselect:hover {
  background: #1e1e1e;
  color: #fff; }

/* ==================== ANIMATIONS ==================== */
@keyframes giftSlideUp {
  from {
    transform: translateY(30px);
    opacity: 0; }
  to {
    transform: translateY(0);
    opacity: 1; } }

@keyframes giftBounce {
  0%, 100% {
    transform: scale(1); }
  50% {
    transform: scale(1.25); } }

@keyframes giftPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(30, 30, 30, 0.45); }
  60% {
    box-shadow: 0 0 0 8px rgba(30, 30, 30, 0); }
  100% {
    box-shadow: 0 0 0 0 rgba(30, 30, 30, 0); } }

@keyframes giftShake {
  0%, 60%, 100% {
    transform: rotate(0deg); }
  65% {
    transform: rotate(-12deg); }
  70% {
    transform: rotate(12deg); }
  75% {
    transform: rotate(-10deg); }
  80% {
    transform: rotate(10deg); }
  85% {
    transform: rotate(-6deg); }
  90% {
    transform: rotate(6deg); }
  95% {
    transform: rotate(0deg); } }

/* ==================== RESPONSIVE MOBILE ==================== */
@media (max-width: 767px) {
  .gift-milestones {
    padding: 30px 10px 14px;
    border-radius: 8px; }
  .gift-milestones__progress {
    padding: 0 24px;
    margin-top: 28px;
    margin-bottom: 10px; }
  .gift-milestones__track {
    height: 8px;
    border-radius: 4px; }
  .gift-milestones__bar {
    border-radius: 4px; }
  .gift-milestones__point {
    top: 50%; }
  .gift-milestones__icon {
    width: 44px;
    height: 44px;
    border-width: 2.5px; }
  .gift-milestones__icon svg {
    width: 22px;
    height: 22px; }
  .gift-milestones__label {
    font-size: 15px;
    font-weight: 700;
    top: -26px;
    white-space: nowrap; }
  .gift-milestones__message {
    font-size: 13px;
    text-align: center;
    margin-top: 30px !important;
    line-height: 1.5; }
  .gift-popup {
    width: 100%;
    max-width: 100vw;
    max-height: 88vh;
    border-radius: 16px 16px 0 0;
    position: fixed;
    bottom: 0;
    animation: giftSlideUp 0.3s ease; }
  .gift-popup__header {
    padding: 14px 16px; }
  .gift-popup__title {
    font-size: 15px; }
  .gift-popup__note {
    padding: 8px 16px;
    font-size: 12px; }
  .gift-popup__body {
    padding: 10px 16px 24px; }
  .gift-popup__item {
    gap: 10px;
    padding: 10px; }
  .gift-popup__item-img {
    width: 60px;
    height: 60px; }
  .gift-popup__item-name {
    font-size: 13px; }
  .gift-popup__btnselect {
    font-size: 12px;
    padding: 7px 14px; }
  .gift-popup-overlay {
    align-items: flex-end; } }
