﻿
/* 勿動 */
font[size="4"] {
    font-size: 20px;
}

font[size="6"] {
    font-size: 34px;
}

/* ---------------------------------------------------------------------------------------------------- */

[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%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

select,
textarea,
input {
    border: 1px solid #666666;
    border-radius: 20px;
    box-sizing: border-box;
    color: #7c7c7c;
    font-family: "Microsoft JhengHei";
    font-size: 20px;
    font-weight: 700;
    outline: none;
    padding: 1px 15px 1px 15px;
    resize: none;
}

select {
    padding: 0px 11px 1px 11px;
    letter-spacing: 2px;
}

select > option {
    color: #7c7c7c;
    font-weight: 700;
}

textarea {
    padding: 15px;
}

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;
}

input::placeholder {
    color: #7c7c7c;
    font-weight: 700;
    letter-spacing: 2px;
}

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%);
}

/* ---------------------------------------------------------------------------------------------------- */

.full-mask {
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 6;
}

/* ---------------------------------------------------------------------------------------------------- */

: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;
}

/* ---------------------------------------------------------------------------------------------------- */

.window-box {
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9;
}

.window-header {
    width: 100%;
    background-color: #000000;
    border-top: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-bottom: none;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.window-header > .title {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 5px;
}

.window-header > .close-btn {
    background-color: #9c1f1f;
    border-radius: 50%;
    position: relative;
}

.window-header > .close-btn::before {
    content: "";
    border-bottom: 3px solid #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.window-header > .close-btn::after {
    content: "";
    width: 24px;
    border-bottom: 3px solid #ffffff;
    transform: translate(-50%, -50%) rotate(-45deg);
    position: absolute;
    top: 50%;
    left: 50%;
}

.window-header > .close-btn:hover {
    -webkit-filter: brightness(110%); /* Safari */
    filter: brightness(110%);
}

.window-box > .content {
    width: 100%;
    background-color: #fff9f2;
    border-top: none;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* ---------------------------------------------------------------------------------------------------- */

.dots {
    width: 6px;
    height: 6px;
    background-color: #7c7c7c;
    border-radius: 50%;
    margin-top: 3px;
}

.dots-box {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.dots-box::before {
    content: "";
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    background-color: #7c7c7c;
    border-radius: 50%;
    margin-top: 3px;
}

.dots-box > span {
    color: #7c7c7c;
    font-weight: 700;
    letter-spacing: 2px;
}

/* ---------------------------------------------------------------------------------------------------- */

.message-box {
    display: none;
}

.message-box > .content > p {
    font-weight: 700;
    letter-spacing: 2px;
}

.message-box > .content > button {
    width: 140px;
    height: 40px;
    background-color: #815118;
    border: 2px solid #815118;
    border-radius: 30px;
    font-size: 20px;
}

/* ---------------------------------------------------------------------------------------------------- */

.confirm-box {
    display: none;
}

.confirm-box > .content > p {
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
}

.confirm-box > .content > .box {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.confirm-box > .content > .box > button {
    width: 140px;
    height: 40px;
    border-radius: 30px;
    font-size: 20px;
}

.confirm-box > .content > .box > #confirm-cancel-btn {
    background-color: #9c1f1f;
    border: 2px solid #9c1f1f;
}

.confirm-box > .content > .box > #confirm-save-btn {
    background-color: #815118;
    border: 2px solid #815118;
}

@media screen and (max-width: 767px) {
    input::placeholder {
        font-size: 16px;
    }

    /* ---------------------------------------------------------------------------------------------------- */

    .window-header {
        height: 50px;
        padding: 0px 20px;
    }

    .window-header > .title {
        width: calc(100% - 50px);
        font-size: 20px;
    }

    .window-header > .close-btn {
        width: 30px;
        height: 30px;
    }

    .window-header > .close-btn::before {
        width: 12px;
    }

    .window-header > .close-btn::after {
        width: 12px;
    }

    .window-box > .content {
        gap: 25px;
        padding: 25px;
    }

    /* ---------------------------------------------------------------------------------------------------- */

    .dots-box > span {
        font-size: 18px;
    }

    /* ---------------------------------------------------------------------------------------------------- */

    .message-box {
        width: var(--page-width);
    }
    
    .message-box > .content > p {
        font-size: 18px;
    }

    /* ---------------------------------------------------------------------------------------------------- */

    .confirm-box {
        width: var(--page-width);
    }
    
    .confirm-box > .content > p {
        font-size: 18px;
    }
}

@media screen and (min-width: 768px) {
    input::placeholder {
        font-size: 20px;
    }

    /* ---------------------------------------------------------------------------------------------------- */

    .window-header {
        height: 70px;
        padding: 0px 25px;
    }

    .window-header > .title {
        width: calc(100% - 60px);
        font-size: 24px;
    }

    .window-header > .close-btn {
        width: 40px;
        height: 40px;
    }

    .window-header > .close-btn::before {
        width: 24px;
    }

    .window-header > .close-btn::after {
        width: 24px;
    }

    .window-box > .content {
        gap: 30px;
        padding: 30px;
    }

    /* ---------------------------------------------------------------------------------------------------- */

    .dots-box > span {
        font-size: 20px;
    }

    /* ---------------------------------------------------------------------------------------------------- */

    .message-box {
        min-width: 200px;
    }
    
    .message-box > .content > p {
        font-size: 20px;
    }

    /* ---------------------------------------------------------------------------------------------------- */

    .confirm-box {
        min-width: 200px;
    }
    
    .confirm-box > .content > p {
        font-size: 24px;
    }
}
