/* orderflow Settings Styles */
.d-flex {
  display: flex;
}
.orderflow-settings-container {
  margin: 20px auto;
}

.orderflow-settings-wrapper {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.orderflow-settings-content {
  padding: 20px;
}

.orderflow-section {
  margin-bottom: 30px;
}

.orderflow-option-heading {
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
}

.orderflow-section-title {
  font-size: 24px;
  font-weight: 600;
  color: #23282d;
  margin: 0 0 20px 0;
}

/* Form Container */
.orderflow-form-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Service Section */
.orderflow-service-section {
  background-color: #f0f4f865;
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 30px;
}

.orderflow-service-header {
}

.orderflow-service-header strong {
  font-size: 16px;
  color: #2a5298;
  font-weight: 600;
}

.orderflow-service-fields {
  padding: 15px;
}

/* Field Row */
.orderflow-field-row {
  display: flex;
  align-items: center;
  padding: 23px 0;
  border-bottom: 1px solid #e5e7eb;
}

.orderflow-field-row:last-child {
  margin-bottom: 0;
}

.orderflow-field-label {
  width: 300px;
  padding-right: 15px;
  color: #23282d;
  flex-shrink: 0;
  font-size: 16px;
  margin: 0;
  font-weight: 600;
}

.orderflow-field-input {
  flex-grow: 1;
  position: relative;
}

/* Input Fields */
.orderflow-field-input input[type="text"],
.orderflow-field-input input[type="password"],
.orderflow-field-input input[type="number"] {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
  transition: border-color 0.15s;
  box-sizing: border-box;
  width: 100%;
  max-width: 350px;
}

.orderflow-field-input input[type="text"]:focus,
.orderflow-field-input input[type="password"]:focus,
.orderflow-field-input input[type="number"]:focus {
  border-color: #0073aa;
  box-shadow: 0 0 0 1px #0073aa;
  outline: none;
}

/* Toggle Switch */
.orderflow-toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.orderflow-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.orderflow-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.orderflow-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .orderflow-slider {
  background-color: #1a7278;
}

input:checked + .orderflow-slider:before {
  transform: translateX(26px);
}

/* Description text */
.description {
  margin: 5px 0 0 0;
  font-size: 12px;
  color: #666;
  font-style: italic;
}

/* Button styles */
.orderflow-action-button {
  background-color: #1a7278;
  color: #fff;
  border: none;
  padding: 6px 15px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}
.button.orderflow-action-button:hover {
  background-color: #155a5f;
}

/* Submit button */
.orderflow-submit-button {
  margin-top: 10px;
  background-color: #1a7278;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.orderflow-submit-button:hover {
  background-color: #155a5f;
}

/* Error message */
.orderflow-error {
  background-color: #fff;
  border-left: 4px solid #dc3232;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  margin: 20px 0;
  padding: 12px;
}

.orderflow-error p {
  margin: 0;
  color: #dc3232;
}

.license-settings-title {
  margin-bottom: 5px;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.3;
}

.license-settings-description {
  color: #666;
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 14px;
}

.license-card {
  background: #fff;
  border: 1px solid #ccd0d4;
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.license-header {
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.license-header h2 {
  margin: 0;
  font-size: 1.5em;
  font-weight: 400;
}

.license-status {
  display: flex;
  align-items: center;
  font-weight: 600;
}

.license-status.active {
  color: #46b450;
}

.license-status.inactive {
  color: #dc3232;
}

.status-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}

.license-status.active .status-indicator {
  background-color: #46b450;
}

.license-status.inactive .status-indicator {
  background-color: #dc3232;
}

.license-details {
  margin-bottom: 25px;
}

.license-field {
  display: flex;
  margin-bottom: 15px;
}

.field-label {
  flex: 0 0 150px;
  font-weight: 600;
  color: #333;
}

.field-value {
  flex: 1;
}

.license-actions {
  text-align: right;
  margin-bottom: 30px;
}

.button-deactivate {
  background-color: #dc3232;
  color: #fff;
  border-color: #dc3232;
  text-shadow: none;
  box-shadow: none;
}

.button-deactivate:hover {
  background-color: #c62222;
  border-color: #c62222;
}

.license-status-section {
  margin-top: 30px;
}

.license-status-section h3 {
  margin-top: 0;
  font-size: 1.3em;
  font-weight: 400;
}

.license-status-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.license-status-table th {
  text-align: left;
  padding: 8px 10px;
  background-color: #f9f9f9;
  border: 1px solid #e5e5e5;
  font-weight: 600;
}

.license-status-table td {
  padding: 8px 10px;
  border: 1px solid #e5e5e5;
}

.status-active {
  color: #46b450;
  font-weight: 600;
}

.license-form-container {
  max-width: 500px;
}

.license-form-container p {
  margin-bottom: 15px;
}

.license-input {
  width: 100%;
  max-width: 400px;
}

.button-activate {
  background-color: #0073aa;
  color: #fff;
  border-color: #0073aa;
  text-shadow: none;
  box-shadow: none;
}

.button-activate:hover {
  background-color: #005a87;
  border-color: #005a87;
}

.form-field {
  margin-bottom: 15px;
}

.ads-capi-group-section {
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.ads-capi-group-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 16px;
}

.pixel-capi-group {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

form {
}

.remove-group-area {
  color: #dc2626;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  display: block;
  margin-bottom: 12px;
}

button.remove-group {
  color: #dc2626;
  padding: 8px 10px;
  border: unset;
  background: unset;
  cursor: pointer;
}

form {
}

.ads-group-field {
  margin-bottom: 12px;
}

.ads-group-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
}

.ads-group-field input,
textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
}

button#add-new-group {
  background: #e5e7eb;
  color: #0f172a;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
  float: right;
}

.orderflow-settings-nav nav {
  margin-bottom: 8px;
}

.orderflow-event-section {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.orderflow-event-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 16px;
}

.event-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.event-row input {
  flex: 1;
  min-width: 150px;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
}

button.delete-event-row {
  background: none;
  border: none;
  color: #dc2626;
  cursor: pointer;
  font-size: 14px;
}

button.button.add-event-button.orderflow-add-event-button {
  background: #e5e7eb;
  color: #0f172a;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

span.orderflow-field-description {
  display: block;
  padding-top: 5px;
}

p.description {
  padding-top: 5px;
}

.orderflow-service-header strong {
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  font-size: 22px;
}

.orderflow-service-fields .orderflow-field-row:last-child {
  border-bottom: unset;
}

p.ads-settings-description {
  font-weight: 400;
  font-size: 12px;
  color: #6b7280;
}

.order-flow-main-box {
  padding-bottom: 65px;
  overflow: visible;
  margin: 20px 20px 20px 0;
  width: -webkit-fill-available;
}
textarea#pys_orderflow_facebook_of_server_access_api_token_0 {
  padding: 8px 12px;
}
