/**
 * Smart Match for WooCommerce - Settings Page Styles
 *
 * @package Smart_Match_For_WooCommerce
 */

/* Settings page wrapper */
.smfwc-settings-wrap {
    max-width: 800px;
}

.smfwc-settings-wrap h1 {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Privacy notice */
.smfwc-privacy-notice {
    background: #fff;
    border-left: 4px solid #2271b1;
    padding: 12px 15px;
    margin: 20px 0;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.smfwc-privacy-notice p {
    margin: 0;
}

/* Settings sections */
.smfwc-settings-section {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    margin-bottom: 20px;
    padding: 0;
}

.smfwc-settings-section h2 {
    margin: 0;
    padding: 15px 20px;
    background: #f6f7f7;
    border-bottom: 1px solid #c3c4c7;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.smfwc-settings-section .form-table {
    margin: 0;
}

.smfwc-settings-section .form-table th {
    padding-left: 20px;
}

.smfwc-settings-section .form-table td {
    padding-right: 20px;
}

/* Advanced section */
.smfwc-advanced-section h2 {
    cursor: pointer;
}

.smfwc-toggle-advanced {
    font-size: 13px;
    font-weight: normal;
    color: #2271b1;
    text-decoration: none;
}

.smfwc-toggle-advanced:hover {
    color: #135e96;
}

.smfwc-advanced-content {
    border-top: 1px solid #c3c4c7;
}

/* Form styling */
.smfwc-settings-wrap .form-table th {
    width: 200px;
    vertical-align: top;
    padding-top: 15px;
}

.smfwc-settings-wrap .form-table td {
    vertical-align: top;
    padding-top: 12px;
}

.smfwc-settings-wrap .description {
    color: #646970;
    font-size: 13px;
    margin-top: 5px;
}

/* Input styling */
.smfwc-settings-wrap input[type="number"].small-text {
    width: 70px;
}

.smfwc-settings-wrap select {
    min-width: 200px;
}

.smfwc-settings-wrap textarea.large-text {
    width: 100%;
    max-width: 500px;
}

/* Fieldset styling */
.smfwc-settings-wrap fieldset label {
    display: block;
    margin-bottom: 8px;
}

.smfwc-settings-wrap fieldset label:last-child {
    margin-bottom: 0;
}

/* Button groups */
.smfwc-settings-wrap .button + .button {
    margin-left: 8px;
}

/* Status indicators */
#smfwc_connection_status,
#smfwc_models_status {
    display: inline-block;
    margin-left: 10px;
    font-size: 13px;
}

#smfwc_connection_status .spinner,
#smfwc_models_status .spinner {
    margin-top: 0;
}

/* Code styling in descriptions */
.smfwc-settings-wrap code {
    background: #f0f0f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

/* Submit button area */
.smfwc-settings-wrap .submit {
    padding-top: 10px;
    margin-top: 0;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .smfwc-settings-wrap .form-table th {
        width: auto;
        padding-left: 15px;
    }

    .smfwc-settings-wrap .form-table td {
        padding-left: 15px;
        padding-right: 15px;
    }

    .smfwc-settings-wrap select {
        min-width: 100%;
        max-width: 100%;
    }

    .smfwc-settings-wrap textarea.large-text {
        max-width: 100%;
    }

    #smfwc_connection_status,
    #smfwc_models_status {
        display: block;
        margin-left: 0;
        margin-top: 10px;
    }
}
