/********** Template CSS **********/
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #06A3DA;
    --secondary: #34AD54;
    --light: #EEF9FF;
    --dark: #091E3E;
    --bs-font-sans-serif: 'Prompt', sans-serif;
}

/* Set Prompt as default font for entire frontend */
html,
body {
    font-family: 'Prompt', sans-serif !important;
    font-weight: 400;
}

*,
*::before,
*::after {
    font-family: 'Prompt', sans-serif !important;
}

/* Form elements */
input,
textarea,
select,
button {
    font-family: 'Prompt', sans-serif !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Prompt', sans-serif !important;
}

/* Bootstrap components */
.navbar,
.card,
.modal,
.alert,
.btn,
.form-control,
.form-label,
.dropdown-menu,
.table,
.badge,
.tooltip,
.popover {
    font-family: 'Prompt', sans-serif !important;
}

/* Font Awesome Icons - ไม่ต้องใช้ Prompt font */
.fa,
.fas,
i.fa,
i[class*="fa-"]:not(.fab):not(.far):not(.fal):not(.fad),
[class^="fa-"]:not(.fab):not(.far):not(.fal):not(.fad),
[class*=" fa-"]:not(.fab):not(.far):not(.fal):not(.fad) {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Pro", "Font Awesome 6 Free", "Font Awesome 6 Pro", sans-serif !important;
    font-weight: 900 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto;
    line-height: 1 !important;
    text-decoration: none !important;
}

/* Font Awesome Brands */
.fab,
.fa-brands,
i.fab,
i.fa-brands {
    font-family: "Font Awesome 5 Brands", "Font Awesome 6 Brands", sans-serif !important;
    font-weight: 400 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto;
    line-height: 1 !important;
    text-decoration: none !important;
}

/* Font Awesome Regular */
.far,
.fa-regular,
i.far,
i.fa-regular {
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", sans-serif !important;
    font-weight: 400 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto;
    line-height: 1 !important;
    text-decoration: none !important;
}

/* Ensure icons are visible and not hidden */
i[class*="fa-"]:before,
i[class*="fa-"]:after {
    display: inline-block;
}

/* Override any conflicting styles */
i[class^="fa-"],
i[class*=" fa-"],
span[class^="fa-"],
span[class*=" fa-"],
[class^="fa-"],
[class*=" fa-"] {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands", "Font Awesome 6 Free", "Font Awesome 6 Brands", sans-serif !important;
}

/* Ensure pseudo-elements work correctly */
i.fa:before,
i[class*="fa-"]:before,
span.fa:before,
span[class*="fa-"]:before {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands", "Font Awesome 6 Free", "Font Awesome 6 Brands", sans-serif !important;
    display: inline-block !important;
}

i.fab:before,
i[class*="fab"]:before,
span.fab:before,
span[class*="fab"]:before {
    font-family: "Font Awesome 5 Brands", "Font Awesome 6 Brands", sans-serif !important;
    display: inline-block !important;
}

/* Specific fixes for common icon classes */
.fa-map-marker-alt:before,
.fa-phone-alt:before,
.fa-envelope-open:before,
.fa-bars:before,
.fa-check:before,
.fa-users:before,
.fa-award:before,
.fa-cubes:before {
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", sans-serif !important;
    font-weight: 900 !important;
}

.fab.fa-twitter:before,
.fab.fa-facebook-f:before,
.fab.fa-linkedin-in:before,
.fab.fa-instagram:before,
.fab.fa-youtube:before {
    font-family: "Font Awesome 5 Brands", "Font Awesome 6 Brands", sans-serif !important;
    font-weight: 400 !important;
}


/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
    0% {
        -webkit-transform: perspective(120px)
    }
    50% {
        -webkit-transform: perspective(120px) rotateY(180deg)
    }
    100% {
        -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
    }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    }
    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    }
    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 800 !important;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 700 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 600 !important;
}


/*** Button ***/
.btn {
    font-family: 'Prompt', sans-serif !important;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
    box-shadow: inset 0 0 0 50px transparent;
}

.btn-primary:hover {
    box-shadow: inset 0 0 0 0 var(--primary);
}

.btn-secondary:hover {
    box-shadow: inset 0 0 0 0 var(--secondary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}


/*** Navbar ***/
.navbar-dark .navbar-nav .nav-link {
    font-family: 'Prompt', sans-serif !important;
    position: relative;
    margin-left: 25px;
    padding: 35px 0;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--dark);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-dark .navbar-brand h1 {
    color: #FFFFFF;
}

.navbar-dark .navbar-toggler {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-dark {
        position: relative;
        background: #FFFFFF;
    }

    .navbar-dark .navbar-nav .nav-link,
    .navbar-dark .navbar-nav .nav-link.show,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        color: var(--dark);
    }

    .navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
}

@media (min-width: 992px) {
    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
    }
    
    .sticky-top.navbar-dark {
        position: fixed;
        background: #FFFFFF;
    }

    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-dark .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .sticky-top.navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
}


