/* overwrite */
.gd-upload {
    margin-bottom: 0; 
}

.gd-app-form {
    margin-bottom: 6rem;
}

/* splitter */


/* form mode */
.gd-split-form__field::placeholder {
    color: #a9b1c3;
    opacity: 1; /* Firefox */
}


.gd-split-form {
    width: 100%;
    max-width: 46rem;
    background-color: #fff;
    border-radius: 2px;
    padding: 4rem 2rem;
    margin: 0 auto;
    box-shadow: 0 10px 20px rgba(0,0,0,.04), 0 2px 6px rgba(0,0,0,.04), 0 0 1px rgba(0,0,0,.04);
    margin-bottom: 7rem;
}

.gd-split-form__field {
    font-size: .875rem;
    height: 3rem;
    border: 1px solid #f9f9f9;
    background: #fff;
    box-shadow: 0 0 6px rgba(0,0,0,.02), 0 2px 4px rgba(0,0,0,.08);
    -webkit-box-shadow: 0 0 6px rgba(0,0,0,.02), 0 2px 4px rgba(0,0,0,.08);
    border-radius: 10px;
    width: 7rem;
    box-sizing: border-box;
    padding: 0 1rem;
    outline: none;
    -webkit-appearance: none;
}


.gd-split-form__row {
    padding: 0 2rem;
    display: flex;
   
   
    margin-bottom: 2rem;
    justify-content:center;
    gap: 2rem;
}



.gd-split-form__radio {
    appearance: none;
    background-color: rgba(85, 143, 255, 0.12);
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.5rem;
    height: 1.5rem;
    border: 0.125rem solid rgba(85, 143, 255, 0.24);
    border-radius: 50%;
    transition: 120ms all ease-in-out;
    min-width: 1.5rem;
    min-height: 1.5rem;
}

.gd-split-form__radio:checked {
    background-color: #fff;
    border: 0.375rem solid #558FFF;
}

.gd-split-form__label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.1rem;
}
.gd-split-form__tbl {
    display:flex;
    justify-content:center;
}

    .gd-split-form__tbl td {
        padding: 0.5rem;
        vertical-align: middle;
    }


.gd-split-form__btn-box {
    display: flex;
    justify-content: center;
    padding-top: 3.5rem;
    padding-bottom: 3rem;
}



.gd-split-form__file-box {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.gd-split-form__file {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 14rem;
}

.gd-split-form__file-img {
    width: 5.3rem;
    height: 5.3rem;
    background-size: 5.3rem;
    background-repeat: no-repeat;
    background-image: url(../img-redesign/splitter-icons.svg?v=2#file);
}

.gd-split-form__file-name {
    width: 100%;
    padding-top: 1rem;
    padding-bottom:0.5rem;
    font-weight: 500;
    color: #222222;
    position: relative;
    box-sizing: border-box;
    max-width: 14rem;
    overflow: hidden;
    text-align: center;
}

.gd-split-form__file-name > span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
}


.gd-split-form__file-size {
    color: #808797;
    font-size: 0.875rem;
    text-align: center;
}


.gd-split-form__footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #111111;
    font-size: 0.875rem;
    gap: 1.5rem;
}






/* pages mode */

.gd-split {
    width: 100%;
    background-color: #fff;
    border-radius: 2px;
    padding: 3rem 2rem;
    margin: 0 auto;
    margin-bottom: 1rem;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.04), 0px 2px 6px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.gd-split__header {
    color: var(--text-header-color);
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 1.6rem;
    text-align: center;
    margin-bottom: 2rem;
}

.gd-split__subheader {
    color: var(--breadcrumbs-color);
   
    font-size: 0.875rem;
    line-height: 1.4rem;
    text-align: center;
    margin-bottom: 3rem;
}

.gd-split__pages {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
     
    gap: 2rem;
   
}

.gd-split__pages--divide {
  
}

