/* Right Side Modal Styles */
.modal.right .modal-dialog {
  position: fixed;
  margin: auto;
  width: 400px;
  height: 100%;
  transform: translate3d(0%, 0, 0);
}

.modal.right .modal-content {
  height: 100%;
  overflow-y: auto;
}

.modal.right .modal-header,
.modal.right .modal-body,
.modal.right .modal-footer {
  padding: 15px 20px;
}

.modal.right.fade .modal-dialog {
  right: -400px;
  transition: opacity 0.3s linear, right 0.3s ease-out;
}

.modal.right.fade.show .modal-dialog {
  right: 0;
}

/* Ensure the modal backdrop covers the entire screen */
.modal-backdrop.show {
  opacity: 0.5;
}

/* Course Image Container */
.course-image-container {
  text-align: right;
  margin-bottom: 20px;
}

/* Item Image Styles */
.item_image {
  border-radius: 4px;
  width: 108px;
  height: 72px;
  object-fit: cover;
}

/* Enhanced Coupon Section */
.coupon-container {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-top: 15px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.coupon-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.coupon-header i {
  color: #6c757d;
  margin-right: 10px;
  font-size: 1.2rem;
}

.coupon-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.coupon-input {
  flex: 1;
  border-radius: 6px !important;
  border: 1px solid #ced4da;
  padding: 10px 15px;
}

/* Payment Options Redesign */
.payment-option {
  display: flex;
  align-items: center;
  padding: 15px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  background: white;
  transition: all 0.2s ease;
  cursor: pointer;
}

.payment-option:hover {
  border-color: #0d6efd;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.1);
}

.payment-option.active {
  border-color: #0d6efd;
  background-color: #f0f7ff;
}

.payment-option input[type="radio"] {
  margin-right: 15px;
}

.payment-option img {
  width: 50px;
  height: 30px;
  object-fit: contain;
  margin-right: 15px;
}

.payment-option-label {
  flex: 1;
  font-weight: 500;
}

/* Stack gateway cards so every provider logo and title remains readable in the side-cart. */
.direct-payment-content .payment-gateway-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: 100%;
}

.direct-payment-content .payment-gateway-item {
  grid-column: span 1;
  min-width: 0;
}

.direct-payment-content .payment-gateway-item--compact {
  grid-column: span 1;
}

.direct-payment-content .payment-gateway-card {
  width: 100% !important;
  min-width: 0;
  height: 80px;
  border-radius: 5px;
}

.direct-payment-content .payment-gateway-card label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.direct-payment-content .payment-gateway-card img {
  max-width: 100%;
  object-fit: contain;
}

.direct-payment-content .payment-gateway-card > label > .d-flex {
  flex-wrap: wrap;
  justify-content: center;
}

/* Button Enhancements */
.btn-coupon-toggle {
  width: 100%;
  padding: 10px;
  font-weight: 500;
  background-color: #f8f9fa;
  border: 1px dashed #ced4da;
  color: #495057;
}

.btn-coupon-toggle:hover {
  background-color: #e9ecef;
}

.btn-validate {
  background-color: #28a745;
  color: white;
}

.btn-validate:hover {
  background-color: #218838;
}

.modal-footer .btn {
  min-width: 120px;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .coupon-input-group {
    flex-direction: column;
  }

  .payment-option {
    padding: 10px;
  }

  .payment-option img {
    width: 40px;
    margin-right: 5px;
  }
}

/* Payment Error Alert */
.payment-error-alert {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background-color: #ffebee; /* Light red background */
  border: 1px solid #ffcdd2; /* Slightly darker border */
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.5s ease-out;
  display: none; /* Hidden by default */
}

.payment-error-alert .alert-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-error-alert .alert-icon {
  font-size: 20px;
  color: #d32f2f; /* Dark red for the icon */
}

.payment-error-alert .alert-message {
  flex: 1;
  color: #d32f2f; /* Dark red for the text */
  font-size: 14px;
  font-weight: 500;
}

.payment-error-alert .alert-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #d32f2f; /* Dark red for the close button */
  cursor: pointer;
  padding: 0;
  margin-left: 10px;
}

.payment-error-alert .alert-close-btn:hover {
  color: #b71c1c; /* Darker red on hover */
}

/* Animation for sliding in */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Animation for sliding out */
@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}
/* Auth Prompt Section */
.auth-prompt {
  margin: 20px 0; /* Add some vertical spacing */
  padding: 15px; /* Add padding for better spacing */
  background-color: #f8f9fa; /* Light background color */
  border-radius: 8px; /* Rounded corners */
  border: 1px solid #e9ecef; /* Subtle border */
}

.auth-prompt-text {
  margin: 0; /* Remove default margin */
  font-size: 14px; /* Adjust font size */
  color: #6c757d; /* Subtle text color */
  display: inline-block; /* Ensure the text and link are on the same line */
}

.auth-prompt-link {
  color: #007bff; /* Link color */
  text-decoration: none; /* Remove underline */
  font-weight: 500; /* Slightly bold */
  transition: color 0.3s ease; /* Smooth color transition */
  margin-left: 4px; /* Add a small space between text and link */
}

.auth-prompt-link:hover {
  color: #0056b3; /* Darker color on hover */
  text-decoration: underline; /* Add underline on hover */
}
