/* =============================================
   GraphTech Chile — Checkout & Payment Styles
   ============================================= */

/* Modal Overlay */
#gt-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: opacity 0.3s ease;
  font-family: 'Inter', sans-serif;
}

#gt-modal {
  position: relative;
  background: #161d2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.5rem;
  padding: 2.5rem;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  color: #e2e8f0;
  box-shadow: 0 25px 80px rgba(0,0,0,0.6);
  scrollbar-width: thin;
  scrollbar-color: #0f49bd #1e293b;
}

#gt-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(255,255,255,0.08);
  border: none;
  color: #94a3b8;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
#gt-modal-close:hover { background: rgba(255,255,255,0.18); color: #fff; }

/* Modal Header */
.gt-modal-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}
.gt-modal-icon { font-size: 1.8rem; }
.gt-modal-header h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

/* Cart Items */
.gt-cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 0.75rem;
  margin-bottom: 0.6rem;
}
.gt-item-info { display: flex; flex-direction: column; gap: 0.2rem; }
.gt-item-info strong { color: #f1f5f9; font-size: 0.9rem; }
.gt-item-brand { color: #64748b; font-size: 0.78rem; }
.gt-item-price { display: flex; align-items: center; gap: 0.5rem; }
.gt-qty { background: #0f49bd; color: #fff; padding: 0.15rem 0.45rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.gt-item-price strong { color: #60a5fa; font-size: 0.95rem; }

/* Total Row */
#gt-cart-total-row {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 1rem;
  padding-top: 1rem;
  margin-bottom: 1.5rem;
}
.gt-total-line {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  color: #94a3b8;
  font-size: 0.88rem;
}
.gt-grand-total {
  color: #f1f5f9 !important;
  font-weight: 800;
  font-size: 1.1rem !important;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}
.gt-grand-total span:last-child { color: #60a5fa; font-size: 1.2rem; }

/* Amount Display */
.gt-amount-display {
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.gt-amount-display strong { color: #60a5fa; font-size: 1.3rem; }

/* Tabs */
.gt-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: rgba(255,255,255,0.04);
  border-radius: 0.75rem;
  padding: 0.3rem;
}
.gt-tab {
  flex: 1;
  padding: 0.6rem 0.5rem;
  background: transparent;
  border: none;
  color: #64748b;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}
.gt-tab.active { background: #0f49bd; color: #fff; }
.gt-tab:hover:not(.active) { background: rgba(255,255,255,0.08); color: #e2e8f0; }

/* Forms */
.gt-form-group {
  margin-bottom: 1rem;
}
.gt-form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.gt-form-group input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.6rem;
  padding: 0.75rem 1rem;
  color: #f1f5f9;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.gt-form-group input:focus { border-color: #0f49bd; box-shadow: 0 0 0 3px rgba(15,73,189,0.2); }
.gt-form-group input::placeholder { color: #475569; }
.gt-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* Card Brands */
.gt-card-brands {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  font-size: 0.78rem;
  color: #64748b;
}
.gt-card-brands span {
  background: rgba(255,255,255,0.05);
  padding: 0.25rem 0.6rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(255,255,255,0.07);
}

/* Transfer Box */
.gt-transfer-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 1.2rem;
  margin-bottom: 1rem;
}
.gt-transfer-row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.85rem;
}
.gt-transfer-row:last-child { border-bottom: none; }
.gt-transfer-row span { color: #64748b; }
.gt-transfer-row strong { color: #e2e8f0; }
.gt-transfer-note {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 1.2rem;
  line-height: 1.5;
  text-align: center;
}
.gt-transfer-note strong { color: #94a3b8; }

/* PayPal / MP Buttons */
.gt-paypal-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.gt-paypal-btn, .gt-mp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  transition: transform 0.2s, box-shadow 0.2s;
}
.gt-paypal-btn { background: #003087; color: #fff; }
.gt-mp-btn { background: #009ee3; color: #fff; }
.gt-paypal-btn:hover, .gt-mp-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }

/* Primary Button */
.gt-btn-primary {
  width: 100%;
  padding: 0.95rem;
  background: #0f49bd;
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  margin-top: 0.5rem;
}
.gt-btn-primary:hover:not(:disabled) {
  background: #1a5cdc;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(15,73,189,0.4);
}
.gt-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* Back Button */
.gt-btn-back {
  width: 100%;
  padding: 0.7rem;
  background: transparent;
  color: #64748b;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  margin-top: 0.75rem;
  transition: color 0.2s, border-color 0.2s;
}
.gt-btn-back:hover { color: #e2e8f0; border-color: rgba(255,255,255,0.2); }

/* Success */
.gt-success-anim {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
}
.gt-checkmark {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  animation: gt-pop 0.5s cubic-bezier(0.175,0.885,0.32,1.275);
  box-shadow: 0 0 40px rgba(16,185,129,0.4);
}
@keyframes gt-pop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.gt-order-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}
.gt-order-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.gt-order-row:last-child { border-bottom: none; }
.gt-order-row span { color: #64748b; }
.gt-order-row strong { color: #e2e8f0; }

/* Cart Badge in Nav */
.gt-cart-wrapper {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gt-cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-family: 'Inter', sans-serif;
  border: 2px solid #161d2e;
  z-index: 10;
}

/* Contact Form */
#gt-contact-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 2rem;
  margin-top: 1.5rem;
  font-family: 'Inter', sans-serif;
}
#gt-contact-form h3 { color: #fff; margin-top:0; margin-bottom:1.5rem; }
#gt-contact-form .gt-form-group { margin-bottom: 1rem; }
#gt-contact-form .gt-form-group label { display:block; color:#94a3b8; font-size:0.8rem; font-weight:600; text-transform:uppercase; letter-spacing:0.05em; margin-bottom:0.4rem; }
#gt-contact-form input, #gt-contact-form textarea, #gt-contact-form select {
  width:100%; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1);
  border-radius:0.6rem; padding:0.75rem 1rem; color:#f1f5f9; font-size:0.9rem;
  font-family:'Inter',sans-serif; outline:none; box-sizing:border-box;
}
#gt-contact-form input:focus, #gt-contact-form textarea:focus { border-color:#0f49bd; }
#gt-contact-form textarea { resize:vertical; min-height:120px; }
#gt-contact-form button { margin-top:0.5rem; }
#gt-contact-success { display:none; text-align:center; padding:2rem; color:#10b981; font-size:1.1rem; font-weight:700; }
