/*
 Theme Name:   Hello Elementor Child
 Theme URI:    -
 Description:  Child theme for Hello Elementor
 Author:       Amy Man
 Author URI:   -
 Template:     hello-elementor
 Version:      1.0
 Text Domain:  hello-elementor-child
*/

/* Disable view cart button */
.elementor-button--view-cart,
.elementor-wc-products .added_to_cart,
:is(.e-loop-item .elementor-widget-woocommerce-product-add-to-cart, .woocommerce div.product .e-loop-item .elementor-widget-woocommerce-product-add-to-cart) .added_to_cart {
    display: none !important;
}


/* Disable pointer events on product images and titles to prevent clicking */
.woocommerce-loop-product__link,
.elementor-menu-cart__product-image a,
.elementor-menu-cart__product-name a {
    pointer-events: none;
}

.elementor-menu-cart__container {
    display: none !important;
}

/* Cart Page */
.woocommerce .qty::-webkit-outer-spin-button,
.woocommerce .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.woocommerce .qty {
    -moz-appearance: textfield;
}

body.e-wc-message-notice .woocommerce-message, 
body.e-wc-message-notice .wc-block-components-notice-banner.is-success {
	background-color: #d8d8d821 !important;
}

.woocommerce-cart-form .product-quantity {
	text-align: right;
}

.woocommerce-cart-form .product-quantity-container .quantity {
	border: 1px solid #0e000033;
	display: inline-flex;
	flex-direction: row;
    justify-content: center;
    align-items: center;
}

.woocommerce-cart-form .product-quantity-container .qty-button {
	border: none;
	border-radius: 0;
    padding: 5px 20px;
    font-size: 30px;
	font-weight: 500;
    color: #000000;
    cursor: pointer;
}

.woocommerce-cart-form .product-quantity-container .qty-button:hover,
.woocommerce-cart-form .product-quantity-container .qty-button:focus,
.woocommerce-cart-form .product-quantity-container .qty-button:active {
	background-color: #ffffff;
}

.elementor-widget-woocommerce-cart .woocommerce .product-quantity-container .input-text.qty {
	width: 65px;
	max-height: none;
	padding: 10px;
    text-align: center;
    border: none;
    border-radius: 0;
	font-size: 24px;
    font-weight: 500;
	background-color: #00000024;
    color: #000000;
}

.woocommerce-cart-form .qty-text-container {
	display: flex;
	align-items: flex-end;
    height: 100%;
}

.elementor-widget-woocommerce-cart .woocommerce table.cart td .qty-text-container span {
	font-family: "Noto Sans TC", Sans-serif;
    font-size: 30px;
	color: #000000;
	white-space: nowrap;
}

.elementor-widget-woocommerce-cart .woocommerce .woocommerce-cart-form .product-subtotal {
	padding-right: 0;
}

.elementor-widget-woocommerce-cart .woocommerce .woocommerce-cart-form .product-subtotal .product-qty-subtotal-container {
	display: flex;
	flex-direction: row;
	align-items: flex-end;
    justify-content: flex-end;
    gap: 30px;
}

.elementor-widget-woocommerce-cart .woocommerce .woocommerce-cart-form .product-subtotal .product-subtotal-container {
	text-align: right;
}

.elementor-widget-woocommerce-cart .woocommerce .woocommerce-cart-form table.cart td .original-price span {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.5em;
	color: #000000;
}

.elementor-widget-woocommerce-cart .woocommerce .woocommerce-cart-form table.cart td .price span {
    font-family: "Noto Sans TC", Sans-serif;
    font-size: 44px;
    font-weight: 800;
    text-decoration: none;
    line-height: 1.2em;
    letter-spacing: 2px;
	color: #ed1c25;
}

.woocommerce .cart-form-divider {
	border-bottom: 0;
    border-top: 1px solid #d8d8d8;
    margin: 50px auto;
}

.woocommerce .cart-form-btn-container {
	display: flex;
    justify-content: center;
    align-items: center;
}

.woocommerce .cart-form-btn-container .cart-form-btn {
	width: 100%;
	padding: 30px;
	border: 0.82px solid #58595B;
    border-radius: 10px;
    text-align: center;
	font-size: 32px;
	font-weight: 500;
	letter-spacing: 5px;
	color: #58595B !important;
}

.woocommerce .cart_totals table.shop_table,
.woocommerce .cart_totals table.shop_table td .woocommerce-Price-amount {
	font-family: "Noto Sans TC", Sans-serif;
    font-size: 42px;
    font-weight: 500 !important;
    line-height: 1.5em;
	letter-spacing: 2px;
}

