/**
 * Cbshop.in – Image to WebP Converter
 * Dedicated styles for the converter workspace.
 * creator-tools.css is not modified.
 */

/* Do not use .cb-tool-card on this workspace: that shared class is a
   horizontal flex tile intended for related-tool links. */
.cb-image-to-webp-page .cb-image-to-webp-workspace {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: clamp(20px, 3vw, 32px);
    margin: 0 0 28px;
    border: 1px solid #e4e9f1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(20,35,60,.05);
    text-align: left;
}

.cb-image-to-webp-page .cb-image-to-webp-workspace *,
.cb-image-to-webp-page .cb-image-to-webp-workspace *::before,
.cb-image-to-webp-page .cb-image-to-webp-workspace *::after {
    box-sizing: border-box;
}

.cb-image-to-webp-page .cb-tool-card-heading {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0 0 22px;
}
.cb-image-to-webp-page .cb-tool-card-heading h2 {
    display: block;
    width: 100%;
    margin: 0 0 9px;
    color: #1d2939;
    font-size: clamp(22px, 2.5vw, 28px);
    line-height: 1.25;
}
.cb-image-to-webp-page .cb-tool-card-heading p {
    display: block;
    width: 100%;
    margin: 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.65;
}

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

.cb-image-to-webp-page .cb-image-to-webp-settings {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
}
.cb-image-to-webp-page .cb-image-to-webp-settings .ab-field {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}
.cb-image-to-webp-page #ab-convert-quality-label {
    display: inline-block;
    color: #475569;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.cb-image-to-webp-page #ab-convert-quality {
    display: block;
    width: min(100%, 420px);
    max-width: 100%;
    margin: 2px 0 0;
    accent-color: #4f46e5;
}

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

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

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