.gd-split__page {
    width: 6.5rem;
    height: 9rem;
    background-color: #f5f5f5;
    cursor: pointer;
    /* border: 1px solid #cccccc26;*/
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    user-select: none;
}

    .gd-split__page:hover .gd-split__remove {
        opacity:0.6;
    }

.gd-split__remove {
    position: absolute;
    right: 0.4rem;
    bottom: 0.4rem;
    font-size: 1.2rem;
    line-height: 0.9rem;
    color: #e13535;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-content: center;
    width: 1rem;
    height: 1rem;
    transition: all 0.2s linear;
}

.gd-split__page--removed {
    background-color: rgba(225, 53, 53, 0.13);
}

.gd-split__page--removed .gd-split__num {
    display:none;
}

.gd-split__page--removed .gd-split__removed-icon {
    display:block;
}

.gd-split__page--removed .gd-split__remove {
    color: #ffffff;
    background-color: #e13535;
    opacity:0.6 !important;
}

.gd-split__remove:hover {
    opacity:1 !important;
}

.gd-split__removed-icon {
    display: none;
    width: 2rem;
    height: 2rem;
    background-image: url(../img-redesign/splitter-icons.svg#removed);
    background-repeat: no-repeat;
    background-size: 2rem;
}

.gd-split__num {
    font-size: 1.5rem;
    font-weight: 500;
    color: #959595;
}

.gd-split__page > i {
    display: none;
    background-image: url(../img-redesign/splitter-icons.svg#check);
    width: 1.5rem;
    height: 1.5rem;
    background-repeat: no-repeat;
    background-size: 1.5rem;
    position: absolute;
    bottom: 0.7rem;
    left: 50%;
    transform: translate(-50%, 0);
}

.gd-split__page--selected {
    background-color: #E7EEFC;
}

.gd-split__page--selected > .gd-split__num {
    color: #558FFF;
}

.gd-split__page--selected > i {
    display: block;
}



.gd-split__divider {
    width: 1.75rem;
    height: 1.75rem;
    background-image: url(../img-redesign/splitter-icons.svg#divider);
    background-size: 0.8rem;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    border: 1px solid #EBEBEB;
    position: relative;
    cursor: pointer;
    margin-left: -1rem;
    margin-right: -1rem;
}

.gd-split__divider:hover {
    border-color: #558fff66;
}

.gd-split__divider--selected {
    background-image: url(../img-redesign/splitter-icons.svg#divider_selected);
    background-color: var(--control-color);
    border-color: var(--control-color);
    transition: all 0.2s linear;
}
.gd-split__divider--selected::before, .gd-split__divider--selected::after {
    content: "";
    border-left: 1px dashed var(--control-color);
    height: 3.6rem;
    width: 1px;
    position: absolute;
    left: 0.8rem;
    bottom: 1.75rem;
    opacity: 0.5;
    cursor: default;
       
}

.gd-split__divider--selected::after {
       
    top: 1.75rem;
      
}


/* small pages for many mode */
.gd-split__pages--many .gd-split__page {
    width: 5rem;
    height: 6.5rem;
}
.gd-split__pages--many .gd-split__divider--selected::before, .gd-split__pages--many .gd-split__divider--selected::after {
    height: 2.2rem;
}

.gd-split__status {
    display: flex;
    gap: 1rem;
    justify-content: center;
    font-size: 0.75rem;
    line-height: 1rem;
    max-width: 80%;
    margin: 0 auto;
}
.gd-split__range-label {
    overflow-wrap: anywhere;
}

.gd-split__range {
    color: #ababab;
}

.gd-split__msg {
    color: #e13535;
}

.gd-split__all {
    color: var(--link-color);
    border-bottom: 1px dotted #96b7f7;
    padding-bottom: 2px;
    cursor: pointer;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    vertical-align: bottom;
    user-select: none;
}


.gd-split-actions {
    display: flex;
    justify-content: center;
    padding: 2rem;
    padding-top:1rem;
}

.gd-split-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1.2rem;
    height: 2.5rem;
    color: #fff;
    background: var(--control-color);
    border-radius: 6px;
    font-weight: 500;
    font-size: .875rem;
    outline: none;
    border: none;
    cursor: pointer;
    letter-spacing: .3px;
}
    .gd-split-btn:hover {
        background: var(--link-color-hover);
    }

    .gd-split-btn[disabled] {
        opacity: 0.5;
        cursor: not-allowed;
    }

        .gd-split-btn[disabled]:hover {
            background: var(--control-color);
        }
        .gd-split__footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color-active);
    font-size: .875rem;
}

a.gd-split__repeat-link {
    background-image: url(../img-redesign/splitter-icons.svg#reload);
    padding-left: 1.7rem;
    background-size: 1.2rem;
    background-repeat: no-repeat;
    line-height: 1.2rem;
    color: var(--text-color-active);
}

    a.gd-split__repeat-link:hover {
        color: var(--text-color-active);
    }


/* result */

.gd-result {
    width: 100%;
    max-width: 46rem;
    background-color: #fff;
    border-radius: 2px;
    padding: 4rem 2rem;
    margin: 0 auto;
    margin-bottom: 4rem;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.04), 0px 2px 6px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);
}


