/**
 * Help Page Tab Styles - Pure CSS Tabs
 *
 * @package Keyless Auth
 * @since 3.0.5
 */

/* Hide radio inputs */
.chrmrtns-help-tabs input[type="radio"].chrmrtns-tab-radio {
    display: none !important;
}

/* Tab Navigation */
.chrmrtns-help-tabs {
    margin-top: 20px;
}

.chrmrtns-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 0;
    border-bottom: 1px solid #c3c4c7;
    padding: 0;
    list-style: none;
}

.chrmrtns-tab-button {
    display: inline-block;
    padding: 12px 20px;
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #50575e;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    top: 1px;
    user-select: none;
}

.chrmrtns-tab-button:hover {
    background: #fff;
    color: #2271b1;
}

/* Active tab button when radio is checked */
#tab-getting-started:checked ~ .chrmrtns-tab-nav label[for="tab-getting-started"],
#tab-shortcodes:checked ~ .chrmrtns-tab-nav label[for="tab-shortcodes"],
#tab-2fa:checked ~ .chrmrtns-tab-nav label[for="tab-2fa"],
#tab-customization:checked ~ .chrmrtns-tab-nav label[for="tab-customization"],
#tab-security:checked ~ .chrmrtns-tab-nav label[for="tab-security"],
#tab-troubleshooting:checked ~ .chrmrtns-tab-nav label[for="tab-troubleshooting"],
#tab-advanced:checked ~ .chrmrtns-tab-nav label[for="tab-advanced"] {
    background: #fff;
    color: #2271b1;
    border-color: #c3c4c7 #c3c4c7 #fff #c3c4c7;
}

/* Tab Content Wrapper */
.chrmrtns-tab-wrapper {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

/* Hide all tab content by default */
.chrmrtns-tab-content {
    display: none !important;
    padding: 30px;
}

/* Show tab content when corresponding radio is checked */
#tab-getting-started:checked ~ .chrmrtns-tab-wrapper .chrmrtns-tab-content[data-tab="tab-getting-started"],
#tab-shortcodes:checked ~ .chrmrtns-tab-wrapper .chrmrtns-tab-content[data-tab="tab-shortcodes"],
#tab-2fa:checked ~ .chrmrtns-tab-wrapper .chrmrtns-tab-content[data-tab="tab-2fa"],
#tab-customization:checked ~ .chrmrtns-tab-wrapper .chrmrtns-tab-content[data-tab="tab-customization"],
#tab-security:checked ~ .chrmrtns-tab-wrapper .chrmrtns-tab-content[data-tab="tab-security"],
#tab-troubleshooting:checked ~ .chrmrtns-tab-wrapper .chrmrtns-tab-content[data-tab="tab-troubleshooting"],
#tab-advanced:checked ~ .chrmrtns-tab-wrapper .chrmrtns-tab-content[data-tab="tab-advanced"] {
    display: block !important;
}

/* Tab Content Typography */
.chrmrtns-tab-content h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    color: #1d2327;
}

.chrmrtns-tab-content h4 {
    margin-top: 20px;
    margin-bottom: 8px;
    color: #2c3338;
}

.chrmrtns-tab-content table {
    margin: 15px 0;
}

.chrmrtns-tab-content pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 13px;
}

.chrmrtns-tab-content dl dt {
    font-weight: 600;
    margin-top: 15px;
}

.chrmrtns-tab-content dl dd {
    margin-left: 0;
    margin-bottom: 10px;
    color: #50575e;
}