/*** Carousel ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 62, .7);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}


/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #FFFFFF;
    -webkit-animation: section-title-run 5s infinite linear;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

@-webkit-keyframes section-title-run {
    0% {left: 0; } 50% { left : 145px; } 100% { left: 0; }
}

@keyframes section-title-run {
    0% {left: 0; } 50% { left : 145px; } 100% { left: 0; }
}

@-webkit-keyframes section-title-run-center {
    0% { left: 50%; margin-left: -75px; } 50% { left : 50%; margin-left: 45px; } 100% { left: 50%; margin-left: -75px; }
}

@keyframes section-title-run-center {
    0% { left: 50%; margin-left: -75px; } 50% { left : 50%; margin-left: 45px; } 100% { left: 50%; margin-left: -75px; }
}

@-webkit-keyframes section-title-run-sm {
    0% {left: 0; } 50% { left : 85px; } 100% { left: 0; }
}

@keyframes section-title-run-sm {
    0% {left: 0; } 50% { left : 85px; } 100% { left: 0; }
}


/*** Service ***/
.service-item {
    position: relative;
    height: 300px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    margin-bottom: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 2px;
    transform: rotate(-45deg);
}

.service-item .service-icon i {
    transform: rotate(45deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: #DDDDDD;
    border-radius: 2px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--primary);
}

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #FFFFFF !important;
    box-shadow: 0 0 30px #DDDDDD;
}


/*** Team ***/
.team-item {
    transition: .5s;
}

.team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-social a.btn {
    position: relative;
    margin: 0 3px;
    margin-top: 100px;
    opacity: 0;
}

.team-item:hover {
    box-shadow: 0 0 30px #DDDDDD;
}

.team-item:hover .team-social {
    background: rgba(9, 30, 62, .7);
}

.team-item:hover .team-social a.btn:first-child {
    opacity: 1;
    margin-top: 0;
    transition: .3s 0s;
}

.team-item:hover .team-social a.btn:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .05s;
}

.team-item:hover .team-social a.btn:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .1s;
}

.team-item:hover .team-social a.btn:nth-child(4) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .15s;
}

.team-item .team-img img,
.blog-item .blog-img img  {
    transition: .5s;
}

.team-item:hover .team-img img,
.blog-item:hover .blog-img img {
    transform: scale(1.15);
}


/*** Miscellaneous ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.bg-header {
    background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .7)), url(../img/carousel-3.png) center center no-repeat;
    background-size: cover;
}

.link-animated a {
    transition: .5s;
}

/*** Media Thumbnail Styles ***/
.media-thumbnail-img,
.media-type-thumbnail {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: optimize-quality;
    -ms-interpolation-mode: bicubic;
}

/* Thumbnail container for optimal display */
.blog-img .media-thumbnail-img,
.blog-img .media-type-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Responsive thumbnail sizing */
@media (max-width: 768px) {
    .media-thumbnail-img,
    .media-type-thumbnail {
        max-width: 100%;
        max-height: 300px;
    }
}

@media (min-width: 769px) {
    .media-thumbnail-img,
    .media-type-thumbnail {
        max-width: 1536px;
        max-height: 1024px;
    }
}

/* Thumbnail hover effects */
.media-thumbnail-img:hover,
.media-type-thumbnail:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Prevent layout shift during image load */
.media-thumbnail-img,
.media-type-thumbnail {
    background-color: #f8f9fa;
    display: block;
}

.link-animated a:hover {
    padding-left: 10px;
}

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: -75px;
    }
}

/* ===========================================
   Cookie Consent Banner Styles
   =========================================== */
#simple-cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(51, 51, 51, 0.95);
    color: #fff;
    padding: 20px;
    text-align: center;
    z-index: 99999;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 2px solid #06A3DA;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-consent-message {
    flex: 1;
    min-width: 250px;
}

.cookie-consent-message p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #fff;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.cookie-consent-btn {
    padding: 10px 25px;
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Prompt', sans-serif;
    text-decoration: none;
    display: inline-block;
}

.cookie-consent-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cookie-consent-btn-accept {
    background: #28a745;
    color: #fff;
    border: 1px solid #28a745;
}

.cookie-consent-btn-accept:hover {
    background: #218838;
    border-color: #1e7e34;
    color: #fff;
}

.cookie-consent-btn-manage {
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
}

.cookie-consent-btn-manage:hover {
    background: #f8f9fa;
    border-color: #999;
    color: #333;
}

.cookie-consent-btn-reject {
    background: #dc3545;
    color: #fff;
    border: 1px solid #dc3545;
}

.cookie-consent-btn-reject:hover {
    background: #c82333;
    border-color: #bd2130;
    color: #fff;
}

.cookie-consent-btn-policy {
    background: var(--secondary);
    color: #fff;
}

.cookie-consent-btn-policy:hover {
    background: #2a8b43;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    #simple-cookie-consent {
        padding: 15px;
    }
    
    .cookie-consent-container {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-message {
        min-width: 100%;
        margin-bottom: 10px;
    }
    
    .cookie-consent-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-consent-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .cookie-consent-message p {
        font-size: 13px;
    }
    
    .cookie-consent-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
}

