
/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* general */
body{
    font-size: 16px;
    font-family: Arial,'微軟正黑體', sans-serif;
    word-break: break-word;
    color: #1C1C1C;
    background-color: #F6F6F6;
    margin: 0;
    padding: 0;
}
/* text */
h1, h2, h3, h4, h5, h6{
    color: #1C1C1C;
    font-weight: 700;
}
h1, h2, h3, h4, h5, h6, p, td, th{
    line-height: 1.3;
}
h1{
    font-size: 3rem;
}
h2{
    font-size: 2.5rem;
}
h3{
    font-size: 2rem;
}
h4{
    font-size: 1.5rem;
}
h5{
    font-size: 1.25rem;
}
h6{
    font-size: 1rem;
}
p{
    font-size: 1rem;
}
@media(max-width:768px){
    h1{
        font-size: 2.5rem;
    }
    h2{
        font-size: 2rem;
    }
    h3{
        font-size: 1.5rem;
    }
    h4{
        font-size: 1.25rem;
    }
    h5{
        font-size: 1rem;
    }
    h6{
        font-size: .875rem;
    }
    p{
        font-size: .875rem;
    }
}
a{
    color: #4573D2;
    text-decoration: underline;
}
a:visited,
a:hover,
a:active{
    color: #054488;
}

/* text-align */
.text-right {
    text-align: right;
}
.text-left {
    text-align: left;
}
.text-center {
    text-align: center;
}

/* color */
.text-primary{
    color: #054488;
}
.text-red{
    color: #CD403C;
}
/* highlight */
.highlight{
    font-size: 0.875rem;
    color: #CD403C;
    margin-left: 5px;
}

/* padding */
.pl-1{
    padding-left: 5px;
}
.pr-1{
    padding-right: 5px;
}
.mb-1{
    margin-bottom: 10px;
}

/* other */
img{
    width: 100%;
    margin: 0 auto;
}
.hidden, .noshow{
    display: none;
}
.op0{
    opacity: 0;
}

