.container_promo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cild_promo {
    position: fixed;
    top: 10%;
    width: 30rem;
    z-index: 22;
    box-shadow: 0 0 3px gray;
    border-radius: 5px;
    background: white;
    padding: 2rem 1rem;
    animation: fadeOut 0.5s forwards;
    display: none;
}

.cild_promo h4 {
    text-align: center;
    color: black;
}

#image_pembayaran {
    max-width: 100%;
    height: 30rem;
    margin: 1rem auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 0 5px gray;
}

#image_promo {
    width: 10rem;
    height: 10rem;
}

#cancel {
    position: absolute;
    font-size: 1.5rem;
    top: 0;
    right: 2%;
    cursor: pointer;
}

#dropdownNotif {
    max-height: 35rem;
    overflow-y: auto;
}

#cancel:hover {
    color: black;
}

@keyframes fadeOut {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.active {
    display: block;
}

.custom-text-invalid {
    font-size: 0.75rem;
}

.notif {
    position: fixed;
    z-index: 1;
    top: 2%;
    width: 20rem;
    text-align: center;
    color: black;
    font-size: 0.9rem;
    border: 1px groove gray;
}

.container-notif {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.notifMessage,
.confirmBanner {
    display: none;
    top: 15%;
    z-index: 1;
    position: fixed;
    width: 30rem;
    border: 1px solid black;
    background: white;
    padding: 10px;
    border-radius: 10px;
}

.notifMessage.active,
.confirmBanner.active {
    display: block;
}

.img-vendor {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.upload {
    width: 40rem;
    padding: 0.5rem;
    border: 1px solid gray;
}

.container_upload {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.card_upload {
    width: 9em;
    padding: 5px;
    border-radius: 10px;
    background: #f7f8fb;
    box-shadow: 0 0 5px gray;
}

.container-btn-file {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    color: #fff;
    border-style: none;
    padding: 0.4em 0.8em;
    border-radius: 10px;
    overflow: hidden;
    z-index: 1;
    box-shadow: 4px 8px 10px -3px rgba(0, 0, 0, 0.356);
    transition: all 250ms;
    margin: auto;
    font-size: 0.9rem;
}

.container-btn-file input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

#preview {
    width: 100%;
    height: 7rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    border: none;
}

.vendor-show {
    display: flex;
    gap: 2rem;
}

.vendor-show-image {
    width: 30rem;
    height: 30rem;
    object-fit: cover;
    overflow: hidden;
    border: 1px solid black;
}

.vendor-show-descripsi {
    width: 30rem;
}

.vendor-show-descripsi strong {
    color: #273544;
}

.vendor-show-image img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.vendor-show-image:hover img {
    transform: scale(1.1);
}

.vendor-show-descripsi h1 {
    color: black;
    font-weight: 600;
}

trix-toolbar [data-trix-button-group="file-tools"] {
    display: none;
}

.action {
    cursor: pointer;
    color: #4e73df;
}

.action:hover {
    color: red;
}

.descripsi_show div {
    max-height: 17rem; /* Batasi tinggi teks */
    overflow: hidden; /* Sembunyikan teks yang melebihi batas */
    transition: max-height 0.5s ease; /* Transisi halus saat mengubah tinggi */
}

.descripsi_show div.expanded {
    max-height: 1000px; /* Cukup besar untuk menampilkan seluruh teks */
}

.descripsi_show #read-more-btn {
    margin-top: 5px;
    color: rgb(37, 86, 248);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
}

.descripsi_show #read-more-btn:hover {
    color: rgb(26, 60, 175);
}

/*Profil merchant*/
.reseller_store {
    width: 100%;
    height: 25rem;
    object-fit: cover;
    position: relative;
    margin-bottom: 2rem;
}

.reseller_store .image_reseller {
    width: 100%;
    height: 100%;
}

.shadow_reseller {
    position: absolute;
    width: 100%;
    top: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.cild_reseller_store {
    position: absolute;
    bottom: 5%;
    left: 2%;
    display: flex;
    align-items: center;
    color: white;
    gap: 10px;
}

.cild_reseller_store img {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    border: 1px solid white;
}

.whatsapp {
    position: fixed;
    right: 1.5%;
    bottom: 8%;
    margin: 0;
    box-sizing: border-box;
}

.induk-whatsapp {
    width: 40px;
    height: 40px;
}

.induk-whatsapp:hover {
    transform: scale(1.1);
}

@media screen and (max-width: 900px) {
    .vendor-show {
        flex-direction: column;
        justify-content: center;
    }

    .vendor-show-image {
        width: 100%;
    }

    .vendor-show-descripsi {
        width: 30rem;
    }
}

@media screen and (max-width: 500px) {
    .cild_promo {
        width: 20rem;
    }

    .cild_promo h4 {
        font-size: 1rem;
    }

    .reseller_store {
        height: 15rem;
    }

    .cild_reseller_store img {
        width: 3rem;
        height: 3rem;
    }

    .cild_reseller_store h3 {
        font-size: 0.9rem;
    }

    .cild_reseller_store p {
        font-size: 0.8rem;
    }

    #image_pembayaran {
        height: 20rem;
    }

    .container-fluid {
        padding-left: 1% !important;
        padding-right: 1% !important;
    }

    .notifMessage {
        width: 100%;
    }

    .vendor-show-image {
        width: 20rem;
        height: 20rem;
        margin: auto;
    }

    .vendor-show-descripsi {
        width: 100%;
    }

    .vendor-show-descripsi h1 {
        font-size: 1.5rem;
    }

    .whatsapp {
        right: 4%;
        bottom: 9%;
    }
}

@media screen and (max-width: 330px) {
    .cild_promo {
        width: 15rem;
    }
}
