/* Shared dashboard refresh: banner first, compact horizontal navigation second. */
.dashboard .layout__main {
    display: block;
    background: #fff;
}

.dashboard .dashboard__inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
}

.dashboard__sidebar,
.dashboard .sidebar-toggler {
    display: none !important;
}

.dash-header {
    position: relative;
    inset: auto;
    width: 100%;
    z-index: 20;
    overflow: hidden;
    background-color: #0756ca;
    background-image:
        linear-gradient(100deg, rgba(3, 60, 156, .98), rgba(1, 135, 255, .88)),
        url(/assets/img/header_bg.png);
    background-position: center, right center;
    background-repeat: no-repeat;
    background-size: cover, auto 170%;
    box-shadow: 0 10px 28px rgba(20, 89, 170, .16);
}

.dash-header__container {
    display: flex;
    align-items: center;
    width: min(100%, 1440px);
    min-height: 112px;
    margin: 0 auto;
    padding: 18px clamp(18px, 4vw, 58px);
    gap: 28px;
}

.dash-header__brand {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    margin-right: auto;
    color: #fff;
    text-decoration: none;
}

.dash-header__brand-logo {
    display: block;
    width: 158px;
    height: 67px;
    flex: 0 0 auto;
    object-fit: contain;
}

.dash-header__brand-copy {
    display: block;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, .28);
}

.dash-header__text {
    color: #fff;
    font-size: clamp(2rem, 2.8vw, 3.25rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: .04em;
    text-shadow: none;
}

.dash-header__text-sub {
    margin-top: 8px;
    padding-left: 0;
    color: rgba(255, 255, 255, .76);
    font-size: 1.15rem;
    line-height: 1.2;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.dash-header__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.dashboard .header-account {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 4px 7px 4px 12px;
    border: 1px solid #c9d7e8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(4, 50, 123, .15);
}

.dashboard .user-payment {
    margin: 0;
    padding: 0;
    gap: 12px;
    border: 0 !important;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.dashboard .user-payment__info {
    display: flex;
    align-items: baseline;
    gap: 4px;
    max-width: none;
    white-space: nowrap;
}

.dashboard .user-payment__info span {
    display: inline;
    margin: 0;
    color: #202b3b;
    font-size: 1.4rem;
    line-height: 1;
}

.dashboard .user-payment__currency {
    margin-left: 1px;
    color: #202b3b;
}

.dashboard .user-payment__input {
    color: #123568;
    width: 5.1rem;
    padding: 0;
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1;
}

.dashboard .user-payment .btn {
    min-height: 32px;
    padding: 0 13px;
    border: 0;
    border-radius: 6px;
    background: #2eaa6d;
    box-shadow: none;
    font-size: 1.35rem;
    font-weight: 500;
}

.dashboard .user-payment .btn:hover {
    background: #218d58;
}

.dashboard .header-account .user-dropdown {
    display: flex;
    align-items: center;
    min-height: 31px;
    margin: 0 0 0 10px;
    padding: 0 4px 0 10px;
    border-left: 1px solid #e1e7ef;
    color: #8793a3;
}

.dashboard .header-account .user-dropdown:after {
    display: none;
}

.dashboard .user-dropdown__img {
    width: 29px;
    height: 29px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #87c9ff, #2b79c9);
    box-shadow: none;
}

.dashboard .user-dropdown__img i {
    font-size: 1.45rem !important;
}

.dashboard .header-account .user-dropdown__trigger {
    position: relative;
    top: auto;
    right: auto;
    width: 8px;
    height: 6px;
    margin-left: 8px;
    flex: 0 0 8px;
}

.dashboard .header-account .user-dropdown__inner {
    top: calc(100% + 9px);
    right: 0;
    z-index: 100 !important;
}

.dashboard__topnav {
    position: relative;
    z-index: 15;
    width: 100%;
    border-bottom: 1px solid #e8f0fb;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 5px 16px rgba(34, 83, 143, .08);
}

.dashboard__topnav-mobilebar,
.dashboard__topnav-backdrop {
    display: none;
}

.dashboard__topnav-inner {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
    width: min(100%, 1440px);
    min-height: 65px;
    margin: 0 auto;
    padding: 8px clamp(14px, 4vw, 58px);
    overflow: visible;
    scrollbar-width: none;
}

.dashboard__topnav-inner::-webkit-scrollbar {
    display: none;
}

.topnav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 43px;
    padding: 0 13px;
    border: 0;
    border-radius: 10px;
    color: #5d708f;
    background: transparent;
    font: inherit;
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.topnav__link::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: -7px;
    left: 12px;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: #0187ff;
    transform: scaleX(0);
    transform-origin: center;
    transition: width .2s ease, transform .2s ease;
}

.topnav__link.is-active::after,
.topnav__dropdown.is-active > .topnav__link::after {
    width: auto;
    transform: scaleX(1);
}

.topnav__link i:first-child {
    color: #5793d7;
    font-size: 1.35rem;
    transition: color .2s ease;
}

.topnav__link:hover,
.topnav__link.is-active,
.topnav__dropdown.is-active > .topnav__link {
    color: #075fcb;
    background: #edf6ff;
}

.topnav__link:hover i:first-child,
.topnav__link.is-active i:first-child,
.topnav__dropdown.is-active > .topnav__link i:first-child {
    color: #0187ff;
}

.topnav__dropdown {
    position: relative;
    flex: 0 0 auto;
}

/* Invisible hover bridge between the trigger and its dropdown menu. */
.topnav__dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    height: 10px;
}

.topnav__dropdown-trigger {
    cursor: pointer;
}

.topnav__chevron {
    margin-left: 1px;
    color: #8ca0bd !important;
    font-size: .95rem !important;
}

.topnav__dropdown-menu {
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    display: none;
    min-width: 205px;
    padding: 8px;
    border: 1px solid #e4eefb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 35px rgba(20, 74, 135, .16);
}

.topnav__dropdown--right .topnav__dropdown-menu {
    right: 0;
    left: auto;
}

.topnav__dropdown:hover > .topnav__dropdown-menu,
.topnav__dropdown.is-open > .topnav__dropdown-menu {
    display: block;
}

.topnav__dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border-radius: 9px;
    color: #506682;
    font-size: 1.4rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.topnav__dropdown-menu a:hover {
    color: #075fcb;
    background: #f0f7ff;
}

.topnav__dropdown-menu a i {
    width: 16px;
    color: #3c91e5;
    text-align: center;
}

.dashboard__main {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px clamp(16px, 4vw, 58px) 78px;
    background:
        radial-gradient(circle at 96% 100%, rgba(1, 135, 255, .10), transparent 32rem),
        #fff;
}

.dashboard__main > * {
    position: relative;
    z-index: 1;
}

.dashboard .layout__footer {
    position: relative;
    z-index: 2;
}

@media (max-width: 1180px) {
    .topnav__link {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 1.25rem;
    }

    .dash-header__brand-copy {
        display: none;
    }

    .dashboard__topnav-inner {
        flex-wrap: wrap;
    }
}

@media (max-width: 700px) {
    .dash-header__container {
        min-height: 78px;
        gap: 10px;
        padding: 10px 14px;
    }

    .dash-header__brand-logo {
        width: 116px;
        height: 47px;
    }

    .dash-header__actions {
        gap: 8px;
    }

    .dashboard .user-payment {
        padding: 5px;
        background: transparent;
        box-shadow: none;
    }

    .dashboard .user-payment__info {
        display: none;
    }

    .dashboard .header-account {
        min-height: 38px;
        padding: 3px 5px;
    }

    .dashboard .header-account .user-dropdown {
        margin-left: 7px;
        padding-left: 7px;
    }

    .dashboard .user-payment .btn {
        min-height: 37px;
        padding: 0 10px;
        font-size: 1.1rem;
    }

    .dashboard .user-payment .btn span span:last-child {
        display: none;
    }

    .dashboard .user-dropdown__img {
        width: 42px;
        height: 42px;
    }

    .dashboard__topnav-inner {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 6px;
        width: min(320px, 86vw);
        height: 100vh;
        min-height: 100vh;
        margin: 0;
        padding: 84px 16px 24px;
        overflow-x: hidden;
        overflow-y: auto;
        background: #fff;
        box-shadow: 14px 0 35px rgba(12, 61, 119, .18);
        transform: translateX(-105%);
        transition: transform .28s ease;
    }

    .dashboard__topnav.is-mobile-open .dashboard__topnav-inner {
        transform: translateX(0);
    }

    .dashboard__topnav-mobilebar {
        position: relative;
        z-index: 20;
        display: flex;
        align-items: center;
        min-height: 57px;
        padding: 7px 12px;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        min-height: 40px;
        padding: 0 14px;
        border: 1px solid #dfeaf6;
        border-radius: 10px;
        background: #f5f9ff;
        color: #1b4c80;
        font: inherit;
        font-size: 1.3rem;
        font-weight: 700;
    }

    .mobile-menu-toggle__bars {
        display: inline-flex;
        flex-direction: column;
        gap: 4px;
        width: 18px;
    }

    .mobile-menu-toggle__bars i {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 2px;
        background: #087fe5;
    }

    .dashboard__topnav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 999;
        display: block;
        background: rgba(11, 42, 78, .4);
        opacity: 0;
        pointer-events: none;
        transition: opacity .28s ease;
    }

    .dashboard__topnav.is-mobile-open .dashboard__topnav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .dashboard__topnav .topnav__link {
        justify-content: flex-start;
        width: 100%;
        min-height: 46px;
        flex: 0 0 auto;
        padding: 0 14px;
    }

    .dashboard__topnav .topnav__link::after {
        top: 10px;
        right: auto;
        bottom: 10px;
        left: 0;
        width: 3px;
        height: auto;
        transform: scaleY(0);
    }

    .dashboard__topnav .topnav__link.is-active::after,
    .dashboard__topnav .topnav__dropdown.is-active > .topnav__link::after {
        width: 3px;
        transform: scaleY(1);
    }

    .dashboard__topnav .topnav__dropdown {
        width: 100%;
        flex: 0 0 auto;
    }

    .dashboard__topnav .topnav__dropdown::after {
        display: none;
    }

    .dashboard__topnav .topnav__dropdown-trigger {
        justify-content: flex-start;
    }

    .dashboard__topnav .topnav__chevron {
        margin-left: auto;
    }

    .dashboard__topnav .topnav__dropdown-menu,
    .dashboard__topnav .topnav__dropdown--right .topnav__dropdown-menu {
        position: static;
        display: none;
        min-width: 0;
        width: 100%;
        margin: 0;
        padding: 3px 0 5px 12px;
        border: 0;
        border-radius: 0;
        background: #f5f9ff;
        box-shadow: none;
    }

    .dashboard__topnav .topnav__dropdown:hover > .topnav__dropdown-menu {
        display: none;
    }

    .dashboard__topnav .topnav__dropdown.is-open > .topnav__dropdown-menu {
        display: block;
    }

    .dashboard__topnav .topnav__dropdown-menu a {
        min-height: 40px;
    }

    body.mobile-nav-open {
        overflow: hidden;
    }

    .dashboard__main {
        padding: 26px 12px 56px;
    }
}

