
/* =========================================================
   RANDOM STRING GENERATOR — CharacterCounter.com

   DESKTOP:
   - Compact generator above the fold
   - Prominent Generate Strings button
   - Options on the left
   - Generated results on the right
   - Copy button inside results textarea
   - Two result statistics
   - Full-height 300px Raptive sidebar

   TABLET / MOBILE:
   - Results displayed above options
   - Responsive presets and settings
   - Touch-friendly buttons
   - Sidebar hidden below 900px
   ========================================================= */


/* =========================================================
   PAGE BASE
   ========================================================= */

.random-string-page {
    width: 100%;
    padding: 105px 15px 45px;

    color: #333;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.random-string-page,
.random-string-page *,
.random-string-page *::before,
.random-string-page *::after {
    box-sizing: border-box;
}

.random-string-page [hidden] {
    display: none !important;
}

.random-string-page button,
.random-string-page textarea,
.random-string-page select,
.random-string-page input {
    font-family: "Roboto", Arial, sans-serif;
}

.random-string-page button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.random-string-page a {
    color: #1155cc;
    text-decoration: none;
}

.random-string-page a:hover {
    text-decoration: underline;
}

.random-string-page a:focus-visible,
.random-string-page button:focus-visible,
.random-string-page textarea:focus-visible,
.random-string-page select:focus-visible,
.random-string-page input:focus-visible {
    outline: 3px solid rgba(26, 115, 232, 0.3);
    outline-offset: 3px;
}

.random-string-page button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* =========================================================
   MAIN PAGE LAYOUT

   Main Content | 300px Raptive Sidebar
   ========================================================= */

.random-string-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        300px;

    align-items: stretch;

    gap: 28px;

    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
}

.random-string-main {
    width: 100%;
    min-width: 0;
}

.random-string-sidebar {
    display: block;

    width: 300px;
    min-width: 300px;
    min-height: 100%;

    align-self: stretch;

    margin: 0;
    padding: 0;
}


/* =========================================================
   PAGE HEADING
   ========================================================= */

.random-string-heading {
    width: 100%;

    margin: 0 0 22px;

    text-align: center;
}

.random-string-heading h1 {
    margin: 0 0 9px;
    padding: 0;

    color: #333;

    font-size: 32px;
    line-height: 1.25;
    font-weight: 700;

    overflow-wrap: break-word;
}

.random-string-intro {
    width: 100%;
    max-width: 760px;

    margin: 0 auto;
    padding: 0;

    color: #555;

    font-size: 16px;
    line-height: 1.55;
    font-weight: 400;
}


/* =========================================================
   JAVASCRIPT NOTICE
   ========================================================= */

.random-string-notice {
    margin: 0 0 18px;
    padding: 12px 15px;

    border: 1px solid #e3cf9b;
    border-radius: 7px;

    background: #fff9eb;
    color: #665022;

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   MAIN GENERATOR
   ========================================================= */

.random-string-tool {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;

    margin: 0 0 38px;
    padding: 0;

    gap: 17px;
}


/* =========================================================
   MAIN GENERATE BUTTON
   ========================================================= */

.random-string-generate-bar {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    margin: 0;
    padding: 0;
}

.random-string-generate-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 52px;

    gap: 10px;

    margin: 0;
    padding: 12px 24px;

    border: 1px solid #155fc1;
    border-radius: 9px;

    background: #1a73e8;
    color: #fff;

    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;

    text-align: center;

    cursor: pointer;

    box-shadow:
        0 2px 5px rgba(26, 115, 232, 0.15);

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.random-string-generate-button i {
    flex: 0 0 auto;

    font-size: 22px;
    line-height: 1;
}

.random-string-generate-button:hover {
    border-color: #1254ad;

    background: #155fc1;

    box-shadow:
        0 3px 8px rgba(26, 115, 232, 0.2);
}

.random-string-generate-button:active {
    background: #104a9a;
    transform: translateY(1px);
}

.random-string-generate-button:disabled {
    opacity: 0.55;
    box-shadow: none;
    transform: none;
}


/* =========================================================
   GENERATION WARNINGS
   ========================================================= */

.random-string-warning {
    width: 100%;

    margin: 0;
    padding: 12px 15px;

    border: 1px solid #e3cf9b;
    border-radius: 8px;

    background: #fff9eb;
    color: #74531e;

    font-size: 14px;
    line-height: 1.55;

    overflow-wrap: anywhere;
}

.random-string-warning.is-error {
    border-color: #e7b1b1;

    background: #fff1f1;
    color: #a12424;
}

.random-string-warning.is-success {
    border-color: #a8d9b5;

    background: #f1fff4;
    color: #246b38;
}


/* =========================================================
   GENERATOR GRID

   DESKTOP:
   Options | Results

   HTML order:
   Results | Options

   CSS grid areas place options first.
   ========================================================= */

.random-string-generator-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 0.95fr)
        minmax(0, 1.2fr);

    grid-template-areas:
        "options results";

    align-items: start;

    gap: 20px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}

