body {
  margin: 0;
  padding: 0;
  background-color: #f1f1f1;
  color: #333;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.header {
  background-color: #1d365d;
  color: white;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 600;
  position: relative;
}

.logo {
  width: 120px;
  height: auto;
  max-height: 35px;
  object-fit: contain;
}

.header-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 17px;
  font-weight: 600;
}

.close-btn {
  font-size: 24px;
  line-height: 1;
  color: white;
}

.content {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background-image: url('https://via.placeholder.com/400x800?text=Arka+Plan+Resmi');
  background-size: cover;
  background-position: center;
}

.section-title {
  font-size: 14px;
  color: #8e8e93;
  margin-bottom: 10px;
  font-weight: 500;
}

.product-info {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
}

.product-image {
  width: 80px;
  height: 80px;
  border-radius: 5px;
  margin-right: 12px;
  object-fit: cover;
}

.product-details {
  flex: 1;
}

.product-details p {
  margin: 0;
  font-size: 15px;
  color: #000;
  line-height: 1.4;
}

.product-details a {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: #007aff;
  text-decoration: none;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e5e5ea;
  font-size: 15px;
}

.price-row span {
  font-weight: 500;
}

.total {
  color: #007aff;
  font-weight: 600;
  font-size: 17px;
}

.shipping-info {
  font-size: 13px;
  color: #8e8e93;
  margin-top: 10px;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.security,
.shipping {
  display: flex;
  align-items: center;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.95);
  margin-top: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-size: 13px;
}

.security img,
.shipping img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.button {
  background-color: #007aff;
  color: white;
  padding: 15px;
  text-align: center;
  border: none;
  border-radius: 10px;
  width: 100%;
  font-size: 17px;
  font-weight: 600;
  margin-top: 20px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.button:hover {
  background-color: #005bb5;
}

.back-button {
  background-color: #e0e0e0;
  color: #333;
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  margin-left: 10px;
  cursor: pointer;
}

.back-button:hover {
  background-color: #ccc;
}

.payment-page {
  display: none;
}

.payment-page.active {
  display: block;
}

/* Ana header'ı ödeme sayfasında gizle */
body:has(.payment-page[style*="display: block"])>.header {
  display: none;
}

.payment-info {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
}

.payment-info h3 {
  font-size: 16px;
  margin: 0 0 10px;
  color: #000;
  font-weight: 600;
}

.payment-option {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #e5e5ea;
}

.payment-option img {
  width: 30px;
  height: 20px;
  margin-right: 10px;
}

.payment-option label {
  font-size: 15px;
  color: #000;
  margin: 0;
}

.bank-details {
  margin-top: 15px;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.bank-details p {
  margin: 5px 0;
  font-size: 14px;
  color: #333;
}

.bank-details strong {
  font-weight: 600;
}

.warning {
  color: #ff6200;
  font-size: 12px;
  font-weight: 300;
  margin-top: 10px;
}

.address-info {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
}

.address-table {
  width: 100%;
  border-collapse: collapse;
}

.address-table tr td {
  padding: 8px 0;
}

.address-table label {
  font-size: 14px;
  color: #333;
  width: 100px;
  display: inline-block;
  font-weight: 500;
}

.address-table input {
  width: 100%;
  padding: 8px;
  border: 1px solid #e5e5ea;
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box;
}

.total-row {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
}

.total-row span {
  color: #007aff;
}

.agreement {
  margin-top: 20px;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.checkbox-group input {
  margin-right: 10px;
}

.checkbox-group label {
  font-size: 13px;
  color: #333;
}

.confirmation {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  padding: 25px;
  background-color: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  font-size: 16px;
  color: #333;
  text-align: center;
  z-index: 1000;
  min-width: 280px;
  max-width: 320px;
  opacity: 0;
  animation: confirmationShow 0.4s ease-out forwards;
}

@keyframes confirmationShow {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.confirmation.fade-out {
  animation: confirmationHide 0.3s ease-in forwards;
}

@keyframes confirmationHide {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
}