/* Best Price service selector: responsive service cards. */
.rent-bestprice-page .rent-bestprice-widget #serviceList {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    gap: 12px;
    padding: 12px !important;
}

.rent-bestprice-widget #serviceList > .best_service_item_title {
    display: none !important;
}

.rent-bestprice-widget #serviceList > .best_service_item {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: 11px;
    min-width: 0;
    min-height: 142px;
    padding: 12px;
    border: 1px solid #d7e5f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(40, 78, 117, .08);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.rent-bestprice-widget #serviceList > .best_service_item:nth-child(odd),
.rent-bestprice-widget #serviceList > .best_service_item:hover {
    background: #fff;
}

.rent-bestprice-widget #serviceList > .best_service_item:hover {
    border-color: #78b5df;
    box-shadow: 0 8px 18px rgba(40, 121, 187, .15);
    transform: translateY(-1px);
}

.rent-bestprice-widget #serviceList > .best_service_item > div.name {
    grid-column: 1 / -1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    width: auto;
    min-width: 0;
    min-height: 38px;
    padding: 0 !important;
    border: 0;
    text-align: left !important;
}

.rent-bestprice-widget #serviceList > .best_service_item > div.name img {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    object-fit: contain;
}

.rent-bestprice-widget #serviceList > .best_service_item .service__name {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    color: #173c69;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    text-overflow: ellipsis;
}

.rent-bestprice-widget #serviceList > .best_service_item > div.period {
    display: flex;
    grid-row: 2;
    align-items: stretch;
    justify-content: stretch;
    width: auto;
    min-width: 0;
    min-height: 0;
    padding: 0 !important;
    border: 0;
    background: transparent;
}

.rent-bestprice-widget #serviceList > .best_service_item > .best_10days {
    grid-column: 1;
}

.rent-bestprice-widget #serviceList > .best_service_item > .best_30days {
    grid-column: 2;
}

.rent-bestprice-widget #serviceList > .best_service_item > .best_60days {
    grid-column: 3;
}

.rent-bestprice-widget #serviceList > .best_service_item .btn_buy {
    display: flex;
    width: 100%;
    min-height: 30px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #4d9be0 0%, #277fc8 100%);
    box-shadow: 0 3px 7px rgba(39, 127, 200, .18);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.15;
    white-space: normal;
}

.rent-bestprice-widget #serviceList > .best_service_item .btn_buy .lbl_days {
    display: block;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.1;
}

.rent-bestprice-widget #serviceList > .best_service_item .btn_buy:hover {
    background: linear-gradient(180deg, #368cd6 0%, #126db6 100%);
    box-shadow: 0 5px 10px rgba(39, 127, 200, .28);
}

@media (max-width: 1100px) {
    .rent-bestprice-page .rent-bestprice-widget #serviceList {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .rent-bestprice-page .rent-bestprice-widget #serviceList {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 10px !important;
    }

    .rent-bestprice-widget #serviceList > .best_service_item {
        min-height: 136px;
        padding: 11px;
    }
}

/* Payment page redesign. Keep the existing payment IDs and JS hooks intact. */
.payment-page__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px !important;
    color: #174878;
    font-size: 1.45rem !important;
    font-weight: 800;
    line-height: 1.3;
}

.payment-page {
    display: grid !important;
    grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr);
    gap: 18px;
    align-items: start;
}

.payment-page > .dashboard-box,
.payment-page > .payment-history {
    width: auto !important;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid #d9e5ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(40, 78, 117, .10);
}

.payment-page .dashboard-box__inner {
    padding: 20px;
}

.payment-page .h4-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 15px;
    color: #173e69;
    font-size: 1.45rem !important;
    font-weight: 800;
    line-height: 1.35;
}

.payment-page .dashboard-box__inner > .h4-title:nth-of-type(2) {
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid #e3edf5;
}

.payment-page .payment-list-flex {
    margin: 0;
}

.payment-page .banktab {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    padding: 4px;
    overflow: visible;
    border: 1px solid #dbe7f1;
    border-radius: 10px;
    background: #f5f9fc;
}

.payment-page .banktab .tablinks {
    flex: 1 1 auto;
    width: auto;
    min-height: 36px;
    padding: 7px 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #58718b;
    font-size: 1.45rem;
    font-weight: 700;
}

.payment-page .banktab .tablinks:hover,
.payment-page .banktab .tablinks.active {
    background: #eef6fc;
    color: #000;
}

