/* General Styling */
.enhanced-plugin-settings-wrap {
    font-family: Arial, sans-serif;
    padding: 20px;
    background-color: #f9f9f9;
    max-width: 1200px;
    margin: 20px auto;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Top Links */
.top-links {
    text-align: right;
    margin: 20px;
}

.top-links a {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

.top-links a:hover {
    text-decoration: underline;
}

/* Blocks */
.block {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.block.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.block h2 {
    margin-top: 0;
    font-size: 1.5em;
    color: #333;
}

.block p {
    font-size: 0.9em;
    color: #555;
}

/* Header Section */
.header {
    text-align: center;
    margin-bottom: 20px;
}

.header img {
    max-width: 150px;
    margin-bottom: 10px;
}

.header h1 {
    font-size: 1.8em;
    color: #333;
}

.header p {
    color: #666;
}

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

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

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
}

.form-group .tooltip {
    display: inline-block;
    /* background: #0073aa; */
    color: #fff;
    font-size: 0.8em;
    padding: 0px 5px;
    border-radius: 3px;
    cursor: pointer;
    position: absolute;
}

.form-group .tooltip img {
    height: 14px;
    border: 1px solid #3f2b2b;
    border-radius: 15px;
}    

.form-group .tooltip:hover {
    /*background: #005a8c;*/
}

/* Buttons */
button,
.button-primary,
.button-secondary {
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.button-primary {
    background-color: #0073aa;
    color: #fff;
    border: 1px solid #0073aa;
}

.button-primary:hover {
    background-color: #005a8c;
}

.button-secondary {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
}

.button-secondary:hover {
    background-color: #e2e2e2;
}

/* Lists */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul li {
    margin-bottom: 8px;
    color: #555;
}

/* Hover Effects */
.block:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.alert {
    padding: 7px;
    border-radius: 4px;
    margin-top: 15px;
    width: fit-content;
    display: block;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: #007bff;
    /* Optional: Customize color */
    font-weight: bold;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 250px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    /* Position the tooltip above the icon */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.checkbox-flex {
    display: flex;
    align-items: center;
}

.section-header {
    margin-bottom: 20px;
}

.form-group label {
    font-size: 15px;
}

fieldset {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1.5em 2em;
    margin-bottom: 1.5em;
    background: #fafafa;
}

fieldset legend {
    font-weight: 700;
    font-size: 1.4em;
    color: #333;
    padding: 0 0.5em;
}

fieldset .form-group {
    margin-bottom: 1em;
}

fieldset .form-group label {
    display: block;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.3em;
    font-size: 14px;
}

fieldset .form-group .description {
    font-size: 0.9em;
    color: #666;
    margin-top: 0.2em;
}

.payxpert-notice {
    margin: 15px;
}

/* === SUPPORT DIALOG === */
#payxpert-support-dialog .form-field {
  margin-bottom: 1em;
}
#payxpert-support-dialog label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3em;
}
#payxpert-support-dialog input,
#payxpert-support-dialog textarea {
  width: 100%;
  box-sizing: border-box;
}
#payxpert-support-dialog .response-message {
  color: green;
  font-weight: bold;
}

.payxpert-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0,0,0,0.3);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

img[data-target]:not([data-target=""]) {
    cursor: pointer;
}
