/* Admin styles for the KOMOJU settings page. */

.komoju-endpoint-field {
    display: flex;
    flex-flow: column wrap;
    align-items: flex-start;
    gap: 4px;
}

.komoju-endpoint-field p.description {
    margin: 0;
}

.komoju-endpoint-buttons {
    display: flex;
    gap: 8px;
}

.komoju-payment-methods {
    display: flex;
    flex-flow: row wrap;
    max-width: 800px;
    margin-bottom: 12px;
}

.komoju-payment-method {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
    width: 200px;
}

/* Override WooCommerce's absolute positioning so the help tip (and its "?"
   ::after glyph) sit inline next to the title. The longer selector outweighs
   WooCommerce's own rule. */
.woocommerce table.form-table th label.komoju-payment-methods-label .woocommerce-help-tip {
    position: static;
    top: auto;
    right: auto;
    margin: 0 0 0 4px;
    float: none;
}

.woocommerce table.form-table th label.komoju-payment-methods-label .woocommerce-help-tip::after {
    position: static;
    top: auto;
    left: auto;
    margin: 0;
}
