/* ------------------------------------------------------------------------- */
/* root */
/* ------------------------------------------------------------------------- */

@font-face {
    font-family: 'FC Palette';
    src: url('/public/font/FC Palette.ttf') format('woff2'), /* Modern Browsers */
         url('/public/font/FC Palette.ttf') format('woff'); /* Older Browsers */
    font-weight: normal;
    font-style: normal;
}

.text-handwritten {
    font-family: 'FC Palette', sans-serif !important;
}

:root {

    --primary-orange: #ff7326;
    --primary-blue: #add8f0;
    --primary-light-cream: #fffaf5;
    --primary-brown: #381510;
    --primary-brown-hover: #704039;
    --primary-white: #ffffff;
    --primary-white-hover: #e8e8e8;
    --primary-black: #17181b;
    --primary-mixed-berries: #ee2e8b;
    --primary-superfood: #056839;
    --primary-seafood: #3851a3;

    --secondary-dark-blue: #004b74;
    --secondary-yellow: #ffcb66;
    --secondary-light-blue: #f0f8ff;
    --secondary-grey: #646466;

    --support-orange: #ffe3d4;
    --support-orange-bg: #fff1e9;
    --support-orange-1: #ffe3d4;
    --support-orange-2: #fff1e9;
    --support-light-grey: #f9f9f9;
    --support-medium-grey: #a5a5a9;
    --support-mixed-berries: #ffe9f4;
    --support-superfood: #d9f1e5;
    --support-seafood: #e9f2fc;
    --support-blue-hover: #d3e8fb;

    --status-red: #e96868;
    --status-green: #06b475;

    --default-breakpoint: 992px;

    --font-title-en: 'Plus Jakarta Sans', sans-serif;
    --font-title-th: 'Noto Sans Thai', sans-serif;

}

@media (min-width: 576px) {
    :root {
        --container-width: 540px;
    }
}

@media (min-width: 768px) {
    :root {
        --container-width: 720px;
    }
}

@media (min-width: 992px) {
    :root {
        --container-width: 960px;
    }
}

@media (min-width: 1200px) {
    :root {
        --container-width: 1140px;
    }
}

@media (min-width: 1400px) {
    :root {
        --container-width: 1320px;
    }
}

/* ------------------------------------------------------------------------- */
/* container */
/* ------------------------------------------------------------------------- */

.container, .container-md {
    padding-left: 16px;
    padding-right: 16px;
}

.main-content {
    min-height: calc(100vh - 80px);
}

/* ------------------------------------------------------------------------- */
/* text */
/* ------------------------------------------------------------------------- */

html, body {
    font-family: 'IBM Plex Sans Thai', sans-serif;
}

html, body, h1, h2, h3, h4, h5, h6, p {
    color: var(--primary-black);
}

h1, h2, h3, h4, h5, h6, p {
    margin-bottom: 0;
}

.title-en {
    font-family: var(--font-title-en);
}

.title-th {
    font-family: var(--font-title-th);
    font-weight: bold;
}

h1 {
    font-size: 40px !important;
}

h2 {
    font-size: 24px !important;
}

h3 {
    font-size: 18px !important;
}

h4 {
    font-size: 16px !important;
    font-weight: bold !important;
}

p {
    font-size: 14px !important;
}

word {
    white-space: nowrap !important;
}

@media screen and (min-width: 992px) {

    h1 {
        font-size: 48px !important;
        font-weight: bold !important;
    }

    h2 {
        font-size: 32px !important;
        font-weight: bold !important;
    }

    h3 {
        font-size: 24px !important;
        font-weight: bold !important;
    }

    h4 {
        font-size: 20px !important;
        font-weight: bold !important;
    }

    p {
        font-size: 16px !important;
    }

    .fs-pc-20 {
        font-size: 20px !important;
    }

}

.fs-8 {
    font-size: 8px !important;
}

.fs-12 {
    font-size: 12px !important;
}

.fs-14 {
    font-size: 14px !important;
}

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

.fs-18 {
    font-size: 18px !important;
}

.fs-20 {
    font-size: 20px !important;
}

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

.lh-40 {
    line-height: 40px !important;
}

.ws-pre {
    white-space: pre !important;
}

.a-default {
    color: var(--primary-orange);
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}

.a-default:hover {
    filter: brightness(0.9);
}

.text-primary-orange {
    color: var(--primary-orange) !important;
}