.gd-result__header {
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.6rem;
    text-align: center;
    margin-bottom: 3rem;
}


.gd-result__btn-box {
    display: flex;
    justify-content: center;
}

.gd-result__btn {
    color: #fff;
    background: #0DC268;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1.2rem;
    height: 2.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    outline: none;
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
}


.gd-result__btn:hover {
    color: #fff;
    background: #0baf5d;
}


.gd-result__footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color-active);
    font-size: 0.875rem;
    gap: 1.5rem;
}

.gd-result__footer-links > a {
    color: var(--text-color-active);
}

.gd-result__link {
    padding-left: 1.7rem;
    background-size: 1.2rem;
    background-repeat: no-repeat;
    line-height: 1.2rem;
}

.gd-result__link--repeat {
    background-image: url(../img-redesign/splitter-icons.svg#reload);
}

.gd-result__link--cloud {
    background-image: url(../img-redesign/splitter-icons.svg#cloud);
}


.gd-email__header {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.6rem;
    text-align: center;
    margin-bottom: 1.5rem
}

.gd-email-form {
    display: flex;
    justify-content: center;
}

.gd-email-form__email {
    all: unset;
    border-bottom-left-radius: 0.3rem;
    border-top-left-radius: 0.3rem;
    border: 1px solid var(--border-color);
    border-right: none;
    height: 2.75rem;
    width: 20rem;
    box-sizing: border-box;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    background-color: #fff;
}

.gd-email-form__btn {
    all: unset;
    cursor: pointer;
    background-color: var(--control-color);
    color: #fff;
    background-image: url(../img-redesign/splitter-icons.svg#mail);
    background-size: 1.6rem;
    background-repeat: no-repeat;
    background-position: center center;
    width: 2.75rem;
    height: 2.75rem;
    border-bottom-right-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
}

.gd-email-form__btn[disabled]{
    opacity: 0.5;
    cursor: wait;
}


@media (max-width: 750px) {
    .gd-split__pages {
        gap: 1rem;
    }

    .gd-split__page {
        width: 5rem;
        height: 6.5rem;
    }

    .gd-split__remove {
        opacity:0.5 !important;
    }

    .gd-split__all {
        display: block;
        width: fit-content;
        margin: 0 auto;
    }

    .gd-split__divider {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .gd-split__divider--selected::before, .gd-split__divider--selected::after {
        height: 2.2rem;
    }

    .gd-result__footer-links {
        flex-direction: column;
    }

    .gd-split-form {
        padding: 3rem 1.5rem;
    }
}
