/* Cbshop.in – Password Generator page styles.
   Load after /assets/css/creator-tools.css. */
.cb-password-generator-page .cb-password-workspace {
    display: block;
    width: 100%;
    min-width: 0;
    padding: clamp(20px, 3vw, 32px);
}
.cb-password-generator-page .cb-password-intro {
    margin: 0 0 24px;
}
.cb-password-generator-page .cb-password-intro h2 {
    margin: 0 0 8px;
    color: #202938;
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.25;
}
.cb-password-generator-page .cb-password-intro p {
    margin: 0;
    color: #687588;
    line-height: 1.65;
}
.cb-password-generator-page .cb-password-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
    width: 100%;
    min-width: 0;
    margin: 0;
}
.cb-password-generator-page .cb-password-form-grid .ab-field-wide {
    grid-column: 1 / -1;
}
.cb-password-generator-page .cb-password-length-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #263449;
    font-weight: 700;
}
.cb-password-generator-page #ab-pass-length {
    width: 100%;
    max-width: 100%;
    accent-color: #5146e5;
}
.cb-password-generator-page .cb-password-form-grid .ab-check {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    margin: 0;
    padding: 13px 15px;
    border: 1px solid #e0e6ef;
    border-radius: 11px;
    background: #fff;
    color: #344256;
    line-height: 1.45;
}
.cb-password-generator-page .cb-password-form-grid .ab-check input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #5146e5;
}
.cb-password-generator-page .cb-password-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
}
.cb-password-generator-page .cb-password-actions .ab-btn {
    min-height: 46px;
    margin: 0;
    padding: 11px 20px;
    border-radius: 10px;
}
.cb-password-generator-page .cb-password-output-wrap {
    width: 100%;
    min-width: 0;
    padding: 18px;
    border: 1px solid #e0e6ef;
    border-radius: 13px;
    background: #f9fbff;
}
.cb-password-generator-page .cb-password-output-label {
    display: block;
    margin: 0 0 9px;
    color: #344256;
    font-size: 14px;
    font-weight: 700;
}
.cb-password-generator-page .cb-password-output-wrap .ab-password-output {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #d7dfeb;
    border-radius: 9px;
    background: #fff;
    color: #202938;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 16px;
}
.cb-password-generator-page .cb-password-output-wrap .ab-tool-note {
    margin: 10px 0 0;
    color: #69778a;
    font-size: 13px;
    line-height: 1.5;
}
.cb-password-generator-page .cb-password-share-wrap {
    margin-top: 18px;
}
@media (max-width: 600px) {
    .cb-password-generator-page .cb-password-workspace {
        padding: 18px;
    }
    .cb-password-generator-page .cb-password-form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 13px;
    }
    .cb-password-generator-page .cb-password-form-grid .ab-field-wide {
        grid-column: auto;
    }
    .cb-password-generator-page .cb-password-actions {
        flex-direction: column;
    }
    .cb-password-generator-page .cb-password-actions .ab-btn {
        width: 100%;
    }
    .cb-password-generator-page .cb-password-output-wrap {
        padding: 14px;
    }
}


/* Password visibility control */
.cb-password-generator-page .cb-password-input-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    min-width: 0;
}
.cb-password-generator-page .cb-password-input-row .ab-password-output {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}
.cb-password-generator-page .cb-password-visibility {
    display: inline-flex;
    flex: 0 0 50px;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    min-height: 50px;
    padding: 10px;
    border: 1px solid #d7dfeb;
    border-radius: 9px;
    background: #fff;
    color: #344256;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}
.cb-password-generator-page .cb-password-visibility:hover {
    border-color: #6255e7;
    background: #f7f6ff;
}
.cb-password-generator-page .cb-password-visibility:focus-visible {
    outline: 3px solid rgba(91, 78, 230, .2);
    outline-offset: 2px;
}
.cb-password-generator-page .cb-password-visibility svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.cb-password-generator-page .cb-password-visibility .cb-password-eye-hide {
    display: none;
}
.cb-password-generator-page .cb-password-visibility[aria-pressed="true"] .cb-password-eye-show {
    display: none;
}
.cb-password-generator-page .cb-password-visibility[aria-pressed="true"] .cb-password-eye-hide {
    display: block;
}
