/**
 * @package   SCAttachments
 * @copyright Digital Peak GmbH. <https://www.digital-peak.com>
 * @license   https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
 */

 /**
 * @package   DPAttachments
 * @copyright Digital Peak GmbH. <https://www.digital-peak.com>
 * @license   https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
 */





body.site .com-scattachments-layout-attachments
{
    padding: 10px 0;
}

body.site .com-scattachments-layout-attachments .sc-button-bar {
    margin-bottom: 10px
}

body.site .com-scattachments-layout-attachments .sc-button {
    display: inline-block;
    margin: 3px 0;
    padding: 4px 10px;
    background-color: #fefefe;
    color: #212529;
    border: 1px solid silver;
    text-align: center;
    font-weight: 400;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border-radius: .1rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out
}

body.site .com-scattachments-layout-attachments .sc-button:disabled,
body.site .com-scattachments-layout-attachments .sc-button[disabled] {
    background-color: #ccc;
    color: #666
}

body.site .com-scattachments-layout-attachments .sc-icon svg {
    fill: currentcolor;
    width: 1em;
    height: 1em;
    vertical-align: -2px
}

body.site .com-scattachments-layout-attachments_empty {
    display: none
}

body.site .com-scattachments-layout-attachments__header {
    font-weight: bold
}

@supports(display: grid) {
    @media(width <=400px) {
        body.site .com-scattachments-layout-attachments__attachments {
            display: block
        }
    }

    body.site .com-scattachments-layout-attachments__attachments {
        display: grid;
        grid-gap: 10px;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))
    }
}

body.site .com-scattachments-layout-attachments__attachments {
    display: flex;
    flex-wrap: wrap
}

@media(width <=400px) {
    body.site .com-scattachments-layout-attachments__attachments .sc-attachment {
        margin: 5px 0
    }
}

body.site .com-scattachments-layout-attachments__attachments .sc-attachment {
    flex: 1 0 100%;
    padding: 10px;
    border: 1px solid #cbcbcb;
    overflow-wrap: break-word;
    word-wrap: break-word
}

.sc-attachment-modal__content {
    zoom: .6;
    width: 99.6%;
    height: 90vh;
    min-height: 500px;
    border: none
}

.sc-attachment-modal {
    z-index: 10000 !important
}

.sc-attachment-modal .tingle-modal-box__content {
    padding: 1rem
}

body.site .com-scattachments-layout-attachments__attachments {
    grid-gap: 0;
    border: 1px solid #cbcbcb;
    border-radius: 10px;
    margin-top: 15px;
}
body.site .com-scattachments-layout-attachments__attachments .sc-attachment {
    padding: 15px;
    border: none;
    border-top: 1px solid #cbcbcb;
}
body.site .com-scattachments-layout-attachments__attachments .sc-attachment:first-child {
    border-top: none;
    width: 100%;
}
body.site .com-scattachments-layout-attachments__attachments .sc-attachment .sc-attachment-inner {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
body.site .com-scattachments-layout-attachments__attachments .sc-attachment .sc-attachment-inner .extension-name {
    background: var(--primary-color);
    color: #fff;
    padding: 5px 8px;
    min-width: 40px;
    text-align: center;
    font-size: 13px;
    border-radius: 20px;
    line-height: 18px;
}
body.site .com-scattachments-layout-attachments__attachments .sc-attachment .file-upload-date {
    margin-top: 10px;
    color: #777;
}
body.site .com-scattachments-layout-attachments__attachments .sc-attachment .sc-attachment-inner .file-name {
    line-height: 18px;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.site .com-scattachments-layout-attachments__attachments .sc-attachment .sc-attachment-inner .file-size,
body.site .com-scattachments-layout-attachments__attachments .sc-attachment .sc-attachment-inner .file-download-count {
    position: relative;
}
body.site .com-scattachments-layout-attachments__attachments .sc-attachment .sc-attachment-inner .file-size::before,
body.site .com-scattachments-layout-attachments__attachments .sc-attachment .sc-attachment-inner .file-download-count::before {
    content: '';
    background: #8b8b8b;
    width: 5px;
    height: 5px;
    display: inline-block;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 10px;
}
body.site .com-scattachments-layout-attachments__attachments .sc-attachment .sc-attachment-inner  .file-download-icon {
    margin-left: auto;
}
body.site .com-scattachments-layout-attachments__attachments .sc-attachment .sc-attachment-inner .file-download-icon a {
    line-height: 18px;
    font-size: 13px;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
}
body.site .com-scattachments-layout-attachments__attachments .sc-attachment .sc-attachment-inner .file-download-icon a span.sc-icon {
    font-size: 16px;
    margin-left: 5px;
}
body.site .com-scattachments-layout-attachments__attachments .sc-attachment .sc-attachment-inner .file-download-icon a:hover {
    background: var(--dark-green-color);
}

@media (max-width:767px) {
    body.site .com-scattachments-layout-attachments__attachments .sc-attachment .sc-attachment-inner .file-name {
        max-width: 80%;
    }
    body.site .com-scattachments-layout-attachments__attachments .sc-attachment .file-upload-date {
        margin-top: 15px;
        color: #777;
    }
}
@media (min-width:768px) and (max-width:991px) {
    body.site .com-scattachments-layout-attachments__attachments .sc-attachment .sc-attachment-inner .file-name {
        max-width: 88%;
        min-width: 88%;
    }
}
@media (min-width:992px) and (max-width:1199px) {
    body.site .com-scattachments-layout-attachments__attachments .sc-attachment .sc-attachment-inner .file-name {
        max-width: 40%;
    }
}



/* Admin */


body.admin .com-scattachments-layout-attachments .sc-button-bar {
    margin-bottom: 10px
}

body.admin .com-scattachments-layout-attachments .sc-button {
    display: inline-block;
    margin: 3px 0;
    padding: 4px 10px;
    background-color: #fefefe;
    color: #212529;
    border: 1px solid silver;
    text-align: center;
    font-weight: 400;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border-radius: .1rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out
}

body.admin .com-scattachments-layout-attachments .sc-button:disabled,
body.admin .com-scattachments-layout-attachments .sc-button[disabled] {
    background-color: #ccc;
    color: #666
}

body.admin .com-scattachments-layout-attachments .sc-icon svg {
    fill: currentcolor;
    width: 1em;
    height: 1em;
    vertical-align: -2px
}

body.admin .com-scattachments-layout-attachments_empty {
    display: none
}

body.admin .com-scattachments-layout-attachments__header {
    font-weight: bold
}

@supports(display: grid) {
    @media(width <=400px) {
        body.admin .com-scattachments-layout-attachments__attachments {
            display: block
        }
    }

    body.admin .com-scattachments-layout-attachments__attachments {
        display: grid;
        grid-gap: 10px;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))
    }
}

