.error-message {
    margin-top: 5px;
    margin-left: 5px;
    color: #ff0000;
    height: 0;
    overflow: hidden;
    transition:  height 0.5s;
}
.form-group.has-error .error-message{
    height: 25px;
}

.status-modal-header {
    background: #e84756 !important;
    text-align: center;
    padding: 40px;
    display: block;
}
#success-modal .status-modal-header{
    background: #3dce19 !important;
}
.status-message-icon {
    font-size: 100px;
    color: #fff;
    width: 90px;
    height: 90px;
    text-align: center;
    margin: 0 auto;
    border: 2px solid;
    line-height: 72px;
    border-radius: 50%;
}
#success-modal .status-message-icon{
    font-size: 55px;
    line-height: 90px;
}
.status-message-content {
    text-align: center;
    padding: 40px 30px;
    color: #000;
    font-size: 22px;
}
#error-modal .status-message-content{
    color: #ff0000;
}
.status-message-btn{
    width: 200px;
    text-align: center;
    display: block;
    margin: 0 auto;
    background: #111;
    margin-bottom: 20px;
    color: #fff;
    font-size: 22px;
}
.scroll-to-top{
    display: none !important;
}

tr td:nth-child(2){
    max-width: 250px;
    overflow-x: hidden;
    text-overflow: ellipsis;
}

.device-info-container {
    font-size: 20px;
    color: #222;
    width: fit-content;
    margin-left: auto;
    margin-bottom: 20px;
    background: #eaf3f1;
    padding: 20px;
}
.device-info-label{
    display: inline-block;
}
.device-info-value{
    display: inline-block;
    margin-left:10px;
}

#playlist-table{

}

.playlist-modal-title {
    background: #1453c5;
    color: #fff;
    font-size: 22px;
    padding: 10px 20px;
}
.playlist-modal .modal-content{
    overflow: hidden;
}
.playlist-modal .modal-body {

}
.playlist-modal-btn{
    width: 120px;
    font-size: 17px;
    background: #4182f9;
    color: #fff !important;
}
.playlist-modal-btn:hover{
    background: #4641f9;

}

.playlist-modal label{
    margin-bottom:2px !important;
}
.playlist-modal .form-group{
    margin-bottom:10px !important;
}
.protect-note {
    margin-left: 15px;
    color: #055a20;
    font-size: 14px;
    font-weight: bold;
}
#device-page-loading-overlay{
    position: fixed;
    left:0;
    top:0;
    width:100%;
    height: 100%;
    background: #11111126;
    display: none;
    z-index: 2000;
}
#device-page-loading-overlay img {
    width: 100px;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
#delete-confirm-title {
    text-align: center;
    padding: 10px;
    font-size: 18px;
    color: #063a96;
    font-weight: bold;
}
.hide{
    display: none;
}
#error-message{
    display: none;
}
#success-message{
    display: none;
}
.submit-btn{
    width: 100%;
    border-radius: 10px;
    font-size: 25px;
    background: #3679d9;
    color: #fff;
    transition: background-color 0.2s;
}
.submit-btn:hover{
    background: #558bd9;
    color: #fff;
}
.checkout-page-section-label{
    font-size: 25px;
    color: #111;
    font-weight: bold;
    margin-bottom: 10px;
}
.note-for-playlist{
    /*background: #e81e1e;*/
    color: #e81e1e;
    /*padding: 10px 20px;*/
    font-size: 20px;
}
#price-text {
    margin-top:20px;
    font-size: 17px;
    color: #333;
    font-weight: bold;
}
.hide{
    display: none;
}
#device-playlist-page .nav-link{
    font-size: 17px;
}

#device-playlist-page .nav-link.active{
    color: #fff !important;
    background: #0088cc !important;
    border-left-color: transparent;
}

.mb-10{
    margin-bottom: 10px;
}
.p-10{
    padding: 10px;
}
.p-20{
    padding: 20px;
}
.footer-menus {
    margin-top: 20px
}
.footer-menu {
    display: inline-block;
    color: #fff;
    margin: 0 20px;
    font-size: 18px;
}
.footer-menu a{
    color: #bbb !important;
    transition: all 0.3s;
}
.footer-menu a:hover{
    color:#fff !important;
    text-decoration: underline !important;
}

