/* ============================================
   1. LAYOUT WRAPPERS
   ============================================ */
.checkout-page-wrapper {
  background-color: #f8f9fa;
  padding: 60px 0;
}

.checkout-flex-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* ============================================
   2. LEFT SIDE: FORMS
   ============================================ */
.checkout-left {
  flex: 1.2;
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.form-section {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.form-section h2 {
  font-size: 20px;
  color: #0b2341;
  font-weight: 700;
}

.login-prompt {
  font-size: 13px;
  color: #666;
}

.login-prompt a {
  color: #169084;
  text-decoration: none;
  font-weight: bold;
}

/* Inputs */
.full-input {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 14px;
  outline: none;
}

.full-input:focus {
  border-color: #169084;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.input-row input {
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
  outline: none;
}

/* Shipping Box */
.shipping-box {
  background: #f0f7f6;
  border: 2px solid #169084;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shipping-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.shipping-info i {
  font-size: 24px;
  color: #169084;
}

/* Payment Box */
.payment-box {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  background: #fafafa;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 10px;
}

.payment-desc {
  font-size: 13px;
  color: #777;
  padding-left: 25px;
}

.btn-place-order {
  width: 100%;
  background: #169084;
  color: #fff;
  border: none;
  padding: 20px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 1px;
  cursor: pointer;
  margin-top: 30px;
  transition: 0.3s;
}

.btn-place-order:hover {
  background: #0b2341;
  transform: translateY(-2px);
}

/* ============================================
   3. RIGHT SIDE: SUMMARY
   ============================================ */
.checkout-right {
  flex: 0.8;
  position: sticky;
  top: 100px;
}

.order-summary-card {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #eee;
}

.order-summary-card h3 {
  font-size: 18px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.item-img-wrapper {
  position: relative;
  width: 60px;
  height: 60px;
  border: 1px solid #eee;
  border-radius: 6px;
}

.item-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qty-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #666;
  color: #fff;
  font-size: 11px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.item-info {
  flex: 1;
}

.item-name {
  font-size: 14px;
  font-weight: 600;
  display: block;
}

.summary-totals {
  border-top: 1px solid #eee;
  padding-top: 20px;
  margin-top: 20px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: #555;
}

.grand-total {
  font-size: 20px;
  color: #000;
  margin-top: 15px;
}

.final-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

/* ============================================
   4. MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
  .checkout-flex-container {
    flex-direction: column-reverse; /* Put Summary at top on Mobile */
  }

  .checkout-right {
    position: static;
    width: 100%;
  }

  .checkout-left {
    width: 100%;
    padding: 25px;
  }
}

@media (max-width: 600px) {
  .input-row {
    grid-template-columns: 1fr;
  }

  .checkout-page-wrapper {
    padding: 20px 0;
  }

  .btn-place-order {
    padding: 15px;
  }
}
