/* Cbshop.in – Percentage Calculator page styles.
   Load after /assets/css/creator-tools.css. */
.cb-percentage-calculator-page .cb-percentage-workspace {
    display: block;
    width: 100%;
    min-width: 0;
    padding: clamp(20px, 3vw, 32px);
}
.cb-percentage-calculator-page .cb-percentage-intro {
    margin: 0 0 24px;
}
.cb-percentage-calculator-page .cb-percentage-intro h2 {
    margin: 0 0 8px;
    color: #202938;
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.25;
}
.cb-percentage-calculator-page .cb-percentage-intro p {
    margin: 0;
    color: #687588;
    line-height: 1.65;
}
.cb-percentage-calculator-page .cb-percentage-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
    width: 100%;
    min-width: 0;
    margin: 0;
}
.cb-percentage-calculator-page .cb-percentage-form-grid .ab-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    margin: 0;
    color: #263449;
    font-size: 14px;
    font-weight: 700;
}
.cb-percentage-calculator-page .cb-percentage-form-grid .ab-field-wide {
    grid-column: 1 / -1;
}
.cb-percentage-calculator-page .cb-percentage-form-grid input,
.cb-percentage-calculator-page .cb-percentage-form-grid select {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 11px 14px;
    border: 1px solid #d7dfeb;
    border-radius: 10px;
    background: #fff;
    color: #202938;
    font: inherit;
    font-size: 15px;
    font-weight: 400;
}
.cb-percentage-calculator-page .cb-percentage-form-grid input:focus,
.cb-percentage-calculator-page .cb-percentage-form-grid select:focus {
    outline: none;
    border-color: #6255e7;
    box-shadow: 0 0 0 3px rgba(91, 78, 230, .12);
}
.cb-percentage-calculator-page .cb-percentage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
}
.cb-percentage-calculator-page .cb-percentage-actions .ab-btn {
    min-height: 46px;
    margin: 0;
    padding: 11px 22px;
    border-radius: 10px;
}
.cb-percentage-calculator-page .cb-percentage-output {
    width: 100%;
    min-width: 0;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e6ef;
    border-radius: 13px;
    background: #f9fbff;
}
.cb-percentage-calculator-page .cb-percentage-result-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.cb-percentage-calculator-page .cb-percentage-result-title {
    margin: 0;
    color: #536176;
    font-size: 14px;
    line-height: 1.5;
}
.cb-percentage-calculator-page .cb-percentage-result-value {
    color: #202938;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.cb-percentage-calculator-page .cb-percentage-result-description {
    color: #5146e5;
    font-size: 14px;
    font-weight: 700;
}
.cb-percentage-calculator-page .cb-percentage-formula {
    margin: 8px 0 0;
    color: #6b7789;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.cb-percentage-calculator-page .cb-percentage-error {
    margin: 0;
    color: #b42318;
    font-weight: 600;
    line-height: 1.6;
}
.cb-percentage-calculator-page .cb-percentage-share-wrap {
    margin-top: 18px;
}
@media (max-width: 600px) {
    .cb-percentage-calculator-page .cb-percentage-workspace {
        padding: 18px;
    }
    .cb-percentage-calculator-page .cb-percentage-form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }
    .cb-percentage-calculator-page .cb-percentage-form-grid .ab-field-wide {
        grid-column: auto;
    }
    .cb-percentage-calculator-page .cb-percentage-actions {
        flex-direction: column;
    }
    .cb-percentage-calculator-page .cb-percentage-actions .ab-btn {
        width: 100%;
    }
    .cb-percentage-calculator-page .cb-percentage-output {
        padding: 16px;
    }
}
