/* ==========================================================================
   GIFTY Official E-Commerce Footer & Legal Modals Stylesheet
   Luxury warm-amber aesthetic matching the GIFTY Brand Identity
   ========================================================================== */

.gifty-official-footer {
  background: linear-gradient(180deg, #240704 0%, #150302 100%);
  color: #fffbf5;
  border-top: 3px solid #ff7b25;
  padding: 60px 0 30px;
  margin-top: 60px;
  font-family: inherit;
  position: relative;
  z-index: 10;
}

.gifty-footer-inner {
  width: min(calc(100% - 40px), 1200px);
  margin: 0 auto;
}

.gifty-footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 2.45fr 1.65fr 1.05fr;
  gap: 24px;
  padding-bottom: 45px;
  border-bottom: 1px solid rgba(255, 251, 245, 0.12);
}

@media (max-width: 1120px) {
  .gifty-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .gifty-footer-col.gifty-footer-contact-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .gifty-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.gifty-footer-col h4 {
  color: #ff7b25;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gifty-footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.gifty-footer-logo-row img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(255, 123, 37, 0.38));
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gifty-footer-logo-row img:hover {
  transform: scale(1.04);
}

.gifty-footer-slogan {
  color: rgba(255, 251, 245, 0.82);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.gifty-footer-trust-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.gifty-footer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 123, 37, 0.12);
  border: 1px solid rgba(255, 123, 37, 0.32);
  color: #ffb076;
  padding: 6px 8px;
  border-radius: 9px;
  font-size: 0.76rem;
  font-weight: 750;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

/* ==========================================================================
   Luxury Concierge & Direct Contact Lounge (Side-by-Side with VIP Superiority)
   ========================================================================== */
.gifty-contact-lounge-row {
  display: grid;
  grid-template-columns: 1.42fr 1fr;
  gap: 12px;
  align-items: stretch;
}

@media (max-width: 680px) {
  .gifty-contact-lounge-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* 1. VIP WhatsApp Support Suite (CLEAR SUPERIORITY) */
.gifty-concierge-card.is-vip-superior {
  background: linear-gradient(145deg, rgba(37, 211, 102, 0.14) 0%, rgba(18, 77, 39, 0.25) 50%, rgba(255, 123, 37, 0.09) 100%);
  border: 1.5px solid rgba(37, 211, 102, 0.45);
  border-radius: 14px;
  padding: 11px 12px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.gifty-concierge-card.is-vip-superior::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #25D366, #ff7b25, #25D366);
}

.gifty-concierge-card.is-vip-superior:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 211, 102, 0.7);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.28);
}

.gifty-vip-top-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.gifty-vip-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 211, 102, 0.18);
  border: 1px solid rgba(37, 211, 102, 0.35);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
  color: #4ade80;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gifty-vip-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  display: inline-block;
  animation: giftyPulse 1.8s infinite ease-in-out;
}

@keyframes giftyPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.gifty-vip-reply-tag {
  font-size: 0.73rem;
  color: #86efac;
  font-weight: 600;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.gifty-whatsapp-cta-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #25D366 0%, #1ea952 100%);
  color: #ffffff !important;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gifty-whatsapp-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
  filter: brightness(1.05);
}

