﻿
[v-cloak] {
    display: none;
}

:root {
    --page-max-width: 1280px;
    --page-width: calc(100% - 40px);
}

html {
    
}

body {
    width: 100%;
    min-height: 100vh;
    color: #000000;
    font-family: "Microsoft JhengHei";
}

body > main {
    width: 100%;
    height: 100%;
    min-height: 623px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

body > main > .right-link {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

body > main > .right-link > a {
    width: 60px;
    height: 60px;
    display: block;
}

body > main > .right-link > a > img {
    width: 100%;
    height: 100%;
}

body > main > .right-link > a.shop {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

body > main > .right-link > a.shop > .bg-box {
    width: 53px;
    height: 53px;
    background-color: #e7733b;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

body > main > .right-link > a.shop > img {
    max-width: 35px;
    max-height: 35px;
}

body > main > .right-link > a.shop > .cart-count {
    min-width: 20px;
    height: 20px;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 0 5px;
    background-color: #c91f1f;
    border: 2px solid #ffffff;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    position: absolute;
    top: -2px;
    right: -2px;
    z-index: 1;
}

/* ---------------------------------------------------------------------------------------------------- */

:where(.remove-category-box, .remove-item-box, .remove-discount-box, .finish-info-box, .error-info-box) {
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid #daf6ff;
    border-radius: 4px;
    box-shadow: 0px 0px 9px #000000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 20px 15px 20px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

:where(.remove-category-box, .remove-item-box, .remove-discount-box, .finish-info-box, .error-info-box) > span {
    text-shadow: 0px 0px 9px #daf6ff;
    color: #daf6ff;
    font-family: 'Inconsolata', monospace;
    font-size: 24px;
    font-weight: 700;
}

:where(.remove-category-box, .remove-item-box, .remove-discount-box, .finish-info-box, .error-info-box) > span + span {
    margin-top: 10px;
}

/* ---------------------------------------------------------------------------------------------------- */

.container-bg-img {
    width: 100%;
    height: 100%;
    opacity: 0.3;
    overflow: hidden;
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: -1;
}

.container-bg-img > img {
    width: 100%;
}

select,
textarea,
input {
    border: 1px solid #999999;
    border-radius: 20px;
    box-sizing: border-box;
    color: #7c7c7c;
    font-family: "Microsoft JhengHei";
    font-size: 20px;
    font-weight: 700;
    outline: none;
    padding: 1px 15px 2px 15px;
    resize: none;
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    margin: 0; 
}
input[type=number] {
    -moz-appearance:textfield;
}

textarea {
    padding: 15px;
}

select {
    padding: 0px 11px 1px 11px;
    letter-spacing: 2px;
}

select > option {
    color: #7c7c7c;
    font-weight: 700;
}

button {
    border: none;
    border-radius: 16px;
    box-sizing: border-box;
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    outline: none;
    padding: 0px;
}

button:hover {
    -webkit-filter: brightness(105%); /* Safari */
    filter: brightness(105%);
}

.search-box {
    width: 200px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    position: relative;
}

.search-box > span,
.search-box > span {
    display: inline-block;
    white-space: nowrap;
}

.search-box .search-input {
    width: 100% !important;
    height: 40px !important;
    border: 1px solid #9b9b9b;
    font-size: 18px;
    padding: 1px 31px 4px 15px;
    pointer-events: auto;
}

.search-box > i {
    color: #9b9b9b;
    cursor: pointer;
    font-size: 20px;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.search-box input { font-size: 16px; }

.search-box input::placeholder {
    color: #9b9b9b;
    font-size: 16px;
}

.search-box button {
    background-color: rgba(0, 0, 0, 0);
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.search-box button > i {
    color: #9b9b9b;
    cursor: pointer;
    font-size: 20px;   
}

.search-box > form {
    width: 100%;
    height: 40px;
    pointer-events: auto;
    position: relative;
}

.info-link {
    width: 100px;
    height: 34px;
    background-color: #8cbdcd;
    border-radius: 20px;
    box-sizing: border-box;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    padding-bottom: 1px;
}

.btn_close { background-color: #9c1f1f; }
.btn_save { background-color: #8ac1cc; }