.payment-page .tabcontent {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.payment-page .tabcontent[style*="display: flex"] {
    display: flex;
}

.payment-page .list__method {
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    padding: 3px 0 1px;
}

.payment-page .method_sl__item {
    display: flex;
    flex: 1 1 145px;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    height: 78px;
    margin: 0;
    border: 1px solid #d7e4ef;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(40, 78, 117, .08);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.payment-page .method_sl__item:hover {
    border-color: #6ab2e9;
    box-shadow: 0 7px 16px rgba(27, 125, 211, .16);
    cursor: pointer;
    transform: translateY(-1px);
}

.payment-page .method_sl__item_active {
    border-color: #1686e5 !important;
    box-shadow: inset 0 0 0 1px #1686e5, 0 5px 14px rgba(27, 125, 211, .14);
}

.payment-page .method__item {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.payment-page .method__item img {
    display: block;
    max-width: 100%;
    max-height: 52px;
    object-fit: contain;
}

.payment-page .method__item span {
    color: #ca6e13;
    font-size: 1rem;
    font-weight: 700;
}

.payment-page .dashboard-box__inner > p {
    margin: -3px 0 12px !important;
    color: #2375b6 !important;
    font-size: 1.15rem;
}

.payment-page .summ-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.payment-page .summ-list__item,
.payment-page .summ-handler {
    min-width: 0;
    min-height: 48px;
    margin: 0;
    border: 1px solid #d4e2ee;
    border-radius: 10px;
    background: #f7fbfe;
    box-shadow: none;
    color: #173e69;
    font-size: 1.45rem;
    font-weight: 700;
}

.payment-page .summ-list__item {
    flex: 1 1 82px;
}

.payment-page .summ-list__item:hover,
.payment-page .summ-handler:focus-within {
    border-color: #1686e5;
    background: #eef8ff;
}

.payment-page .summ-handler {
    flex: 1.5 1 145px;
}

.payment-page .summ-handler input {
    width: 100%;
    padding: 0 10px;
    color: #173e69;
    font-size: 1.25rem;
}

.payment-page .summ-handler input::placeholder {
    color: #8094a8;
    opacity: 1;
}

.payment-page .summ-list .radio-hidden:checked ~ .radio-visible {
    border: 2px solid #1686e5;
    background: rgba(22, 134, 229, .06);
    opacity: 1;
    transform: none;
}

.payment-page .alert-error {
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.payment-page .crypto-message,
.payment-page .vietqr-message,
.payment-page .okpay-message,
.payment-page .infipay-message {
    margin-top: 12px !important;
    padding: 9px 11px;
    border: 1px solid #f5d3d0;
    border-radius: 8px;
    background: #fff7f6;
    font-size: 1.1rem;
    line-height: 1.4;
}

.payment-page .pay_btn,
.payment-page .btn {
    font-size: 1.65rem !important;
}

.payment-page .pay_btn {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    margin-top: 16px !important;
    border-radius: 9px;
    box-shadow: 0 6px 14px rgba(22, 134, 229, .22);
}

.payment-page .payment-btn__text {
    margin-top: 9px !important;
    color: #71859c;
    font-size: 1.05rem;
    line-height: 1.45;
    text-align: center;
}

.payment-page .payment-history {
    padding: 20px;
}

.payment-page .payment-history > .h4-title {
    padding-bottom: 12px;
    border-bottom: 1px solid #e3edf5;
}

.payment-page .payment-widget__body {
    min-width: 0;
}

.payment-page .table-responsive {
    overflow-x: auto;
    border: 1px solid #d9e5ef;
    border-radius: 10px;
}

.payment-page #history-table {
    width: 100%;
    min-width: 620px;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    color: #294760;
    font-size: 1.45rem !important;
    table-layout: fixed;
}

.payment-page #history-table th,
.payment-page #history-table td {
    padding: 10px 9px;
    border: 0;
    border-bottom: 1px solid #e5edf4;
    font-size: 1.45rem !important;
    line-height: 1.35;
    vertical-align: middle;
    word-break: break-word;
}

.payment-page #history-table th {
    background: #eef6fc;
    color: #41617e;
    font-weight: 800;
    white-space: nowrap;
}

.payment-page #history-table tbody tr:nth-child(even) td {
    background: #fbfdff;
}

.payment-page #history-table tbody tr:last-child td {
    border-bottom: 0;
}

.payment-page #history-table td:nth-child(3) {
    color: #126bc0;
    font-weight: 700;
}

.payment-page #history-table a {
    color: #126bc0;
    text-decoration: none;
}

.payment-page #history-table a:hover {
    text-decoration: underline;
}

.payment-page .pagination {
    display: flex;
    width: auto;
    padding: 0;
    list-style: none;
    justify-content: center;
    gap: 5px;
    margin: 14px 0 0;
}

.payment-page .pagination li,
.payment-page .pagination li.active,
.payment-page .pagination li.disabled {
    display: block;
    width: auto !important;
    height: auto !important;
    min-width: 0;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-size: inherit;
}

.payment-page .pagination li a {
    display: inline-flex;
    min-width: 30px;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border: 1px solid #d5e3ef;
    border-radius: 7px;
    background: #fff;
    color: #39719c;
    font-size: 1.15rem;
}

.payment-page .pagination li.active a {
    border-color: #1686e5;
    background: #1686e5;
    color: #fff;
}

@media (max-width: 900px) {
    .payment-page {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 700px) {
    .payment-page__title {
        margin-bottom: 12px !important;
    }

    .payment-page .dashboard-box__inner,
    .payment-page .payment-history {
        padding: 15px;
    }

    .payment-page .list__method {
        gap: 8px;
    }

    .payment-page .method_sl__item {
        flex-basis: calc(50% - 4px);
        height: 70px;
    }

    .payment-page .table-responsive {
        overflow: visible;
        border: 0;
        border-radius: 0;
    }

    .payment-page #history-table {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
        table-layout: auto;
    }

    .payment-page #history-table thead {
        display: none;
    }

    .payment-page #history-table tbody {
        display: block;
    }

    .payment-page #history-table tbody tr {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "method status"
            "date amount"
            "code code";
        gap: 8px 12px;
        margin: 0 0 10px;
        padding: 12px;
        border: 1px solid #d9e5ef;
        border-radius: 11px;
        background: #fff;
        box-shadow: 0 4px 12px rgba(40, 78, 117, .08);
    }

    .payment-page #history-table tbody tr:nth-child(even) td,
    .payment-page #history-table tbody tr:last-child td {
        background: transparent !important;
        border-bottom: 0 !important;
    }

    .payment-page #history-table tbody td {
        display: flex !important;
        align-items: center;
        width: auto !important;
        min-width: 0;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        color: #40566c;
        font-size: 1.45rem !important;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .payment-page #history-table tbody td::before {
        flex: 0 0 auto;
        margin-right: 7px;
        color: #8192a3;
        font-size: 1.05rem;
        font-weight: 700;
    }

    .payment-page #history-table tbody td:nth-child(1) {
        grid-area: date;
    }

    .payment-page #history-table tbody td:nth-child(1)::before {
        content: "Date";
    }

    .payment-page #history-table tbody td:nth-child(2) {
        grid-area: method;
        color: #173c69;
        font-weight: 800;
    }

    .payment-page #history-table tbody td:nth-child(2)::before {
        content: "Method";
    }

    .payment-page #history-table tbody td:nth-child(3) {
        grid-area: code;
        padding: 8px 9px !important;
        border: 1px solid #d8e8f5 !important;
        border-radius: 7px;
        background: #f5faff !important;
        color: #126bc0;
        font-weight: 700;
    }

    .payment-page #history-table tbody td:nth-child(3)::before {
        content: "Order Code";
    }

    .payment-page #history-table tbody td:nth-child(4) {
        grid-area: amount;
        justify-content: flex-end;
        color: #173c69;
        font-weight: 800;
    }

    .payment-page #history-table tbody td:nth-child(4)::before {
        content: "Amount";
    }

    .payment-page #history-table tbody td:nth-child(5) {
        grid-area: status;
        justify-content: flex-end;
        color: #168052;
        font-weight: 800;
        text-align: right;
    }

    .payment-page #history-table tbody td:nth-child(5)::before {
        content: "Status";
    }

    .payment-page #history-table tbody td a {
        min-width: 0;
        overflow-wrap: anywhere;
    }
}

/* Crypto checkout page. */
.crypto-page__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px !important;
    color: #174878;
    font-size: 1.45rem !important;
    font-weight: 800;
    line-height: 1.3;
}