/* btn */
.btn-wrapper{
    margin: 25px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn{
    font-size: 1.25rem;
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all .3s;
}
.btn-black-outline{
    color: #666666;
    background-color: #fff;
    border: 1px solid #666666;
}
.btn-black-outline:hover{
    color: #fff;
    background-color: #666666;
}
.btn-blue{
    color: #fff;
    background-color: #054488;
    border: 1px solid #054488;
}
.btn-blue:hover{
    color: #054488;
    background-color: #fff;
}
@media(max-width:768px){
    .btn{
        font-size: 1rem;
        padding: 10px 15px;
    }
}

/* table */
table.init-form{
    width: 100%;
    border-spacing: 0;
}
input[type=checkbox].init-check-input {
    font-size: 1rem;
    position: relative;
    cursor: pointer;
}
input[type=checkbox].init-check-input:before {
    content: "";
    display: block;
    position: absolute;
    width: 15px;
    height: 15px;
    top: 0;
    left: 0;
    border: 1px solid #1C1C1C;
    border-radius: 3px;
    background-color: white;
}
input[type=checkbox].init-check-input:checked:after {
    content: "\f00c";
    display: block;
    position: absolute;
    top: 0;
    left: 0; 
    font-family: 'FontAwesome';
}
input[type=radio].init-radio-input {
    position: relative;
    cursor: pointer;
}
input[type=radio].init-radio-input:before {
    content: "";
    display: block;
    position: absolute;
    width: 13px;
    height: 13px;
    border: 1px solid #1C1C1C;
    border-radius: 20px;
    background-color: white;
}
input[type=radio].init-radio-input:checked:after {
    content: "";
    display: block;
    background-color: #1C1C1C;
    width: 7px;
    height: 7px;
    position: absolute;
    border-radius: 20px;
}
input[type=radio].init-radio-input:checked:after,
input[type=radio].init-radio-input:before{
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
input[type=checkbox].init-check-input,
input[type=radio].init-radio-input{
    margin-right: 10px;
}

/* container */
.container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 60px;
}
@media(max-width:1250px){
    .container{
        max-width: 960px;
    }
}
@media(max-width:992px){
    .container{
        max-width: 720px;
    }
}
@media(max-width:768px){
    .container{
        max-width: 540px;
        padding: 50px 15px;
    }
}
@media(max-width:576px){
    .container{
        max-width: 100%;
    }
}


/* .header */
.header{
    background-color: #fff;
    border: 1px solid #DADADA;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 15px 50px;
}
.header .header-logo img{
    width: 250px;
    margin: inherit;
}
@media(max-width: 768px){
    .header{
        padding: 10px 20px;
    }
    .header .header-logo img{
        width: 150px;
    }
}


/* info */
.info .info-title,
.info .info-account{
    margin-bottom: 20px;
}
.info .info-title{
    color: #1C1C1C;
}
.info .info-account{
    font-weight: 400;
    color: #666;
}


/* .content */
.box-content{
    background-color: #fff;
    padding: 25px 50px;
    border: 1px solid #DDDDDD;
}
.box-content.box-content-sm{
    padding: 20px 30px;
}
.box-header h5{
    color: #fff;
    background-color: #3A3A3A;
    padding: 10px;
}
@media(max-width:768px){
    .box-content{
        padding: 15px 10px;
    }
}
@media(max-width:576px){
    .box-content{
        padding: 10px 5px;
    }
    .box-content.box-content-sm{
        padding: 10px;
    }
}


/* carts */
.carts-items{
    margin-bottom: 15px;
}
.carts-items th,
.carts-items td{
    font-size: 1.125rem;
    border-bottom: 1px solid #DADADA;
    padding: 15px 10px;
}
.carts-items thead th{
    font-size: 1rem;
    font-weight: 400;
    color: #919191;
    padding-top: 0;
    padding-bottom: 10px;
    border-width: 2px;
}
.carts-items tbody td{
    font-weight: 700;
    color: #1C1C1C;
}
.carts-items th:first-child,
.carts-items td:first-child{
    text-align: center;
    width: 15px;
}
.carts-items th:nth-child(2),
.carts-items td:nth-child(2){
    text-align: left;
    width: calc(100% - 100px);
}
.carts-items th:nth-child(3),
.carts-items td:nth-child(3){
    text-align: right;
    word-break: keep-all;
    max-width: 70px;
}
@media(max-width: 768px){
    .carts-items tr{
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        border-bottom: 1px solid #DADADA;
    }
    .carts-items th,
    .carts-items td{
        font-size: 1rem;
        padding: 15px 5px;
        border: none !important;
    }
    .carts-items th:nth-child(2), 
    .carts-items td:nth-child(2){
        padding-left: 10px;
    }
    .carts-items td:nth-child(2){
        width: calc(100% - 40px);
        padding-right: 0;
    }
    .carts-items td:nth-child(3){
        text-align: right;
        width: 100%;
        max-width: 100%;
        padding-top: 0;
    }
}
@media(max-width: 576px){
    .carts-items th,
    .carts-items td{
        padding: 10px 5px;
    }
}


/* total-area */
.total-area{
    display: flex;
    justify-content: space-between;
    align-items: flex-end; 
}
.total-area .delete_btn.btn-black-outline,
.total-area #delete_btn{
    font-size: 1em;
    font-weight: 400;
    color: #666;
    cursor: pointer;
}
.total-area .delete_btn.btn-black-outline{ 
    padding: 5px 15px;
}
.total-area #delete_btn{
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
}
.total-area .delete_btn.btn-black-outline:hover i,
.total-area .delete_btn.btn-black-outline:hover #delete_btn{ 
    color: #fff;
}
.total-area .cal_total{
    font-size: 1.125rem;
    color: #919191;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
}
.total-area .cal_total-detail{
    padding-left: 10px;
    margin-top: 10px;
}
.total-area .cal_total span,
.total-area .cal_total #total,
.total-area .cal_total #currency{
    font-size: 1.375rem;
    font-weight: 700;
    color: #1C1C1C;
}
@media(max-width: 768px){
    .total-area{
        flex-direction: column;
        align-items: flex-start;
    }
    .total-area .delete_btn.btn-black-outline{
        margin-bottom: 15px;
    }
    .total-area .cal_total{
        margin: 0 auto;
    }
}


/* no-items */
.no-items {
    position: relative;   
}
.no-items img{
    max-width: 400px;
}