/*** Longdo Map Popup Styles - Responsive ***/
.longdo-popup-container {
    max-width: 400px;
    min-width: 280px;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Prompt', sans-serif !important;
    box-sizing: border-box;
}

.longdo-popup-content {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    padding: 0;
}

.longdo-popup-header {
    padding: 16px 20px 12px;
    background: linear-gradient(135deg, #06A3DA 0%, #34AD54 100%);
    color: #ffffff;
    text-align: center;
}

.longdo-popup-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #ffffff;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.longdo-popup-code {
    font-size: 14px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.95;
}

.longdo-popup-divider {
    margin: 0;
    border: 0;
    border-top: 1px solid #e0e0e0;
    opacity: 0.3;
}

.longdo-popup-stat-header {
    text-align: center;
    padding: 16px 20px 8px;
    font-size: 15px;
    color: #333333;
    font-weight: 500;
}

.longdo-popup-stat-content {
    text-align: center;
    padding: 12px 20px 20px;
}

.longdo-popup-icon {
    font-size: 48px;
    color: #06A3DA;
    display: block;
    margin-bottom: 12px;
}

.longdo-popup-count {
    font-size: 28px;
    font-weight: 700;
    color: #06A3DA;
    margin: 0;
    line-height: 1.2;
}

.longdo-popup-section-title {
    text-align: center;
    padding: 16px 20px 12px;
    font-size: 15px;
    font-weight: 600;
    color: #333333;
    margin: 0;
}

.longdo-popup-list {
    max-height: 250px;
    overflow-y: auto;
    padding: 8px 20px 16px;
}

.longdo-popup-list::-webkit-scrollbar {
    width: 6px;
}

.longdo-popup-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.longdo-popup-list::-webkit-scrollbar-thumb {
    background: #06A3DA;
    border-radius: 3px;
}

.longdo-popup-list::-webkit-scrollbar-thumb:hover {
    background: #0588b8;
}

.longdo-popup-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e8e8e8;
    gap: 12px;
}

.longdo-popup-item:last-child {
    border-bottom: none;
}

.longdo-popup-item-icon {
    color: #06A3DA;
    font-size: 16px;
    min-width: 20px;
    flex-shrink: 0;
}

.longdo-popup-item-name {
    flex: 1;
    font-size: 14px;
    color: #333333;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.longdo-popup-item-count {
    font-size: 14px;
    color: #06A3DA;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}

.longdo-popup-empty {
    text-align: center;
    padding: 24px 20px;
    color: #999999;
    font-size: 14px;
}

.longdo-popup-footer {
    padding: 16px 20px;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #e8e8e8;
}

.longdo-popup-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #06A3DA;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.longdo-popup-btn:hover {
    background: #0588b8;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(6, 163, 218, 0.3);
    text-decoration: none;
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
    .longdo-popup-container {
        max-width: 90vw;
        min-width: 280px;
    }
    
    .longdo-popup-header {
        padding: 14px 16px 10px;
    }
    
    .longdo-popup-title {
        font-size: 16px;
    }
    
    .longdo-popup-code {
        font-size: 13px;
    }
    
    .longdo-popup-stat-header {
        padding: 14px 16px 6px;
        font-size: 14px;
    }
    
    .longdo-popup-stat-content {
        padding: 10px 16px 16px;
    }
    
    .longdo-popup-icon {
        font-size: 40px;
        margin-bottom: 10px;
    }
    
    .longdo-popup-count {
        font-size: 24px;
    }
    
    .longdo-popup-section-title {
        padding: 14px 16px 10px;
        font-size: 14px;
    }
    
    .longdo-popup-list {
        padding: 6px 16px 14px;
        max-height: 200px;
    }
    
    .longdo-popup-item {
        padding: 8px 0;
        flex-wrap: wrap;
    }
    
    .longdo-popup-item-name {
        font-size: 13px;
        width: 100%;
        margin-bottom: 4px;
    }
    
    .longdo-popup-item-count {
        font-size: 13px;
        margin-left: auto;
    }
    
    .longdo-popup-footer {
        padding: 12px 16px;
    }
    
    .longdo-popup-btn {
        padding: 8px 20px;
        font-size: 13px;
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .longdo-popup-container {
        max-width: 95vw;
        min-width: 260px;
    }
    
    .longdo-popup-header {
        padding: 12px 14px 8px;
    }
    
    .longdo-popup-title {
        font-size: 15px;
        line-height: 1.3;
    }
    
    .longdo-popup-code {
        font-size: 12px;
    }
    
    .longdo-popup-icon {
        font-size: 36px;
    }
    
    .longdo-popup-count {
        font-size: 22px;
    }
    
    .longdo-popup-list {
        max-height: 180px;
    }
    
    .longdo-popup-item {
        padding: 6px 0;
    }
    
    .longdo-popup-btn {
        padding: 8px 18px;
        font-size: 12px;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .longdo-popup-container {
        max-width: 380px;
    }
}