.random-string-options {
    grid-area: options;
}

.random-string-results {
    grid-area: results;
}


/* =========================================================
   OPTIONS AND RESULTS PANELS
   ========================================================= */

.random-string-options,
.random-string-results {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 18px;

    border: 1px solid #dce2e9;
    border-radius: 11px;

    background: #fff;
}

.random-string-options {
    gap: 17px;
}

.random-string-results {
    gap: 13px;
}


/* =========================================================
   PANEL HEADINGS
   ========================================================= */

.random-string-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;

    gap: 8px 12px;

    width: 100%;

    margin: 0;
    padding: 0;
}

.random-string-section-heading h2 {
    margin: 0;
    padding: 0;

    color: #333;

    font-size: 21px;
    line-height: 1.35;
    font-weight: 700;
}


/* =========================================================
   RESULTS OUTPUT WRAPPER
   ========================================================= */

.random-string-output-wrapper {
    position: relative;

    display: block;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   GENERATED STRINGS TEXTAREA
   ========================================================= */

.random-string-page .random-string-output {
    display: block;

    width: 100%;
    max-width: 100%;

    height: 250px;
    min-height: 185px;
    max-height: none;

    margin: 0;
    padding: 15px 15px 58px;

    border: 2px solid #c9ced6;
    border-radius: 10px;

    background: #f8fafc;
    color: #222;

    font-family:
        "Roboto Mono",
        "Courier New",
        monospace;

    font-size: 15px;
    line-height: 1.7;
    font-weight: 500;

    letter-spacing: 0;

    outline: none;

    resize: vertical;

    overflow-x: auto;
    overflow-y: auto;

    overflow-wrap: normal;
    white-space: pre;

    tab-size: 4;

    box-shadow: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.random-string-page .random-string-output::placeholder {
    color: #9299a2;
    opacity: 1;
}

.random-string-page .random-string-output:hover {
    border-color: #aeb4bd;
}

.random-string-page .random-string-output:focus {
    border-color: #1a73e8;

    box-shadow:
        0 0 0 3px rgba(26, 115, 232, 0.10);
}


/* =========================================================
   COPY BUTTON INSIDE OUTPUT
   ========================================================= */

.random-string-output-actions {
    position: absolute;

    right: 11px;
    bottom: 11px;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 7px;

    z-index: 2;

    max-width: calc(100% - 22px);
}

.random-string-inline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    min-height: 34px;

    margin: 0;
    padding: 7px 11px;

    border: 1px solid #cbd7e7;
    border-radius: 6px;

    background: #fff;
    color: #145ba8;

    font-size: 13px;
    line-height: 1.25;
    font-weight: 600;

    white-space: nowrap;

    cursor: pointer;

    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.05);

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.random-string-inline-button i {
    font-size: 16px;
    line-height: 1;
}

.random-string-inline-button:hover:not(:disabled) {
    border-color: #9bbce5;

    background: #e5f0ff;
    color: #104b8d;
}

.random-string-inline-button:active:not(:disabled) {
    background: #d8e9ff;
}

.random-string-inline-button:disabled {
    background: #f5f6f8;
    color: #8a919a;

    border-color: #d7dce3;

    box-shadow: none;
}


/* =========================================================
   DOWNLOAD / CLEAR ACTIONS
   ========================================================= */

.random-string-result-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    flex-wrap: wrap;

    gap: 9px;

    width: 100%;

    margin: 0;
    padding: 0;
}