/* form-details */
.form-details{
    margin-bottom: 30px;
}
.form-details .form-details-child{
    background-color: #F6F6F6;
    padding: 10px 20px 25px 20px;
}
.form-details .order-field-content{
    margin: 12px 0 15px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
}
.form-details .order-field-content:last-child{
    margin-bottom: 0;
}
.order-field-header{
    font-size: 1rem;
    font-weight: 700;
    color: #919191;
    display: block;
    width: 100%;
}
.order-field-value,
.order-field-radio{
    font-size: 1.125rem;
    color: #1C1C1C;
    margin-top: 10px;
    display: inline-block;
}
.order-field-value{
    width: 100%;
    background-color: #fff;
    border: 1px solid #1C1C1C;
    border-radius: 3px;
    padding: 8px 10px;
}
.order-field-value:disabled{
    color: #919191;
    background-color: #F6F6F6;
    border: 1px solid #DADADA;
}
.order-field-radio label{
    margin-right: 10px;
    margin-bottom: 5px;
    cursor: pointer;
}
.order-field-radio label:last-child{
    margin-right: 0;
}
.policy-confirm{
    color: #666666;
    line-height: 1.3;
    padding: 25px 30px 10px 30px;
}
.policy-confirm input[type=checkbox].init-check-input:disabled{
    pointer-events: none;
    opacity: 0.3;
}
@media(max-width: 768px){
    .form-details .form-details-child{
        padding: 10px 10px 15px 10px;
    }
}


/* calendar-container */
.calendar-container {
    position: relative;
    display: inline-block;
}
.calendar {
    color: #1C1C1C;
    background: #fff;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    padding: 20px;
    box-shadow: 0 0px 10px rgba(0, 0, 0, .2);
    z-index: 1;
    display: none;
}
.calendar.show {
    display: block;
}
.calendar .disabled{
    color: #DADADA;
    pointer-events: none;
}
.calendar .calendar-header {
    font-size: 1.125rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.calendar .calendar-header .arrow {
    font-size: 0.875rem;
    cursor: pointer;
    user-select: none;
}
.calendar .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}
.calendar .day.weekday{
    font-size: 0.875rem;
    font-weight: 700;
    pointer-events: none;
}
.calendar .day {
    font-size: 1rem;
    font-weight: 400;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 23px;
    cursor: pointer;
    user-select: none;
    transition: all .1s ease-in-out;
    border: 1px solid transparent;
    box-sizing: content-box;
}
.calendar .day:hover,
.calendar .day.selected {
    background-color: #F2F2F2;
    border: 1px solid #DADADA;
}
@media(max-width:768px){
    .calendar {
        padding: 15px;
    }
    .calendar .calendar-header,
    .calendar .day {
        font-size: 0.875rem;
    }
    .calendar .day {
        width: 30px;
        height: 20px;
    }
}
@media(max-width:480px){
    .calendar .calendar-days{
        gap: 0;
    }
}
@media(max-width:350px){
    .calendar{
        left: -20px;
    }
}


/* Additional-Service */
.Additional-Service{
    background-color: #6D7BA4;
    color: #fff;
    font-weight: 700;
    padding: 3px 10px;
    font-size: 14px;
}
.tr-Additional-Service {
    background-color: #F5F7FC;
}
.Additional-Service-Desc {
    font-weight: 700;
    padding: 3px 0px;
    font-size: 14px;
}

/* policy-announce */
.policy-announce-title {
    padding: 25px 50px;
}
.policy-announce-content {
    height: 250px;
    overflow: auto;
}
.policy-announce-content p {
    text-align: justify;
}
.policy-announce-content h5 {
    margin-top: 15px;
    margin-bottom: 15px;
    text-align: center;
}
.policy-announce-content br {
    margin-bottom: 10px;
    
}
@media(max-width:768px) {
    .policy-announce-title {
        padding: 15px 10px;
    }
}
@media(max-width:576px) {
    .policy-announce-title {
        padding: 10px 5px;
    }
}

/* cart already purchased */
.Already-Bought-Tag {
    display: inline-block;
    margin-top: 5px;
    padding: 2px 6px;
    color: red;
    font-size: 14px;
    border-radius: 4px;
}

/* 已購買提示模態框樣式 */
.already-bought-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.already-bought-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.already-bought-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.already-bought-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.already-bought-modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    line-height: 20px;
    cursor: pointer;
    border: none;
    background: none;
}

.already-bought-modal-close:hover,
.already-bought-modal-close:focus {
    color: #000;
}

.already-bought-modal-body {
    padding: 30px;
    text-align: center;
}

.already-bought-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.already-bought-modal-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.already-bought-modal-body h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.already-bought-modal-body p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.6;
}

.already-bought-modal-footer {
    padding: 20px 30px;
    text-align: right;
    border-top: 1px solid #e5e5e5;
}

.already-bought-modal-footer button {
    padding: 10px 24px;
    background-color: #198754;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.already-bought-modal-footer button:hover {
    background-color: #45a049;
}