/**
 * Admin CSS for Arik Sahaj Checkout.
 *
 * @package Arik_Sahaj_Checkout
 * @since   1.0.0
 * @version 1.0.4
 */

/* =============================================================================
   Utility — universal hidden helper used by JS toggles
   ============================================================================= */

.ariksac-hidden {
    display: none !important;
}

/* =============================================================================
   Settings Page — Tab Navigation
   ============================================================================= */

.wrap .nav-tab-wrapper {
    margin-bottom: 20px;
}

/* =============================================================================
   Help & Documentation Tab Layout
   ============================================================================= */

.ariksac-help-wrapper {
    max-width: 900px;
    margin-top: 20px;
}

.ariksac-help-wrapper .ariksac-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba( 0, 0, 0, 0.04 );
    padding: 20px;
    margin-top: 20px;
    border-radius: 4px;
}

.ariksac-help-wrapper .ariksac-card h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    font-weight: 600;
}

.ariksac-help-wrapper ol,
.ariksac-help-wrapper ul {
    margin: 15px 0 0 20px;
    line-height: 1.6;
}

.ariksac-help-wrapper ol li,
.ariksac-help-wrapper ul li {
    margin-bottom: 8px;
}

.ariksac-help-wrapper table.widefat {
    margin-top: 15px;
}

.ariksac-help-wrapper table.widefat code {
    background: #f0f0f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
}

.ariksac-requirements-list {
    list-style: disc;
    padding-left: 2em;
}

/* System Requirements pass/fail badges */
.ariksac-status {
    font-weight: 600;
}

.ariksac-status--pass {
    color: #46b450;
}

.ariksac-status--fail {
    color: #dc3232;
}

/* =============================================================================
   Support the Developer Card
   ============================================================================= */

.ariksac-support-card .ariksac-donate-box {
    background: #f6f7f7;
    border-left: 4px solid #25D366;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 3px;
}

.ariksac-support-card .ariksac-donate-number {
    font-size: 15px;
    padding: 4px 8px;
    background: #fff;
    border-radius: 3px;
    margin-top: 6px;
    display: inline-block;
}

.ariksac-support-heading {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 14px;
}

.ariksac-support-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
}

.ariksac-support-thanks {
    margin-top: 20px;
    color: #646970;
    font-size: 13px;
}

/* =============================================================================
   Color Picker
   ============================================================================= */

input.ariksac-color-picker {
    width: 100px;
}

.form-table .wp-picker-container {
    display: inline-block;
    vertical-align: middle;
}

/* =============================================================================
   Icon Uploader
   ============================================================================= */

.ariksac-icon-uploader {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.ariksac-icon-preview {
    width: 60px;
    height: 60px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    overflow: hidden;
    background: #f6f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 10px;
}

.ariksac-icon-preview img {
    max-width: 60px;
    max-height: 60px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 4px;
}

.ariksac-icon-preview--empty img {
    display: none;
}

.ariksac-upload-icon,
.ariksac-remove-icon {
    vertical-align: middle;
}

.ariksac-remove-icon {
    color: #a00;
    margin-left: 10px;
}

.ariksac-remove-icon:hover,
.ariksac-remove-icon:focus {
    color: #800;
}

.ariksac-icon-uploader + .description {
    display: block;
    margin-top: 10px;
}

/* =============================================================================
   Number Inputs — shared width
   ============================================================================= */

.ariksac-number-input,
.form-table input.ariksac-number-input,
.form-table input[type="number"] {
    width: 80px;
    text-align: center;
}

.ariksac-padding-input {
    width: 70px;
    text-align: center;
}

/* =============================================================================
   Padding Fieldset
   ============================================================================= */

.ariksac-padding-fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

.ariksac-padding-label {
    display: inline-block;
    width: 80px;
    margin-right: 20px;
}

.ariksac-padding-label:last-of-type {
    margin-right: 0;
}

/* =============================================================================
   Settings Page — General
   ============================================================================= */

.form-table .description {
    color: #646970;
    font-style: normal;
    margin-top: 5px;
}

.form-table th {
    padding-top: 15px;
}

.settings-error.notice-error {
    margin: 10px 0 15px;
}

/* =============================================================================
   Accessibility — Focus States
   ============================================================================= */

.ariksac-color-picker:focus,
.ariksac-icon-uploader button:focus-visible,
.ariksac-help-wrapper a:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* =============================================================================
   Responsive — Admin settings on small screens
   ============================================================================= */

@media screen and ( max-width: 782px ) {

    .ariksac-help-wrapper {
        max-width: 100%;
    }

    .ariksac-help-wrapper .ariksac-card {
        padding: 15px;
    }

    .ariksac-icon-uploader {
        flex-direction: column;
        align-items: flex-start;
    }

    .ariksac-padding-label {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .ariksac-number-input,
    .form-table input[type="number"] {
        width: 100px;
    }

    .ariksac-support-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =============================================================================
   RTL Support
   ============================================================================= */

body.rtl .ariksac-padding-label {
    margin-right: 0;
    margin-left: 20px;
}

body.rtl .ariksac-padding-label:last-of-type {
    margin-left: 0;
}

body.rtl .ariksac-remove-icon {
    margin-left: 0;
    margin-right: 10px;
}