.text-primary-brown {
    color: var(--primary-brown) !important;
}

.text-primary-brown-hover {
    color: var(--primary-brown-hover) !important;
}

.text-secondary-grey {
    color: var(--secondary-grey) !important;
}

.text-support-medium-grey {
    color: var(--support-medium-grey) !important;
}

/* ------------------------------------------------------------------------- */
/* row & column */
/* ------------------------------------------------------------------------- */

.row {
    --bs-gutter-x: 16px;
    --bs-gutter-y: 16px;
}

.col-20p {
    flex: 0 0 auto;
    width: 20%;
}

.col-10p {
    flex: 0 0 auto;
    width: 10%;
}

@media screen and (min-width: 992px) {

    .col-pc-4 {
        flex: 0 0 auto !important;
        width: 33.33333333% !important;
    }

    .col-pc-6 {
        flex: 0 0 auto !important;
        width: 50% !important;
    }

    .col-pc-5 {
        flex: 0 0 auto !important;
        width: 41.6667% !important;
    }
    
    .col-pc-7 {
        flex: 0 0 auto !important;
        width: 58.3333% !important;
    }

    .col-pc-8 {
        flex: 0 0 auto !important;
        width: 66.66666667% !important;
    }

    .col-pc-9 {
        flex: 0 0 auto !important;
        width: 75% !important;
    }

    .col-pc-12 {
        flex: 0 0 auto !important;
        width: 100% !important;
    }

}

/* ------------------------------------------------------------------------- */
/* margin */
/* ------------------------------------------------------------------------- */

.m-6 {
    margin: 6px !important;
}

.mt-4 {
    margin-top: 4px !important;
}

.mt-8 {
    margin-top: 8px !important;
}

.mt-10 {
    margin-top: 10px !important;
}

.mt-16 {
    margin-top: 16px !important;
}

.mt-24 {
    margin-top: 24px !important;
}

.mt-32 {
    margin-top: 32px !important;
}

.mt-40 {
    margin-top: 40px !important;
}

.mt-48 {
    margin-top: 48px !important;
}

.mt-64 {
    margin-top: 64px !important;
}

.ms-16 {
    margin-left: 16px !important;
}

.mb-16 {
    margin-bottom: 16px !important;
}

.mb-24 {
    margin-bottom: 24px !important;
}

.me-16 {
    margin-right: 16px !important;
}

@media screen and (min-width: 992px) {

    .mt-pc-auto {
        margin-top: auto !important;
    }

    .mt-pc-0 {
        margin-top: 0 !important;
    }

    .mt-pc-8 {
        margin-top: 8px !important;
    }

    .mt-pc-16 {
        margin-top: 16px !important;
    }

    .mt-pc-24 {
        margin-top: 24px !important;
    }

    .mt-pc-32 {
        margin-top: 32px !important;
    }

    .mt-pc-36 {
        margin-top: 36px !important;
    }

    .mt-pc-48 {
        margin-top: 48px !important;
    }

    .mt-pc-64 {
        margin-top: 64px !important;
    }
    
    .my-pc-auto {
        margin-top: auto !important;
        margin-bottom: auto !important;
    }

    .mb-pc-0 {
        margin-bottom: 0 !important;
    }

    .mb-pc-64 {
        margin-bottom: 64px !important;
    }

    .mb-pc-24 {
        margin-bottom: 24px !important;
    }

}

/* ------------------------------------------------------------------------- */
/* padding */
/* ------------------------------------------------------------------------- */

.py-default {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
}

.py-default-2 {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}

.p-8 {
    padding: 8px !important;
}

.p-16 {
    padding: 16px !important;
}

.pe-16 {
    padding-right: 16px !important;
}

.ps-8 {
    padding-left: 8px !important;
}

