/* Main Styles */
* {
  box-sizing: border-box;
}
:root {
  --primary-green: #155638;
  --primary-green-dark: #0f3d28;
  --primary-green-light: #1e603f;
  --text-gray: #4a5462;
  --text-dark: #111726;
  --text-light: #6a7280;
  --bg-gray: #f9fafa;
  --border-gray: #e4e7eb;
}
/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-green);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-green-dark);
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Tajawal', sans-serif;
  /* direction: rtl; */
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #155638;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0f3d26;
}

/* Focus styles */
input:focus,
textarea:focus,
button:focus {
  outline: 2px solid #155638;
  outline-offset: 2px;
}

/* Smooth transitions */
* {
  transition: all 0.2s ease-in-out;
}

/* RTL specific adjustments */
[dir="rtl"] .space-x-reverse > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 1;
  margin-right: calc(var(--tw-space-x) * var(--tw-space-x-reverse));
  margin-left: calc(var(--tw-space-x) * calc(1 - var(--tw-space-x-reverse)));
}

/* Checkout Container */

.checkout {
  margin: 9% 0;
}

.checkout h3 {
  font-weight: 700;
  font-size: 20px;
}

.checkout-helper-text {
  font-weight: 400;
  font-size: 14px;
  text-align: center;
  color: #4B5563;
}

.checkout-cstm-border {
  padding-bottom: 16px;
  border-bottom: 3px solid #155638;
}

/* Form Styling */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-form label {
  font-size: 16px;
  font-weight: 400;
  color: #374151;
}

.checkout-form input,
.checkout-form textarea {
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
  border-color: #155638;
}

.checkout-form label.required::after {
  content: "*";
  color: #EF4444;
  font-weight: bold;
}

.checkout-form .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  color: #374151;
  cursor: pointer;
  margin-top: 8px;
}

.checkout-form .checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #155638;
  cursor: pointer;
}

.checkout-form button {
  font-size: 16px;
  font-weight: 400;
  color: #FFFFFF;
  background-color: #1F2937;
  border-radius: 10px;
  padding: 12px 24px;
  border: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.checkout-form button:hover {
  background-color: #111827;
}

/* Orders Section */
.checkout .orders {
  background-color: #F9FAFB;
  width: 100%;
  height: 100%;
  margin-bottom: 250px;
}

.orders h3 {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 24px;
}

.col-title {
  color: #374151;
  font-size: 16px;
  font-weight: 400;
}

/* Order Summary */
.order-summary h4 {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
  color: #1F2937;
  text-align: right;
}

.summary-table {
  width: 100%;
  padding-bottom: 24px;
}

.summary-table td {
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid #F3F4F6;
  color: #374151;
}

.total-row td {
  font-weight: 700;
  font-size: 18px;
  color: #155638;
}

/* Payment Options */
.payment-option {
  margin-top: 16px;
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.payment-option label {
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.payment-option input[type="radio"] {
  accent-color: #155638;
  cursor: pointer;
}

/* Tap Payment Info */
.tap-info {
  padding: 17px;
  border: 1px solid #E5E7EB;
  background-color: #fff;
  text-align: center;
  border-radius: 8px;
  margin-top: 16px;
}

.tap-info img {
  height: 28px;
  margin-bottom: 16px;
}

.tap-info p {
  font-size: 14px;
  color: #4B5563;
}

.tabby-logo {
  height: 150px;
  margin-right: 4px;
  vertical-align: middle;
}

/* Privacy Note */
.privacy-note {
  font-size: 12px;
  color: #6B7280;
  line-height: 1.6;
  text-align: center;
}

.privacy-note a {
  color: #155638;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Invoice Popup */
.invoice-popup {
  border-radius: 8px;
  color: #000;
  direction: rtl;
  padding: 16px;
  background-color: #fff;
}

.invoice-popup h5 {
  font-size: 24px;
  font-weight: 400;
}

.invoice-popup h5 span {
  color: #4B5563;
  font-size: 16px;
  font-weight: 400;
  display: block;
}

.invoice-popup .key {
  color: #4B5563;
  font-size: 16px;
  font-weight: 400;
}

.invoice-popup .value {
  color: #000000;
  font-size: 16px;
  font-weight: 500;
}

.invoice-popup .hr-light {
  border: none;
  border-top: 1px solid #727272;
  margin: 1.5rem 0;
}

.invoice-popup .bank-info {
  background-color: #F9FAFB;
  border-radius: 8px;
  padding: 16px;
}

.invoice-popup .bank-info h6 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 16px;
}

.invoice-popup .order-summary {
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  padding: 16px;
}

.invoice-popup .customer-info {
  background-color: #F9FAFB;
  border-radius: 8px;
  padding: 16px;
}

.invoice-popup .modal-footer .btn {
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 4px;
}

.invoice-popup .btn-outline-dark {
  background-color: #1F2937;
  color: white;
}

.invoice-popup .btn-outline-dark:hover {
  border-color: #1F2937;
  color: #1F2937;
  background-color: white;
}
