/****************************************** 
    Tool Styling (Start)
******************************************/

.error-alert {
    text-align: left;
    color: red;
}

.error-alert ul li {
    margin-bottom: 10px;
}

.privacy-disclaimer {
    font-size: 14px;
    color: #9da9b5;
    font-style: italic;
    font-weight: 500;
    line-height: 20px;
}
#img-prev{
    height: 260px;
}
.mh-260{
    max-height: 260px;
}
.tool-section {
    background-color: var(--color-skyblue);
}

.tool-area {
    display: flex;
}

.flex-basis-50-per {
    flex-basis: 50% !important;
}

.tool {
    padding: 16px;
    background-color: #ffffff;
    max-width: 1200px;
    margin: 32px auto 0;
    border-radius: 16px;
    position: relative;
}

.upload-section {
    padding: 0px;
    border-radius: 12px;
    min-height: 350px;
    border: 2px dashed #ddddf8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-basis: 100%;
    transition: 0.3s all;
    gap: 10px;
}
.before-upload.upload-area:hover {
    cursor: pointer;
}
.upload-section:hover {
    background-color: #f8f9fc;
    cursor: pointer;
}
.submit-btn:hover {
    background: #262626;
}

.before-upload {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.upload-area {
    min-height: 300px;
    border: unset;
}

.drag-n-drop-text {
    width: 100%;
    font-weight: 400;
    text-align: center;
    color: #000000;
    line-height: 27px;
    font-size: var(--font-size-default);
}

.drag-n-drop-text small {
    font-size: var(--font-size-x-small);
    font-weight: 400;
    color: #9da9b5;
    display: inline-block;
    line-height: 20px;
    text-align: center;
    width: min(400px, calc(100% - 1rem));
}

.start-Over {
    text-align: right;
}

.start-Over .js-start-over {
    display: inline-block;
    cursor: pointer;
}

.img-name {
    color: #000;
    font-size: 22px;
    font-weight: 700;
}

.after-upload {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.file-name {
    font-size: var(--font-size-large);
}

.file-size {
    color: var(--color-D2D1D6);
}

.reset-btn {
    margin-top: 1rem;
    border-radius: var(--border-radius-default);
    display: none;
    cursor: pointer;
}

.reset-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.reset-btn span img {
    width: 20px;
    height: 20px;
}

.close-preview {
    position: absolute;
    border: 1px solid red;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: red;
    color: #fff;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    cursor: pointer;
}

.other-tool-heading {
    font-weight: 700;
    font-size: var(--font-size-medium);
    margin-bottom: 1rem;
}

.other-tool {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
}

a.tool-btn {
    background: #f3f7fa 0% 0% no-repeat padding-box;
    border-radius: var(--border-radius-large);
    padding: 10px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    color: #000;
    margin-bottom: 1rem;
}

a.tool-btn:hover {
    background: #fff0 linear-gradient(90deg, #a28cff 0%, #7a60ff 100%) 0% 0%
        no-repeat padding-box;
    color: #fff;
}

a.tool-btn:hover img {
    filter: invert(1);
}

a.tool-btn span {
    display: flex;
    align-items: center;
}

a.tool-btn span img {
    width: 25px;
    height: 25px;
}

.cloudflare_container {
    position: absolute;
    right: 0;
    bottom: 35px;
}

.left-preview-inner {
    display: flex;
    align-items: center;
}

.drag-icon {
    aspect-ratio: 16/9 !important;
    height: 20px !important;
}

.upload-section-img {
    aspect-ratio: 4/3;
    width: 130px;
    margin-bottom: -10px;
    cursor: pointer;
}

.selection-div {
    display: flex;
    gap: 10px;
}

.browse-dropbtn {
    border: none;
    background: transparent;
}

.browse-dropbtn label {
    background: #f1f3f7;
    min-width: 130px;
    border-radius: 8px;
    padding: 8px 24px;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.browse-dropbtn label span {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
}

.browse-btn .browse-drop-content {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    background: #f9f9f9;
    min-width: 100%;
    box-shadow: 0 8px 16px 0 rgb(0 0 0/0.2);
    border-radius: var(--border-radius-default);
    border: 1px solid #ccc;
}

.after-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.browse-btn .browse-drop-content label {
    color: #000;
    padding: 3px 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.browse-btn .browse-drop-content * {
    font-size: var(--font-size-x-small);
}

.browse-btn .browse-drop-content a:hover {
    background: #f1f1f1;
}

@media (width <=768px) {
    .tool {
        margin-top: 2rem;
        max-width: 100%;
    }

    .tool.home {
        padding: 1rem;
    }
}

@media (width <=600px) {
    .tool-area {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-cards-div .footer-card-row {
        flex-direction: column;
    }

    .upload-action-btns {
        justify-content: space-between;
    }

    .result-div {
        grid-template-columns: 1fr;
    }
}

@media (width <=425px) {
    .upload-action-btns {
        flex-direction: column;
        gap: 0.725rem;
    }

    .upload-action-btns :is(.btn-UpCd, label) {
        width: 100%;
    }
}

@media (width <=375px) {
    .tool {
        margin-top: 5px;
        max-width: 100%;
        padding: 5px;
    }

    .tool.home {
        padding: unset;
    }
}

/****************************************** 
        Tool Styling (End)
******************************************/

h2,
h2 * {
    font-size: 1.4em;
    font-weight: bold;
}

h3,
h3 * {
    font-weight: bold;
    font-size: 1.2rem;
}

.js-edit-crop img {
    rotate: 180deg;
}

.content-section :is(ol, ul) {
    margin-left: 40px;
}

.invert {
    filter: invert(1);
}

.download-btn {
    background-color: var(--color-blue);
    outline: unset;
    border: unset;
}

.download-btn:hover {
    background-color: var(--color-1c71da);
}

.restart-btn {
    background-color: #d52828a6;
    outline: unset;
    border: unset;
}

.submit_btn_cust {
    margin-bottom: unset;
}