.py-12 {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.ps-16 {
    padding-left: 16px !important;
}

.p-24 {
    padding: 24px !important;
}

.py-8 {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.py-16 {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}

.py-24 {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}

.py-32 {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
}

.py-48 {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
}

.pb-40 {
    padding-bottom: 40px !important;
}

.pb-16 {
    padding-bottom: 16px !important;
}

.pb-24 {
    padding-bottom: 24px !important;
}

.pb-12 {
    padding-bottom: 12px !important;
}

.pt-24 {
    padding-top: 24px !important;
}

@media screen and (min-width: 992px) {

    .py-default {
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }

    .py-default-2 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .py-pc-12 {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    .py-pc-64 {
        padding-top: 64px !important;
        padding-bottom: 64px !important;
    }

    .py-pc-100 {
        padding-top: 100px !important;
        padding-bottom: 100px !important;
    }

}

/* ------------------------------------------------------------------------- */
/* background */
/* ------------------------------------------------------------------------- */

.bg-primary-orange {
    background-color: var(--primary-orange) !important;
}

.bg-primary-white {
    background-color: var(--primary-white) !important;
}

.bg-primary-brown {
    background-color: var(--primary-brown);
}

.bg-primary-light-cream {
    background-color: var(--primary-light-cream) !important;
}

.bg-primary-blue {
    background-color: var(--primary-blue) !important;
}

.bg-secondary-yellow {
    background-color: var(--secondary-yellow) !important;
}

.bg-secondary-dark-blue {
    background-color: var(--secondary-dark-blue) !important;
}

.bg-secondary-light-blue {
    background-color: var(--secondary-light-blue) !important;
}

.bg-support-blue-hover {
    background-color: var(--support-blue-hover) !important;
}

/* ------------------------------------------------------------------------- */
/* control */
/* ------------------------------------------------------------------------- */

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.25rem rgba(255,115,38,.25);
} 

::placeholder {
    color: #cccccc !important;
    opacity: 1; /* Firefox */
}

::-ms-input-placeholder {
    color: #cccccc;
}

.select-placeholder {
    color: #cccccc !important;
}

.form-select option {
    color: black;
}

.form-radio input[type="radio"] {
    display: none;
}

.form-radio > label > div {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 1px solid var(--support-medium-grey);
    border-radius: 100%;
    content: "";
    vertical-align: middle;
    margin-top: -2px;
    margin-right: 0.5rem;
}

.form-radio input[type="radio"]:checked + label > div {
    border-color: var(--primary-orange);
    background-color: var(--primary-orange);
    background-clip: content-box;
    padding: 4px;
}

.form-check-input:checked {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
}

.form-switch > .form-check-input {
    height: 30px !important;
    width: 48px !important;
    float: right !important;
    cursor: pointer;
}

.form-switch > .form-check-label {
    margin-right: 50px;
}

.form-switch > .form-check-input:checked {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
}

/* ------------------------------------------------------------------------- */
/* button */
/* ------------------------------------------------------------------------- */

.btn {
    padding: 8px 16px;
    border-radius: 16px;
    font-weight: bold;
    border-width: 1px;
    gap: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    min-width: 160px;
    max-width: 100%;
}

.btn_cat {
    padding: 8px 16px;
    border-radius: 16px;
    font-weight: bold;
    border-width: 1px;
    gap: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    min-width: auto;
    max-width: auto;
}

.btn-pre {
    padding: 8px 16px;
    border-radius: 16px;
    font-weight: bold;
    border-width: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    min-width: auto;
    max-width: auto;
    background-color: rgb(255, 153, 58);
}

.btn-pre-edit {
    padding: 8px 16px;
    border-radius: 16px;
    font-weight: bold;
    border-width: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    min-width: auto;
    max-width: auto;
    background-color: rgb(255, 111, 111);
}

.btn.btn-block {
    min-width: unset !important;
}

.btn > img {
    height: 16px;
}

@media screen and (min-width: 992px) {

    .btn {
        padding: 12px 16px !important;
        font-size: 16px !important;
        padding-top: 13px !important;
        padding-bottom: 11px !important;
    }

    .btn > img {
        height: 24px !important;
        margin-top: -2px !important;
    }

}

.btn:disabled {
    opacity: unset;
    border-color: unset;
}

.btn-default {
    background-color: var(--primary-brown);
    border-color: var(--primary-brown);
    color: var(--primary-white);
}

.btn-default:hover,
.btn-default:active,
.btn-default:focus {
    background-color: var(--primary-brown-hover) !important;
    border-color: var(--primary-brown-hover) !important;
    color: var(--primary-white) !important;
}

.btn-default:disabled {
    background-color: var(--primary-white-hover);
    border-color: var(--primary-white-hover);
    color: var(--support-medium-grey);
}

.btn-white-default {
    background-color: var(--primary-white);
    border-color: var(--primary-brown);
    color: var(--primary-brown);
}

.btn-white-default:hover,
.btn-white-default:active,
.btn-white-default:focus {
    background-color: var(--primary-white);
    border-color: var(--primary-brown-hover);
    color: var(--primary-brown-hover);
}

.btn-white-default:disabled {
    background-color: #f9f9f9;
    border-color: var(--support-medium-grey);
    color: var(--support-medium-grey);
}

.btn-line-login {
    background-color: #06c755;
    color: var(--primary-white);
}

.btn-line-login:hover,
.btn-line-login:active,
.btn-line-login:focus {
    background-color: #05B34C;
    color: var(--primary-white);
}

.btn-block {
    width: 100%;
}

/* ------------------------------------------------------------------------- */
/* root */
/* ------------------------------------------------------------------------- */


.d-inline-block {
    display: inline-block;
}


.text-support-orange {
    color: var(--support-orange);
}




/* .modal-default {
    background-color: rgba(0,0,0,0.4);
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
}

.modal-default > .modal-card {
    width: 460px;
    max-width: calc(100% - 3rem);
    background-color: var(--primary-white);
    border-radius: 1rem;
    padding: 1rem;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
} */


@media screen and (min-width: 992px) {

    .w-md-100 {
        width: 100% !important;
    }

    .w-md-75 {
        width: 75% !important;
    }

    .col-md-5 {
        width: 41.67% !important;
    }

    .col-md-7 {
        width: 58.33% !important;
    }

    .w-pc-100 {
        width: 100% !important;
    }

}

/* ------------------------------------------------------------------------- */
/* button */
/* ------------------------------------------------------------------------- */

.default-accordion > .accordion-header > i {
    margin-left: auto;
    transition: all .2s ease-in-out;
}

.default-accordion.show > .accordion-header > i {
    transform: rotate(180deg);
}


.link-default {
    color: var(--primary-orange);
    cursor: pointer;
}

.link-default:hover,
.link-default:focus {
    filter: brightness(80%);
}

/* ------------------------------------------------------------------------- */
/* navbar */
/* ------------------------------------------------------------------------- */

.navbar {
    min-height: 80px;
    padding: 20px 0;
}

.navbar,
.navbar-transparent.scrolled {
    background-color: var(--primary-white);
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px -2px rgba(0, 0, 0, .2);
}

.navbar > div > .navbar-brand > img {
    height: 40px;
}

.navbar-transparent.scrolled > div > .navbar-brand > img {
    filter: brightness(1);
}

.nav-link.selected {
    color: var(--primary-orange) !important;
}

.nav-link {
    font-weight: 600;
    color: var(--primary-black);
}

@media screen and (min-width: 992px) {

    .navbar-transparent {
        background-color: transparent;
        box-shadow: unset;
    }

    .navbar-transparent > div > .navbar-brand > img {
        filter: brightness(10);
    }

    .navbar-transparent > div > .collapse > .navbar-nav > .nav-item > .nav-link {
        color: var(--primary-white) !important;
        transition: all 0.5s;
    }

    .navbar-transparent > div > .collapse > .navbar-nav > .nav-item > .nav-link.selected {
        color: var(--primary-white) !important;
        border-bottom: 2px solid var(--primary-white);
    }

    .navbar-transparent.scrolled > div > .collapse > .navbar-nav > .nav-item > .nav-link {
        color: var(--primary-black) !important;
    }

    .navbar-transparent.scrolled > div > .collapse > .navbar-nav > .nav-item > .nav-link.selected {
        color: var(--primary-orange) !important;
    }

}

.footer-social-icon {
    font-size: 2.2em;
    color: var(--support-orange);
    cursor: pointer;
}

.footer-social-icon:hover {
    color: var(--support-orange-bg);
}

.card-default {
    border-radius: 16px;
    padding: 24px;
    background-color: #ffffff;
}

.carousel-row > .carousel-active-slide-index {
    display: none;
}

.carousel-row-container {
    position: relative;
}

@media screen and (max-width: 992px) {

    .text-md-center {
        text-align: center;
    }

    .carousel-row {
        overflow-x: scroll;
        flex-wrap: unset;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        /* padding-left: 10vw; */
        /* padding-right: 10vw; */
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }


    .carousel-row::-webkit-scrollbar {
        display: none;
    }

    .carousel-col {
        width: 100vw !important;
        /* transform: scale(0.9); */
        transition: all 0.5s;
    }

    /* .carousel-col-active {
        transform: scale(1);
    } */
    
    /* .carousel-col.active {
        transform: scale(1);
    } */

    /* .carousel-col:nth-child(1) > .card1 {
        background-color: var(--primary-blue);
    } */
    
    /* .carousel-col:nth-child(2) > .card1 {
        background-color: var(--support-orange);
    } */

    /* .carousel-col:nth-child(3) > .card1 {
        background-color: var(--secondary-yellow);
    } */

    /* .carousel-col:nth-child(4) > .card1 {
        background-color: var(--secondary-light-blue);
    } */

    .card1 {
        border-radius: 1rem;
        height: 100%;
    }

    .card1 > img {
        width: 60%;
    }

    .carousel-indicator-container {
        display: flex;
        gap: 16px;
        justify-content: center;
        margin-top: 24px;
    }
    .carousel-indicator {
        width: 10px;
        height: 10px;
        background-color: var(--support-orange);
        border-radius: 100%;
        transition: all 600ms;
    }

    .carousel-indicator-active {
        background-color: var(--primary-orange);
    }

    .carousel-indicator.active {
        background-color: var(--primary-orange);
    }

    .carousel-row ~ .angle-left,
    .carousel-row ~ .angle-right {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        color: var(--primary-brown);
        font-size: 40px;
        width: fit-content;
    }

    .carousel-row ~ .angle-left {
        left: -.5rem;
    }

    .carousel-row ~ .angle-right {
        right: -.5rem;
    }

    .carousel-row ~ .angle-left.disabled,
    .carousel-row ~ .angle-right.disabled {
        opacity: 0.25;
    }

}

/* @media screen and (min-width: 992px) {
    .carousel-row {
        background-color: var(--support-orange-bg);
        margin-right: 0;
        margin-left: 0;
        border-radius: 1rem;
    }
} */


@media screen and (min-width: 576px) and (max-width: 992px) {
    .col-sm-10p {
        flex: 0 0 auto;
        width: 10%;
    }
}

.w-20 {
    width: 20%;
}

.w-50 {
    width: 50%;
}

.w-60 {
    width: 30%;
}

.w-30 {
    width: 30%;
}

.w-70 {
    width: 70%;
}

.w-40 {
    width: 40%;
}

.gap-4 {
    gap: 4px !important;
}

.gap-6 {
    gap: 6px !important;
}

.gap-0 {
    gap: 0 !important;
}

.gap-8 {
    gap: 8px !important;
}

.gap-12 {
    gap: 12px !important;
}

.gap-24 {
    gap: 24px !important;
}

.gap-32 {
    gap: 32px !important;
}

.gap-16 {
    gap: 16px !important;
}

.gap-64 {
    gap: 64px !important;
}

.gap-48 {
    gap: 48px !important;
}

@media screen and (min-width: 992px) {
    .d-pc-inline {
        display: inline !important;
    }
    .d-pc-inline-block {
        display: inline-block !important;
    }
    .d-pc-flex {
        display: flex !important;
    }
    .d-pc-grid {
        display: grid !important;
    }
    .d-pc-block {
        display: block !important;
    }
    .d-pc-none {
        display: none !important;
    }
    .order-pc-1 {
        order: 1!important;
    }
    .order-pc-2 {
        order: 2!important;
    }
    .text-pc-start {
        text-align: left !important;
    }
    .text-pc-end {
        text-align: right !important;
    }
    .w-pc-60 {
        width: 60% !important;
    }
    .gap-pc-48 {
        gap: 48px !important;
    }
    .gap-pc-32 {
        gap: 32px !important;
    }
    .gap-pc-24 {
        gap: 24px !important;
    }
    .flex-pc-wrap {
        flex-wrap: wrap !important;
    }
    .flex-pc-nowrap {
        flex-wrap: nowrap !important;
    }
    .w-pc-75 {
        width: 75% !important;
    }
}


.w-90 {
    width: 90% !important;
}



.color-primary-brown {
    color: var(--primary-brown) !important;
}

.h-75vh {
    height: 75vh !important;
}


.modal-default {
    position: relative;
    z-index: 1019;
}

.modal-default > div:nth-child(1) {
    content: '';
    background: #c69f8a4d;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-default > div:nth-child(2) {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 384px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    overflow: auto;
    border-radius: 16px;
    padding: 24px;
    background-color: var(--primary-white);
    overflow: hidden;
}

.modal-default.ng-hide-add,
.modal-default.ng-hide-remove {
    transition: all 200ms ease;
}

.modal-default.ng-hide-add-active {
    opacity: 0;
}
