﻿.edit-card-section {
    /*padding-left: 16px;
    padding-right: 16px;*/
    width: 100%;
    justify-content: center;
    /*transition: all .5s ease-in-out;*/
    margin-bottom: 30px;
    animation: slide-down 0.5s;
    position: relative;
    opacity: 0;
    transform: translateY(100%);
    display: flex;
}

@keyframes slide-up {
    0% {
        transform: translateY(100%); /* 初始位置：下方 100% */
        opacity: 0; /* 開始時透明度為 0 */
    }

    100% {
        transform: translateY(0); /* 結束位置：原始位置 */
        opacity: 1; /* 結束時透明度為 1 */
    }
}

.edit-card-div {
    border-radius: 12px;
    box-shadow: 0 8px 24px -8px #e1e3e5, inset 0 0 0 1px rgba(31,33,35,.04);
    overflow: hidden;
    margin-top: 25px;
    min-width: 45%;
    /*height: calc(100vh - 210px);*/
    background: #fff;
}

.edit-card-header {
    background: #7e98b2;
    padding: 18px 28px;
    transition: all .2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
    .edit-card-header span {
        font-size: 25px;
        font-weight: 600;
        color: #070a1e;
    }

    .edit-card-header i {
        font-size: 18px;
        color: #070a1e;
        cursor: pointer;
    }

.edit-close-btn {
    padding: 6px;
    background-color: #f1f3f5;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    width: 32px;
}

.edit-card-body {
    padding: 32px;
}

.edit-card-item {
    margin-bottom: 36px;
}

.edit-card-item .item-label {
    margin-bottom: 8px;
}
    .edit-card-item .item-label span {
        font-size: 18px;
        line-height: 22px;
        font-weight: 700;
    }

    .edit-card-item .item-input input, textarea {
        background: #f1f3f5;
        background-clip: border-box;
        border: none;
        border-radius: 2px;
        color: #1f2123;
        font-size: 16px;
        line-height: 24px;
        outline: none;
        padding: 12px 16px;
        resize: none;
        width: 100%;
        border-radius: 10px;
        max-width: 100% !important;
        font-size: 14px;
        -webkit-appearance: textfield;
        -moz-appearance: textfield;
        -webkit-appearance: none;
        text-align: left;
    }

    .edit-card-item .item-input textarea {
        max-width: 100%;
        height: 85px;
    }

    .edit-card-item .item-input select {
        background: #f1f3f5;
        background-clip: border-box;
        border: none;
        border-radius: 2px;
        color: #1f2123;
        font-size: 16px;
        line-height: 24px;
        outline: none;
        padding: 12px 16px;
        resize: none;
        width: 100%;
        border-radius: 10px;
        max-width: 100% !important;
        font-size: 14px;
        -webkit-appearance: textfield;
        -moz-appearance: textfield;
        -webkit-appearance: none;
        text-align: left;
    }

.edit-card-item .item-input .select2-selection {
    background: #f1f3f5 !important;
    background-clip: border-box;
    border: none;
    border-radius: 2px;
    color: #1f2123;
    font-size: 16px;
    /*line-height: 24px;*/
    outline: none;
    /*padding: 12px 16px;*/
    resize: none;
    width: 100%;
    border-radius: 10px;
    max-width: 100%;
    font-size: 14px;
}

.btn-pic-upload {
    color: #fff;
    background-color: #7788af;
    border-color: #fff;
    width: 100%;
}
    .btn-pic-upload:hover {
        background-color: #d7d7cf;
    }

.carousel-control {
    background-color: #7788af;
}

.edit-user-div {
    margin-top: 5px;
    padding: 25px;
    background-color: #f1f3f5;
    border-radius: 10px;
    max-width: 850px;
}

.edit-card-footer {
    display: flex;
    justify-content: flex-end;
    padding: 25px 25px 45px;
}

.footer-upload-btn {
    background: #91a8be;
    width: 150px;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 14px -16px rgba(31,33,35,.24);
    cursor: pointer;
    color: unset;
}
    .footer-upload-btn:hover {
        background: #c2cbf2;
    }

.footer-close-btn {
    background: #e7e3de;
    width: 150px;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 14px -16px rgba(31,33,35,.24);
    cursor: pointer;
    margin-right: 10px;
    color: unset;
}
    .footer-close-btn:hover {
        background: #a3a19f;
    }

.preview-div {
    display: flex;
    align-items: center;
    justify-content: space-around;
}
    .preview-div img {
        width: 50%;
        height: 50%;
        margin-right: 10px;
    }

.preview-item p {
    font-weight: 600;
}

.edit-preview-div {
    margin-top: 5px;
    padding: 25px;
    background-color: #f1f3f5;
    border-radius: 10px;
    max-width: 850px;
    margin-bottom: 5px;
}
    .edit-preview-div:hover {
        background-color: #c3cfd9;
    }

.preview-header {
    display: flex;
    justify-content: space-between;
}
    .preview-header span {
        font-weight: 600;
    }

@media(max-width: 768px) {
    .edit-card-section {
        padding: 0px;
    }

    .edit-card-div {
        /*min-width: 75%;*/
        width: 100%;
        margin-top: 10px;
    }

    .edit-card-header span {
        font-size: 18px;
    }

    .edit-card-item .item-label span {
        font-size: 14px;
        line-height: 18px;
    }

    .edit-card-footer {
        justify-content: space-around;
    }

    .footer-upload-btn {
        width: 100%;
    }
    .footer-close-btn {
        width: 25vh;
    }
}