.woocommerce .cart_totals table.shop_table th.label {
	display: inline-block !important;
	width: auto;
	padding: 0 10px;
    vertical-align: middle;
	font-size: 24px;
	font-weight: 500;
	letter-spacing: 5px;
	color: #000000;
}

.woocommerce .cart_totals .wc-proceed-to-checkout {
	padding-top: 80px;
}

/* Checkout Page */
form.checkout .form-section {
	padding-bottom: 30px;
}

form.checkout .form-section.place-order {
	text-align: center;
}

form.checkout .form-container {
	width: 100%;
	max-width: 960px;
	display: flex;
    flex-direction: column;
    margin: auto;
	gap: 20px;
}

form.checkout .form-container-row {
	display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
	gap: 20px;
}

form.checkout .form-section.appointment-shop .form-container-row {
	justify-content: flex-start;
}

form.checkout .divider {
	border-bottom: 0;
    border-top: 1px solid #d8d8d8;
    margin: 10px auto 50px;
}

form.checkout .custom-radio-checkbox > label,
form.checkout .form-row label {
	display: none;
}

form.checkout .custom-radio-checkbox .woocommerce-input-wrapper {
    display: flex;
    gap: 20px 100px;
    flex-wrap: wrap;
	font-family: "Noto Sans TC", Sans-serif;
	font-size: 28px;
    font-weight: 500;
    line-height: 1.5em;
    letter-spacing: 2px;
    color: #000000;
}

form.checkout .styled-radio {
    display: flex;
    align-items: center;
    position: relative;
	gap: 10px;
    cursor: pointer;
}

form.checkout .styled-radio input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 40px;
    height: 40px;
    margin: 0;
    border: 2px solid #58595b;
    border-radius: 5px;
    background-color: #fff;
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

form.checkout .styled-radio input[type="radio"]:checked::before {
    content: "";
    position: absolute;
    left: 15px;
    top: -12px;
    width: 20px;
    height: 45px;
    border: solid #000000;
    border-width: 0 4px 4px 0;
    transform: rotate(45deg);
}

form.checkout .form-section .title {
	margin-top: 60px;
	font-family: "Noto Sans TC", Sans-serif;
	font-size: 32px;
    font-weight: 500;
    line-height: 1.5em;
    letter-spacing: 2px;
    color: #000000;
}

form.checkout .form-section .cart_list {
	background-color: #D8D8D821;
    border-radius: 50px;
    width: 106%;
	padding: 30px 50px;
    margin-left: -3%;
    margin: 50px -3% 20px;
}

form.checkout .form-section .cart_list table tr {
	border-bottom: 1px solid #0e00003b;
}

form.checkout .form-section .cart_list table tr:last-child {
	border: 0;
}

form.checkout .form-section .cart_list table td {
	padding: 50px 0;
	border: 0;
	background: transparent;
	vertical-align: middle;
	font-family: "Noto Sans TC", Sans-serif;
    font-size: 30px;
    line-height: 1.5em;
	color: #58595B;
}

form.checkout .form-section .cart_list table td:first-child {
	padding-right: 10px;
}

form.checkout .form-section .cart_list table .product-qty-subtotal-container {
	display: flex;
    align-items: flex-end;
    justify-content: flex-end;
	gap: 30px;
	text-align: right;
}

form.checkout .form-section .cart_list table .qty-text-container {
	vertical-align: bottom;
	color: #000000;
	text-wrap: nowrap;
}

form.checkout .form-section .cart_list .original-price {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.5em;
    color: #000000;
}

form.checkout .form-section .cart_list .discounted-price {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2em;
    letter-spacing: 2px;
    color: #ed1c25;
}

form.checkout .form-section .cart_totals td:not(.label) {
	text-align: right !important;
}

form.checkout .form-container-row p {
	margin: 0 !important;
}

form.checkout .form-container-row p.label {
	width: 200px;
    font-family: "DFYuanHK", Sans-serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.5em;
	-webkit-text-stroke-width: 0.5px;
    stroke-width: 0.5px;
    -webkit-text-stroke-color: #4C222E;
    stroke: #4C222E;
	color: #4C222E;
}

form.checkout .form-container-row p:not(.label) {
	width: 100% !important;
}

.woocommerce form.checkout .form-row input,
.woocommerce form.checkout .form-row input::placeholder,
.woocommerce form.checkout .form-row .input-text,
.woocommerce form.checkout .form-row .select2-selection span,
.woocommerce form.checkout .form-row select {
	font-family: "Noto Sans TC", Sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.5em;
}

