/* Order review container */
.payamito-plus-order-review {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh; /* Set minimum height for full viewport */
  color: #333; /* Text color */
}

.payamito-plus-response {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 40px;
  margin: 40px auto;
  border-radius: 10px;
}

.payamito-plus-response h3 {
  font-size: 2.5rem;
  margin-top: auto;
  margin-bottom: auto;
}

.payamito-plus-response.error {
  background-color: #f8d7da; /* Red background for error */
  color: #721c24; /* Dark red text color */
}

.payamito-plus-response.success {
  background-color: #d4edda; /* Green background for success */
  color: #155724; /* Dark green text color */
}

/* Order details section */
.payamito-plus-order-details {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin-bottom: 2rem;
}

.payamito-plus-order-details h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.payamito-plus-order-details p {
  font-size: 0.875rem;
  color: #757575; /* Light gray for order date */
}

/* Order items section */
.payamito-plus-order-items {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

/* Individual order item */
.payamito-plus-order-item {
  background-color: #fff; /* White background for items */
  border: 1px solid #ddd; /* Light gray border */
  border-radius: 10px;
  padding: 1rem;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05); /* Inset shadow for depth */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05); /* Outer shadow for depth */
}

.payamito-plus-order-item p {
  margin-bottom: 0.5rem;
}

/* Feedback and rating section within item */
.payamito-plus-review {
  margin-top: 1rem;
}

.payamito-plus-review label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.payamito-plus-review textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgb(109 40 217) !important;
  border-radius: 10px !important;
  resize: vertical;
  background-color: rgb(237 233 254) !important;
}

.payamito-plus-rating {
  display: flex;
  margin-top: 0.5rem;
}

.payamito-plus-rating svg {
  cursor: pointer;
  fill: #ccc;
}

.payamito-plus-rating svg:hover,
.payamito-plus-rating svg.payamito-plus-rating-star-selected {
  fill: #fcc12c;
}

.payamito-plus-rating-star-hovered svg {
  fill: #fcc12c;
}

.payamito-plus-button_container {
  display: flex;
  justify-content: center;
}

.payamito-plus-button {
  background-color: rgb(190 24 93); /* Blue button background */
  color: #fff;
  padding: 1rem 2rem;
  font-size: 1.15rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.payamito-plus-button:hover {
  background-color: rgb(131 24 67);
}

.payamito-plus-button:active {
  background-color: rgb(131 24 67);
}

/* Responsive styles */
@media (max-width: 768px) {
  .payamito-plus-order-items {
    grid-template-columns: 1fr; /* Single column on smaller screens */
  }
}

@media (max-width: 480px) {
  .payamito-plus-order-item {
    padding: 0.75rem; /* Smaller padding for items */
  }

  .payamito-plus-review textarea {
    padding: 0.5rem; /* Smaller padding for textarea */
  }

  .payamito-plus-button {
    padding: 0.5rem 1rem; /* Smaller padding for button */
  }
}

#payamito-plus-order-review-popup {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.payamito-plus-order-review-popup-hidden {
  display: none;
}

.payamito-plus-order-review-popup-show {
  display: block;
}

.payamito-plus-order-review-popup-success {
  background-color: #d4edda !important; /* Green background for success */
  color: #155724; /* Dark green text color */
}

.payamito-plus-order-review-popup-error {
  background-color: #ffbec4 !important; /* Red background for error */
  color: #721c24; /* Dark red text color */
}

#payamito-plus-order-review-popup-content {
  display: flex;
  text-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 15% auto;
  padding: 20px;
  width: 80%;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: ease-in-out all 0.5s;
}

#payamito-plus-order-review-popup-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

#payamito-plus-order-review-popup-content p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

#payamito-plus-order-review-popup-content button {
  background-color: rgb(190 24 93); /* Blue button background */
  color: #fff;
  padding: 1rem 2rem;
  font-size: 1.15rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* End of Order Review Page CSS */
