/* ========== Floating Sidebar - OrePeak ========== */
/* Based on baichy.com sidebar design */

.floating_ck {
    position: fixed;
    right: 15px;
    top: 30%;
    z-index: 9999;
    border-radius: 10px;
    background: #fff;
    width: 90px;
    box-shadow: 0 2px 15px 0 rgb(0 0 0 / 10%);
}

.floating_ck dl {
    position: relative;
    margin: 0;
    padding: 0;
}

.floating_ck dl dd {
    position: relative;
    width: 100%;
    height: 64px;
    cursor: pointer;
    padding: 10px;
    text-align: center;
    margin: 10px auto 0 auto;
    box-sizing: border-box;
}

.floating_ck dl dd a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.floating_ck svg {
    max-height: 100%;
    max-width: 100%;
}

.floating_ck p,
.floating_ck div {
    line-height: 1;
}

.floating_ck dl dd .label {
    font-size: 16px;
    color: #333;
    line-height: 16px;
    margin: 0;
    padding: 0;
}

/* Back to top button */
.floating_ck dl dd.lytext {
    height: 35px;
    padding: 0;
    width: 100%;
    margin-top: 36px;
}

.floating_ck dl dd.lytext img {
    max-width: 100%;
    pointer-events: none;
}

/* ===== Floating left popup (hover card) ===== */
.floating_left {
    position: absolute;
    right: 115%;
    width: 200px;
    border-radius: 8px 0 0 8px !important;
    visibility: hidden;
    opacity: 0;
    padding: 20px;
    background-color: #fff;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.5s ease;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 15px 0 rgb(0 0 0 / 10%);
    text-align: center;
}

.floating_left::after {
    content: "";
    position: absolute;
    border-left: 10px solid #fff;
    border-top: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid transparent;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
}

.floating_ck dl dd:hover .floating_left {
    visibility: visible;
    opacity: 1;
}

.floating_left img {
    max-width: 100%;
    width: 90px;
    margin: 0 auto 15px auto;
    display: block;
    -webkit-user-drag: none;
}

.floating_left b {
    font-size: 20px;
    margin-top: 10px;
    display: inline;
    color: #333;
    font-weight: 900;
}

.floating_left .email-text {
    font-size: 14px;
    color: #333;
    word-break: break-all;
}

.floating_ck img {
    max-width: 100%;
}

/* ===== Message popup modal ===== */
.orepeak-modal {
    display: none;
    overflow-x: hidden;
    overflow-y: auto;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    outline: 0;
}

.orepeak-modal.active {
    display: block;
}

.orepeak-modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #000;
    opacity: 0.5;
}

.orepeak-modal .wrapper {
    max-width: 500px;
    width: 90%;
    border-radius: 3px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 30px 40px;
    opacity: 1;
    overflow: hidden;
    z-index: 1;
}

.orepeak-modal .til_h {
    font-size: 22px;
    line-height: 32px;
    position: relative;
    margin-bottom: 20px;
    text-align: center;
}

.orepeak-modal .til_h img {
    position: absolute;
    right: 0;
    top: 5px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    pointer-events: inherit !important;
}

.orepeak-modal .contact-title {
    position: relative;
    overflow: hidden;
    margin-bottom: 5px;
}

.orepeak-modal .contact-title p {
    color: #E65100;
    text-align: center;
    line-height: 24px;
    font-size: 18px;
    font-weight: bold;
}

.orepeak-modal .contact {
    flex-wrap: wrap;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.orepeak-modal .contact .item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.orepeak-modal .contact .item label {
    font-size: 14px;
    width: 80px;
    flex-shrink: 0;
    color: #555;
}

.orepeak-modal .contact .item div {
    flex: 1;
}

.orepeak-modal .contact .item input {
    width: 100%;
    border: 1px solid #E65100;
    border-radius: 3px;
    height: 38px;
    padding: 5px 10px;
    font-size: 14px;
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
    box-sizing: border-box;
    outline: none;
}

.orepeak-modal .contact .item input:focus {
    border-color: #BF360C;
    box-shadow: 0 0 0 2px rgba(230, 81, 0, 0.15);
}

.orepeak-modal .contact textarea {
    width: 100%;
    border: 1px solid #E65100;
    border-radius: 3px;
    font-size: 14px;
    padding: 8px 10px;
    height: 80px;
    resize: vertical;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
}

.orepeak-modal .contact textarea:focus {
    border-color: #BF360C;
}

.orepeak-modal .contact input::placeholder,
.orepeak-modal .contact textarea::placeholder {
    color: #aeaeae;
}

.orepeak-modal .contact-tips {
    font-size: 12px;
    color: #bebebe;
    margin-top: 8px;
    text-align: center;
}

.orepeak-modal .contact-tips span:first-child {
    color: #E65100;
}

.orepeak-modal .contact-btn {
    display: block;
    border: 0;
    margin: 15px auto 0;
    cursor: pointer;
    color: #fff;
    background: #E65100;
    width: 120px;
    height: 40px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    padding: 5px 7px;
    border-radius: 3px;
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
    transition: background 0.3s;
}

.orepeak-modal .contact-btn:hover {
    background: #BF360C;
}

/* ===== Mobile Responsive ===== */
@media screen and (max-width: 768px) {
    .floating_ck {
        right: 8px;
        top: auto;
        bottom: 10px;
        width: 56px;
        border-radius: 28px;
    }

    .floating_ck dl dd {
        height: 42px;
        padding: 5px;
        margin: 4px auto 0;
    }

    .floating_ck dl dd .label {
        font-size: 10px;
        line-height: 10px;
    }

    .floating_ck dl dd.lytext {
        height: 28px;
        margin-top: 10px;
    }

    .floating_left {
        right: 120%;
        width: 160px;
        padding: 12px;
    }

    .floating_left img {
        width: 70px;
    }

    .floating_left b {
        font-size: 16px;
    }

    .orepeak-modal .wrapper {
        padding: 20px;
        width: 95%;
    }
}