.woocommerce form.checkout .form-row input,
.woocommerce form.checkout .form-row .input-text,
.woocommerce form.checkout .form-row select {
	border: 2px solid #9D9FA2;
	border-radius: 5px;
	padding: 10px 20px;
}

.woocommerce form.checkout .form-row .select2-container {
	width: 100% !important;
}

.woocommerce form.checkout .form-row .select2-selection {
	border: 2px solid #9D9FA2 !important;
	border-radius: 5px;
	padding: 0 20px;
	height: auto;
}

.woocommerce form.checkout .form-row .select2-selection span {
	padding-left: 0;
	padding-right: 20px;
}

.woocommerce form.checkout .form-row .select2-selection .select2-selection__arrow b {
	background-size: 30px;
    width: 30px;
    height: 30px;
    left: -15px;
}

form.checkout #place_order {
    background: linear-gradient(0deg, #B65A67 0%, #E7A5B3 10%, #B65A67 50%, #B65A67 100%);
    background-size: 200% 200%;
    background-position: 100% 100%;
    transition: background-position 0.5s ease;
    -webkit-text-stroke-width: 0.5px;
    stroke-width: 0.5px;
    -webkit-text-stroke-color: white;
    stroke: white;
    font-family: "DFYuanHK", Sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.5em;
    letter-spacing: 10px;
	min-width: 300px;
	padding: 10px 10px 10px 20px;
	margin-top: 50px;
    border-radius: 50px;
    border: 0 !important;
}

form.checkout #place_order:hover {
    background-position: 105% 105%;
}

/* checkout - day & time */
form.checkout .thwdtp-delivery-time {
	display: block !important;
}

/* Thankyou Page */
.woocommerce-order .order_details {
	display: flex;
	flex-direction: column;
	gap: 40px;
	font-family: "DFYuanHK", Sans-serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.5em;
	color: #4C222E;
	-webkit-text-stroke-width: 0.5px;
    stroke-width: 0.5px;
    -webkit-text-stroke-color: #4C222E;
    stroke: #4C222E;
}

.woocommerce-order .order_details .row {
	display: flex;
	flex-direction: row;
	gap: 20px;
}

.woocommerce-order .order_details p {
	margin: 0 !important;
    word-break: break-all;
}

.woocommerce-order .order_details .label {
	min-width: 150px;
}

.woocommerce-order .order_details .treatment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.woocommerce-order .order_details .treatment-item {
    display: flex;
    justify-content: space-between;
	width: 100%;
}

.woocommerce-order .order_details .treatment-item .col {
    font-size: 20px;
}

.woocommerce-order .order_details .treatment-item .qty {
    text-align: right;
	text-wrap: nowrap;
	padding-left: 20px;
}

@media only screen and (max-width: 1024px) {
/* Cart Page */
	.elementor-widget-woocommerce-cart .woocommerce .cart td:before {
		display: none;
	}
	
	.woocommerce table.shop_table_responsive tr td,
	.woocommerce-page table.shop_table_responsive tr td {
		text-align: left !important;
	}
	
	.elementor-widget-woocommerce-cart .woocommerce table.cart tr.cart_item {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
	}
	
	.elementor-widget-woocommerce-cart .woocommerce table.cart tr.cart_item td {
		width: 50%;
		border: 0;
	}
	
	.elementor-widget-woocommerce-cart .woocommerce table.cart tr.cart_item .product-remove {
		width: 50px;
	}
	
	.elementor-widget-woocommerce-cart .woocommerce table.cart tr.cart_item .product-name {
		width: calc(100% - 50px);
	}
	
	.woocommerce-cart-form .product-quantity-container {
		margin-left: 60px;
	}
	
	.elementor-widget-woocommerce-cart .woocommerce table.cart tr.cart_item .product-subtotal {
		text-align: right !important;
	}
	
	.elementor-widget-woocommerce-cart .woocommerce table.cart td .qty-text-container span,
	.elementor-widget-woocommerce-cart .woocommerce .woocommerce-cart-form table.cart td .original-price span {
		font-size: 24px;
	}

	.elementor-widget-woocommerce-cart .woocommerce .woocommerce-cart-form table.cart td .price span {
		font-size: 38px;
	}
	
	.elementor-widget-woocommerce-cart .woocommerce .cart_totals table.shop_table tr {
		display: flex;
		flex-direction: row;
        justify-content: space-between;
		align-items: center;
	}
	
	.elementor-widget-woocommerce-cart .woocommerce .cart_totals table.shop_table th {
		width: auto;
	}
	
/* 	Checkout Page */
	form.checkout .form-section .title {
		font-size: 22px;
	}
	
	form.checkout .form-section .cart_list {
		width: 100%;
		margin: auto;
		padding: 30px;
	}
	
	form.checkout .form-section .cart_list table td {
		font-size: 28px;
	}
	
	form.checkout .form-section .cart_list table .qty-text-container,
	form.checkout .form-section .cart_list .original-price {
		font-size: 24px;
	}
	
	form.checkout .form-section .cart_list .discounted-price {
		font-size: 38px;
	}
	
/* Thankyou Page */
	.woocommerce-order .order_details {
		font-size: 22px;
		gap: 30px;
	}
}

