/* ============================================================
   ADDITIONAL FEATURES — Copied from GT Seats
   ============================================================ */

/* --- Delivery Promise Banner --- */
.vp-promise-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.vp-promise-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(16, 20, 23, 0.12);
  border-color: rgba(8, 201, 155, 0.3);
}

.vp-promise-media {
  display: grid;
  place-items: center;
  padding: 34px 24px;
  background: linear-gradient(180deg, #f0faf6, #e8f8f2);
  border-right: 1px solid var(--line);
}

.vp-promise-media img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.vp-promise-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 32px 36px;
}

.vp-promise-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.vp-promise-eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.vp-promise-body h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}

.vp-promise-body p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.vp-promise-partner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  color: #6b7680;
  font-size: 0.78rem;
  font-weight: 700;
}

.vp-promise-partner img {
  width: auto;
  height: 24px;
  border-radius: 4px;
}

@media (max-width: 760px) {
  .vp-promise-card {
    grid-template-columns: 1fr;
  }
  .vp-promise-media {
    padding: 22px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .vp-promise-media img {
    width: 96px;
    height: 96px;
  }
  .vp-promise-body {
    padding: 24px 20px 22px;
  }
}

/* --- Checkout How-It-Works Steps --- */
.vp-checkout-how {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--paper) 0%, #fafbfc 100%);
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.vp-checkout-how-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--teal-dark);
}

.vp-checkout-how-head svg {
  flex-shrink: 0;
}

.vp-checkout-how-head span {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.vp-checkout-how-steps {
  display: grid;
  gap: 14px;
}

.vp-checkout-how-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.vp-checkout-how-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(8, 201, 155, 0.25);
}

.vp-checkout-how-step strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}

.vp-checkout-how-step small {
  display: block;
  font-size: 0.76rem;
  color: #6b7a8d;
  line-height: 1.5;
}

/* --- Enhanced Shipping Carrier Cards --- */
.vp-carrier-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0 16px;
}

.vp-shipping-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid #e2e5e9;
  border-radius: 10px;
  background: var(--paper);
  padding: 14px 16px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.vp-shipping-card::before {
  content: "\25CB";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  font-size: 14px;
  color: #d1d5db;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.vp-shipping-card:hover {
  border-color: var(--teal);
}

.vp-shipping-card.active {
  border-color: var(--ink);
  background: #f9fafb;
  box-shadow: 0 0 0 1px var(--ink);
}