.random-string-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 1 auto;

    gap: 7px;

    min-height: 38px;

    margin: 0;
    padding: 9px 13px;

    border: 1px solid #cbd7e7;
    border-radius: 7px;

    background: #f3f7fc;
    color: #145ba8;

    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;

    text-align: center;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.random-string-secondary-button i {
    font-size: 17px;
    line-height: 1;
}

.random-string-secondary-button:hover:not(:disabled) {
    border-color: #9bbce5;

    background: #e5f0ff;
    color: #104b8d;
}

.random-string-secondary-button:active:not(:disabled) {
    background: #d8e9ff;
}

.random-string-secondary-button:disabled {
    border-color: #d7dce3;

    background: #f4f5f7;
    color: #9299a2;
}


/* =========================================================
   RESULT STATISTICS

   UPDATED:
   Two equal-width columns.

   Strings Generated | Total Characters
   ========================================================= */

.random-string-stats {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    align-items: stretch;

    gap: 9px;

    width: 100%;

    margin: 4px 0 0;
    padding: 0;
}

.random-string-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 88px;

    gap: 5px;

    margin: 0;
    padding: 12px 8px;

    border: 1px solid #dce5f1;
    border-radius: 8px;

    background: #f5f9ff;

    text-align: center;
}

.random-string-stat-value {
    display: block;

    width: 100%;

    color: #155fc1;

    font-size: 25px;
    line-height: 1.2;
    font-weight: 700;

    font-variant-numeric: tabular-nums;

    overflow-wrap: anywhere;
}

.random-string-stat-label {
    display: block;

    width: 100%;

    color: #555;

    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;

    overflow-wrap: break-word;
}


/* =========================================================
   INDIVIDUAL STRING RESULTS
   ========================================================= */

.random-string-individual-results {
    display: flex;
    flex-direction: column;

    gap: 12px;

    width: 100%;

    margin: 9px 0 0;
    padding: 17px 0 0;

    border-top: 1px solid #e0e5eb;
}

.random-string-individual-heading {
    width: 100%;

    margin: 0;
    padding: 0;
}

.random-string-individual-heading h3 {
    margin: 0 0 4px;
    padding: 0;

    color: #333;

    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
}

.random-string-individual-heading p {
    margin: 0;
    padding: 0;

    color: #666;

    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   INDIVIDUAL STRING LIST
   ========================================================= */

.random-string-individual-list {
    display: flex;
    flex-direction: column;

    gap: 8px;

    width: 100%;
    min-width: 0;

    max-height: 350px;

    margin: 0;
    padding: 0 3px 0 0;

    overflow-x: hidden;
    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color: #c5ccd6 #f3f5f8;
}


/* =========================================================
   INDIVIDUAL STRING ROWS

   These classes are used by JavaScript.
   ========================================================= */

.random-string-individual-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 9px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 9px 10px;

    border: 1px solid #e0e5eb;
    border-radius: 7px;

    background: #fafbfd;
}

.random-string-individual-number {
    flex: 0 0 auto;

    color: #777;

    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;

    font-variant-numeric: tabular-nums;
}

.random-string-individual-value {
    display: block;

    flex: 1 1 auto;

    min-width: 0;

    margin: 0;
    padding: 0;

    color: #333;

    font-family:
        "Roboto Mono",
        "Courier New",
        monospace;

    font-size: 13px;
    line-height: 1.5;

    white-space: nowrap;

    overflow-x: auto;
    overflow-y: hidden;

    scrollbar-width: thin;
}