.crypto-page {
    display: block !important;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.crypto-page > .dashboard-box {
    width: 100% !important;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid #d9e5ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(40, 78, 117, .12);
}

.crypto-page .dashboard-box__inner {
    padding: 0 0 24px;
}

.crypto-page .crypto__currency {
    min-height: 68px;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    border-radius: 15px 15px 0 0;
    background: linear-gradient(135deg, #0874d1 0%, #18a0ed 100%);
    box-shadow: 0 6px 16px rgba(8, 116, 209, .18);
}

.crypto-page .crypto__currency .left,
.crypto-page .crypto__currency .right {
    gap: 8px;
}

.crypto-page .crypto__currency img {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 3px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: #fff;
}

.crypto-page .crypto__currency .left span {
    margin-left: 0;
    color: #fff;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: .01em;
}

.crypto-page .crypto__currency .right {
    flex: 0 0 auto;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    background: rgba(0, 44, 99, .18);
}

.crypto-page .crypto__currency .right span {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
}

.crypto-page .crypto__currency .right .loader {
    width: 21px;
    height: 21px;
}

.crypto-page .amount-pay {
    margin: 24px 24px 14px;
    padding: 17px 20px;
    border: 1px solid #d9e8f4;
    border-radius: 12px;
    background: linear-gradient(135deg, #f7fbff 0%, #edf7ff 100%);
}

.crypto-page .amount-pay > span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #4b6680;
    font-size: 1.25rem;
    font-weight: 700;
}

.crypto-page .amount-pay .amount {
    padding: 0;
    border: 0;
    background: transparent;
    color: #0874d1;
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.1;
}

.crypto-page .address {
    display: grid;
    grid-template-columns: minmax(190px, .72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: 20px;
    margin: 0 24px;
    padding: 18px;
    border: 1px solid #d9e8f4;
    border-radius: 12px;
    background: #fbfdff;
}

.crypto-page .address .qrcode {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    width: 100%;
    min-height: 194px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 12px;
    border: 1px solid #d7e6f2;
    border-radius: 10px;
    background: #fff;
}

.crypto-page .address .qrcode canvas,
.crypto-page .address .qrcode img {
    display: block;
    width: min(100%, 170px);
    height: auto;
    aspect-ratio: 1;
    image-rendering: pixelated;
}

.crypto-page .address .address-text {
    grid-column: 2;
    grid-row: 1;
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.crypto-page .crypto-address-label {
    display: flex;
    align-items: baseline;
    gap: 6px;
    width: 100%;
    color: #58718b;
    line-height: 1.25;
    margin-left: 10px;
}

.crypto-page .crypto-address-label span {
    color: #456480;
    font-size: 1.2rem;
    font-weight: 800;
}

.crypto-page .crypto-address-label small {
    color: #7890a7;
    font-size: 1rem;
    font-weight: 600;
}

.crypto-page .address-text .tooltip {
    width: 100%;
    transform: none;
}

.crypto-page .address-text .tooltip::before {
    display: none;
    content: none;
}

.crypto-page .address .address-text .tooltip input {
    display: block;
    width: 100%;
    min-height: 50px;
    box-sizing: border-box;
    padding: 10px 13px;
    overflow: hidden;
    border: 1px solid #bfd9eb;
    border-radius: 9px;
    background: #f3faff;
    color: #244866;
    cursor: copy;
    font-size: 1.55rem;
    font-weight: 600;
    outline: none;
    text-align: center;
    text-overflow: ellipsis;
}

.crypto-page .address .address-text .tooltip input:focus {
    border-color: #1686e5;
    box-shadow: 0 0 0 3px rgba(22, 134, 229, .12);
}

.crypto-page .tooltip .tooltiptext {
    bottom: calc(100% + 8px);
    left: 50%;
    width: max-content;
    max-width: 180px;
    margin-left: 0;
    padding: 6px 9px;
    transform: translateX(-50%);
    border-radius: 6px;
    font-size: 1rem;
}

.crypto-page .note {
    display: grid;
    gap: 7px;
    margin: 18px 24px 0;
    padding: 13px 15px;
    border: 1px solid #e0eaf2;
    border-radius: 10px;
    background: #f8fbfe;
}

.crypto-page .note div {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 0;
    color: #58718b;
    font-size: 1.3rem;
    line-height: 1.45;
}

.crypto-page .note div i {
    flex: 0 0 auto;
    margin-top: 3px;
    color: #1686e5;
}

.crypto-page .note div.danger {
    padding: 8px 9px;
    border-radius: 7px;
    background: #fff4f3;
    color: #b44d4a;
}

.crypto-page .note div.danger i {
    color: #d45d58;
}

@media (max-width: 600px) {
    .crypto-page__title {
        margin-bottom: 12px !important;
    }

    .crypto-page .crypto__currency {
        min-height: 62px;
        padding: 10px 12px;
    }

    .crypto-page .crypto__currency img {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .crypto-page .crypto__currency .left span {
        font-size: 1.25rem;
    }

    .crypto-page .crypto__currency .right {
        gap: 5px;
        padding: 4px 7px;
    }

    .crypto-page .crypto__currency .right span {
        font-size: 1.1rem;
    }

    .crypto-page .crypto__currency .right .loader {
        width: 17px;
        height: 17px;
    }

    .crypto-page .amount-pay {
        margin: 16px 12px 12px;
        padding: 14px 10px;
    }

    .crypto-page .amount-pay > span {
        flex-direction: column;
        gap: 5px;
        font-size: 1.15rem;
    }

    .crypto-page .amount-pay .amount {
        font-size: 2rem;
    }

    .crypto-page .address {
        grid-template-columns: 1fr;
        gap: 14px;
        margin: 0 12px;
        padding: 12px;
    }

    .crypto-page .address .qrcode {
        grid-column: 1;
        grid-row: 1;
        min-height: 0;
    }

    .crypto-page .address .address-text {
        grid-column: 1;
        grid-row: 2;
    }

    .crypto-page .address .qrcode canvas,
    .crypto-page .address .qrcode img {
        width: min(100%, 180px);
    }

    .crypto-page .note {
        margin: 14px 12px 0;
        padding: 11px 12px;
    }

    .crypto-page .note div {
        font-size: 1.05rem;
    }
}

/* Receive SMS page */
.receive-page {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
}

.receive-page .receive-widget {
    overflow: visible;
    border: 1px solid #e3eef9;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(38, 99, 166, .1);
}

.dashboard__main .receive-page .receive-widget {
    padding-left: 0 !important;
}

.receive-page .receive-widget .widget__helper {
    display: none;
}

.receive-page .receive-widget .widget__container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
}

.receive-page .receive-widget .widget__column_service,
.receive-page .receive-widget .widget__column_country {
    width: auto;
    max-width: none;
    padding: 10px 25px;
    background: #fff;
}

.receive-page .receive-widget .widget__column_service {
    border-right: 1px solid #e7eff8;
}

.receive-page .receive-widget .widget__column_history {
    width: auto;
    max-width: none;
    grid-column: 1 / -1;
    padding: 25px;
    border-top: 1px solid #e7eff8;
    background: #fbfdff;
}

.receive-page .receive-widget .widget__column-top {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 43px;
    margin-bottom: 5px;
}

.receive-page .receive-widget .widget__column-top .widget__title {
    flex: 1 1 auto;
    min-width: 170px;
    margin-right: 0;
    padding-left: 0;
    color: #183b6c;
    font-size: 1.7rem;
    line-height: 1.3;
}

.receive-page .receive-widget .widget__search {
    display: flex;
    align-items: center;
    position: relative;
    flex: 0 0 245px;
    width: 245px;
    height: 38px;
    max-width: 245px;
    padding: 2px 3px 2px 0;
    border: 1px solid #cfd5dd;
    border-radius: 999px;
    background: #fff;
}

.receive-page .receive-widget .search__field {
    width: 100%;
    height: 34px;
    padding: 0 52px 0 19px;
    border: 0 !important;
    border-bottom: 0 !important;
    border-radius: 999px;
    background: transparent;
    color: #45515f;
    font-size: 1.45rem;
    font-style: normal;
    line-height: 34px;
    outline: none;
}

.receive-page .receive-widget .search__field::placeholder {
    color: #7d8188;
    opacity: 1;
}

.receive-page .receive-widget .search .btn_search {
    top: 50%;
    right: 3px;
    left: auto;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0 !important;
    border-radius: 50%;
    background: #087fe5;
    color: #fff;
    font-size: 1.45rem;
}

.receive-page .receive-widget .search .btn_search .svg-icon {
    width: 19px;
    height: 19px;
    filter: brightness(0) invert(1);
}

.receive-page .receive-widget .search__field:focus {
    box-shadow: none;
}

.receive-page .receive-widget .widget__column_country .widget__column-top.row_with_multiple_buy {
    justify-content: space-between;
}

.receive-page .receive-widget .row_with_multiple_buy__left {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 14px;
    width: 100%;
}

.receive-page .receive-widget .row_with_multiple_buy__left .widget__title {
    flex: 1 1 auto;
}

.receive-page .receive-widget .dashBoard-box,
.receive-page .receive-widget .dashBoard-box-second {
    display: block !important;
    height: 360px;
    max-height: 360px;
    padding: 11px;
    overflow-x: hidden;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    border: 1px solid #e6f0fa;
    border-radius: 15px;
    background: #f7fbff;
}

.receive-page .receive-widget .dashBoard-box-second:empty {
    display: block;
}

.receive-page .receive-widget .overflow-block-boxes__inner {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px;
    width: 100%;
    height: auto;
    min-height: min-content;
    max-height: none !important;
    overflow: visible !important;
    padding: 0;
}

.receive-page .receive-widget .dashBoard-box-second::-webkit-scrollbar,
.receive-page .receive-widget .dashBoard-box::-webkit-scrollbar {
    width: 8px;
}

.receive-page .receive-widget .dashBoard-box-second::-webkit-scrollbar-thumb,
.receive-page .receive-widget .dashBoard-box::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #a8d2f6;
}

.receive-page .receive-widget .service__item,
.receive-page .receive-widget .country__item {
    display: block;
    min-width: 0 !important;
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: transparent;
}

/* The country cards are injected by JS with .flex__grid_1. Keep them
   stretched to the full width of their grid column. */
.receive-page .receive-widget .country__item.flex__grid_1 {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
}

.receive-page .receive-widget .service__item-inner,
.receive-page .receive-widget .country__item-inner {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: auto;
    min-height: 60px;
    padding: 11px 12px !important;
    border: 1px solid #e5eef8;
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.receive-page .receive-widget .service__item:hover .service__item-inner,
.receive-page .receive-widget .country__item:hover .country__item-inner,
.receive-page .receive-widget .service__item.active .service__item-inner,
.receive-page .receive-widget .country__item.active .country__item-inner,
.receive-page .receive-widget .service__item input:checked + .service__item-inner {
    border-color: #70b8ff;
    box-shadow: 0 6px 16px rgba(1, 135, 255, .11);
    transform: translateY(-1px);
}

.receive-page .receive-widget .service__item.active .service__item-inner,
.receive-page .receive-widget .service__item input:checked + .service__item-inner,
.receive-page .receive-widget .country__item.active .country__item-inner {
    background: #f0f8ff;
}

.receive-page .receive-widget .service-duo,
.receive-page .receive-widget .country-duo {
    min-width: 0;
    margin-right: 0;
    gap: 10px;
}

.receive-page .receive-widget .service-duo {
    width: 100%;
}

.receive-page .receive-widget .service-duo .icon,
.receive-page .receive-widget .country-duo img {
    flex: 0 0 auto;
    width: 35px;
    height: 35px;
    margin: 0;
    object-fit: contain;
    border: 1px solid #e4eef8;
    border-radius: 10px;
    background: #fff;
}

.receive-page .receive-widget .service__name,
.receive-page .receive-widget .country__name {
    min-width: 0;
    max-width: none;
    color: #365676;
    font-size: 1.45rem;
    font-weight: 600;
}

.receive-page .receive-widget .service-label {
    z-index: 2;
    cursor: pointer;
}

.receive-page .receive-widget .country__item .service__item-inner {
    flex-wrap: wrap;
    gap: 10px;
}

.receive-page .receive-widget .country__item .country-duo {
    flex: 1 1 auto;
}

.receive-page .receive-widget .country__item .btn {
    position: relative;
    z-index: 3;
    width: 100%;
    min-height: 34px;
    margin-left: 0 !important;
    border-radius: 8px;
    font-size: 1.4rem;
}

/* The full-card label selects a country, but must stay below the Buy link. */
.receive-page .receive-widget .country__item .service-label {
    z-index: 1;
}

.receive-page .receive-widget .title-line_history {
    margin-bottom: 15px;
}

.receive-page .receive-widget .title-line_history .title {
    margin: 0;
    color: #183b6c;
    font-size: 1.8rem;
}

.receive-page .receive-widget #history-board .table-responsive {
    overflow-x: auto;
    border: 1px solid #e5eef8;
    border-radius: 12px;
    background: #fff;
}

.receive-page .receive-widget #history-table {
    min-width: 680px;
    margin: 0;
}

.receive-page .receive-widget #history-table thead th {
    padding: 13px 12px;
    border: 0;
    background: #f1f7fe;
    color: #6d85a4;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.receive-page .receive-widget #history-table tbody td {
    padding: 13px 12px;
    border-color: #eef3f8;
    color: #526b88;
    font-size: 1.45rem;
}

.receive-page .receive-widget .pagination {
    margin: 16px 0 0;
}

@media (max-width: 900px) {
    .receive-page .receive-widget .widget__container {
        grid-template-columns: 1fr !important;
    }

    .receive-page .receive-widget .widget__column_service {
        border-right: 0;
        border-bottom: 1px solid #e7eff8;
    }

    .receive-page .receive-widget .widget__column_history {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .receive-page .receive-widget .widget__column_service,
    .receive-page .receive-widget .widget__column_country,
    .receive-page .receive-widget .widget__column_history {
        padding: 18px 13px;
    }

    .receive-page .receive-widget .widget__column-top {
        align-items: stretch;
        flex-wrap: wrap;
        gap: 10px;
    }

    .receive-page .receive-widget .widget__column-top .widget__title {
        flex-basis: 100%;
    }

    .receive-page .receive-widget .widget__search {
        flex: 1 1 auto;
        width: auto;
        max-width: none;
    }

    .receive-page .receive-widget .row_with_multiple_buy__left {
        align-items: stretch;
        flex-wrap: wrap;
        gap: 10px;
    }

    .receive-page .receive-widget .row_with_multiple_buy__left .widget__title {
        flex: 0 0 100%;
    }

    .receive-page .receive-widget .overflow-block-boxes__inner {
        grid-template-columns: 1fr !important;
    }
}

/* Best Price 3: service picker, rent controls and rental history. */
.rent-best3-page {
    width: 100%;
}

.rent-best3-widget {
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.rent-best3-widget .widget__helper {
    display: none;
}

.rent-best3-widget .widget__container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.rent-best3-widget .widget__column_service,
.rent-best3-widget .widget__column_country,
.rent-best3-widget .widget__column_history {
    min-width: 0;
    max-width: none !important;
    padding: 17px;
    border: 1px solid #d7e2ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(40, 78, 117, .10);
}

.rent-best3-widget .widget__column_country {
    background:
        radial-gradient(circle at 100% 0, rgba(1, 135, 255, .12), transparent 18rem),
        #fff;
}

.rent-best3-widget .widget__column_service,
.rent-best3-widget .widget__column_country {
    flex: none !important;
}

.rent-best3-widget .widget__column_service {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rent-best3-widget .widget__column_service .widget__column-body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

.rent-best3-widget .widget__column-top {
    display: flex !important;
    align-items: center;
    gap: 13px;
    min-height: 43px;
    flex-wrap: nowrap;
    margin-bottom: 5px;
    padding: 0 0 13px;
}

.rent-best3-widget .widget__column_service .widget__column-top .widget__title {
    flex: 1 1 auto;
    min-width: 150px;
}

.rent-best3-widget .widget__column-top .widget__title {
    margin: 0;
    padding: 0;
    color: #15191e;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1.25;
    text-transform: uppercase;
}

.rent-best3-widget .widget__search {
    display: flex;
    align-items: center;
    position: relative;
    flex: 0 0 245px;
    width: 245px;
    height: 38px;
    max-width: 245px;
    padding: 2px 3px 2px 0;
    border: 1px solid #cfd5dd;
    border-radius: 999px;
    background: #fff;
}

.rent-best3-widget .widget__search .search__field {
    width: 100%;
    height: 34px;
    padding: 0 52px 0 19px;
    border: 0 !important;
    border-bottom: 0 !important;
    border-radius: 999px;
    background: transparent;
    color: #45515f;
    font-size: 1.35rem;
    font-style: normal;
    line-height: 34px;
    outline: none;
}

.rent-best3-widget .widget__search .btn_search {
    position: absolute;
    top: 50%;
    right: 3px;
    left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0 !important;
    border-radius: 50%;
    background: #087fe5;
    color: #fff;
    font-size: 1.45rem;
    transform: translateY(-50%);
}

.rent-best3-widget .widget__search .btn_search .svg-icon {
    width: 19px;
    height: 19px;
    filter: brightness(0) invert(1);
}

.rent-best3-widget .widget__search .search__field:focus {
    box-shadow: none;
}

.rent-best3-widget #serviceList {
    height: auto;
    max-height: 450px;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0 !important;
    padding: 0 3px 0 0 !important;
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
    border-radius: 0 !important;
    background: transparent;
}

.rent-best3-widget #serviceList .overflow-block-boxes__inner {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-height: none;
    padding: 0;
    overflow: visible;
}

.rent-best3-widget #serviceList .service__item {
    display: block;
    width: auto;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 54px;
    padding: 0;
    border: 1px solid #cbd7e3;
    border-radius: 9px;
    background: linear-gradient(140deg, #fafdff, #edf5fc);
    box-shadow: none;
    overflow: hidden;
}

.rent-best3-widget #serviceList .service__item:hover {
    border-color: #8dbce4;
    background: #f3faff;
}

.rent-best3-widget #serviceList .service__item.active {
    border: 2px solid #2d8bd9;
    background: #edf7ff;
}