.vp-shipping-card.active::before {
  content: "\2713";
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.vp-shipping-card strong {
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vp-shipping-card small {
  color: #69747e;
  font-size: 0.66rem;
  font-weight: 740;
  line-height: 1.35;
}

.vp-shipping-card em {
  position: relative;
  z-index: 1;
  font-style: normal;
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 950;
  margin-left: auto;
}

@media (max-width: 760px) {
  .vp-carrier-options {
    grid-template-columns: 1fr;
  }
}

/* --- iMessage-Style Support Chat --- */
.vp-msg-thread {
  max-height: 440px;
  min-height: 180px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  padding: 14px 12px 8px;
  background: #0c0f14;
  border-radius: 14px;
  scroll-behavior: smooth;
}

.vp-msg-empty {
  margin: auto;
  text-align: center;
  color: rgba(233, 237, 242, 0.5);
  font-size: 0.9rem;
  padding: 24px 14px;
}

.vp-msg-day {
  text-align: center;
  margin: 12px 0 8px;
}

.vp-msg-day span {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(233, 237, 242, 0.6);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 11px;
  border-radius: 999px;
}

.vp-msg-row {
  display: flex;
  margin: 2px 0;
}

.vp-msg-row.me {
  justify-content: flex-end;
}

.vp-msg-row.them {
  justify-content: flex-start;
}

.vp-msg-bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 20px;
  font-size: 0.92rem;
  line-height: 1.38;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
  animation: vpMsgIn 0.18s ease-out;
}

.vp-msg-row.me .vp-msg-bubble {
  background: linear-gradient(180deg, var(--teal-dark), #037a5e);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.vp-msg-row.them .vp-msg-bubble {
  background: #1a2332;
  color: #e9edf2;
  border-bottom-left-radius: 6px;
}

.vp-msg-text {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.vp-msg-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 4px;
  font-size: 0.62rem;
  opacity: 0.62;
}

.vp-msg-row.them .vp-msg-meta {
  justify-content: flex-start;
}

.vp-msg-compose {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-top: 12px;
}

.vp-msg-input {
  flex: 1;
  min-height: 44px;
  max-height: 140px;
  resize: none;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 11px 14px;
  font-size: 0.92rem;
  font-family: inherit;
  background: #0c0f14;
  color: #e9edf2;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vp-msg-input:focus {
  outline: none;
  border-color: #cfd6df;
  box-shadow: 0 0 0 3px rgba(207, 214, 223, 0.15);
}

@keyframes vpMsgIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* --- Affiliate Progress Bar --- */
.vp-aff-progress {
  margin: 18px 0 4px;
}

.vp-aff-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.vp-aff-rate {
  font-size: 20px;
  font-weight: 950;
  color: var(--teal-dark);
}

.vp-aff-rate small {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-left: 5px;
  text-transform: uppercase;
}

.vp-aff-uses {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.vp-aff-bar {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: rgba(16, 20, 23, 0.07);
  box-shadow: inset 0 1px 2px rgba(16, 20, 23, 0.06);
  margin: 8px 14px 4px;
}

.vp-aff-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 999px;
  width: 0%;
  background: linear-gradient(90deg, var(--teal-dark), var(--teal));
  box-shadow: 0 2px 8px rgba(8, 201, 155, 0.4);
  transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vp-aff-node {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid rgba(16, 20, 23, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  box-shadow: 0 2px 5px rgba(20, 27, 34, 0.12);
}

.vp-aff-node:last-child {
  color: var(--teal-dark);
  border-color: rgba(8, 201, 155, 0.35);
}

.vp-aff-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.vp-aff-tier {
  text-align: center;
  padding: 11px 6px;
  border-radius: 12px;
  background: rgba(16, 20, 23, 0.04);
  border: 1px solid rgba(16, 20, 23, 0.06);
  transition: all 0.25s ease;
}

.vp-aff-tier b {
  display: block;
  font-size: 16px;
  color: var(--ink);
  font-weight: 950;
}

.vp-aff-tier span {
  font-size: 10.5px;
  color: var(--muted);
}

.vp-aff-tier.is-active {
  background: linear-gradient(180deg, #e8fbf5, #d0f5ea);
  border-color: rgba(8, 201, 155, 0.3);
}

/* --- Currency Picker --- */
.vp-cur-wrap {
  position: relative;
}

.vp-cur-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(20, 27, 34, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.vp-cur-trigger:hover {
  border-color: var(--teal);
}

.vp-cur-trigger[aria-expanded="true"] {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 201, 155, 0.16);
}

.vp-cur-chev {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  margin-left: auto;
  transition: transform 0.2s;
}

.vp-cur-trigger[aria-expanded="true"] .vp-cur-chev {
  transform: rotate(-135deg);
}

.vp-cur-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  width: 300px;
  max-width: 82vw;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(20, 27, 34, 0.2);
  padding: 10px;
  animation: vpCurPop 0.18s ease;
}

@keyframes vpCurPop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.vp-cur-search {
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0 12px;
  font-size: 14px;
  background: #f6f7f9;
  color: var(--ink);
  margin-bottom: 8px;
  font-family: inherit;
}

.vp-cur-search:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(8, 201, 155, 0.16);
}

.vp-cur-list {
  max-height: 264px;
  overflow: auto;
  display: grid;
  gap: 2px;
}

.vp-cur-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: 9px 10px;
  cursor: pointer;
  font-family: inherit;
}

.vp-cur-item:hover {
  background: rgba(8, 201, 155, 0.1);
}

.vp-cur-item.is-selected {
  background: linear-gradient(180deg, #e8fbf5, #d0f5ea);
}

.vp-cur-code {
  font-weight: 850;
  color: var(--ink);
  font-size: 13px;
}

.vp-cur-name {
  font-size: 11.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.vp-cur-check {
  color: var(--teal-dark);
  font-weight: 900;
  font-size: 13px;
}

/* --- Checkout Shake Validation --- */
.vp-field-error {
  border-color: #e53e3e !important;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15) !important;
  animation: vpShake 0.35s ease-in-out;
  scroll-margin-top: 140px;
}

.vp-field-error:focus {
  outline: none;
  border-color: #e53e3e !important;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.25) !important;
}

@keyframes vpShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* --- Auth Pulse Animation --- */
@keyframes vpPulse {
  0% { box-shadow: 0 0 0 0 rgba(8, 201, 155, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(8, 201, 155, 0); }
  100% { box-shadow: 0 0 0 0 rgba(8, 201, 155, 0); }
}

.vp-pulse {
  animation: vpPulse 1s ease-out 2;
  border-radius: 18px;
}

/* --- Ghost Button --- */
.vp-btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vp-btn-ghost:hover {
  background: rgba(8, 201, 155, 0.08);
  border-color: var(--teal);
  color: var(--teal-dark);
}

/* --- Checkout Region Trigger --- */
@keyframes vpGlobeBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-3px) scale(1.1); }
  60% { transform: translateY(1px) scale(0.96); }
}

@keyframes vpGlobeGlow {
  0%, 100% { box-shadow: 0 6px 18px rgba(16, 20, 23, 0.08), 0 0 0 0 rgba(8, 201, 155, 0); }
  50% { box-shadow: 0 6px 18px rgba(16, 20, 23, 0.08), 0 0 20px 5px rgba(8, 201, 155, 0.2); }
}

.vp-region-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem 0.45rem 2.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(16, 20, 23, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}

.vp-region-trigger::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23049574" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M2 12h20"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg>') center/contain no-repeat;
  border-radius: 50%;
  animation: vpGlobeBounce 2.4s ease-in-out infinite, vpGlobeGlow 3s ease-in-out infinite;
  pointer-events: none;
}

.vp-region-trigger:hover {
  border-color: var(--teal);
  box-shadow: 0 10px 26px rgba(16, 20, 23, 0.14);
  transform: translateY(-1px);
}

.vp-region-trigger img {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
}

.vp-region-trigger[data-required="true"] {
  border-color: #e53e3e;
  animation: vpPulseRequired 2s ease-in-out infinite;
}

@keyframes vpPulseRequired {
  0%, 100% { border-color: #e53e3e; }
  50% { border-color: rgba(229, 62, 62, 0.4); }
}