.random-string-individual-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    gap: 5px;

    min-height: 32px;

    margin: 0;
    padding: 6px 9px;

    border: 1px solid #cbd7e7;
    border-radius: 6px;

    background: #fff;
    color: #145ba8;

    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}

.random-string-individual-copy i {
    font-size: 15px;
}

.random-string-individual-copy:hover {
    border-color: #9bbce5;
    background: #e5f0ff;
}


/* =========================================================
   RESULTS FIELD HINT
   ========================================================= */

.random-string-field-hint {
    width: 100%;

    margin: 0;
    padding: 0;

    color: #6b7280;

    font-size: 13px;
    line-height: 1.55;
}


/* =========================================================
   OPTIONS GROUP BASE
   ========================================================= */

.random-string-option-group {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    border: 0;

    gap: 10px;
}

fieldset.random-string-option-group {
    min-width: 0;
}

.random-string-option-title {
    display: block;

    width: 100%;

    margin: 0;
    padding: 0;

    color: #333;

    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
}

legend.random-string-option-title {
    width: auto;

    margin: 0 0 10px;
    padding: 0;
}


/* =========================================================
   QUICK PRESETS
   ========================================================= */

.random-string-presets {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;

    flex-wrap: wrap;

    gap: 7px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}

.random-string-preset {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 1 auto;

    min-width: 0;
    min-height: 36px;

    margin: 0;
    padding: 8px 11px;

    border: 1px solid #cbd7e7;
    border-radius: 7px;

    background: #f3f7fc;
    color: #145ba8;

    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;

    text-align: center;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
}

.random-string-preset:hover {
    border-color: #9bbce5;
    background: #e5f0ff;
}

.random-string-preset.is-active,
.random-string-preset[aria-pressed="true"] {
    border-color: #1a73e8;

    background: #e8f1ff;
    color: #1254ad;

    box-shadow:
        inset 0 0 0 1px rgba(26, 115, 232, 0.12);
}

.random-string-preset.is-active:hover {
    background: #daeaff;
}


/* =========================================================
   STRING LENGTH / NUMBER OF STRINGS
   ========================================================= */

.random-string-number-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    align-items: start;

    gap: 13px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}

.random-string-option {
    display: flex;
    flex-direction: column;

    gap: 6px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}

.random-string-option label {
    display: block;

    margin: 0;
    padding: 0;

    color: #333;

    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
}

.random-string-number-input {
    display: block;

    width: 100%;
    min-width: 0;
    height: 43px;

    margin: 0;
    padding: 9px 11px;

    border: 1px solid #bfc7d1;
    border-radius: 7px;

    background: #fff;
    color: #222;

    font-size: 16px;
    line-height: 1.4;
    font-weight: 500;

    font-variant-numeric: tabular-nums;

    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.random-string-number-input:hover {
    border-color: #9ca9b8;
}

.random-string-number-input:focus {
    border-color: #1a73e8;

    box-shadow:
        0 0 0 3px rgba(26, 115, 232, 0.1);
}

.random-string-input-hint {
    display: block;

    color: #777;

    font-size: 12px;
    line-height: 1.4;
}


/* =========================================================
   CHARACTER CHECKBOXES
   ========================================================= */

.random-string-checkbox-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px 12px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}

.random-string-checkbox {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 9px;

    width: 100%;
    min-width: 0;
    min-height: 28px;

    margin: 0;
    padding: 0;

    color: #333;

    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;

    cursor: pointer;
}

.random-string-checkbox input[type="checkbox"] {
    flex: 0 0 auto;

    width: 17px;
    height: 17px;

    margin: 0;
    padding: 0;

    accent-color: #1a73e8;

    cursor: pointer;
}

.random-string-checkbox span {
    min-width: 0;

    overflow-wrap: break-word;
}


/* =========================================================
   CUSTOM CHARACTERS TEXT INPUT
   ========================================================= */