.rent-best3-widget #serviceList .service__item-inner {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 54px;
    padding: 6px 9px;
    border: 0;
}

.rent-best3-widget #serviceList .service-label {
    z-index: 2;
}

.rent-best3-widget #serviceList .service-duo {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.rent-best3-widget #serviceList .service-duo > img {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    margin: 0;
    object-fit: contain;
}

.rent-best3-widget #serviceList .service__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.1;
}

.rent-best3-widget #serviceList .service__name {
    display: -webkit-box;
    overflow: hidden;
    color: #172b40;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    text-overflow: ellipsis;
    white-space: normal;
}

.rent-best3-widget #serviceList .service__copy small {
    margin-top: 3px;
    color: #3d4e60;
    font-size: 1.2rem;
    white-space: nowrap;
}

.rent-best3-widget .widget__column-body,
.rent-best3-widget .dashBoard-box {
    min-width: 0;
}

.rent-best3-widget .widget__column_country .dashBoard-box {
    max-height: none;
    padding: 0;
    overflow: visible;
    background: transparent;
}

.rent3-controls {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(155px, .9fr);
    gap: 14px;
    align-items: start;
}

.rent3-field-label {
    margin-bottom: 5px;
    color: #20252b;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.2;
}

.rent-best3-widget .country-durationtab {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 5px 0 0;
}