.payment-option-title{
    margin-top: 40px;
    font-size: 25px;
    margin-bottom: 10px;
    color: #565454;
}
.one-row-item-container {
    position: relative;
}
.one-row-item-container button{
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
}
#code-activation-btn{
    background: #18a31c;
    color: #fff;
}
#coupon-code-error {
    margin-top: 3px;
    font-weight: normal;
    color: #f30808;
    display: none;
}

.faqquestion {
    font-size: 20px;
    margin-bottom: 15px;
    color: red;
    font-weight: bold;
}
.faqanswer {
    font-size: 15px;
    margin-bottom: 15px;
    font-weight: bold;
}
.payment-item-container {
    margin-top: 20px;
    max-width: 750px;
}
.payment-item-container .custom-button {
    display: block;
}

/* ==============================================
   RESPONSIVE / MOBILE FIXES
   ============================================== */

/* --- Global: ensure images never overflow --- */
img {
    max-width: 100%;
    height: auto;
}

/* --- Tables: horizontal scroll wrapper on mobile --- */
@media (max-width: 767px) {
    /* Make any table parent scrollable */
    .table-responsive,
    #playlist-table,
    .cp-panel-body,
    .channel-list-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .table-responsive > .table,
    #playlist-table .table,
    .cp-panel-body .cp-table {
        min-width: 500px;
    }

    /* device_template.ejs: table needs scroll wrapper */
    .single-services .table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* device-info-container: was fit-content + margin-left:auto, breaks on mobile */
    .device-info-container {
        width: 100% !important;
        margin-left: 0 !important;
        font-size: 16px;
        padding: 15px;
    }

    /* Status modal: reduce padding/font on mobile */
    .status-modal-header {
        padding: 25px;
    }
    .status-message-icon {
        font-size: 60px;
        width: 70px;
        height: 70px;
        line-height: 60px;
    }
    .status-message-content {
        padding: 25px 15px;
        font-size: 17px;
    }
    .status-message-btn {
        font-size: 17px;
        width: 160px;
    }

    /* Footer menus: stack on mobile */
    .footer-menus {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .footer-menu {
        margin: 0;
        font-size: 15px;
    }

    /* Checkout / purchase pages */
    .checkout-page-section-label {
        font-size: 20px;
    }
    .submit-btn {
        font-size: 20px;
    }
    .payment-option-title {
        font-size: 20px;
    }
    .order-detail-container {
        margin-top: 20px;
    }

    /* Playlist modal */
    .playlist-modal-title {
        font-size: 18px;
        padding: 8px 15px;
    }
    .playlist-modal-btn {
        width: 100px;
        font-size: 15px;
    }

    /* Section hero banners (contact_us, faq, news pages) */
    .section-concept {
        min-height: auto !important;
        padding: 80px 15px 60px !important;
    }
    .section-concept h2 {
        font-size: 26px !important;
    }
    .section-concept .font-weight-light {
        font-size: 14px;
    }
    .section-angled-layer-bottom {
        padding: 4rem 0 !important;
    }

    /* Page heading (reseller, purchase) */
    .page-heading {
        padding: 80px 15px 40px !important;
    }
    .page-heading h1 {
        font-size: 24px !important;
    }

    /* Pricing cards */
    .pricing-item {
        margin-bottom: 20px;
    }
    .price-wrapper {
        font-size: 36px;
    }

    /* Sidebar navigation (device_template) */
    .single-services .col-md-4 ul {
        margin-bottom: 20px;
    }

    /* EPG page */
    #epg-page-container {
        padding: 80px 10px 40px !important;
    }
    .country-list-container {
        gap: 6px;
    }
    .country-list-item {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* FAQ accordion */
    .faqquestion {
        font-size: 16px;
    }

    /* Contact form section */
    .contact-form .form-control {
        font-size: 14px;
    }

    /* Note for playlist */
    .note-for-playlist {
        font-size: 16px;
    }

    /* Protect note */
    .protect-note {
        margin-left: 0;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    /* Very small screens */
    .device-info-container {
        font-size: 14px;
        padding: 10px;
    }
    .checkout-page-section-label {
        font-size: 18px;
    }
    .submit-btn {
        font-size: 18px;
    }
    .footer p {
        font-size: 12px;
    }
    .section-concept h2 {
        font-size: 22px !important;
    }
    .page-heading h1 {
        font-size: 20px !important;
    }
    .status-message-content {
        font-size: 15px;
        padding: 20px 10px;
    }
}