.gifty-wa-content {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.gifty-wa-icon {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.gifty-wa-texts {
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 0;
}

.gifty-wa-title {
  font-size: 0.84rem;
  font-weight: 850;
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
}

.gifty-wa-sub {
  font-size: 0.67rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  line-height: 1.2;
}

.gifty-wa-arrow {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 4px;
}

.gifty-whatsapp-cta-btn:hover .gifty-wa-arrow {
  transform: translateX(3px);
}

body.lang-derja .gifty-wa-texts {
  text-align: right;
}

body.lang-derja .gifty-wa-arrow {
  transform: rotate(180deg);
}

body.lang-derja .gifty-whatsapp-cta-btn:hover .gifty-wa-arrow {
  transform: translateX(-3px);
}

.gifty-vip-guarantee-note {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 251, 245, 0.75);
  margin-top: 8px;
}

/* 2. Direct Support Suite (Next to it) */
.gifty-direct-suite {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gifty-direct-suite-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  color: rgba(255, 251, 245, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.gifty-direct-suite-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gifty-direct-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  padding: 7px 10px;
  text-decoration: none;
  color: #fffbf5;
  transition: all 0.2s ease;
}

.gifty-direct-item:hover {
  background: rgba(255, 123, 37, 0.14);
  border-color: rgba(255, 123, 37, 0.4);
  color: #ffa12a;
  transform: translateX(3px);
}

.gifty-direct-item-icon {
  font-size: 1.1rem !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px;
}

.gifty-direct-item-info {
  display: flex !important;
  flex-direction: column !important;
  text-align: left;
  min-width: 0;
}

.gifty-direct-item-label {
  font-size: 0.63rem;
  color: rgba(255, 251, 245, 0.55);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2px;
}

.gifty-direct-item-val {
  font-size: 0.78rem;
  font-weight: 750;
  color: #fffbf5;
  direction: ltr;
  display: inline-block;
  line-height: 1.2;
}

.gifty-direct-item.is-instagram:hover {
  background: rgba(220, 39, 67, 0.16);
  border-color: rgba(220, 39, 67, 0.4);
  color: #ffffff;
}

body.lang-derja .gifty-direct-item-info {
  text-align: right;
}

body.lang-derja .gifty-direct-item:hover {
  transform: translateX(-3px);
}

.gifty-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gifty-footer-links li a,
.gifty-footer-links li button {
  background: none;
  border: none;
  color: rgba(255, 251, 245, 0.82);
  text-decoration: none;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  font-family: inherit;
  text-align: left;
}

.gifty-footer-links li a:hover,
.gifty-footer-links li button:hover {
  color: #ff7b25;
  transform: translateX(4px);
}

/* ==========================================================================
   Organized Payment Methods (2 Distinct Lists with Generous Room)
   ========================================================================== */
.gifty-payment-two-lists {
  display: flex;
  flex-direction: column;
  gap: 14px; /* Generous breathing room between List 1 and List 2 */
  margin-bottom: 12px;
}

.gifty-payment-sublist {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 11px 12px;
}

.gifty-payment-sublist.is-cod-group {
  background: linear-gradient(135deg, rgba(255, 123, 37, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(255, 123, 37, 0.22);
}

.gifty-sublist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.gifty-sublist-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 750;
  color: #ffb076;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gifty-sublist-tag {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 251, 245, 0.7);
}

.gifty-payment-sublist.is-cod-group .gifty-sublist-tag {
  background: rgba(255, 123, 37, 0.15);
  color: #ffa12a;
}

/* List 1 Items (Single-column vertical stack so D17 is strictly UNDER Konnect Gateway, with ample 10px spacement) */
.gifty-sublist-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.gifty-payment-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fffbf5;
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 750;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left;
  gap: 10px !important;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  width: 100%;
}

.gifty-payment-badge:hover {
  background: rgba(255, 123, 37, 0.18);
  border-color: rgba(255, 123, 37, 0.48);
  color: #ffa12a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Postal D17 highlight at the end of List 1 */
.gifty-payment-badge.is-d17 {
  border-color: rgba(255, 176, 118, 0.28);
}

/* Full-width highlight for Cash on Delivery (List 2) */
.gifty-payment-badge.is-cod-full,
.gifty-payment-badge.is-fullwidth {
  width: 100%;
  background: linear-gradient(135deg, rgba(255, 123, 37, 0.14) 0%, rgba(255, 176, 118, 0.08) 100%);
  border-color: rgba(255, 123, 37, 0.38);
  color: #ffb076;
  font-weight: 800;
  padding: 9px 12px;
}

.gifty-payment-badge.is-cod-full:hover,
.gifty-payment-badge.is-fullwidth:hover {
  background: linear-gradient(135deg, rgba(255, 123, 37, 0.24) 0%, rgba(255, 176, 118, 0.16) 100%);
  border-color: #ff7b25;
  color: #ffffff;
}

/* Delivery & Coverage Card */
.gifty-footer-delivery-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.gifty-footer-delivery-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 123, 37, 0.25);
}

.gifty-delivery-title-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.gifty-delivery-icon {
  font-size: 1.15rem !important;
  line-height: 1 !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

.gifty-delivery-title {
  font-size: 0.77rem;
  font-weight: 800;
  color: #ffa12a;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.gifty-footer-coverage-note {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 251, 245, 0.72);
  line-height: 1.45;
}

body.lang-derja .gifty-delivery-title-row {
  flex-direction: row;
}

body.lang-derja .gifty-payment-badge {
  justify-content: flex-start !important;
  text-align: right;
}

body.lang-derja .gifty-footer-delivery-card {
  text-align: right;
}

.gifty-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(255, 251, 245, 0.6);
}

.gifty-footer-bottom a {
  color: rgba(255, 251, 245, 0.75);
  text-decoration: underline;
}

/* ==========================================================================
   Interactive Legal Modal (CGV, Refunds, Privacy, Delivery)
   ========================================================================== */
.gifty-legal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 5, 3, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  place-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gifty-legal-backdrop.visible {
  display: grid;
  opacity: 1;
}

.gifty-legal-dialog {
  background: #fffdf9;
  color: #240704;
  border-radius: 24px;
  max-width: 820px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 123, 37, 0.25);
  overflow: hidden;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.gifty-legal-header {
  padding: 20px 26px;
  background: #240704;
  color: #fffbf5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #ff7b25;
}

.gifty-legal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gifty-legal-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fffbf5;
  font-size: 1.3rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.gifty-legal-close:hover {
  background: #ff7b25;
  color: #240704;
}

.gifty-legal-tabs {
  display: flex;
  background: rgba(255, 123, 37, 0.08);
  border-bottom: 1px solid rgba(36, 7, 4, 0.1);
  overflow-x: auto;
  padding: 6px 16px 0;
  gap: 8px;
}

.gifty-legal-tab-btn {
  background: none;
  border: none;
  padding: 12px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #745b54;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.gifty-legal-tab-btn:hover {
  color: #240704;
}

.gifty-legal-tab-btn.active {
  color: #ff7b25;
  border-bottom-color: #ff7b25;
  background: #fffdf9;
  border-radius: 12px 12px 0 0;
}

.gifty-legal-body {
  padding: 28px 30px;
  overflow-y: auto;
  font-size: 0.94rem;
  line-height: 1.7;
  color: #3b2219;
}

.gifty-legal-pane {
  display: none;
}

.gifty-legal-pane.active {
  display: block;
}

.gifty-legal-pane h4 {
  font-size: 1.12rem;
  color: #240704;
  margin: 18px 0 8px 0;
  border-left: 3px solid #ff7b25;
  padding-left: 10px;
}

.gifty-legal-pane h4:first-child {
  margin-top: 0;
}

.gifty-legal-pane p {
  margin: 0 0 12px 0;
}

.gifty-legal-pane ul {
  margin: 0 0 16px 20px;
  padding: 0;
}

.gifty-legal-pane li {
  margin-bottom: 6px;
}

.gifty-legal-footer {
  padding: 16px 26px;
  background: #faf6f0;
  border-top: 1px solid rgba(36, 7, 4, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.gifty-legal-footer-btn {
  background: #240704;
  color: #fffbf5;
  border: none;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.gifty-legal-footer-btn:hover {
  background: #ff7b25;
  color: #240704;
}