body.admin .com-scattachments-layout-attachments__attachments {
    display: flex;
    flex-wrap: wrap
}

@media(width <=400px) {
    body.admin .com-scattachments-layout-attachments__attachments .sc-attachment {
        margin: 5px 0
    }
}

body.admin .com-scattachments-layout-attachments__attachments .sc-attachment {
    flex: 1 0 100%;
    padding: 10px;
    border: 1px solid #cbcbcb;
    overflow-wrap: break-word;
    word-wrap: break-word
}

.sc-attachment-modal__content {
    zoom: .6;
    width: 99.6%;
    height: 90vh;
    min-height: 500px;
    border: none
}

.sc-attachment-modal {
    z-index: 10000 !important
}

.sc-attachment-modal .tingle-modal-box__content {
    padding: 1rem
}

body.admin .com-scattachments-layout-attachments__attachments {
    grid-gap: 0;
    border: 1px solid #cbcbcb;
    border-radius: 10px;
    margin-top: 15px;
}
body.admin .com-scattachments-layout-attachments__attachments .sc-attachment,
body.admin .com-scattachments-layout-attachments__attachments > div > .sc-attachment {
    padding: 15px;
    border: none;
    border-top: 1px solid #cbcbcb;
    width: 100%;
}
body.admin .com-scattachments-layout-attachments__attachments > div,
body.admin .com-scattachments-layout-attachments__attachments .sc-attachment:first-child {
    border-top: none;
    width: 100%;
}
body.admin .com-scattachments-layout-attachments__attachments > div > .sc-attachment:first-child{
    border-top: 1px solid #cbcbcb;
}
body.admin .com-scattachments-layout-attachments__attachments .sc-attachment .sc-attachment-inner {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
body.admin .com-scattachments-layout-attachments__attachments .sc-attachment .sc-attachment-inner .extension-name {
    background: var(--header-item-content-bg);
    color: #fff;
    padding: 5px 8px;
    min-width: 40px;
    text-align: center;
    font-size: 13px;
    border-radius: 20px;
    line-height: 18px;
}
body.admin .com-scattachments-layout-attachments__attachments .sc-attachment .file-upload-date {
    margin-top: 10px;
    color: #777;
}
body.admin .com-scattachments-layout-attachments__attachments .sc-attachment .sc-attachment-inner .file-name {
    line-height: 18px;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.admin .com-scattachments-layout-attachments__attachments .sc-attachment .sc-attachment-inner .file-size,
body.admin .com-scattachments-layout-attachments__attachments .sc-attachment .sc-attachment-inner .file-download-count {
    position: relative;
}
body.admin .com-scattachments-layout-attachments__attachments .sc-attachment .sc-attachment-inner .file-size::before,
body.admin .com-scattachments-layout-attachments__attachments .sc-attachment .sc-attachment-inner .file-download-count::before {
    content: '';
    background: #8b8b8b;
    width: 5px;
    height: 5px;
    display: inline-block;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 10px;
}
body.admin .com-scattachments-layout-attachments__attachments .sc-attachment .sc-attachment-inner  .file-download-icon {
    margin-left: auto;
}
body.admin .com-scattachments-layout-attachments__attachments .sc-attachment .sc-attachment-inner .file-download-icon a {
    line-height: 18px;
    font-size: 13px;
    background: var(--header-item-content-bg);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
}
body.admin .com-scattachments-layout-attachments__attachments .sc-attachment .sc-attachment-inner .file-download-icon a span.sc-icon {
    font-size: 16px;
    margin-left: 5px;
}
body.admin .com-scattachments-layout-attachments__attachments .sc-attachment .sc-attachment-inner .file-download-icon a:hover {
    background: var(--header-bg);
}

@media (max-width:767px) {
    body.admin .com-scattachments-layout-attachments__attachments .sc-attachment .sc-attachment-inner .file-name {
        max-width: 80%;
    }
    body.admin .com-scattachments-layout-attachments__attachments .sc-attachment .file-upload-date {
        margin-top: 15px;
        color: #777;
    }
}
@media (min-width:768px) and (max-width:991px) {
    body.admin .com-scattachments-layout-attachments__attachments .sc-attachment .sc-attachment-inner .file-name {
        max-width: 88%;
        min-width: 88%;
    }
}
@media (min-width:992px) and (max-width:1199px) {
    body.admin .com-scattachments-layout-attachments__attachments .sc-attachment .sc-attachment-inner .file-name {
        max-width: 40%;
    }
}