/* ========================================================
   Goodzone Credit & Installment Calculator Styles
   Figma Match: Goodzone - 2026 (Copy)
   ======================================================== */

/* Product Page Entry Buttons */
.gz-credit-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
  width: 100%;
}

.gz-credit-entry-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none !important;
  color: #1A202C;
  font-family: inherit;
  box-sizing: border-box;
}

.gz-credit-entry-btn:hover {
  border-color: #E97406;
  background: #FFFBF7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(233, 116, 6, 0.08);
}

.gz-credit-entry-btn-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gz-credit-entry-btn-icon {
  width: 32px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gz-credit-entry-btn-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gz-credit-entry-btn-text {
  font-size: 13px;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.3;
}

.gz-credit-entry-btn-text span {
  color: #E97406;
}

.gz-credit-entry-btn-arrow {
  color: #94A3B8;
  font-size: 14px;
  transition: transform 0.2s ease;
}

.gz-credit-entry-btn:hover .gz-credit-entry-btn-arrow {
  color: #E97406;
  transform: translateX(3px);
}

/* ========================================================
   Drawer & Backdrop
   ======================================================== */
.gz-credit-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  z-index: 99998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gz-credit-backdrop.active {
  opacity: 1;
}

.gz-credit-drawer {
  position: fixed;
  top: 0;
  right: -800px;
  bottom: 0;
  width: 760px;
  max-width: 100vw;
  background: #FFFFFF;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.gz-credit-drawer.active {
  right: 0;
}

.gz-credit-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #F1F5F9;
}

.gz-credit-drawer-title {
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
}

.gz-credit-close-btn {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #64748B;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.gz-credit-close-btn:hover {
  color: #0F172A;
  background: #F1F5F9;
}

.gz-credit-drawer-body {
  display: flex;
  flex: 1;
  overflow-y: auto;
}

/* Left Column */
.gz-credit-left-col {
  width: 320px;
  padding: 20px;
  background: #F8FAFC;
  border-right: 1px solid #E2E8F0;
  overflow-y: auto;
  flex-shrink: 0;
  box-sizing: border-box;
}

.gz-credit-product-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  margin-bottom: 20px;
}

.gz-credit-product-img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.gz-credit-product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gz-credit-product-name {
  font-size: 12px;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gz-credit-product-code {
  font-size: 11px;
  color: #64748B;
  margin-bottom: 4px;
}

.gz-credit-product-price {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
}

/* Cart Items in Drawer */
.gz-credit-cart-block {
  background: #FFFFFF;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  margin-bottom: 20px;
}

.gz-credit-cart-heading {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
}

.gz-credit-cart-items {
  max-height: 180px;
  overflow-y: auto;
}

.gz-credit-cart-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #F1F5F9;
  font-size: 11px;
}

.gz-credit-cart-item-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.gz-credit-cart-item-info {
  flex: 1;
}

.gz-credit-cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #CBD5E1;
  font-size: 13px;
}

/* Programs List */
.gz-credit-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.gz-credit-category-label {
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
  margin: 14px 0 6px 0;
  text-transform: uppercase;
}

.gz-credit-program-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gz-credit-program-item:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
}

.gz-credit-program-item.active {
  border: 2px solid #125077;
  background: #FFFDF9;
  box-shadow: 0 2px 6px rgba(18, 80, 119, 0.08);
}

.gz-credit-prog-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.gz-credit-prog-thumb {
  width: 34px;
  height: 22px;
  border-radius: 3px;
  object-fit: contain;
  flex-shrink: 0;
}

.gz-credit-prog-meta {
  line-height: 1.2;
}

.gz-credit-prog-title {
  font-size: 12px;
  font-weight: 600;
  color: #1E293B;
}

.gz-credit-prog-sub {
  font-size: 11px;
  color: #64748B;
}

.gz-credit-prog-badge {
  font-size: 10px;
  font-weight: 700;
  background: #F1F5F9;
  color: #475569;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.gz-credit-program-item.active .gz-credit-prog-badge {
  background: #125077;
  color: #FFFFFF;
}

/* Right Column (Calculator) */
.gz-credit-right-col {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  box-sizing: border-box;
}

.gz-credit-calc-program-name {
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 16px;
}

.gz-credit-payment-card {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  border: 1px solid #FED7AA;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.gz-credit-payment-label {
  font-size: 13px;
  font-weight: 600;
  color: #9A3412;
  margin-bottom: 4px;
}

.gz-credit-payment-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.gz-badge-zero-pct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: gzPulse 2s infinite ease-in-out;
}

@keyframes gzPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.gz-credit-payment-value {
  font-size: 32px;
  font-weight: 800;
  color: #C2410C;
  line-height: 1.1;
}

.gz-credit-total-line {
  font-size: 13px;
  font-weight: 600;
  color: #7C2D12;
}

.gz-credit-total-line.is-zero-pct {
  color: #C2410C;
}

.gz-term-tick {
  position: relative;
  cursor: pointer;
  padding-bottom: 4px;
}

.gz-term-tick.is-zero-pct {
  font-weight: 700;
  color: #C2410C;
  border-bottom: 2px solid #E97406;
}

/* Slider Box */
.gz-credit-slider-box {
  margin-bottom: 24px;
}

.gz-credit-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.gz-credit-box-label {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.gz-credit-box-val {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
}

.gz-credit-slider-wrapper {
  position: relative;
  margin: 12px 0;
}

.gz-credit-slider-wrapper input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #E2E8F0;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.gz-credit-slider-wrapper input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #E97406;
  border: 3px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.gz-credit-slider-wrapper input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.gz-credit-pills {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.gz-pill {
  flex: 1;
  padding: 6px 0;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.gz-pill:hover {
  border-color: #E97406;
  color: #E97406;
}

.gz-pill.active {
  background: #E97406;
  border-color: #E97406;
  color: #FFFFFF;
}

.gz-credit-term-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #64748B;
  margin-top: 4px;
  padding: 0 4px;
}

.gz-credit-fixed-term {
  padding: 12px;
  background: #F1F5F9;
  border-radius: 8px;
  font-size: 13px;
  color: #334155;
  margin-top: 8px;
}

/* Submit Action Button */
.gz-credit-action-box {
  margin-top: 28px;
}

.gz-credit-submit-btn {
  width: 100%;
  padding: 16px;
  background: #E97406;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(233, 116, 6, 0.25);
}

.gz-credit-submit-btn:hover {
  background: #D36704;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(233, 116, 6, 0.35);
}

.gz-credit-disclaimer {
  font-size: 11px;
  line-height: 1.5;
  color: #94A3B8;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #F1F5F9;
}

/* ========================================================
   Checkout Filterit Styles
   ======================================================== */
.gz-checkout-credit-info {
  display: inline-block;
  font-size: 12px;
  color: #E97406;
  font-weight: 600;
  margin-left: 6px;
}

.gz-checkout-credit-badge {
  display: block;
  font-size: 11px;
  color: #64748B;
  margin-top: 2px;
}

/* ========================================================
   Mobile Responsiveness
   ======================================================== */
@media (max-width: 768px) {
  .gz-credit-drawer {
    width: 100vw;
  }
  
  .gz-credit-drawer-body {
    flex-direction: column;
  }

  .gz-credit-left-col {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #E2E8F0;
    max-height: 280px;
  }

  .gz-credit-payment-value {
    font-size: 26px;
  }
}
