/* Keypad Container Styles - Larger & Touch Friendly */
.keypad-container {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 15px rgba(255, 98, 71, 0.08);
  border: 1px solid rgba(255, 98, 71, 0.1);
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

.keypad-container .keypad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
}

.keypad-container .keypad-btn {
  border: none;
  border-radius: 10px;
  padding: 14px 8px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  color: #333;
  box-shadow: 0 2px 8px rgba(255, 98, 71, 0.08);
  border: 1px solid #e9ecef;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  text-align: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.keypad-container .keypad-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 98, 71, 0.15);
  background: linear-gradient(135deg, #ff6247 0%, #ff7a5c 100%);
  color: white;
  border-color: #ff6247;
}

.keypad-container .keypad-btn:active {
  transform: translateY(0);
  background: linear-gradient(135deg, #ff4f38 0%, #ff6247 100%);
}

.keypad-container .keypad-btn-danger {
  background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
  color: white;
  border-color: #ff4757;
}

.keypad-container .keypad-btn-danger:hover {
  background: linear-gradient(135deg, #ff3742 0%, #ff2731 100%);
}

.keypad-container .keypad-btn-primary {
  background: linear-gradient(135deg, #ff6247 0%, #ff7a5c 100%);
  color: white;
  border-color: #ff6247;
}

.keypad-container .keypad-btn-primary:hover {
  background: linear-gradient(135deg, #ff4f38 0%, #ff6247 100%);
}

.keypad-container .keypad-radio-display,
.keypad-container .keypad-radio-servis,
.keypad-container .keypad-radio-indirim,
.keypad-container .keypad-radio-paraustuhesapla {
  display: none;
}

/* 1/n Dropdown Styling */
.keypad-container .dropdown {
  position: relative;
}

.keypad-container .keypad-1n-dropdown {
  min-width: 120px;
  padding: 8px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid #e2e8f0;
  background: white;
  margin-top: 4px;
}

.keypad-container .keypad-1n-dropdown .keypad-1n-item {
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  color: #333;
}

.keypad-container .keypad-1n-dropdown .keypad-1n-item:hover {
  background: linear-gradient(135deg, #ff6247 0%, #ff7a5c 100%);
  color: white;
}

.keypad-container .keypad-1n-dropdown .keypad-1n-item:active {
  background: linear-gradient(135deg, #ff4f38 0%, #ff6247 100%);
  color: white;
}

/* ================= SIPARIS MODAL - LARGER & TOUCH FRIENDLY ================= */

.siparis-modal-wrapper {
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.siparis-modal-container {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(255, 98, 71, 0.18);
  border: 1px solid rgba(255, 98, 71, 0.08);
  max-width: 1250px;
  width: 100%;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: siparis-fade-in 0.25s ease-out;
}

.siparis-modal-header {
  background: linear-gradient(135deg, #ff6247 0%, #ff7a5c 100%);
  color: white;
  padding: 14px 20px;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.siparis-modal-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.odeme-gecmis-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.odeme-gecmis-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.siparis-modal-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.siparis-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
  font-size: 18px;
}

.siparis-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.siparis-modal-body {
  padding: 16px;
  background: #ffffff;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

/* ================= CONTENT GRID ================= */

.siparis-content-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(500px, 1.6fr);
  gap: 16px;
  height: auto;
  min-height: 0;
}

/* ================= ORDERS SECTION ================= */

.siparis-orders-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #e9ecef;
  max-height: calc(94vh - 95px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.siparis-orders-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

/* Header'dan sonraki scroll edilebilir içerik wrapper'ı */
.siparis-orders-list-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

/* Scrollbar stilleri */
.siparis-orders-list-container::-webkit-scrollbar {
  width: 8px;
}

.siparis-orders-list-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.siparis-orders-list-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.siparis-orders-list-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.siparis-orders-header .siparis-orders-title {
  font-size: 15px;
  font-weight: 700;
  color: #ff6247;
  margin: 0;
}

.siparis-orders-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.siparis-orders-header .undo-all-btn,
.siparis-orders-header .select-all-btn {
  padding: 6px 10px;
  border: none;
  background: #ff6247;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.siparis-orders-header .undo-all-btn:hover,
.siparis-orders-header .select-all-btn:hover {
  background: #ff4f38;
}

/* Order Items */
.siparis-order-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  min-height: 65px;
  height: auto;
  flex-shrink: 0;
}

.siparis-order-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 98, 71, 0.12);
  border-color: #ff6247;
}

.siparis-order-item.order-primary {
  border-color: #ff6247;
  background: linear-gradient(
    135deg,
    rgba(255, 98, 71, 0.05) 0%,
    rgba(255, 98, 71, 0.02) 100%
  );
}

.siparis-order-item.order-secondary {
  border-color: #6c757d;
  background: linear-gradient(
    135deg,
    rgba(108, 117, 125, 0.05) 0%,
    rgba(108, 117, 125, 0.02) 100%
  );
}

.siparis-order-item.order-info {
  border-color: #17a2b8;
  background: linear-gradient(
    135deg,
    rgba(23, 162, 184, 0.05) 0%,
    rgba(23, 162, 184, 0.02) 100%
  );
}

.siparis-order-item.order-success {
  border-color: #28a745;
  background: linear-gradient(
    135deg,
    rgba(40, 167, 69, 0.05) 0%,
    rgba(40, 167, 69, 0.02) 100%
  );
}

.siparis-order-image {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 10px;
  border: 1px solid rgba(255, 98, 71, 0.1);
  flex-shrink: 0;
}

.siparis-order-info {
  flex: 1;
  min-width: 0;
}

.siparis-order-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 3px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.siparis-order-name .order-quantity {
  color: #ff6247;
  font-weight: 700;
}

.siparis-order-name .order-variant {
  color: #6c757d;
  font-weight: 500;
}

.siparis-order-extras {
  font-size: 11px;
  color: #6c757d;
  margin-bottom: 2px;
  line-height: 1.2;
}

.siparis-order-status {
  font-size: 10px;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
  margin-bottom: 3px;
}

.siparis-order-price-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.siparis-order-price {
  font-size: 14px;
  font-weight: 700;
  color: #ff6247;
}

.undo-order-btn {
  background: linear-gradient(135deg, #ff6247 0%, #ff4757 100%);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(255, 98, 71, 0.25);
  position: absolute;
  right: 0;
  top: 0;
  font-size: 11px;
}

.undo-order-btn:hover {
  transform: scale(1.05);
}

/* ================= PAYMENT SECTION ================= */

.siparis-payment-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Üst Satır: Parçalı Ödeme + Para Üstü */
.siparis-input-grid-ust {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
  align-items: stretch;
}

.siparis-input-group {
  position: relative;
}

.siparis-input {
  width: 100%;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  transition: all 0.2s ease;
  background: #ffffff;
  font-family: inherit;
  box-sizing: border-box;
}

.siparis-input:focus {
  border-color: #ff6247;
  box-shadow: 0 0 0 3px rgba(255, 98, 71, 0.1);
  outline: none;
}

.siparis-input-label {
  position: absolute;
  top: -6px;
  left: 10px;
  background: white;
  padding: 0 5px;
  color: #6c757d;
  font-weight: 500;
  font-size: 11px;
  transition: all 0.2s ease;
}

.siparis-input:focus + .siparis-input-label {
  color: #ff6247;
}

/* Parçalı Ödeme - Büyük ve Vurgulu */
.siparis-input-group-parcali {
  position: relative;
}

.siparis-input.input-parcali-odeme {
  font-size: 26px !important;
  font-weight: 700 !important;
  padding: 14px !important;
  height: 100%;
  min-height: 60px;
}

.siparis-input.input-parcali-odeme:focus {
  outline: none;
}

.siparis-input-label-bold {
  font-weight: 700 !important;
  font-size: 12px !important;
  color: #ff6247 !important;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Para Üstü Hesapla Input */
.siparis-input.input-para-ustu-hesapla {
  background: linear-gradient(
    135deg,
    rgba(23, 162, 184, 0.05) 0%,
    rgba(23, 162, 184, 0.02) 100%
  );
  border-color: rgba(23, 162, 184, 0.3);
  font-size: 16px;
  font-weight: 600;
  padding: 12px;
  height: 100%;
}

.siparis-input.input-para-ustu-hesapla:focus {
  border-color: #17a2b8;
  box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.12);
}

/* Para Üstü Gösterim */
.para-ustu-gosterim {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 10px;
  padding: 10px;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.para-ustu-gosterim.para-ustu-pozitif {
  background: linear-gradient(
    135deg,
    rgba(40, 167, 69, 0.1) 0%,
    rgba(40, 167, 69, 0.05) 100%
  );
  border-color: rgba(40, 167, 69, 0.4);
}

.para-ustu-gosterim.para-ustu-negatif {
  background: linear-gradient(
    135deg,
    rgba(220, 53, 69, 0.1) 0%,
    rgba(220, 53, 69, 0.05) 100%
  );
  border-color: rgba(220, 53, 69, 0.4);
}

.para-ustu-label {
  font-size: 10px;
  font-weight: 700;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.para-ustu-tutar {
  font-size: 20px;
  font-weight: 800;
  color: #333;
  line-height: 1.1;
}

.para-ustu-gosterim.para-ustu-pozitif .para-ustu-tutar {
  color: #28a745;
}

.para-ustu-gosterim.para-ustu-negatif .para-ustu-tutar {
  color: #dc3545;
}

/* Servis ve İndirim Satırı */
.siparis-input-grid-alt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.siparis-input.input-servis {
  background: linear-gradient(
    135deg,
    rgba(255, 98, 71, 0.03) 0%,
    rgba(255, 98, 71, 0.01) 100%
  );
  border-color: rgba(255, 98, 71, 0.2);
  font-size: 14px;
  padding: 10px;
}

.siparis-input.input-indirim {
  background: linear-gradient(
    135deg,
    rgba(40, 167, 69, 0.03) 0%,
    rgba(40, 167, 69, 0.01) 100%
  );
  border-color: rgba(40, 167, 69, 0.2);
  font-size: 14px;
  padding: 10px;
}

/* Ortak vurgu stili: Parçalı / Para Üstü / Servis / İndirim için aktif çerçeve */
.siparis-input.siparis-input-highlight {
  border: 2px solid #ff6247 !important;
  background: linear-gradient(
    135deg,
    rgba(255, 98, 71, 0.08) 0%,
    rgba(255, 98, 71, 0.03) 100%
  ) !important;
  color: #ff6247 !important;
  box-shadow: 0 3px 12px rgba(255, 98, 71, 0.15) !important;
}

/* ================= ÖZET - KOMPAKT YATAY ================= */

.siparis-summary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 10px;
  padding: 10px;
  border: 1px solid #e9ecef;
}

.siparis-summary-item {
  flex: 1;
  min-width: 75px;
  background: white;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.siparis-summary-item:hover {
  border-color: #ff6247;
  box-shadow: 0 2px 8px rgba(255, 98, 71, 0.1);
}

.siparis-summary-label {
  display: block;
  font-size: 10px;
  color: #6c757d;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  font-weight: 600;
}

.siparis-summary-amount {
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

.siparis-summary-amount.amount-danger {
  color: #dc3545;
}

.siparis-summary-amount.amount-success {
  color: #28a745;
}

.siparis-summary-item.summary-servis {
  background: linear-gradient(
    135deg,
    rgba(255, 98, 71, 0.05) 0%,
    rgba(255, 98, 71, 0.02) 100%
  );
  border-color: rgba(255, 98, 71, 0.2);
}

.siparis-summary-item.summary-indirim {
  background: linear-gradient(
    135deg,
    rgba(40, 167, 69, 0.05) 0%,
    rgba(40, 167, 69, 0.02) 100%
  );
  border-color: rgba(40, 167, 69, 0.2);
}

.siparis-summary-item.summary-kurye {
  background: linear-gradient(
    135deg,
    rgba(254, 73, 44, 0.05) 0%,
    rgba(254, 73, 44, 0.02) 100%
  );
  border-color: rgba(254, 73, 44, 0.2);
}

/* ================= KLAVYE + ÖDEME YÖNTEMLERİ YAN YANA ================= */

.siparis-keypad-payment-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
  align-items: start;
}

/* ================= ÖDEME YÖNTEMLERİ - BÜYÜK & TOUCH FRIENDLY ================= */

.siparis-payment-methods {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #e9ecef;
}

.siparis-payment-methods-title {
  font-size: 11px;
  font-weight: 700;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: block;
}

.siparis-payment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.siparis-payment-option {
  display: block;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.siparis-payment-option:hover {
  border-color: #ff6247;
  background: linear-gradient(
    135deg,
    rgba(255, 98, 71, 0.03) 0%,
    rgba(255, 98, 71, 0.01) 100%
  );
}

.siparis-payment-radio {
  display: none;
}

.siparis-payment-radio:checked + .siparis-payment-content {
  background: linear-gradient(135deg, #ff6247 0%, #ff7a5c 100%);
  color: white;
}

.siparis-payment-content {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
  background: transparent;
  font-size: 13px;
}

.siparis-payment-icon {
  margin-right: 5px;
  font-size: 14px;
}

/* Alert Styles */
.siparis-alert {
  border-radius: 12px;
  border: none;
  padding: 14px;
  margin: 12px 0;
}

.siparis-alert-warning {
  background: linear-gradient(
    135deg,
    rgba(255, 193, 7, 0.08) 0%,
    rgba(255, 193, 7, 0.03) 100%
  );
  color: #856404;
  border-left: 4px solid #ffc107;
}

/* Custom scrollbar */
.siparis-orders-section::-webkit-scrollbar,
.siparis-modal-body::-webkit-scrollbar {
  width: 8px;
}

.siparis-orders-section::-webkit-scrollbar-track,
.siparis-modal-body::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 10px;
}

.siparis-orders-section::-webkit-scrollbar-thumb,
.siparis-modal-body::-webkit-scrollbar-thumb {
  background: #ff6247;
  border-radius: 10px;
}

.siparis-orders-section::-webkit-scrollbar-thumb:hover,
.siparis-modal-body::-webkit-scrollbar-thumb:hover {
  background: #e55a3f;
}

/* Animation keyframes */
@keyframes siparis-fade-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ================= RESPONSIVE DESIGN ================= */

/* Extra Large screens */
@media (min-width: 1400px) {
  .siparis-modal-container {
    max-width: 1350px;
  }

  .siparis-content-grid {
    grid-template-columns: minmax(320px, 1fr) minmax(580px, 1.7fr);
  }

  .keypad-container .keypad-btn {
    min-height: 60px;
    font-size: 20px;
  }
}

/* Large screens (1300px and below) */
@media (max-width: 1300px) {
  .siparis-modal-container {
    max-width: 1100px;
  }

  .siparis-content-grid {
    grid-template-columns: minmax(280px, 1fr) minmax(480px, 1.5fr);
    gap: 14px;
  }

  .keypad-container .keypad-btn {
    padding: 12px 6px;
    font-size: 16px;
    min-height: 52px;
  }
}

/* Medium screens (992px and below) */
@media (max-width: 992px) {
  .siparis-modal-container {
    max-width: 95%;
  }

  .siparis-content-grid {
    grid-template-columns: minmax(240px, 1fr) minmax(400px, 1.4fr);
  }

  .siparis-keypad-payment-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .siparis-payment-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .siparis-input-grid-ust {
    grid-template-columns: 1fr 1fr;
  }

  .siparis-input-group-parcali {
    grid-column: span 2;
  }

  .keypad-container .keypad-btn {
    min-height: 50px;
    font-size: 15px;
  }
}

/* Tablet screens (768px and below) */
@media (max-width: 768px) {
  .siparis-modal-wrapper {
    padding: 10px;
  }

  .siparis-modal-container {
    max-height: 95vh;
    display: flex;
    flex-direction: column;
  }

  .siparis-modal-header {
    padding: 12px 16px;
    flex-shrink: 0;
  }

  .siparis-modal-title {
    font-size: 17px;
  }

  .siparis-modal-body {
    padding: 12px;
    overflow-y: auto !important;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
  }

  .siparis-content-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    height: auto;
    flex-wrap: wrap;
  }

  .siparis-orders-section {
    max-height: 220px !important;
    padding: 14px !important;
    min-height: 100px;
    width: 100% !important;
    box-sizing: border-box;
    flex-shrink: 0;
    overflow: hidden;
  }

  .siparis-orders-header {
    display: none !important;
  }

  .siparis-orders-header .siparis-orders-title {
    font-size: 16px !important;
  }

  .siparis-orders-header .undo-all-btn,
  .siparis-orders-header .select-all-btn {
    padding: 7px 11px !important;
    font-size: 12px !important;
  }

  .siparis-order-item {
    padding: 12px 14px !important;
    margin-bottom: 9px !important;
    min-height: 65px;
  }

  .siparis-order-image {
    width: 55px !important;
    height: 55px !important;
    margin-right: 11px !important;
    flex-shrink: 0 !important;
  }

  .siparis-order-name {
    font-size: 14px !important;
    margin-bottom: 3px !important;
    line-height: 1.3 !important;
  }

  .siparis-order-extras {
    font-size: 11px !important;
  }

  .siparis-order-status {
    font-size: 10px !important;
  }

  .siparis-order-price {
    font-size: 16px !important;
    font-weight: 700 !important;
  }

  .undo-order-btn {
    width: 30px !important;
    height: 30px !important;
  }

  /* Mobil için payment section - klavye üstte - tam genişlik */
  .siparis-payment-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  .siparis-input-grid-ust {
    grid-template-columns: 1fr;
    order: 1;
  }

  .siparis-input-group-parcali {
    grid-column: span 1;
  }

  /* Klavye üstte - order 2 */
  .siparis-keypad-payment-row {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin: 0;
  }

  .siparis-keypad-section {
    order: 1;
    width: 100%;
    margin: 0;
  }

  .keypad-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  /* Ödeme yöntemi dropdown - order 2 */
  .siparis-payment-methods {
    order: 2;
    width: 100%;
    margin: 0;
  }

  .siparis-input-grid-alt {
    order: 3;
  }

  .siparis-summary-grid {
    order: 4;
  }

  .siparis-summary-item {
    min-width: 65px;
  }

  .siparis-payment-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 8px;
  }

  .keypad-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .siparis-keypad-section {
    width: 100% !important;
    margin: 0 !important;
  }

  .siparis-payment-methods {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .siparis-keypad-payment-row {
    width: 100% !important;
    margin: 0 !important;
  }

  .keypad-container .keypad-grid {
    gap: 6px;
    width: 100%;
  }

  .keypad-container .keypad-btn {
    min-height: 48px;
    font-size: 15px;
  }

  .siparis-input.input-parcali-odeme {
    font-size: 22px !important;
    min-height: 54px;
  }
}

/* Mobile screens (576px and below) */
@media (max-width: 576px) {
  .siparis-modal-wrapper {
    padding: 5px;
  }

  .siparis-modal-container {
    border-radius: 12px;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
  }

  .siparis-modal-header {
    padding: 10px 14px;
    flex-shrink: 0;
  }

  .siparis-modal-title {
    font-size: 15px;
  }

  .siparis-modal-body {
    padding: 8px;
    overflow-y: auto !important;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
  }

  .siparis-payment-section {
    width: 100% !important;
    margin: 0 !important;
    padding: 0;
    box-sizing: border-box;
  }

  .siparis-orders-section {
    padding: 14px !important;
    max-height: 220px !important;
    min-height: 100px;
    width: 100% !important;
    box-sizing: border-box;
  }

  .siparis-orders-header {
    display: none !important;
  }

  .siparis-orders-header .siparis-orders-title {
    font-size: 16px !important;
  }

  .siparis-orders-header .undo-all-btn,
  .siparis-orders-header .select-all-btn {
    padding: 8px 12px !important;
    font-size: 13px !important;
  }

  .siparis-order-item {
    padding: 14px 16px !important;
    margin-bottom: 10px !important;
    border-radius: 12px !important;
    min-height: 120px;
  }

  .siparis-order-image {
    width: 60px !important;
    height: 60px !important;
    border-radius: 10px !important;
    margin-right: 12px !important;
    flex-shrink: 0 !important;
  }

  .siparis-order-name {
    font-size: 15px !important;
    margin-bottom: 4px !important;
    line-height: 1.4 !important;
  }

  .siparis-order-extras {
    font-size: 12px !important;
    margin-bottom: 4px !important;
  }

  .siparis-order-status {
    font-size: 11px !important;
    margin-bottom: 4px !important;
  }

  .siparis-order-price {
    font-size: 17px !important;
    font-weight: 800 !important;
  }

  .undo-order-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 12px !important;
  }

  /* Mobilde Parçalı ödeme ve klavye yakın */
  .siparis-input.input-parcali-odeme {
    font-size: 20px !important;
    padding: 12px !important;
    min-height: 50px;
  }

  /* Klavye mobilde büyük kalmalı - tam genişlik */
  .keypad-container {
    padding: 10px;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .siparis-keypad-section {
    width: 100% !important;
    margin: 0 !important;
  }

  .keypad-container .keypad-grid {
    gap: 5px;
    width: 100%;
  }

  .keypad-container .keypad-btn {
    min-height: 46px;
    font-size: 14px;
    border-radius: 8px;
  }

  /* Ödeme yöntemleri mobilde tam genişlik */
  .siparis-payment-methods {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .siparis-keypad-payment-row {
    width: 100% !important;
    margin: 0 !important;
  }

  .siparis-input-grid-alt {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .siparis-summary-grid {
    padding: 8px;
    gap: 5px;
  }

  .siparis-summary-item {
    padding: 6px 8px;
    min-width: 55px;
  }

  .siparis-summary-label {
    font-size: 9px;
  }

  .siparis-summary-amount {
    font-size: 12px;
  }

  /* Ödeme yöntemi mobilde dropdown tarzı - tam genişlik */
  .siparis-payment-methods {
    padding: 10px;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

  .siparis-payment-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    width: 100%;
  }

  .siparis-payment-option {
    padding: 6px 8px;
  }

  .siparis-payment-content {
    font-size: 10px;
    padding: 4px 5px;
  }

  .siparis-payment-icon {
    font-size: 12px;
    margin-right: 3px;
  }

  .para-ustu-tutar {
    font-size: 16px;
  }

  .odeme-gecmis-btn span {
    display: none;
  }
}

/* Extra small screens (480px and below) */
@media (max-width: 480px) {
  .keypad-container .keypad-btn {
    min-height: 42px;
    font-size: 13px;
    padding: 8px 4px;
  }

  .siparis-orders-header {
    display: none !important;
  }

  .siparis-payment-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }

  .siparis-input.input-parcali-odeme {
    font-size: 18px !important;
  }

  .siparis-payment-option {
    padding: 6px 6px;
  }

  .siparis-payment-content {
    font-size: 9px;
    padding: 3px 4px;
  }

  .siparis-payment-icon {
    font-size: 11px;
    margin-right: 2px;
  }
}

/* Landscape orientation fix */
@media (max-width: 768px) and (orientation: landscape) {
  .siparis-modal-container {
    max-height: 88vh;
  }

  .siparis-orders-section {
    max-height: 130px;
  }
}

/* ================= ÖDEME GEÇMİŞİ MODAL - Z-INDEX FIX ================= */

.odeme-gecmis-modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.odeme-gecmis-modal-wrapper.show {
  display: flex;
}

.odeme-gecmis-modal-container {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: odeme-gecmis-fade-in 0.25s ease-out;
  z-index: 10000 !important;
}

@keyframes odeme-gecmis-fade-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.odeme-gecmis-modal-header {
  background: linear-gradient(135deg, #ff6247 0%, #ff7a5c 100%);
  color: white;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.odeme-gecmis-modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.odeme-gecmis-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
  font-size: 20px;
}

.odeme-gecmis-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.odeme-gecmis-modal-body {
  padding: 18px;
  flex: 1;
  overflow-y: auto;
}

.odeme-gecmis-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.odeme-gecmis-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.odeme-gecmis-item:hover {
  border-color: #ff6247;
  box-shadow: 0 4px 12px rgba(255, 98, 71, 0.15);
}

.odeme-gecmis-info {
  flex: 1;
}

.odeme-gecmis-tutar {
  font-size: 20px;
  font-weight: 700;
  color: #ff6247;
  margin-bottom: 8px;
}

.odeme-gecmis-detay {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.odeme-gecmis-tur,
.odeme-gecmis-tarih {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6c757d;
}

.odeme-gecmis-tur i,
.odeme-gecmis-tarih i {
  font-size: 13px;
  color: #ff6247;
}

.odeme-gecris-geri-al-btn {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border: none;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  touch-action: manipulation;
}

.odeme-gecris-geri-al-btn:hover {
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
  transform: translateY(-1px);
}

.odeme-gecmis-bos {
  text-align: center;
  padding: 35px 20px;
  color: #6c757d;
}

.odeme-gecmis-bos i {
  font-size: 44px;
  margin-bottom: 14px;
  opacity: 0.5;
}

.odeme-gecmis-bos p {
  font-size: 15px;
  margin: 0;
}

/* Ödeme Geçmişi Responsive */
@media (max-width: 576px) {
  .odeme-gecmis-modal-wrapper {
    padding: 10px;
  }

  .odeme-gecmis-modal-container {
    max-width: 100%;
    max-height: 88vh;
  }

  .odeme-gecmis-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .odeme-gecris-geri-al-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ================= ADİSYON BAŞLIK STİLLERİ ================= */

.adisyon-header {
  background: linear-gradient(
    135deg,
    rgba(255, 98, 71, 0.08) 0%,
    rgba(255, 98, 71, 0.03) 100%
  );
  border: 1px solid rgba(255, 98, 71, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.adisyon-header-title {
  font-size: 13px;
  font-weight: 700;
  color: #ff6247;
  margin: 0;
}

.adisyon-header-info {
  font-size: 11px;
  color: #6c757d;
}

/* Order Paid Badge */
.order-paid-badge {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-left: 6px;
}

/* Split Adisyon Button */
.split-adisyon-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  font-size: 12px !important;
  padding: 6px 10px !important;
}

.split-adisyon-btn:hover {
  background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%) !important;
}