@media only screen and (max-width: 767px) {
/* Cart Page */
	.elementor-widget-woocommerce-cart .woocommerce table.cart tr.cart_item {
	    align-items: flex-end;
	}
	
	.elementor-widget-woocommerce-cart .woocommerce table.cart tr {
		padding: 0 !important;
	}
	
	.woocommerce-cart-form .product-quantity-container {
		margin-left: 0;
	}
	
	.woocommerce-cart-form .product-quantity-container .qty-button {
		padding: 5px 15px;
	}
	
	.elementor-widget-woocommerce-cart .woocommerce .product-quantity-container .input-text.qty {
		width: 50px;
        height: 55px;
        padding: 5px;
	}
	
	.elementor-widget-woocommerce-cart .woocommerce .woocommerce-cart-form .product-subtotal .product-qty-subtotal-container {
		gap: 20px;
	}
	
	.elementor-widget-woocommerce-cart .woocommerce table.cart td .qty-text-container span,
	.elementor-widget-woocommerce-cart .woocommerce .woocommerce-cart-form table.cart td .original-price span {
		font-size: 20px;
	}

	.elementor-widget-woocommerce-cart .woocommerce .woocommerce-cart-form table.cart td .price span {
		font-size: 32px;
		letter-spacing: 0;
	}
	
	.woocommerce .cart-form-btn-container .cart-form-btn {
		padding: 20px;
		font-size: 24px;
	}
	
	.woocommerce .cart_totals table.shop_table th.label {
		font-size: 18px;
		letter-spacing: 0;
		padding: 0;
	}
	
	.woocommerce .cart_totals table.shop_table td {
		padding: 0;
	}
	
	.woocommerce .cart_totals table.shop_table,
	.woocommerce .cart_totals table.shop_table td .woocommerce-Price-amount {
		font-size: 30px;
		letter-spacing: -0.5px;
	}
	
/* 	Checkout Page */
	form.checkout .form-container-row {
		gap: 10px;
	}
	
	form.checkout .form-section .cart_list {
        padding: 10px 30px;
    }
	
	form.checkout .form-section .cart_list table tr {
		display: flex;
		flex-flow: wrap;
		padding: 40px 0;
	}
	
	form.checkout .form-section .cart_list table td {
		width: 100%;
		padding: 10px 0;
	}
	
	form.checkout .form-section .cart_totals {
		padding: 30px 0px;
	}
	
	form.checkout .form-section .cart_totals tr {
		padding: 5px 0px;
        display: flex;
        justify-content: space-between;
        align-items: center;
	}
	
	form.checkout .form-section .cart_list table td {
		font-size: 22px;
	}
	
	form.checkout .form-section .cart_list table .qty-text-container,
	form.checkout .form-section .cart_list .original-price {
		font-size: 20px;
	}
	
	form.checkout .form-section .cart_list .discounted-price {
		font-size: 32px;
	}
	
	form.checkout .form-container-row p.label {
		width: 100px;
		font-size: 18px;
	}

	.woocommerce form.checkout .form-row input,
	.woocommerce form.checkout .form-row input::placeholder,
	.woocommerce form.checkout .form-row .input-text,
	.woocommerce form.checkout .form-row .select2-selection span,
	.woocommerce form.checkout .form-row select {
		font-size: 18px;
	}
	
	.woocommerce form.checkout .form-row input[type=date] {
		width: 92% !important;
		-webkit-min-logical-width: 100%;
	}
	
	.woocommerce form.checkout .form-row .select2-selection .select2-selection__arrow b {
		top: 35%;
	}
	
/* Thankyou Page */
	.woocommerce-order .order_details {
		font-size: 18px;
	}
	
	.woocommerce-order .order_details .label {
		min-width: 90px;
	}
	
	.woocommerce-order .order_details .row:nth-child(2) {
		flex-direction: column;
	}
}