.rent-best3-widget .country-durationtab .active{
    color: #3e89d7;
}


.rent-best3-widget .country-tabitem {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    min-height: 34px;
    margin: 0 !important;
    padding: 9px 9px;
    border: 1px solid #d4dce5;
    border-top: 0;
    border-radius: 0;
    background: #fff;
    color: #222c35;
    font-size: 1.45rem;
    text-align: left;
}

.rent-best3-widget .country-tabitem:first-child {
    border-top: 1px solid #d4dce5;
    border-radius: 8px 8px 0 0;
}

.rent-best3-widget .country-tabitem:last-child {
    border-radius: 0 0 8px 8px;
}

.rent-best3-widget .country-tabitem img {
    width: 25px;
    height: 18px;
    margin: 0;
    object-fit: cover;
}

.rent-best3-widget .country-tabitem.active {
    position: relative;
    z-index: 1;
    border-color: #9cc9e9;
    background: #eaf5ff;
    box-shadow: inset 3px 0 0 #2b8bd4;
}

.rent-best3-widget .country-tabitem.disable {
    opacity: .48;
}

.rent-best3-widget .rent3-days-tab {
    display: flex !important;
    gap: 3px;
    width: 100%;
    padding: 5px 0 0;
}

.rent-best3-widget .days-item {
    flex: 1 1 0;
    min-height: 34px;
    margin: 0 !important;
    padding: 0 5px;
    border: 1px solid #cbd6e0;
    border-radius: 7px;
    background: #fff;
    color: #26313c;
    font-size: 1.45rem;
    white-space: nowrap;
}

.rent-best3-widget .days-item.active {
    background: #dceeff;
    color: #164e7d;
    font-weight: 700;
    border: 2px solid #9cc9e9;
}

.rent3-summary {
    margin-top: 14px;
}

.rent-best3-widget .rentTimeBlock {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin: 0;
}

.rent-best3-widget .rentCountButton {
    width: 100%;
    margin: 0 0 10px;
    text-align: center;
}

.rent-best3-widget .date-count {
    color: #161d25;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
}

.rent-best3-widget .rentTimeBlockRow {
    width: 100%;
}

.rent-best3-widget .btn-rent-service {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 36px;
    margin: 0 !important;
    border: 0;
    border-radius: 999px;
    background: #3e89d7;
    box-shadow: none;
    color: #fff;
    font-size: 1.55rem;
    font-weight: 600;
}

.rent-best3-widget .btn-rent-service:hover {
    background: #2473c0;
}

.rent-best3-widget .widget__column_history {
    grid-column: 1 / -1;
    padding: 16px 17px 18px;
}

.rent-best3-widget #history-board .title-line {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
}

.rent-best3-widget #history-board .title {
    color: #233342;
    font-size: 1.6rem;
    font-weight: 800;
}

.rent-best3-widget #history-board .table-responsive {
    overflow-x: auto;
    border: 1px solid #d6dee7;
    border-radius: 10px;
}

.rent-best3-widget #history-table {
    min-width: 760px;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.rent-best3-widget #history-table thead th {
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid #d4dce5;
    background: #f0f3f6;
    color: #26313c;
    font-size: 1.45rem;
    font-weight: 800;
    white-space: nowrap;
}

.rent-best3-widget #history-table tbody td {
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid #e2e7ec;
    color: #293846;
    font-size: 1.48rem;
    vertical-align: middle;
}

.rent-best3-widget #history-table tbody tr:nth-child(even) td {
    background: #f7fbff;
}

.rent-best3-widget #history-table tbody tr:last-child td {
    border-bottom: 0;
}

.rent-best3-widget #history-table tbody td .box-center {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rent-best3-widget #history-table tbody td .box-center img {
    width: 25px;
    height: 18px;
    object-fit: cover;
}

.rent-best3-widget .rent-history-status-cell {
    white-space: nowrap;
}

.rent-best3-widget .rent-history-status {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 1px 7px;
    border: 1px solid #b8dfc8;
    border-radius: 6px;
    background: #e2f7e9;
    color: #28734a;
    font-size: 1rem;
    font-weight: 600;
}

.rent-best3-widget .rent-history-status--pending {
    border-color: #efd096;
    background: #fff2d4;
    color: #9a6b1d;
}

.rent-best3-widget .rent-history-status--active {
    border-color: #a8cde9;
    background: #e8f4ff;
    color: #23699f;
}

.rent-best3-widget .rent-history-status--canceled {
    border-color: #efb8b8;
    background: #fff0f0;
    color: #a14545;
}

.rent-best3-widget .rent-history-status-cell .btn {
    min-height: 22px;
    margin: 3px 0 0 4px !important;
    padding: 0 7px;
    border-radius: 5px;
    font-size: .95rem;
}

.rent-best3-widget #history-table tbody td:last-child .btn {
    min-height: 26px;
    padding: 0 9px;
    border-radius: 6px;
    font-size: 1rem;
}

.rent-best3-widget .pagination {
    margin: 12px 0 0;
}

@media (max-width: 900px) {
    .rent-best3-widget .widget__container {
        grid-template-columns: 1fr;
    }

    .rent-best3-widget .widget__column_history {
        grid-column: auto;
    }

    .rent-best3-widget .widget__column_service #serviceList {
        height: 258px;
        max-height: 258px;
    }
}

@media (max-width: 620px) {
    .rent-best3-widget .widget__column_service,
    .rent-best3-widget .widget__column_country,
    .rent-best3-widget .widget__column_history {
        padding: 14px;
    }

    .rent-best3-widget #serviceList .overflow-block-boxes__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rent-best3-widget .widget__column-top {
        align-items: stretch;
        flex-wrap: wrap;
        gap: 10px;
    }

    .rent-best3-widget .widget__column_service .widget__column-top .widget__title {
        flex-basis: 100%;
    }

    .rent-best3-widget .widget__search {
        flex: 1 1 auto;
        width: auto;
        max-width: none;
    }

    .rent3-controls {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .rent-best3-widget #serviceList .overflow-block-boxes__inner {
        grid-template-columns: 1fr;
    }
}

/* Rental history becomes a readable card list on small screens. */
@media (max-width: 700px) {
    .rent-best3-widget #history-board .table-responsive {
        overflow: visible;
        border: 0;
    }

    .rent-best3-widget #history-table {
        display: block;
        width: 100% !important;
        min-width: 0;
        border-spacing: 0;
    }

    .rent-best3-widget #history-table thead {
        display: none;
    }

    .rent-best3-widget #history-table tbody {
        display: block;
    }

    .rent-best3-widget #history-table tbody tr {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "service code"
            "phone phone"
            "expires cost"
            "action action";
        gap: 7px 12px;
        margin: 0 0 10px;
        padding: 12px;
        border: 1px solid #d8e3ed;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 4px 12px rgba(40, 78, 117, .08);
    }

    .rent-best3-widget #history-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .rent-best3-widget #history-table tbody td {
        display: flex !important;
        align-items: center;
        width: auto !important;
        max-width: none !important;
        min-width: 0;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        color: #40566c;
        font-size: 1.2rem;
        line-height: 1.25;
        word-break: normal;
    }

    .rent-best3-widget #history-table tbody td::before {
        margin-right: 7px;
        color: #8192a3;
        font-size: .95rem;
        font-weight: 600;
    }

    .rent-best3-widget #history-table tbody td:nth-child(1) {
        grid-area: expires;
    }

    .rent-best3-widget #history-table tbody td:nth-child(1)::before {
        content: "Expires";
    }

    .rent-best3-widget #history-table tbody td:nth-child(2) {
        grid-area: service;
        display: block !important;
        overflow: hidden;
        color: #173c69;
        font-size: 1.4rem;
        font-weight: 800;
        overflow-wrap: anywhere;
    }

    .rent-best3-widget #history-table tbody td:nth-child(2)::before {
        content: "Service";
        display: block;
        margin: 0 0 3px;
        font-size: .95rem;
        font-weight: 600;
    }

    .rent-best3-widget #history-table tbody td:nth-child(3) {
        grid-area: phone;
        min-width: 0;
        padding-top: 2px !important;
    }

    .rent-best3-widget #history-table tbody td:nth-child(3)::before {
        content: "Phone";
    }

    .rent-best3-widget #history-table tbody td:nth-child(3) .box-center {
        min-width: 0;
    }

    .rent-best3-widget #history-table tbody td:nth-child(3) .box-center span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .rent-best3-widget #history-table tbody td:nth-child(4) {
        grid-area: cost;
        justify-content: flex-end;
        color: #172b40;
        font-weight: 700;
    }

    .rent-best3-widget #history-table tbody td:nth-child(4)::before {
        content: "Cost";
    }

    .rent-best3-widget #history-table tbody td:nth-child(5) {
        grid-area: code;
        justify-content: flex-end;
        align-items: flex-start;
        color: #075fcb;
    }

    .rent-best3-widget #history-table tbody td:nth-child(5)::before {
        content: "Code";
        display: none;
    }

    .rent-best3-widget #history-table tbody td:nth-child(5) a {
        display: inline-block;
        max-width: 130px;
        padding: 5px 8px;
        overflow: hidden;
        border: 1px solid #b8d7f1;
        border-radius: 7px;
        background: #edf7ff;
        color: #075fcb;
        font-size: 1.25rem;
        font-weight: 800;
        letter-spacing: .03em;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .rent-best3-widget #history-table tbody td:nth-child(6) {
        grid-area: action;
        justify-content: flex-start;
        padding-top: 2px !important;
    }

    .rent-best3-widget #history-table tbody td:nth-child(6) .btn {
        margin: 0 5px 0 0 !important;
    }
}

