﻿/*#region WebWidthSize*/
/*Extra Large Screen Size*/
@media (min-width: 1200px) {
    .hidden-lg {
        display: none !important;
    }
}
/* Large Screen Size*/
@media (max-width: 1199px) {
    .hidden-lg {
        display: none !important;
    }
}


/* Medium Screen Size*/
@media (max-width: 991px) {
    .hidden-md {
        display: none !important;
    }

    .nav-brand-margin {
        margin-left: 40px;
        position: absolute;
    }


    .navbar-main-padding {
        padding-top: 40px !important;
    }

    .navbar-user-padding {
        padding-left: 10px !important;
        padding-right: 20% !important;
    }

    .show-only-mobile {
        display: block;
    }
    .chapter-title {
        width: 44% !important;
    }

    .chapter-title.reader {
        width: 38% !important;
    }

    .chapterlist-date-reader {
        padding-right: 0px !important;
        padding-left: 0px !important;
    }

    .chapter-unlock-option.reader {
        width: 20% !important;
        text-align: right !important;
        padding-left: 0px !important;
    }

    .edit-group-component {
        max-width: 88px !important;
    }

    .navbar-subnav li {
        display: none;
    }

        .navbar-subnav li:first-child,
        .navbar-subnav li:nth-child(2),
        .navbar-subnav li:nth-child(3) {
            display: list-item;
        }

    .navbar-main-nav li {
        margin-right: 16px;
    }

    .navbar-main-nav li:last-child {
        margin-right: 0;
    }

    .fixed-top.fixed-top-subnav {
        top: 92px;
    }
}

