/* Toronet Payment Plugin Styles */

/* Container */
.toronet-payment-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  border: 2px solid #4caf50;
  border-radius: 5px;
  background-color: #fff;
  font-family: Arial, sans-serif;
}

.toronet-title {
  text-align: center;
  color: #005580;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: bold;
}

/* Two-column layout */
.toronet-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.toronet-column {
  flex: 1 1 45%;
  min-width: 300px;
}

/* Form Elements */
.toronet-form-group {
  margin-bottom: 15px;
}

.toronet-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #005580;
}

.toronet-form-row {
  display: flex;
  gap: 15px;
}

.toronet-form-row .toronet-form-group {
  flex: 1;
}

.toronet-select-wrapper {
  position: relative;
}

/* Enhance flag display in select dropdowns */
select option {
  padding: 8px;
}

.toronet-select-wrapper select {
  padding-left: 40px;
}

/* Add text-indent for country select when flag is loaded */
.toronet-select-wrapper select#to-country,
.toronet-select-wrapper select#from-country {
  text-indent: 1.7rem;
}

/* Style for the selected option with flag */
.toronet-select-wrapper .selected-with-flag {
  display: flex;
  align-items: center;
}

/* Improve flag display */
.flag-icon {
  display: inline-block;
  width: 24px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* Add this to ensure flags are visible in the dropdown */
.toronet-select-wrapper select option {
  padding-left: 30px;
  position: relative;
}

/* Custom styling for the select to show flags better */
.toronet-select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

/* Style for the selected flag in the dropdown */
.selected-flag {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
}

.toronet-select-wrapper:after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #666;
  pointer-events: none;
  z-index: 2;
}

/* Hide the default browser arrow */
.toronet-select-wrapper select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 30px; /* Make room for our custom arrow */
}

/* For IE10+ */
.toronet-select-wrapper select::-ms-expand {
  display: none;
}

.toronet-payment-container select,
.toronet-payment-container input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

/* Section Titles */
.toronet-section-title {
  color: #005580;
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eee;
}

/* Info Groups */
.toronet-info-group {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 5px 0;
  border-bottom: 1px solid #eee;
}

.toronet-info-group.highlight {
  background-color: #e6f7ff;
  padding: 10px;
  border-radius: 4px;
  border-bottom: none;
  margin-top: 15px;
  margin-bottom: 15px;
}

.toronet-info-label {
  font-weight: bold;
  color: #333;
}

.toronet-info-value {
  font-weight: bold;
  color: #005580;
}

/* Buttons */
.toronet-button-group {
  margin-top: 20px;
  text-align: right;
}

.toronet-button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s;
}

/* Add styling for the arrow icon in the button */
.toronet-button svg {
  vertical-align: middle;
  margin-left: 5px;
}

.toronet-button.primary {
  background-color: #005580;
  color: white;
  width: 100%;
  padding: 15px;
  font-size: 18px;
}

.toronet-button.primary:hover {
  background-color: #003d5c;
}

.toronet-button.secondary {
  background-color: #4caf50;
  color: white;
}

.toronet-button.secondary:hover {
  background-color: #3e8e41;
}

/* Response */
.toronet-response {
  margin-top: 20px;
  padding: 10px;
  border-radius: 4px;
  display: none;
}

.toronet-response.success {
  background-color: #dff0d8;
  color: #3c763d;
  border: 1px solid #d6e9c6;
  display: block;
}

.toronet-response.error {
  background-color: #f2dede;
  color: #a94442;
  border: 1px solid #ebccd1;
  display: block;
}

/* Country Flags */

/* Remove all the SVG data URLs for flags since we're using FlagCDN now */
.flag-icon-ng,
.flag-icon-us,
.flag-icon-ca,
.flag-icon-ug,
.flag-icon-rw,
.flag-icon-tz,
.flag-icon-gh,
.flag-icon-ke,
.flag-icon-cf,
.flag-icon-eu {
  /* These are now handled by FlagCDN */
  background-image: none;
}