/* Receive SMS history uses the same mobile card layout. */
@media (max-width: 700px) {
    .receive-page .receive-widget #history-board .table-responsive {
        overflow: visible;
        border: 0;
    }

    .receive-page .receive-widget #history-table {
        display: block;
        width: 100% !important;
        min-width: 0;
        border-spacing: 0;
    }

    .receive-page .receive-widget #history-table thead {
        display: none;
    }

    .receive-page .receive-widget #history-table tbody {
        display: block;
    }

    .receive-page .receive-widget #history-table tbody tr {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "service code"
            "phone phone"
            "day price"
            "action action";
        gap: 7px 12px;
        margin: 0 0 10px;
        padding: 12px;
        border: 1px solid #d8e3ed;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 4px 12px rgba(40, 78, 117, .08);
    }

    .receive-page .receive-widget #history-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .receive-page .receive-widget #history-table tbody td {
        display: flex !important;
        align-items: center;
        width: auto !important;
        max-width: none !important;
        min-width: 0;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        color: #40566c;
        font-size: 1.2rem;
        line-height: 1.25;
        word-break: normal;
    }

    .receive-page .receive-widget #history-table tbody td::before {
        margin-right: 7px;
        color: #8192a3;
        font-size: .95rem;
        font-weight: 600;
    }

    .receive-page .receive-widget #history-table tbody td:nth-child(1) {
        grid-area: day;
    }

    .receive-page .receive-widget #history-table tbody td:nth-child(1)::before {
        content: "Day";
    }

    .receive-page .receive-widget #history-table tbody td:nth-child(2) {
        grid-area: service;
        display: block !important;
        overflow: hidden;
        color: #173c69;
        font-size: 1.4rem;
        font-weight: 800;
        overflow-wrap: anywhere;
    }

    .receive-page .receive-widget #history-table tbody td:nth-child(2)::before {
        content: "Service";
        display: block;
        margin: 0 0 3px;
        font-size: .95rem;
        font-weight: 600;
    }

    .receive-page .receive-widget #history-table tbody td:nth-child(3) {
        grid-area: phone;
        min-width: 0;
        padding-top: 2px !important;
    }

    .receive-page .receive-widget #history-table tbody td:nth-child(3)::before {
        content: "Phone";
    }

    .receive-page .receive-widget #history-table tbody td:nth-child(3) .box-center {
        min-width: 0;
    }

    .receive-page .receive-widget #history-table tbody td:nth-child(3) .box-center span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .receive-page .receive-widget #history-table tbody td:nth-child(4) {
        grid-area: price;
        justify-content: flex-end;
        color: #172b40;
        font-weight: 700;
    }

    .receive-page .receive-widget #history-table tbody td:nth-child(4)::before {
        content: "Price";
    }

    .receive-page .receive-widget #history-table tbody td:nth-child(5) {
        grid-area: code;
        justify-content: flex-end;
        align-items: flex-start;
        max-width: 145px !important;
        padding: 5px 8px !important;
        overflow: hidden;
        border: 1px solid #b8d7f1 !important;
        border-radius: 7px;
        background: #edf7ff !important;
        color: #075fcb;
        font-size: 1.25rem;
        font-weight: 800;
        letter-spacing: .03em;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .receive-page .receive-widget #history-table tbody td:nth-child(5)::before {
        content: "Code";
        display: none;
    }

    .receive-page .receive-widget #history-table tbody td:nth-child(5) i {
        margin-right: 4px;
    }

    .receive-page .receive-widget #history-table tbody td:nth-child(6) {
        grid-area: action;
        justify-content: flex-start;
        padding-top: 2px !important;
    }

    .receive-page .receive-widget #history-table tbody td:nth-child(6) .btn {
        min-height: 26px;
        margin: 0 5px 0 0 !important;
        padding: 0 9px;
        border-radius: 6px;
        font-size: 1rem;
    }
}

/* Best Price 1: country tabs, price comparison and rental history. */
.rent-bestprice-page {
    width: 100%;
}

.rent-bestprice-widget {
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.rent-bestprice-widget .widget__helper {
    display: none;
}

.rent-bestprice-widget .widget__container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.rent-bestprice-widget .widget__column_service,
.rent-bestprice-widget .widget__column_history {
    min-width: 0;
    max-width: none !important;
    flex: none !important;
    padding: 17px;
    border: 1px solid #d7e2ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(40, 78, 117, .10);
}

.rent-bestprice-widget .widget__column_service {
    display: flex;
    flex-direction: column;
}

.rent-bestprice-country-head,
.rent-bestprice-service-head {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 43px;
    margin-bottom: 12px;
}

.rent-bestprice-country-head {
    position: relative;
    justify-content: center;
}

.rent-bestprice-country-head .rent-bestprice-section-title {
    position: absolute;
    left: 0;
}

.rent-bestprice-country-head .durationtab {
    margin: 0 auto;
}

.rent-bestprice-service-head {
    margin-top: 6px;
    padding-top: 13px;
    border-top: 1px solid #e5edf5;
}

.rent-bestprice-section-title {
    flex: 1 1 auto;
    min-width: 0;
    color: #15191e;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
}

.rent-bestprice-widget .durationtab {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    width: auto;
    padding: 0;
}

.rent-bestprice-widget .country-tabitem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 108px;
    min-height: 36px;
    margin: 0 !important;
    padding: 10px 15px;
    border: 1px solid #cbd8e5;
    border-radius: 8px;
    background: #fff;
    color: #263847;
    font-size: 1.5rem;
    font-weight: 600;
}

.rent-bestprice-widget .country-tabitem img {
    width: 27px;
    height: 18px;
    margin: 0;
    object-fit: cover;
}

.rent-bestprice-widget .country-tabitem.active {
    border-color: #4e9ad3;
    background: #eaf5ff;
    box-shadow: inset 0 -3px 0 #2d8bd9;
    color: #075fcb;
}

.rent-bestprice-widget .widget__search {
    display: flex;
    align-items: center;
    position: relative;
    flex: 0 0 245px;
    width: 245px;
    height: 38px;
    max-width: 245px;
    padding: 2px 3px 2px 0;
    border: 1px solid #cfd5dd;
    border-radius: 999px;
    background: #fff;
}

.rent-bestprice-widget .widget__search .search__field {
    width: 100%;
    height: 34px;
    padding: 0 52px 0 19px;
    border: 0 !important;
    border-bottom: 0 !important;
    border-radius: 999px;
    background: transparent;
    color: #45515f;
    font-size: 1.35rem;
    line-height: 34px;
    outline: none;
}

.rent-bestprice-widget .widget__search .btn_search {
    position: absolute;
    top: 50%;
    right: 3px;
    left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0 !important;
    border-radius: 50%;
    background: #087fe5;
    color: #fff;
    transform: translateY(-50%);
}

.rent-bestprice-widget .widget__search .btn_search .svg-icon {
    width: 19px;
    height: 19px;
    filter: brightness(0) invert(1);
}

