:root {
    --main-color: #D1008D;
    --second-color: #702283;
    --main-color-shallow: rgba(209, 0, 141, .1);
    --gray-color: #f0f4f5;
}

.collapse-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: .3s;
}
.collapsed  .collapse-icon {
    transform: translateY(-50%) rotate(-180deg);
}

 /* 你可能會喜歡 slide */
.btn-arrow {
    display: none;
    z-index: 99;
}
.scroll-box > div {
    width: 30vw;
    padding: 0 5px;
}
.scroll-box img {
    border-bottom: 0;
}
.scroll-box .card:hover {
    box-shadow: 0px 0px 8px rgb(0 0 0 / 30%);
    background: inherit;
    color: inherit;
}
@media screen and (min-width: 920px) {
    .btn-arrow {
        display: block;
        position: absolute;
        top: 50%;
        width: 36px;
        height: 36px;
        object-fit: contain;
        transform: translateY(-50%);
        cursor: pointer;
    }
    .btn-arrow.arrow-r {
        right: 0;
    }
    .btn-arrow.arrow-l {
        left: 0;
    }
    .product-md-no-border .border-bottom {
        border: 0!important;
    }
    .scroll-bar {
        margin: 0 auto;
    }
}

/* style */
.border-right {
    border-right: 1px solid #F0F4F5!important;
}

/* 分享模板 */
.template-group > div {
    border-radius: 4px;
    overflow: hidden;
    margin-right: 10px;
    cursor: pointer;
    border: 2px solid var(--gray-color);
    transition: .3s;
}
.template-group > div:nth-last-child(1) {
    margin-right: 0;
}
.template-group > div.active {
    border: 2px solid var(--main-color);
}
.template-preview {
    background-position: center center;
    background-size: cover;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    margin: 0 30px;
    background-position: center center;
    background-size: cover;
    padding-bottom: calc(100% - 60px);
    position: relative;
    overflow: hidden;
}
.template-preview > label {
    max-width: 76%;
    width: calc(100% - 72px);
    height: 0;
    padding-bottom: calc(100% - 145px);
    top: 50%;
    left: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    border: 1px dashed #888;
    margin-bottom: 0;
    display: block;
    background: url(../images/share/icon-edit.svg) top 10px right 10px/ 24px no-repeat ;
}
.template-preview textarea {
    background: transparent;
    border: none;
    width: 90%;
    padding: 0;
    text-align: center;
    resize: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: bold;
    height: 2rem;
}
.template-preview textarea:focus {
    outline: none;
}

/* 文字模板 */
.scroll-box input[type="radio"] {
    display: none;
}
.scroll-box .btn-outline-main {
    white-space: nowrap;
    color: var(--main-color);
    background-color: #fff;
    border: 1px solid var(--main-color);
    transition: .3s;
    border-radius: 50rem;
    width: auto;
    padding: 4px 8px;
    margin-right: 6px;
}
.scroll-box label:nth-child(1) {
    margin-left: 30px;
}
.scroll-box label:nth-last-child(1) {
    margin-right: 30px;
}
.scroll-box input[type="radio"]:checked ~ .btn-outline-main {
    background: var(--main-color);
    color: #fff;
}