/* Small Screen Size eg.Ipad*/
@media (max-width: 768px) {
    .hidden-sm {
        display: none !important;
    }

    .story-detail {
        position: relative;
        font-size: 20px;
        -moz-user-select: none;
        -webkit-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    .btn-tunwalai-main {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .chapter-unlock-option {
        width: auto !important;
        margin-left: auto !important;
        min-width: 140px;
        text-align-last: right;
    }

        .chapter-unlock-option.reader {
            width: 13%;
            padding-left: 0px;
            min-width: 152px !important;
        }

    .chapter-title {
        width: 56% !important;
    }

        .chapter-title.reader {
            width: 72% !important;
        }

    .chapterlist-stat{
        width: 8.5% !important;
    }

    .chapterlist-date {
        width: auto;
        margin-left: auto;
        line-height: 30px;
    }

    .chapterlist-date-reader {
        width: auto;
        margin-left: auto;
    }
}

/* Extra Small Screen Size eg.mobile*/
@media (max-width: 575px) {
    .hidden-xs {
        display: none !important;
    }

    .unlocker-state-xs {
        height: 100px !important;
    }

    .table-tunwalai {
        font-size: 16px !important;
    }

    .book-paper img {
        width: 80%;
        height: auto;
        box-shadow: 0 0 10px #888;
    }

    .popup_img {
        margin: 0 40px;
    }

    .navbar-user-padding {
        padding-left: 10px !important;
        padding-right: 10% !important;
    }

    .body-padding-top-dev {
        padding-top: 128px !important;
    }

    .add-top-dev-bar {
        top: 128px !important;
    }

    .sm-story-title {
        padding-left: 20px;
        width: 100% !important;
    }

    .story-title {
        font-size: 32px !important;
    }

    .story-stat, .story-stat-text {
        font-family: DBHelvethaicaMonX-65Med !important;
        font-size: 20px !important;
        line-height: 18px;
    }

    .small-column-auto {
        width: auto !important;
    }

    .story-stat {
        padding: 0px 12px 20px 20px;
    }

    .story-stat-content {
        padding: 0px !important;
    }

    .story-stat-border.stat-left {
        border: none !important;
        padding-left: 8px;
    }

    .story-stat-border.stat-right {
        padding-left: 8px;
    }

    .package-purchase {
        height: 170px !important;
    }
    .package-purchase-desc {
        font-size: 20px !important;
    }
    .package-purchase-content {
        padding: 0px 0px 0px 5px !important;
    }
    .package-purchase-price {
        padding-top: 0px !important;
        padding-bottom: 10px !important;
        justify-content: left !important;
    }

    .package-purchase-space {
        height: 97px !important;
        padding-left: 5px;
    }

    .package-purchase-buy {
        padding-top: 10px !important;
    }

    .puchase-option-second{
        justify-content: end;
    }

    .chapter-unlock-option {
        text-align: center !important;
        padding-bottom: 10px;
        width: 50% !important;
        padding-left: 0px !important;
        justify-content: end !important;
        min-width: unset !important;
    }

        .chapter-unlock-option.reader {
            width: 33.33333333% !important;
            min-width: unset !important;
        }

    .chapter-unlock-option-status {
        width: 33.33333333% !important;
    }
    .sm-font-16 {
        font-size: 16px !important;
    }

    .paging_listbox{
        float:left;
    }
    .chapter-header {
        position: relative !important;
        top: 0px !important;
        left: 0px !important;
    }
    .comments {
        position: relative !important;
        top: 0px !important;
    }

    .story-read-bar-text .nav-link {
        padding: 0px 8px 0px 8px !important;
    }

    .chapter-purchase-header {
        padding-left: 70px !important;
    }
    .chapter-purchase-body {
        padding: 0px 15px 28px 28px !important;
    }

    .chapterlist-number {
        width: 8.33333333% !important;
    }

    .chapterlist-stat {
        width: 16.66666667% !important;
    }
    .chapter-title {
        width: 58.33333333% !important;
    }
        .chapter-title.reader {
            width: 58.33333333% !important;
        }
    .chapterlist-date {
        width: 50% !important;
    }

    .character-list-body{
        justify-content: center !important;
    }
}
/*#endregion  PageSize*/

/*#region Fonts*/
@font-face {
    font-family: 'sukhumvitligh-th';
    src: url('../fonts/sukhumvitligh-th.eot');
    src: url('../fonts/sukhumvitligh-th.eot?#iefix') format('embedded-opentype'), url('../fonts/sukhumvitligh-th.woff') format('woff'), url('../fonts/sukhumvitligh-th.ttf') format('truetype'), url('../fonts/sukhumvitligh-th.svg#sukhumvitligh-th') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'cs_prajad';
    src: url('../fonts/prajad/CSPraJad-bold-webfont.eot');
    src: url('../fonts/prajad/CSPraJad-bold-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/prajad/CSPraJad-bold-webfont.woff2') format('woff2'), url('../fonts/prajad/CSPraJad-bold-webfont.woff') format('woff'), url('../fonts/prajad/CSPraJad-bold-webfont.ttf') format('truetype'), url('../fonts/prajad/CSPraJad-bold-webfont.svg#cs_prajadbold') format('svg');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'cs_prajad';
    src: url('../fonts/prajad/CSPraJad-boldItalic-webfont.eot');
    src: url('../fonts/prajad/CSPraJad-boldItalic-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/prajad/CSPraJad-boldItalic-webfont.woff2') format('woff2'), url('../fonts/prajad/CSPraJad-boldItalic-webfont.woff') format('woff'), url('../fonts/prajad/CSPraJad-boldItalic-webfont.ttf') format('truetype'), url('../fonts/prajad/CSPraJad-boldItalic-webfont.svg#cs_prajadbolditalic') format('svg');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'cs_prajad';
    src: url('../fonts/prajad/CSPraJad-Italic-webfont.eot');
    src: url('../fonts/prajad/CSPraJad-Italic-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/prajad/CSPraJad-Italic-webfont.woff2') format('woff2'), url('../fonts/prajad/CSPraJad-Italic-webfont.woff') format('woff'), url('../fonts/prajad/CSPraJad-Italic-webfont.ttf') format('truetype'), url('../fonts/prajad/CSPraJad-Italic-webfont.svg#cs_prajaditalic') format('svg');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'cs_prajad';
    src: url('../fonts/prajad/CSPraJad-webfont.eot');
    src: url('../fonts/prajad/CSPraJad-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/prajad/CSPraJad-webfont.woff2') format('woff2'), url('../fonts/prajad/CSPraJad-webfont.woff') format('woff'), url('../fonts/prajad/CSPraJad-webfont.ttf') format('truetype'), url('../fonts/prajad/CSPraJad-webfont.svg#cs_prajadregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'DBHelvethaicaMonX-55';
    src: url('../fonts/DBHelvethaicaMonX/DB HelvethaicaMon X Reg v3.2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'DBHelvethaicaMonX-65Med';
    src: url('../fonts/DBHelvethaicaMonX/DB HelvethaicaMon X Med v3.2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'DBHelvethaicaMonX-75Bd';
    src: url('../fonts/DBHelvethaicaMonX/DB HelvethaicaMon X Bd v3.2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MNPaethai-Med';
    src: url('../fonts/MNPaethai/MN Paethai Med v3.2.1.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MNPaethai';
    src: url('../fonts/MNPaethai/MN Paethai Reg v3.2.1.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MNPaethai-Med-T';
    src: url('../fonts/MNPaethai/MNPaethaiT.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'cs_prajad-T';
    src: url('../fonts/prajad/CSPraJad-webfontT.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'sukhumvitligh-th-T';
    src: url('../fonts/SukhumvitLightT.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TFUthongT';
    src: url('../fonts/TFUthongT.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
/*#endregion Fonts*/

/*#region Tunwalai*/
body {
    font-family: "DBHelvethaicaMonX-55";
}

a {
    text-decoration: none;
}

    a:focus {
        outline: thin dotted;
        outline: 5px auto -webkit-focus-ring-color;
        outline-offset: -2px;
    }

.type-icon {
    height: 24px;
    margin-top: -5px;
}

.btn-tunwalai-main {
    background-color: #FF5853;
    border-radius: 25px;
    color: #fff;
    font-size: 17px;
    height: 39px;
    padding-top: 8px;
    padding-left: 50px;
    padding-right: 50px;
}

    .btn-tunwalai-main:hover {
        background-color: #FF5853;
        text-decoration: underline;
    }

.btn-tunwalai-new {
    font-size: 22px;
    width: 100%;
    color: #FFF;
    border-radius: 25px;
    font-weight: bold;
    background-color: #FF5853;
    padding: 5px 30px;
}

.btn-tunwalai-red {
    font-size: 24px !important;
    font-weight: normal;
    width: 100%;
    color: #FFF;
    border-radius: 25px;
    background-color: #FF5853;
    height: 37px;
}

.btn-tunwalai-cancel {
    background-color: #FFB885;
    border-radius: 25px;
    color: #412E09;
    font-size: 17px;
    height: 39px;
    padding-top: 8px;
    padding-left: 50px;
    padding-right: 50px;
}

    .btn-tunwalai-cancel:hover {
        background-color: #FFB885;
        text-decoration: underline;
    }

.btn-tunwalai-unlock {
    border-radius: 25px;
    color: black;
    font-size: 17px;
    height: 39px;
    padding-top: 8px;
    border-color: #bb9255;
}
    .btn-tunwalai-unlock:hover {
        background-color: #bb9255;
        text-decoration: underline;
    }

.btn-tunwalai-disable {
    border-radius: 25px;
    background-color: #dedede;
    color: black;
    font-size: 17px;
    height: 39px;
    padding-top: 8px;
}

.btn-see-all {
    background-color: white;
    text-align: center;
    padding: 15px;
}

    .btn-see-all > a,
    a.btn-see-all {
        font-size: 16px;
        color: #FFF;
        background-color: #FF5853;
        padding: 5px 30px;
        border-radius: 10px;
    }

.btn-white-bg {
    width: 120px !important;
    border: 1px solid #ff5853 !important;
    border-radius: 24px !important;
    color: #ff5853 !important;
    font-weight: bolder !important;
    background-color: white !important;
}

.btn-tunwalai-cherry {
    border-radius: 19px;
    background-color: #db2638;
    color: #fff;
}

.color-grey {
    color: #888;
}

.text-primary {
    color: #d68c54 !important;
}

.text-cherry {
    color: #db2638;
}

.text-line-through::after {
    width: 100%;
    height: 1px;
    background: #888;
    position: absolute;
    content: "";
    top: 50%;
    left: 0;
    margin-top: 0.018rem;
}

.text-line-through-white-lg::after {
    width: 100%;
    height: 2px;
    background: #fff;
    position: absolute;
    content: "";
    top: 48%;
    left: 0;
}

.pull-right {
    float: right !important;
}

.tunwalai-new-pagination .pagination-container {
    text-align: center;
}

.tunwalai-new-pagination .pagination > li > a,
.tunwalai-new-pagination .pagination > li > span {
    color: #fff;
    background-color: #FFB885;
    border: none;
    margin: 5px;
}

.tunwalai-new-pagination .pagination > .active > a,
.tunwalai-new-pagination .pagination > .active > span,
.tunwalai-new-pagination .pagination > .active > a:hover,
.tunwalai-new-pagination .pagination > .active > span:hover,
.tunwalai-new-pagination .pagination > .active > a:focus,
.tunwalai-new-pagination .pagination > .active > span:focus {
    color: #ffffff;
    background-color: #FF5853;
    border: none;
}

.tunwalai-new-pagination .pagination > li > a:hover,
.tunwalai-new-pagination .pagination > li > span:hover,
.tunwalai-new-pagination .pagination > li > a:focus,
.tunwalai-new-pagination .pagination > li > span:focus {
    color: #fff;
    background-color: #FF5853;
    border: none;
}

.top-category-bar {
    background-color: #FFB885;
    width: 100%;
    height: 50px;
}

.img-pointer img:hover {
    cursor: pointer;
}

.nav-brand-margin {
    padding: 0px;
}

.nickname-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.body-padding-top-dev {
    padding-top: 96px;
}
.tun-tip {
    border: 1px solid #cccccc;
    border-radius: 15px;
    padding: 15px;
}

.tunwalai-page-white {
    background: #ffffff;
    font-size: 24px;
    padding-bottom: 50px;
    padding-top: 20px;
    min-height: 448px;
    text-align: center;
    width: 100%;
}

/*#endregion Tunwalai*/

/*#region Chapter*/
.main-list-chapter {
    /*margin-top: 40px;*/
    font-size: 16px;
}

    .main-list-chapter #title-bar {
        background-color: #FFB885;
        color: #412E09;
    }

    .main-list-chapter #tbody {
        background-color: #fff;
    }

    .main-list-chapter .content {
        color: #FF5853;
        text-align: center;
    }

.table-tunwalai {
    font-size: 18px;
}

    .table-tunwalai > thead > tr > th.color {
        background-color: #FFB885;
        color: #412E09;
    }

.package-form {
    border: 1px solid #cccccc;
    background: #f5f5f5;
    border-radius: 15px;
    padding: 15px;
}

.package-form-lite {
    border: 1px solid #cccccc;
    background: #f5f5f5;
    border-radius: 15px;
    padding-top: 10px;
    padding-bottom:10px;
    display:flex;
}

.chapter-list-text a:visited {
    color: darkgrey;
}

    .chapter-list-text a:visited:hover {
        color: #ffa826; /*#2a6496;*/
        text-decoration: underline;
    }

.navbar-user-padding {
    padding-left: 25px !important;
}


/*#endregion Chapter*/

/*#region Story*/
.story-bar-title {
    background-color: #FFB885;
    color: #412E09;
    font-size: 20px;
    padding: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
    height: 50px;
}

    .story-bar-title .title-left {
        padding-left: 10px;
        height: 40px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 85%;
        float: left;
    }

    .story-bar-title .title-right {
        float: right;
    }

.title-menu {
}

    .title-menu a {
        color: #412E09;
    }

    .title-menu .dropdown-menu li a {
        color: #333333;
        font-size: 16px;
        white-space: nowrap;
        font-weight: normal;
        clear: both;
        padding: 3px 20px;
        line-height: 1.42857143;
    }

.main-story-content {
    background-color: #fff;
    padding: 18px 30px;
    color: #412E09;
}

.main-story-like {
    background-color: #fff;
    padding: 25px;
    font-size: 22px;
    color: #412E09;
    margin-bottom: 25px;
}

    .main-story-like > div {
        margin-bottom: 10px;
    }

        .main-story-like > div:last-child {
            margin-bottom: 0;
        }

.story-content {
    width: 100%;
    background: #fff;
    position: relative;
    font-size: 18px;
    overflow: hidden;
}

    .story-content img {
        max-width: 100%;
        height: auto !important;
        box-shadow: 0 0 10px #888;
    }

.main-story-detail {
    background-color: #fff;
    overflow: hidden;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.story-detail {
    background: #fff;
    position: relative;
    font-size: 20px;
    margin: 20px 30px;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.story-detail {
    font-family: cs_prajad;
}

    .story-detail img {
        max-width: 90%;
        height: auto !important;
    }

.chapter-bookmark-overlay {
    background-color: white;
    width: 100%;
    height: 70px;
    position: fixed;
    z-index: 15;
    box-shadow: 0px 0px 5px #888;
    left: 0;
    bottom: 0;
}

    .chapter-bookmark-overlay a:hover {
        text-decoration: none;
    }

.donate-list {
    margin-bottom: 5px;
    margin-left: 0px;
    border: 1px solid #d4d4d4;
    padding-top: 5px;
    font-size: 18px;
    cursor: pointer;
}

.story-chapter-tbl {
    /*padding: 8px;*/
}

.create-chapter-modal label {
    border: 1px solid #ebebeb;
    width:49%;
}

.create-chapter-modal input {
    display: none;
}

.create-chapter-modal input:checked + label {
    box-shadow: inset 0px 0px 0px 5px #bc9617;
}

.btn-create-chapter {
    color: #cccccc;
}

    .btn-create-chapter.active {
        color: #ff3b3b;
        cursor: pointer;
    }
/*#endregion Story*/

/*#region comment*/
.main-comment-input {
    border-radius: 0;
    background-color: #d1d3d4;
    color: #000;
    height: 39px;
    font-size: 18px;
}

.main-comment-editor {
    padding: 0px;
    margin-top: 10px;
    border-radius: 0;
}

.main-comment-name {
    background-color: #FFB885;
    color: #412E09;
    font-size: 18px;
    height: 39px;
    text-align: center;
    padding-top: 8px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.main-list-group {
    padding: 0px;
    font-size: 16px;
}

.comment-detail {
    padding-left: 45px;
    font-weight: bold;
}

/*.comment-message {
    padding-left: 45px;
    padding-top: 10px;
    overflow: hidden;
}*/

    .comment-message img {
        max-width: 100%;
    }

.commnet-time-badge {
    display: inline-block;
    min-width: 10px;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
    line-height: 1;
    vertical-align: baseline;
    white-space: nowrap;
    text-align: center;
    background-color: #FFB885;
    border-radius: 10px;
    padding-top: 5px;
}

.comment-reply {
    display: inline-block;
    cursor: pointer;
    padding: 10px 15px;
    background-color: #FFB885;
    border-radius: 25px;
    color: #fff;
}

    .comment-reply:hover {
        text-decoration: underline;
    }

.comment-reply-name {
    background-color: #FFB885;
    color: #412E09;
    font-size: 18px;
    height: 39px;
    text-align: center;
    padding-top: 8px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.comment-no-padding {
    padding-left: 0px;
    padding-right: 0px;
}

/*#endregion comment*/

/*#region pod book campaign*/
.book-paper {
    padding: 20px;
    margin-bottom: 15px;
}

    .book-paper .title {
        font-weight: bold;
        line-height: 1.2;
        height: 40px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .book-paper .netprice {
        text-decoration: line-through;
    }

    .book-paper .saleprice {
        margin-top: 0;
        margin-bottom: 0;
        color: #ff0000;
    }

    .book-paper img {
        width: 90%;
        height: auto;
        box-shadow: 0 0 10px #888;
    }
/*#endregion pod book campaign*/

/*#region modal*/
.popup-window {
    background-color: white;
    margin: 0px auto;
    margin-top: 3%;
    text-align: center;
    max-width: 528px;
    padding-bottom: 10px;
    font-size: 16px;
    border-radius: 16px;
    box-shadow: 0px 3px 9px -5px rgba(41,0,0,1);
    border: #cccccc;
}

.popup-txt {
    font-size: 18px;
    font-weight: bold;
    margin: 10px;
    padding-top: 50px;
    color: #000;
}

.popup-img-yes, .popup-img-no {
    margin: 20px;
}

.popup-img {
    padding-bottom: 30px;
    height: auto;
    overflow: hidden;
}

.popup-img-yes {
    background: #24b476;
    color: #fff;
    font-size: 22px;
    height: 50px;
    width: 40%;
    padding-top: 13px;
    float: none;
    cursor: pointer;
}

.popup-img-no {
    background: #c32626;
    color: #fff;
    font-size: 22px;
    height: 50px;
    width: 40%;
    padding-top: 13px;
    float: right;
    cursor: pointer;
}

.emotion-header {
    border: 1px solid #e78f08;
    background: #f6a828;
    color: white;
    font-weight: bold;
}

.emotion-ui {
    margin-bottom: 10px;
}

    .emotion-ui li {
        display: inline-block;
        float: left;
        margin: 0 3px 5px;
    }

        .emotion-ui li img {
            width: 97px;
            height: 97px;
            padding: 24px;
        }

            .emotion-ui li img:hover {
                cursor: pointer;
            }

.modal-vip {
    display: block;
    padding-right: 17px;
    border-radius: 12px;
    background: none;
}

.vip-status {
    border-radius: 12px;
    background: none;
}

    .vip-status .modal-dialog {
        margin: 50px auto 0 auto !important;
        margin: 68px;
        width: 300px;
    }

    .vip-status img {
        margin: 0 auto 0 auto;
        max-width: 300px;
        height: auto;
        border-radius: 12px;
    }

    .vip-status .modal-content {
        margin: 0 auto 0 auto;
        width: 300px;
        border-radius: 12px;
        background: transparent !important;
    }

    .vip-status .vip-label {
        float: left;
        top: 30px;
        left: 0;
        width: 100%;
        position: absolute;
        font-size: 18px;
    }

    .vip-status .vip-label-alt {
        float: left;
        top: 52px;
        left: 0;
        width: 100%;
        position: absolute;
        color: #ccc;
        font-size: 14px;
    }

.vip-label, .vip-label-alt {
    text-align: center;
    color: white;
}

.dataTables_wrapper .dataTables_paginate {
    display: flex;
}

.pagination-button {
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 8px;
    border: solid 1px #ddd;
    font-size: 11px;
    cursor: pointer;
    display: inline-block;
    color: transparent;
    background-repeat: no-repeat;
}

.pagination-button-order {
    height: 40px;
    border-radius: 8px;
    border: solid 1px #ddd;
    cursor: pointer;
    display: inline-block;
    width: max-content;
    color: #191919;
    margin-right: 16px;
    padding: 4px 12px;
    font-family: DBHelvethaicaMonX-65Med;
    font-size: 20px;
}

    .pagination-button-order i {
        display: inline-block;
        transform: rotate(90deg);
        font-size: 24px;
    }

    .pagination-button-order span {
        display: flex;
    }

    .pagination-button.previous {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' id='Button_Previous_Next' data-name='Button / Previous, Next' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg id='Rectangle_14957' data-name='Rectangle 14957' fill='none' stroke='0' stroke-width='1'%3E%3Crect width='40' height='40' rx='8' stroke='none'/%3E%3Crect x='0.5' y='0.5' width='39' height='39' rx='7.5' fill='none'/%3E%3C/g%3E%3Cg id='Icon_Line_Left' data-name='Icon / Line / Left' transform='translate(8 8)'%3E%3Crect id='Rectangle_13063' data-name='Rectangle 13063' width='24' height='24' fill='none'/%3E%3Cpath id='fi-br-angle-small-left' d='M10.377,10.906a.408.408,0,0,1,0-.577l3.74-3.74a1.224,1.224,0,0,0-1.73-1.731L8.647,8.6a2.859,2.859,0,0,0,0,4.037l3.74,3.74a1.224,1.224,0,0,0,1.73-1.731Z' transform='translate(-0.145 1.383)' fill='%23191919'/%3E%3C/g%3E%3C/svg%3E");
    }
    .pagination-button.next {
        margin-right: 0;
        position: relative;
        background-image: url("data:image/svg+xml,%3Csvg id='Button_Previous_Next' data-name='Button / Previous, Next' xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg id='Rectangle_14957' data-name='Rectangle 14957' fill='none' stroke='%23ddd' stroke-width='0'%3E%3Crect width='40' height='40' rx='8' stroke='none'/%3E%3Crect x='0.5' y='0.5' width='39' height='39' rx='7.5' fill='none'/%3E%3C/g%3E%3Cg id='Icon_Line_Right' data-name='Icon / Line / Right' transform='translate(8 8)'%3E%3Crect id='Rectangle_13063' data-name='Rectangle 13063' width='24' height='24' fill='none'/%3E%3Cpath id='fi-br-angle-small-right' d='M14.432,8.6l-3.74-3.74a1.224,1.224,0,0,0-1.73,1.731l3.74,3.74a.408.408,0,0,1,0,.577l-3.74,3.74a1.224,1.224,0,0,0,1.73,1.731l3.74-3.74a2.859,2.859,0,0,0,0-4.037Z' transform='translate(1.064 1.383)' fill='%23191919'/%3E%3C/g%3E%3C/svg%3E%0A");
    }

    .pagination-button.previous.disabled {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' id='Button_Previous_Next' data-name='Button / Previous, Next' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg id='Rectangle_14957' data-name='Rectangle 14957' fill='none' stroke='0' stroke-width='1'%3E%3Crect width='40' height='40' rx='8' stroke='none'/%3E%3Crect x='0.5' y='0.5' width='39' height='39' rx='7.5' fill='none'/%3E%3C/g%3E%3Cg id='Icon_Line_Left' data-name='Icon / Line / Left' transform='translate(8 8)'%3E%3Crect id='Rectangle_13063' data-name='Rectangle 13063' width='24' height='24' fill='none'/%3E%3Cpath id='fi-br-angle-small-left' d='M10.377,10.906a.408.408,0,0,1,0-.577l3.74-3.74a1.224,1.224,0,0,0-1.73-1.731L8.647,8.6a2.859,2.859,0,0,0,0,4.037l3.74,3.74a1.224,1.224,0,0,0,1.73-1.731Z' transform='translate(-0.145 1.383)' fill='%23ddd'/%3E%3C/g%3E%3C/svg%3E");
        pointer-events: none;
    }
    .pagination-button.next.disabled {
        background-image: url("data:image/svg+xml,%3Csvg id='Button_Previous_Next' data-name='Button / Previous, Next' xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg id='Rectangle_14957' data-name='Rectangle 14957' fill='none' stroke='%23ddd' stroke-width='0'%3E%3Crect width='40' height='40' rx='8' stroke='none'/%3E%3Crect x='0.5' y='0.5' width='39' height='39' rx='7.5' fill='none'/%3E%3C/g%3E%3Cg id='Icon_Line_Right' data-name='Icon / Line / Right' transform='translate(8 8)'%3E%3Crect id='Rectangle_13063' data-name='Rectangle 13063' width='24' height='24' fill='none'/%3E%3Cpath id='fi-br-angle-small-right' d='M14.432,8.6l-3.74-3.74a1.224,1.224,0,0,0-1.73,1.731l3.74,3.74a.408.408,0,0,1,0,.577l-3.74,3.74a1.224,1.224,0,0,0,1.73,1.731l3.74-3.74a2.859,2.859,0,0,0,0-4.037Z' transform='translate(1.064 1.383)' fill='%23ddd'/%3E%3C/g%3E%3C/svg%3E%0A");
        pointer-events: none;
    }
    .pagination-select-page {
        width: 140px;
        height: 40px;
        margin: 0 8px;
        padding: 6px 12px;
        border-radius: 8px;
        border: solid 1px #ddd;
        line-height: 20px;
        font-family: DBHelvethaicaMonX-65Med;
        font-size: 20px;
        background-repeat: no-repeat;
        background-image: url("data:image/svg+xml,%3Csvg id='Group_36563' data-name='Group 36563' xmlns='http://www.w3.org/2000/svg' width='130' height='40' viewBox='0 0 90 40'%3E%3Cg id='Rectangle_14940' data-name='Rectangle 14940' fill='none' stroke='%23ddd' stroke-width='0'%3E%3Crect width='130' height='40' rx='8' stroke='none'/%3E%3Crect x='0.5' y='0.5' width='129' height='39' rx='7.5' fill='none'/%3E%3C/g%3E%3Cg id='Icon_Line_Down' data-name='Icon / Line / Down' transform='translate(84 8)'%3E%3Crect id='Rectangle_13063' data-name='Rectangle 13063' width='24' height='24' fill='none'/%3E%3Cpath id='fi-br-angle-small-down' d='M16.328,7.771a1.218,1.218,0,0,0-1.724,0L10.879,11.5a.406.406,0,0,1-.574,0L6.58,7.771A1.219,1.219,0,1,0,4.857,9.494l3.725,3.725a2.843,2.843,0,0,0,4.021,0l3.725-3.725A1.218,1.218,0,0,0,16.328,7.771Z' transform='translate(1.408 1.267)' fill='%23191919'/%3E%3C/g%3E%3C/svg%3E%0A");
        background-color: #fff;
        color: #191919 !important;
    }

    select.pagination-select-page:focus-visible {
        outline: 0;
    }


        .item-content {
            width: 172px;
        }

    .item-content img {
        width: 172px;
        height: 172px;
        border-radius: 8px;
    }


.row-section {
    margin-top: 20px;
}

.section-main-title {
    font-family: "DBHelvethaicaMonX-75Bd";
    font-size: 32px;
    text-align: left;
    color: #191919;
}

.section-main-sub-title {
    font-family: "DBHelvethaicaMonX-65Med";
    font-size: 20px;
    text-align: left;
    color: #191919;
}

.box-shadow-radius {
    box-shadow: 0 4px 20px 0 rgb(0 0 0 / 5%);
    border-radius: 16px;
}

.section-header-title {
    font-family: "DBHelvethaicaMonX-75Bd";
    font-size: 24px;
    display: flex;
    background-color: #fffaef;
    border-bottom: solid 1px #ce9b5f;
    border-top-right-radius: 16px;
    border-top-left-radius: 16px;
}

    .section-header-title img {
        width: 77px;
        height: 61px;
        margin: 0 8px 0 0;
    }
.section-body {
    padding: 0;
}

.section-body-content {
    padding: 12px 0;
}

.section-body-content-image, .section-ebook-body-content-image, .section-ebook-body-content-writer-image {
    margin: auto 0;
    position: relative;
}

    .section-body-content-image img {
        width: 64px;
        height: 64px;
        margin-right: 12px;
        border-radius: 4px;
    }

    .section-ebook-body-content-image img {
        width: 64px;
        height: 90px;
        margin-right: 10px;
        border-radius: 4px;
    }

    .section-ebook-body-content-writer-image img {
        width: 48px;
        height: 48px;
        margin-right: 10px;
    }

.section-body-content-seq {
    font-family: "DBHelvethaicaMonX-75Bd";
    font-size: 32px;
    margin: auto 16px;
}

.content-main-text {
    font-family: "DBHelvethaicaMonX-65Med";
    font-size: 20px;
    margin-top: 4px;
    margin-bottom: 2px;
}

.content-sub-text {
    font-family: "MNPaethai-Med";
    font-size: 16px;
    margin-bottom: 2px;
}

.content-sub-sub-text {
    font-family: "MNPaethai-Med";
    font-size: 14px;
}

    .content-sub-sub-text a {
        color: #888;
    }

.content-saleprice-text {
    font-family: "DBHelvethaicaMonX-75Bd";
    font-size: 24px;
    color:red;
}
.content-discount-text {
    font-family: "DBHelvethaicaMonX-65Med";
    font-size: 20px;
}

.flashsale-countdown {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 28px;
    background-color: #db2638;
    border-radius: 0 0 8px 8px;
    color: white;
    font-size: 20px;
    font-family: "DBHelvethaicaMonX-65Med";
    text-align: center;
}

.content-fullprice-text {
    font-family: "DBHelvethaicaMonX-75Bd";
    font-size: 24px;
    color: #d68c54;
}

img.section-logo {
    width: 70px;
    height: 32px;
}

.section-see-all-link {
    font-family: "DBHelvethaicaMonX-65Med";
    font-size: 20px;
    margin: auto;
    margin-right: 0;
    white-space: nowrap;
}

    .section-see-all-link a {
        color: #d68c54 !important;
    }

.user-current-coin {
    font-family: DBHelvethaicaMonX-65Med;
    font-size: 20px;
    border-radius: 25px;
    border: solid 1px #ddd;
    height: 40px;
    text-align: center;
    padding-top: 4px;
    padding-right: 15px;
    padding-left: 15px;
    cursor: pointer;
}

.report-modal-header {
    font-size: 28px;
    font-family: DBHelvethaicaMonX-75Bd;
    color: #191919;
}

.report-modal-item {
    padding-bottom: 16px;
}
/*#endregion modal*/

/*Add image filter*/
.item-content img,
.data-container img.img-cover,
.rectangle-header-left .story-image {
    filter: contrast(1.1);
}

.delete-account {
    color: #888888;
    font-style: italic;
}

.delete-account-img {
    opacity: 0.5;
}
#main-body.enable-topbar {
    padding-top: 110px !important;
}
    #main-body.enable-topbar .floating-top-menu,
    #main-body.enable-topbar .chapter-read-bar {
        top: 110px !important;
    }

/*Exclusive icon*/
.badge-img-icon {
    line-height: 1;
}

/*Gold medal writer*/
.container-slider .item-content .badge-img-xxs,
.item-content .badge-img-xxs,
.badge-img-xxs {
    height: 12px !important;
    width: 12px !important;
}

.mr-2 {
    margin-right: 2px;
}

.navbar.navbar-light {
    box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.10);
}

.navbar-light .navbar-nav .nav-item.active .nav-link,
.dropdown-toggle-btn[aria-expanded="true"] {
    color: #D68C54;
}

.box-shadow-none {
    box-shadow: none !important;
}

.navbar.navbar-subnav {
    border-top: solid 1px #EAEAEA;
    height: 56px;
}

.fixed-top.fixed-top-subnav {
    box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.10);
    top: 64px;
    z-index: 3;
}

.dropdown-toggle-btn::after {
    display: none;
}

.dropdown-toggle-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.dropdown-container {
    top: -41px;
}

.dropdown-menu-sub.show {
    display: flex;
    flex-wrap: wrap;
    left: auto !important;
    max-width: 728px;
    padding-top: 12px;
    right: 0 !important;
    transform: translate(0px, 28px) !important;
}

.dropdown-sub-item {
    width: 100px;
    margin: 12px 0 0;
}

    .dropdown-sub-item .dropdown-item {
        border-radius: 8px;
    }

#scroll-nav {
    display: none;
}

.flashsale-countdown-small {
    position: absolute;
    bottom: 0;
    width: 84%;
    height: 22px;
    background-color: #db2638;
    border-radius: 0 0 4px 4px;
    color: white;
    font-size: 12px;
    font-family: "DBHelvethaicaMonX-65Med";
    text-align: center;
    padding-top: 2px;
    }
    
.text-green {
    color: #06C7A0;
}

.header-ranking {
    background-position: left;
    background-repeat: no-repeat;
    background-size: contain;
    padding: 0 8px 0 0;
    font-family: 'DBHelvethaicaMonX-75Bd';
    font-size: 24px;
    border-radius: 16px 16px 0 0;
    color: #fff;
    min-height: 65px;
}

    .header-ranking .section-see-all-link a {
        color: #fff !important;
    }


@media (max-width: 991px) {
    .navbar-subnav li {
        display: none;
    }

        .navbar-subnav li:first-child,
        .navbar-subnav li:nth-child(2),
        .navbar-subnav li:nth-child(3) {
            display: list-item;
        }

    .navbar-main-nav li {
        margin-right: 16px;
    }

        .navbar-main-nav li:last-child {
            margin-right: 0;
        }

    .fixed-top.fixed-top-subnav {
        top: 85px;
    }

    .navbar {
        height: auto !important;
    }

    .fixed-top-subnav .navbar {
        height: auto !important;
    }

    #main-body {
        padding-top: 92px !important;
    }

    .dropdown-sub-item {
        width: 25%;
    }

    .dropdown-menu-sub.show {
        max-height: 280px;
        overflow: hidden;
        overflow-y: auto;
    }
}

@media (max-width: 912px) {
    .dropdown-menu-sub.show {
        max-height: none;
    }
}

@media (max-width: 896px) {
    .dropdown-menu-sub.show {
        max-height: 280px;
    }
}

@media (max-width: 820px) {
    .dropdown-menu-sub.show {
        max-height: none;
    }
}

@media (max-width: 740px) {
    .dropdown-menu-sub.show {
        max-height: 240px;
    }
}

@media (max-width: 654px) {
    .dropdown-menu-sub.show {
        max-height: 160px;
    }
}

@media (max-width: 542px) {
    .dropdown-sub-item {
        width: 33%;
    }

    .dropdown-menu-sub.show {
        border-radius: 0;
        height: 100vh;
        overflow: hidden;
        overflow-y: auto;
        margin-top: 13px !important;
        max-height: calc(100vh - 130px);
        align-content: start;
    }

    .fixed-top-subnav .container {
        padding: 0;
    }

    .navbar-subnav.navbar-subnav {
        padding: 0 .75rem;
    }

    .navbar-main-nav {
        display: none;
    }

    #scroll-nav {
        box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.10);
        display: block;
        padding-left: .75rem;
    }

        #scroll-nav ul {
            list-style: none;
        }

        #scroll-nav .swiper-slide {
            width: auto;
            justify-content: flex-start;
        }

            #scroll-nav .swiper-slide .nav-link,
            #scroll-nav .swiper-slide .nav-link:hover {
                color: #191919 !important;
                font-size: 20px;
                padding-left: 0;
            }

            #scroll-nav .swiper-slide.active .nav-link {
                color: #D68C54 !important;
            }

    #main-body {
        padding-top: 85px !important;
    }

    .navbar.navbar-light {
        box-shadow: none;
    }
}

@media (max-width: 412px) {
    .navbar-subnav li:nth-child(3) {
        display: none;
    }
}

@media (max-width: 290px) {
    .navbar-subnav li:nth-child(2) {
        display: none;
    }
}

.bg-promotion {
    background-color: #F77E65;
}