.rent-bestprice-widget #serviceList {
    flex: 1 1 auto;
    height: auto;
    max-height: 450px;
    min-height: 0;
    margin: 0 !important;
    padding: 0 3px 0 0 !important;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #d7e2ee;
    border-radius: 10px;
    background: #fbfdff;
}

.rent-bestprice-widget .best_service_item_title,
.rent-bestprice-widget .best_service_item {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(120px, 1fr));
    align-items: stretch;
}

.rent-bestprice-widget .best_service_item_title {
    position: sticky;
    top: 0;
    z-index: 3;
    min-height: 43px;
    background: #eef5fb;
    color: #526b88;
    font-size: 1.45rem;
    font-weight: 800;
    text-transform: uppercase;
}

.rent-bestprice-widget .best_service_item_title div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid #d7e2ee;
    text-align: center;
}

.rent-bestprice-widget .best_service_item_title .name {
    justify-content: flex-start;
    text-align: left;
}

.rent-bestprice-widget .best_service_item {
    min-height: 58px;
    border-bottom: 1px solid #e2e9f0;
    background: #fff;
}

.rent-bestprice-widget .best_service_item:nth-child(odd) {
    background: #f8fbfe;
}

.rent-bestprice-widget .best_service_item:hover {
    background: #edf7ff;
}

.rent-bestprice-widget .best_service_item > div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    padding: 8px 10px;
    border: 0;
    text-align: center;
}

.rent-bestprice-widget .best_service_item > div.name {
    justify-content: flex-start;
    gap: 9px;
    text-align: left !important;
}

.rent-bestprice-widget .best_service_item .name img {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    object-fit: contain;
}

.rent-bestprice-widget .best_service_item .service__name {
    display: -webkit-box;
    overflow: hidden;
    color: #173c69;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    text-overflow: ellipsis;
}

.rent-bestprice-widget .best_service_item .lbl_days {
    display: none;
}

.rent-bestprice-widget .best_service_item .btn_buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    margin: 0 !important;
    padding: 0 12px;
    border: 0;
    border-radius: 7px;
    background: #3e89d7;
    box-shadow: none;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 600;
    white-space: nowrap;
}

.rent-bestprice-widget .best_service_item .btn_buy:hover {
    background: #2473c0;
}

.rent-bestprice-widget .widget__column_history {
    grid-column: auto;
}

.rent-bestprice-widget #history-board .title-line {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
}

.rent-bestprice-widget #history-board .title {
    color: #233342;
    font-size: 1.6rem;
    font-weight: 800;
}

.rent-bestprice-widget #history-board .table-responsive {
    overflow-x: auto;
    border: 1px solid #d6dee7;
    border-radius: 10px;
}

.rent-bestprice-widget #history-table {
    min-width: 760px;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.rent-bestprice-widget #history-table thead th {
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid #d4dce5;
    background: #f0f3f6;
    color: #26313c;
    font-size: 1.45rem;
    font-weight: 800;
    white-space: nowrap;
}

.rent-bestprice-widget #history-table tbody td {
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid #e2e7ec;
    color: #293846;
    font-size: 1.45rem;
    vertical-align: middle;
}

.rent-bestprice-widget #history-table tbody tr:nth-child(even) td {
    background: #f7fbff;
}

.rent-bestprice-widget #history-table tbody td .box-center {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rent-bestprice-widget #history-table tbody td .box-center img {
    width: 25px;
    height: 18px;
    object-fit: cover;
}

.rent-bestprice-widget #history-table tbody td:last-child .btn {
    min-height: 26px;
    padding: 0 9px;
    border-radius: 6px;
    font-size: 1rem;
}

.rent-bestprice-widget .pagination {
    margin: 12px 0 0;
}

@media (max-width: 760px) {
    .rent-bestprice-widget .rent-bestprice-country-head,
    .rent-bestprice-widget .rent-bestprice-service-head {
        position: static;
        align-items: stretch;
        flex-wrap: wrap;
        gap: 10px;
    }

    .rent-bestprice-widget .rent-bestprice-section-title {
        position: static;
        flex-basis: 100%;
    }

    .rent-bestprice-widget .durationtab {
        width: 100%;
    }

    .rent-bestprice-widget .country-tabitem {
        flex: 1 1 0;
        min-width: 0;
    }

    .rent-bestprice-widget .widget__search {
        flex: 1 1 auto;
        width: auto;
        max-width: none;
    }

    .rent-bestprice-widget .best_service_item_title {
        display: none;
    }

    .rent-bestprice-widget .best_service_item {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        padding: 10px;
        border-bottom: 1px solid #dce6ef;
    }

    .rent-bestprice-widget .best_service_item > div.name {
        grid-column: 1 / -1;
        min-height: 38px;
        padding: 5px 2px 9px;
    }

    .rent-bestprice-widget .best_service_item > div.period {
        display: flex;
        flex-direction: column;
        gap: 5px;
        min-height: 57px;
        padding: 6px 4px;
        border: 1px solid #e1e9f0;
        border-radius: 8px;
    }

    .rent-bestprice-widget .best_service_item .lbl_days {
        display: block;
        color: #71859c;
        font-size: 1.3rem;
        font-weight: 700;
    }

    .rent-bestprice-widget .best_service_item .btn_buy {
        width: 100%;
        min-height: 30px;
        padding: 0 6px;
        font-size: 1.25rem;
    }
}

@media (max-width: 700px) {
    .rent-bestprice-widget #history-board .table-responsive {
        overflow: visible;
        border: 0;
    }

    .rent-bestprice-widget #history-table {
        display: block;
        width: 100% !important;
        min-width: 0;
        border-spacing: 0;
    }

    .rent-bestprice-widget #history-table thead {
        display: none;
    }

    .rent-bestprice-widget #history-table tbody {
        display: block;
    }

    .rent-bestprice-widget #history-table tbody tr {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "service code"
            "phone phone"
            "expires cost"
            "action action";
        gap: 7px 12px;
        margin: 0 0 10px;
        padding: 12px;
        border: 1px solid #d8e3ed;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 4px 12px rgba(40, 78, 117, .08);
    }

    .rent-bestprice-widget #history-table tbody td {
        display: flex !important;
        align-items: center;
        width: auto !important;
        max-width: none !important;
        min-width: 0;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        color: #40566c;
        font-size: 1.2rem;
        line-height: 1.25;
        word-break: normal;
    }

    .rent-bestprice-widget #history-table tbody td::before {
        margin-right: 7px;
        color: #8192a3;
        font-size: .95rem;
        font-weight: 600;
    }

    .rent-bestprice-widget #history-table tbody td:nth-child(1) { grid-area: expires; }
    .rent-bestprice-widget #history-table tbody td:nth-child(1)::before { content: "Expires"; }

    .rent-bestprice-widget #history-table tbody td:nth-child(2) {
        display: block !important;
        grid-area: service;
        overflow: hidden;
        color: #173c69;
        font-size: 1.4rem;
        font-weight: 800;
        overflow-wrap: anywhere;
    }

    .rent-bestprice-widget #history-table tbody td:nth-child(2)::before {
        content: "Service";
        display: block;
        margin: 0 0 3px;
        font-size: .95rem;
        font-weight: 600;
    }

    .rent-bestprice-widget #history-table tbody td:nth-child(3) { grid-area: phone; }
    .rent-bestprice-widget #history-table tbody td:nth-child(3)::before { content: "Phone"; }
    .rent-bestprice-widget #history-table tbody td:nth-child(3) .box-center { min-width: 0; }
    .rent-bestprice-widget #history-table tbody td:nth-child(3) .box-center span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .rent-bestprice-widget #history-table tbody td:nth-child(4) {
        grid-area: cost;
        justify-content: flex-end;
        color: #172b40;
        font-weight: 700;
    }

    .rent-bestprice-widget #history-table tbody td:nth-child(4)::before { content: "Cost"; }

    .rent-bestprice-widget #history-table tbody td:nth-child(5) {
        grid-area: code;
        justify-content: flex-end;
        align-items: flex-start;
    }

    .rent-bestprice-widget #history-table tbody td:nth-child(5) a {
        display: inline-block;
        max-width: 130px;
        padding: 5px 8px;
        overflow: hidden;
        border: 1px solid #b8d7f1;
        border-radius: 7px;
        background: #edf7ff;
        color: #075fcb;
        font-size: 1.25rem;
        font-weight: 800;
        letter-spacing: .03em;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .rent-bestprice-widget #history-table tbody td:nth-child(6) {
        grid-area: action;
        justify-content: flex-start;
    }

    .rent-bestprice-widget #history-table tbody td:nth-child(6) .btn {
        min-height: 26px;
        margin: 0 5px 0 0 !important;
        padding: 0 9px;
        border-radius: 6px;
        font-size: 1rem;
    }
}
