/**
 * Cbshop.in – Image to AVIF Converter
 * Page-specific layout repair. creator-tools.css remains unchanged.
 * The shared .cb-tool-card class is flex-row; this page uses it for the
 * entire workspace, so restore the workspace to a normal block layout.
 */
.cb-image-to-avif-page,
.cb-image-to-avif-page * { box-sizing: border-box; }

.cb-image-to-avif-page { min-width: 0; overflow-x: clip; }

.cb-image-to-avif-page .cb-image-to-avif-workspace {
    display: block !important;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: clamp(18px, 3vw, 30px);
    margin: 0 0 28px;
    text-align: left;
}

.cb-image-to-avif-page .cb-tool-card-heading {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0 0 22px;
}
.cb-image-to-avif-page .cb-tool-card-heading h2 {
    margin: 0 0 9px;
    color: #1d2939;
    font-size: clamp(21px, 2.6vw, 27px);
    line-height: 1.3;
    text-align: left;
}
.cb-image-to-avif-page .cb-tool-card-heading p {
    margin: 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.65;
    text-align: left;
}

.cb-image-to-avif-page .cb-image-to-avif-upload {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 190px;
    margin: 0 0 22px;
    padding: 26px 20px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    background: #fafbff;
    text-align: center;
}
.cb-image-to-avif-page .cb-image-to-avif-upload input[type="file"] {
    display: block;
    width: auto;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto 2px;
    color: #344054;
    font: inherit;
}
.cb-image-to-avif-page .cb-image-to-avif-upload strong {
    display: block;
    color: #263449;
    font-size: 17px;
    line-height: 1.4;
}
.cb-image-to-avif-page .cb-image-to-avif-upload span,
.cb-image-to-avif-page .cb-image-to-avif-upload small {
    display: block;
    max-width: 100%;
    color: #7a8495;
    font-size: 13px;
    line-height: 1.6;
}

.cb-image-to-avif-page .cb-image-to-avif-settings {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin: 0;
}
.cb-image-to-avif-page .cb-image-to-avif-settings .ab-field {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    gap: 10px;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}
.cb-image-to-avif-page #ab-convert-quality-label {
    display: inline-block;
    color: #475569;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.cb-image-to-avif-page #ab-convert-quality {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 2px 0 0;
    accent-color: #4f46e5;
}

.cb-image-to-avif-page .cb-image-to-avif-actions {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 20px 0 0;
}
.cb-image-to-avif-page .cb-image-to-avif-actions .ab-btn {
    min-width: 150px;
    min-height: 44px;
    flex: 0 1 auto;
    white-space: normal;
    text-align: center;
}
.cb-image-to-avif-page .cb-image-to-avif-actions a[aria-disabled="true"] {
    opacity: .48;
    pointer-events: none;
}

.cb-image-to-avif-page .cb-image-to-avif-output {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 22px 0 0;
    padding: 16px;
    border: 1px solid #e4e9f1;
    border-radius: 13px;
    background: #fbfcff;
    text-align: center;
    overflow: hidden;
}
.cb-image-to-avif-page .cb-image-to-avif-output .ab-placeholder {
    display: block;
    width: 100%;
    margin: 0;
    padding: 24px 16px;
    color: #8a94a6;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.cb-image-to-avif-page .cb-image-to-avif-output img,
.cb-image-to-avif-page .cb-image-to-avif-output canvas {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 420px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}
.cb-image-to-avif-page .cb-image-to-avif-output a,
.cb-image-to-avif-page .cb-image-to-avif-output p { overflow-wrap: anywhere; }

.cb-image-to-avif-page #ab-convert-support {
    display: block;
    width: 100%;
    margin: 13px 0 0;
    color: #718096;
    font-size: 13px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.cb-image-to-avif-page .cb-tools-main,
.cb-image-to-avif-page .cb-tools-ad,
.cb-image-to-avif-page .cb-tools-ad ins {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 640px) {
    .cb-image-to-avif-page .cb-image-to-avif-workspace { padding: 18px 15px; }
    .cb-image-to-avif-page .cb-image-to-avif-upload {
        min-height: 170px;
        padding: 22px 13px;
    }
    .cb-image-to-avif-page .cb-image-to-avif-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }
    .cb-image-to-avif-page .cb-image-to-avif-actions .ab-btn {
        width: 100%;
        min-width: 0;
    }
    .cb-image-to-avif-page .cb-image-to-avif-output { padding: 12px; }
}
