
/* Payment Section Improvements */
.payment-options-container {
  /* Removed width constraint to align with form grid */
  width: 90%; 
}

/* ================================
   Product Selection Cards
================================ */
.product-selection-section {
  margin-bottom: 1rem;
}

.product-selection-section .section-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}

.product-card {
  display: block;
  position: relative;
  cursor: pointer;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 0;
  overflow: hidden;
  transition: all 0.25s ease;
  height: 100%;
  margin: 5px !important;
}

.product-card:hover {
  border-color: #a0c4c5;
  box-shadow: 0 2px 10px rgba(1, 95, 97, 0.08);
}

.product-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* CSS-driven selected state */
.product-card.selected {
  border-color: var(--main-color, #015F61);
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  box-shadow: 0 3px 14px rgba(1, 95, 97, 0.12);
}

.product-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px 8px;
  height: 100%;
  gap: 4px;
}

.product-card-img {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-card-img img {
  max-height: 65px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.04);
}

.product-card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  text-align: center;
}

.product-card-name {
  font-weight: 700;
  font-size: 0.8rem;
  color: #333;
  line-height: 1.2;
}

.product-card-price {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--main-color, #015F61);
}

.product-check-mark {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 1.1rem;
  color: #d4d4d4;
  transition: all 0.25s ease;
}

[dir="ltr"] .product-check-mark {
  right: auto;
  left: 6px;
}

.product-card.selected .product-check-mark {
  color: var(--main-color, #015F61);
}

/* ================================ */

.payment-option-card {
  position: relative;
  width: 100%;
}

.payment-option-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.payment-option-label {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Changed from space-between to flex-start */
  padding: 12px 15px; 
  border: 2px solid #e9ecef;
  border-radius: 10px;
  cursor: pointer;
  background-color: #fff;
  transition: all 0.3s ease;
  height: 100%;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.payment-option-label:hover {
  border-color: #ced4da;
  background-color: #f8f9fa;
}

.payment-option-input:checked + .payment-option-label {
  border-color: var(--main-color);
  background-color: #f0fdf4; 
  box-shadow: 0 4px 12px rgba(1, 95, 97, 0.1);
}

.payment-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-grow: 1;
}

.payment-icon {
  width: 40px; /* Specific container width for icons so they all take same space */
  height: 30px; /* Fixed height container */
  object-fit: contain; /* Ensure image fits inside without distortion */
  display: flex; /* Flex center to align icon in the box */
  align-items: center;
  justify-content: center;
}

/* Directional spacing for icon (Fallback for flex-gap) */
[dir="rtl"] .payment-icon {
  margin-left: 5px;
}
[dir="ltr"] .payment-icon {
  margin-right: 5px;
}

.payment-text {
  font-weight: 600;
  color: #333;
  margin: 0;
  font-size: 0.9rem; /* Standard readable size */
  line-height: 1.2;
}

/* Custom Radio Indicator */
.custom-radio-indicator {
  width: 20px;
  height: 20px;
  border: 2px solid #adb5bd;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
  margin-top: 0; /* Remove potential margin */
}

.payment-option-input:checked + .payment-option-label .custom-radio-indicator {
  border-color: var(--main-color);
  background-color: var(--main-color);
}

.payment-option-input:checked + .payment-option-label .custom-radio-indicator::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
}