.random-string-text-input {
    display: block;

    width: 100%;
    min-width: 0;
    height: 43px;

    margin: 0;
    padding: 10px 12px;

    border: 1px solid #bfc7d1;
    border-radius: 7px;

    background: #fff;
    color: #222;

    font-size: 15px;
    line-height: 1.4;
    font-weight: 400;

    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.random-string-text-input::placeholder {
    color: #949ba5;
    opacity: 1;
}

.random-string-text-input:hover {
    border-color: #9ca9b8;
}

.random-string-text-input:focus {
    border-color: #1a73e8;

    box-shadow:
        0 0 0 3px rgba(26, 115, 232, 0.1);
}


/* =========================================================
   OPTION HELP TEXT
   ========================================================= */

.random-string-option-help {
    width: 100%;

    margin: 0;
    padding: 0;

    color: #6b7280;

    font-size: 12px;
    line-height: 1.55;
}


/* =========================================================
   ADDITIONAL OPTIONS
   ========================================================= */

.random-string-extra-options {
    display: flex;
    flex-direction: column;

    gap: 7px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}

.random-string-extra-options .random-string-checkbox {
    margin-top: 4px;
}

.random-string-extra-options .random-string-option-help {
    margin: -3px 0 7px 26px;

    width: calc(100% - 26px);
}


/* =========================================================
   OUTPUT LIMIT NOTE
   ========================================================= */

.random-string-limit-note {
    width: 100%;

    margin: 0;
    padding: 10px 12px;

    border: 1px solid #e0e5eb;
    border-radius: 7px;

    background: #f8fafc;
    color: #667085;

    font-size: 12px;
    line-height: 1.5;

    text-align: left;
}


/* =========================================================
   ARTICLE BASE
   ========================================================= */

.random-string-article {
    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    color: #444;

    font-size: 16px;
    line-height: 1.8;
}

.random-string-article-section {
    width: 100%;
    min-width: 0;

    margin: 0 0 37px;
    padding: 0;
}

.random-string-article-section:last-child {
    margin-bottom: 0;
}


/* =========================================================
   ARTICLE HEADINGS
   ========================================================= */

.random-string-article h2 {
    margin: 0 0 14px;
    padding: 0;

    color: #333;

    font-size: 25px;
    line-height: 1.35;
    font-weight: 700;

    overflow-wrap: break-word;
}

.random-string-article h3 {
    margin: 20px 0 9px;
    padding: 0;

    color: #333;

    font-size: 19px;
    line-height: 1.4;
    font-weight: 700;

    overflow-wrap: break-word;
}


/* =========================================================
   ARTICLE PARAGRAPHS
   ========================================================= */

.random-string-article p {
    margin: 0 0 15px;
    padding: 0;

    color: #444;

    font-size: 16px;
    line-height: 1.8;
}

.random-string-article p:last-child {
    margin-bottom: 0;
}

.random-string-article strong {
    color: #333;
    font-weight: 700;
}

.random-string-article a {
    color: #1155cc;
    text-decoration: none;
}

.random-string-article a:hover {
    text-decoration: underline;
}


/* =========================================================
   ARTICLE LISTS
   ========================================================= */

.random-string-article-list {
    display: block;

    width: 100%;

    margin: 0 0 17px;
    padding: 0 0 0 26px;

    color: #444;
}

.random-string-article-list li {
    margin: 0 0 11px;
    padding: 0 0 0 3px;

    font-size: 16px;
    line-height: 1.75;
}

.random-string-article-list li:last-child {
    margin-bottom: 0;
}

.random-string-article-list li::marker {
    color: #555;
    font-weight: 600;
}


/* =========================================================
   INLINE CODE
   ========================================================= */

.random-string-article :not(pre) > code {
    display: inline;

    padding: 2px 5px;

    border: 1px solid #e6e9ed;
    border-radius: 4px;

    background: #f5f6f8;
    color: #333;

    font-family:
        "Courier New",
        monospace;

    font-size: 0.9em;

    overflow-wrap: anywhere;
}


/* =========================================================
   EXAMPLE TABLE WRAPPER
   ========================================================= */

.random-string-table-wrapper {
    display: block;

    width: 100%;
    max-width: 100%;

    margin: 15px 0 17px;
    padding: 0;

    border: 1px solid #dfe4ea;
    border-radius: 9px;

    overflow-x: auto;
    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;
}


/* =========================================================
   EXAMPLE TABLE
   ========================================================= */

.random-string-example-table {
    width: 100%;

    margin: 0;
    padding: 0;

    border-collapse: collapse;

    background: #fff;

    font-size: 15px;
    line-height: 1.5;

    text-align: left;
}

.random-string-example-table th,
.random-string-example-table td {
    padding: 12px 14px;

    border-bottom: 1px solid #e5e9ee;

    text-align: left;
    vertical-align: middle;
}

.random-string-example-table th {
    background: #f1f5fa;

    color: #333;

    font-size: 14px;
    font-weight: 700;
}

.random-string-example-table td {
    color: #444;
}

.random-string-example-table tbody tr:nth-child(even) {
    background: #fafbfd;
}

.random-string-example-table tbody tr:last-child td {
    border-bottom: 0;
}

.random-string-example-table td code {
    white-space: nowrap;
}


/* =========================================================
   CODE EXAMPLES
   ========================================================= */

.random-string-code-wrapper {
    display: block;

    width: 100%;
    max-width: 100%;

    margin: 15px 0 17px;
    padding: 0;

    border: 1px solid #dce2e9;
    border-radius: 9px;

    background: #f7f9fc;

    overflow-x: auto;
    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;
}

.random-string-code {
    display: block;

    width: max-content;
    min-width: 100%;

    margin: 0;
    padding: 17px 18px;

    border: 0;

    background: transparent;
    color: #263445;

    font-family:
        "Courier New",
        monospace;

    font-size: 14px;
    line-height: 1.7;
    font-weight: 400;

    white-space: pre;
    tab-size: 4;
}

.random-string-code code {
    display: block;

    padding: 0;
    border: 0;

    background: transparent;
    color: inherit;

    font-family: inherit;
    font-size: inherit;
    line-height: inherit;

    white-space: inherit;
}


/* =========================================================
   FAQ
   ========================================================= */

.random-string-faq-item {
    width: 100%;

    margin: 0;
    padding: 16px 0;

    border-bottom: 1px solid #e4e8ed;
}

.random-string-faq-item:first-of-type {
    padding-top: 0;
}

.random-string-faq-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.random-string-faq-item h3 {
    margin: 0 0 8px;
    padding: 0;

    color: #333;

    font-size: 18px;
    line-height: 1.45;
    font-weight: 700;
}

.random-string-faq-item p {
    margin: 0;
    padding: 0;

    font-size: 15px;
    line-height: 1.75;
}


/* =========================================================
   RELATED TOOLS
   ========================================================= */

.random-string-related {
    margin-top: 5px;
}

.random-string-related-intro {
    margin-bottom: 15px !important;
}

.random-string-related-links {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px 20px;

    width: 100%;

    margin: 0 0 24px;
    padding: 0;

    list-style: none;
}

.random-string-related-links li {
    position: relative;

    min-width: 0;

    margin: 0;
    padding: 0 0 0 17px;

    font-size: 15px;
    line-height: 1.5;
}

.random-string-related-links li::before {
    position: absolute;

    top: 10px;
    left: 0;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #1a73e8;

    content: "";
}

.random-string-related-links a {
    color: #1155cc;
    font-weight: 500;
}


/* =========================================================
   RELATED TOOL CALLOUTS
   ========================================================= */

.random-string-related-callouts {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;

    width: 100%;

    margin: 0;
    padding: 0;
}

.random-string-related-callout {
    display: block;

    min-width: 0;

    margin: 0;
    padding: 17px;

    border: 1px solid #dfe5ed;
    border-radius: 9px;

    background: #f8fafc;
}

.random-string-related-callout h3 {
    margin: 0 0 8px;
    padding: 0;

    color: #333;

    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
}

.random-string-related-callout p {
    margin: 0;
    padding: 0;

    color: #555;

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   SCREEN READER ONLY
   ========================================================= */

.random-string-sr-only {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    margin: -1px !important;
    padding: 0 !important;

    border: 0 !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;

    clip-path: inset(50%) !important;
}


/* =========================================================
   LARGE TABLET / MEDIUM DESKTOP

   Keep 300px sidebar.
   Stack generator panels when content gets cramped.
   ========================================================= */

@media (max-width: 1100px) {

    .random-string-generator-grid {
        grid-template-columns: minmax(0, 1fr);

        grid-template-areas:
            "results"
            "options";

        gap: 18px;
    }

    .random-string-page .random-string-output {
        height: 225px;
    }

    .random-string-options,
    .random-string-results {
        padding: 18px;
    }

    .random-string-presets {
        gap: 8px;
    }

    .random-string-preset {
        padding: 9px 13px;
    }

}


/* =========================================================
   TABLET

   Hide 300px sidebar below 900px.
   ========================================================= */

@media (max-width: 899px) {

    .random-string-layout {
        display: block;

        width: 100%;
        max-width: 800px;

        margin: 0 auto;
    }

    .random-string-main {
        width: 100%;
    }

    .random-string-sidebar {
        display: none !important;
    }

    .random-string-generator-grid {
        grid-template-columns: minmax(0, 1fr);

        grid-template-areas:
            "results"
            "options";

        gap: 18px;
    }

    .random-string-options,
    .random-string-results {
        padding: 19px;
    }

    .random-string-page .random-string-output {
        height: 230px;
    }

    .random-string-stat {
        min-height: 82px;
    }

    .random-string-stat-value {
        font-size: 25px;
    }

}


/* =========================================================
   SMALL TABLET / LARGE MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .random-string-page {
        padding: 95px 14px 35px;
    }

    .random-string-heading {
        margin-bottom: 19px;
    }

    .random-string-heading h1 {
        font-size: 29px;
    }

    .random-string-intro {
        font-size: 15px;
        line-height: 1.55;
    }

    .random-string-tool {
        gap: 15px;
        margin-bottom: 34px;
    }

    .random-string-generate-button {
        min-height: 49px;

        padding: 11px 17px;

        font-size: 17px;
    }

    .random-string-generate-button i {
        font-size: 20px;
    }

    .random-string-generator-grid {
        gap: 16px;
    }

    .random-string-options,
    .random-string-results {
        padding: 16px;
        border-radius: 9px;
    }

    .random-string-section-heading h2 {
        font-size: 20px;
    }

    .random-string-page .random-string-output {
        height: 205px;
        min-height: 170px;

        font-size: 14px;
    }

    .random-string-stat {
        min-height: 77px;
        padding: 10px 7px;
    }

    .random-string-stat-value {
        font-size: 24px;
    }

    .random-string-stat-label {
        font-size: 12px;
    }

    .random-string-article h2 {
        font-size: 23px;
    }

    .random-string-article h3 {
        font-size: 18px;
    }

    .random-string-article p,
    .random-string-article-list li {
        font-size: 15px;
    }

    .random-string-article-section {
        margin-bottom: 32px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 560px) {

    .random-string-page {
        padding: 88px 12px 30px;
    }

    .random-string-heading {
        margin-bottom: 17px;
    }

    .random-string-heading h1 {
        font-size: 27px;
    }

    .random-string-intro {
        font-size: 14px;
        line-height: 1.55;
    }

    .random-string-generate-button {
        min-height: 48px;

        font-size: 16px;
    }

    .random-string-options,
    .random-string-results {
        padding: 14px;
    }

    .random-string-section-heading h2 {
        font-size: 19px;
    }

    .random-string-page .random-string-output {
        height: 190px;
        min-height: 160px;

        padding: 12px 12px 55px;

        font-size: 13px;
        line-height: 1.65;
    }

    .random-string-output-actions {
        right: 9px;
        bottom: 9px;
    }

    .random-string-inline-button {
        min-height: 32px;

        padding: 6px 10px;

        font-size: 12px;
    }

    .random-string-result-actions {
        gap: 8px;
    }

    .random-string-secondary-button {
        min-height: 37px;

        padding: 8px 11px;

        font-size: 13px;
    }

    /* TWO-COLUMN STATISTICS ON MOBILE */

    .random-string-stats {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;
    }

    .random-string-stat {
        min-height: 75px;

        gap: 5px;

        padding: 10px 8px;
    }

    .random-string-stat-value {
        font-size: 23px;
    }

    .random-string-stat-label {
        font-size: 12px;
        line-height: 1.3;
    }

    .random-string-presets {
        gap: 7px;
    }

    .random-string-preset {
        min-height: 36px;

        padding: 7px 10px;

        font-size: 12px;
    }

    .random-string-number-grid {
        gap: 10px;
    }

    .random-string-option label {
        font-size: 13px;
    }

    .random-string-number-input {
        height: 42px;
        font-size: 15px;
    }

    .random-string-checkbox-grid {
        grid-template-columns: minmax(0, 1fr);

        gap: 10px;
    }

    .random-string-checkbox {
        font-size: 14px;
    }

    .random-string-option-title {
        font-size: 15px;
    }

    .random-string-text-input {
        font-size: 14px;
    }

    .random-string-individual-item {
        gap: 7px;

        padding: 8px;
    }

    .random-string-individual-number {
        font-size: 11px;
    }

    .random-string-individual-value {
        font-size: 12px;
    }

    .random-string-individual-copy {
        min-height: 31px;

        padding: 6px 8px;

        font-size: 11px;
    }

    .random-string-article {
        font-size: 15px;
    }

    .random-string-article h2 {
        font-size: 22px;
    }

    .random-string-article h3 {
        font-size: 18px;
    }

    .random-string-article p,
    .random-string-article-list li {
        font-size: 15px;
        line-height: 1.75;
    }

    .random-string-article-list {
        padding-left: 23px;
    }

    .random-string-related-links {
        grid-template-columns: minmax(0, 1fr);

        gap: 11px;
    }

    .random-string-related-callouts {
        grid-template-columns: minmax(0, 1fr);

        gap: 12px;
    }

    .random-string-related-callout {
        padding: 15px;
    }

    .random-string-code {
        padding: 14px;

        font-size: 12px;
        line-height: 1.7;
    }

    .random-string-example-table {
        font-size: 13px;
    }

    .random-string-example-table th,
    .random-string-example-table td {
        padding: 10px 11px;
    }

    .random-string-faq-item h3 {
        font-size: 17px;
    }

    .random-string-faq-item p {
        font-size: 14px;
    }

}


/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 380px) {

    .random-string-page {
        padding-right: 10px;
        padding-left: 10px;
    }

    .random-string-heading h1 {
        font-size: 25px;
    }

    .random-string-options,
    .random-string-results {
        padding: 12px;
    }

    .random-string-section-heading h2 {
        font-size: 18px;
    }

    .random-string-generate-button {
        font-size: 15px;
    }

    .random-string-preset {
        font-size: 12px;
        padding: 7px 9px;
    }

    .random-string-stats {
        gap: 6px;
    }

    .random-string-stat {
        padding: 9px 6px;
    }

    .random-string-stat-value {
        font-size: 21px;
    }

    .random-string-stat-label {
        font-size: 11px;
    }

    .random-string-secondary-button {
        font-size: 12px;
    }

    .random-string-number-grid {
        gap: 8px;
    }

    .random-string-option label {
        font-size: 12px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .random-string-page *,
    .random-string-page *::before,
    .random-string-page *::after {
        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

}


/* =========================================================
   END — RANDOM STRING GENERATOR CSS
   ========================================================= */
