/* ========================================
   Gift Popup Animations & Styles
   ======================================== */

/* Gift Flip Card */
.gift-flip-card {
  background-color: transparent;
  width: 100%;
  height: 350px;
  perspective: 1000px;
}

.gift-flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.gift-flip-card.flipped .gift-flip-card-inner {
  transform: rotateY(180deg);
}

.gift-flip-card-front,
.gift-flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;

  /* Card styling */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gift-flip-card-back {
  transform: rotateY(180deg);
}

.gift-flip-card-img {
  width: 220px;
  height: 220px;
  margin-bottom: 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  -webkit-user-drag: none;
  user-select: none;
}

.gift-flip-card-info {
  width: 100%;
  text-align: center;
}

.gift-flip-card-bankName {
  margin-bottom: 8px;
  color: #9e0a0a;
  font-size: 16px;
  font-weight: bold;
}

.gift-flip-card-accountNumber {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 600;
}

.gift-flip-card-accountName {
  color: #666;
  font-size: 14px;
}

/* Gift Tabs */
.gift-tabs {
  display: flex;
  position: relative;
  width: 100%;
  max-width: 300px;
  padding: 4px;
  margin: 0 auto;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}

.gift-tab {
  position: relative;
  z-index: 1;
  padding: 4px;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease, font-weight 0.2s ease;
  flex: 1 1 auto;
  color: #333;
  text-align: center;
  font-weight: normal;
  background-color: transparent;
}

.gift-tab.active {
  color: #9e0a0a;
  font-weight: 600;
}

.gift-tab-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 0;
  width: calc(50% - 8px);
  height: calc(100% - 8px);
  border: 1px solid #9e0a0a;
  border-radius: 4px;
  background-color: #fff5f5;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gift-tab-indicator.slide {
  transform: translateX(calc(100% + 4px));
}
