/* ========================================
   VapeSmall - Checkout Page Styles
   Modern, Clean, and Professional
======================================== */

/* 結帳頁：暫時隱藏「訂單備註」（WooCommerce 區塊結帳） */
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-note-block {
	display: none !important;
}

/* 訂閱設置關閉「支持自取」：Blocks 結帳隱藏 fieldset#shipping-method（收貨方式）與取貨地點 */
body.woocommerce-checkout.vs-checkout-fulfillment-delivery-only fieldset#shipping-method.wc-block-checkout__shipping-method,
body.woocommerce-checkout.vs-checkout-fulfillment-delivery-only fieldset.wc-block-checkout__shipping-method.wp-block-woocommerce-checkout-shipping-method-block,
body.woocommerce-checkout.vs-checkout-fulfillment-delivery-only .wp-block-woocommerce-checkout-shipping-method-block.wc-block-checkout__shipping-method,
body.woocommerce-checkout.vs-checkout-fulfillment-delivery-only .wp-block-woocommerce-checkout-pickup-options-block,
body.woocommerce-checkout.vs-checkout-fulfillment-delivery-only .wc-block-checkout__pickup-options {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	max-height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

/* 聯係咨詢欄位移至「運送信息」：需顯示運送地址區塊（覆寫 vs-hide-checkout-shipping-address 全隱藏） */
body.woocommerce-checkout.vs-consult-fields-in-shipping .wp-block-woocommerce-checkout-shipping-address-block {
	display: block !important;
}

/* 自提模式：Blocks 不渲染運送地址區塊，姓名/電話改由聯絡資訊區原位顯示。
   覆寫首屏 CSS（vapesmall-consult-first-paint）的隱藏，避免切換到自提時姓名/電話仍被藏。 */
body.woocommerce-checkout.vs-checkout-pickup-mode .wp-block-woocommerce-checkout-contact-information-block .wc-block-checkout__additional-fields__field:has(.wc-block-components-address-form__first_name),
body.woocommerce-checkout.vs-checkout-pickup-mode .wp-block-woocommerce-checkout-contact-information-block .wc-block-components-address-form__first_name,
body.woocommerce-checkout.vs-checkout-pickup-mode .wc-block-checkout__contact-information-block .wc-block-checkout__additional-fields__field:has(.wc-block-components-address-form__first_name),
body.woocommerce-checkout.vs-checkout-pickup-mode .wc-block-checkout__contact-information-block .wc-block-components-address-form__first_name,
body.woocommerce-checkout.vs-checkout-pickup-mode .wp-block-woocommerce-checkout-contact-information-block .wc-block-checkout__additional-fields__field:has(.wc-block-components-address-form__phone),
body.woocommerce-checkout.vs-checkout-pickup-mode .wp-block-woocommerce-checkout-contact-information-block .wc-block-components-address-form__phone,
body.woocommerce-checkout.vs-checkout-pickup-mode .wc-block-checkout__contact-information-block .wc-block-checkout__additional-fields__field:has(.wc-block-components-address-form__phone),
body.woocommerce-checkout.vs-checkout-pickup-mode .wc-block-checkout__contact-information-block .wc-block-components-address-form__phone,
body.woocommerce-checkout.vs-checkout-pickup-mode #contact-fields .wc-block-checkout__additional-fields__field:has(input[id*="first_name"]),
body.woocommerce-checkout.vs-checkout-pickup-mode #contact-fields .wc-block-checkout__additional-fields__field:has(input[id*="phone"]) {
	display: block !important;
}

/* 自提模式下「運送信息」紅字注記（插在聯絡資訊姓名欄上方；若存在） */
.vs-checkout-pickup-consult-notice {
	margin: 8px 0 10px;
}

/* ====================================================
   自提模式自訂「運送信息」區塊（姓名/電話）
   位置：插在取貨選項區塊（pickup-options-block）下方
   外觀：與 WC Blocks 原生「運送地址」卡片一致（圓角 20px、邊框 #01488C、無陰影）
==================================================== */
.vs-pickup-consult-fields-block {
	margin: 16px 0 24px;
	padding: 20px;
	border: 1px solid #01488C;
	border-radius: 20px;
	background: #ffffff;
	box-sizing: border-box;
	box-shadow: none;
}

.vs-pickup-consult-fields-block__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 600;
	color: #111827;
}

.vs-pickup-consult-fields-block__title::before {
	content: "";
	display: inline-block;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	background: url("/wp-content/uploads/2026/02/Container-5.png") center/contain no-repeat;
}

.vs-pickup-consult-fields-block__notice {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.55;
	color: #dc2626;
	font-weight: 500;
}

.vs-pickup-consult-fields-block__inputs {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.vs-pickup-consult-fields-block__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.vs-pickup-consult-fields-block__label {
	font-size: 13px;
	font-weight: 500;
	color: #374151;
}

.vs-pickup-consult-fields-block__required {
	color: #dc2626;
	font-weight: 700;
}

.vs-pickup-consult-fields-block__input {
	width: 100%;
	padding: 12px 14px;
	font-size: 15px;
	line-height: 1.4;
	color: #111827;
	border: 1px solid #01488C;
	border-radius: 8px;
	background: #ffffff;
	box-sizing: border-box;
	box-shadow: none;
	transition: border-color 0.15s ease;
}

.vs-pickup-consult-fields-block__input:hover {
	border-color: #01488C;
}

.vs-pickup-consult-fields-block__input:focus,
.vs-pickup-consult-fields-block__input:focus-visible {
	outline: none;
	border-color: #01488C;
	box-shadow: none;
}

.vs-pickup-consult-fields-block__input.has-error {
	border-color: #dc2626;
	background: #fef2f2;
}

.vs-pickup-consult-fields-block__input.has-error:focus,
.vs-pickup-consult-fields-block__input.has-error:focus-visible {
	border-color: #dc2626;
	box-shadow: none;
}

.vs-pickup-consult-fields-block__error {
	margin: 2px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: #dc2626;
	font-weight: 500;
}

@media (min-width: 640px) {
	.vs-pickup-consult-fields-block__inputs {
		flex-direction: row;
		flex-wrap: wrap;
	}
	.vs-pickup-consult-fields-block__field {
		flex: 1 1 calc(50% - 7px);
		min-width: 0;
	}
}

/* 「運送信息」標題下方提醒（風格同「選擇時間」區塊紅字說明） */
.vs-checkout-shipping-info-notice {
	margin: 8px 0 14px;
	padding: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #dc2626;
	font-weight: 500;
	max-width: 100%;
	box-sizing: border-box;
}

/* 機場／店面取貨限制（購物車含後台設定商品時） */
.vs-checkout-pickup-restrict-notice {
   margin: 0 0 16px;
   padding: 14px 16px;
   border-radius: 12px;
   border: 1px solid #FBBF24;
   background: #FFFBEB;
   color: #92400E;
   font-size: 14px;
   line-height: 1.55;
   max-width: 100%;
   box-sizing: border-box;
}

.vs-checkout-pickup-restrict-notice__text {
   margin: 0 0 6px;
   font-weight: 700;
   color: #78350F;
}

.vs-checkout-pickup-restrict-notice__sub {
   margin: 0 0 4px;
   font-size: 13px;
   font-weight: 600;
   color: #92400E;
}

.vs-checkout-pickup-restrict-notice__list {
   margin: 6px 0 0;
   padding-left: 1.2em;
}

.vs-checkout-pickup-restrict-notice__list li {
   margin: 2px 0;
}

/* 置於「取貨地點」區塊內、選項列表上方 */
.wp-block-woocommerce-checkout-pickup-options-block .vs-checkout-pickup-restrict-notice,
#pickup-options .vs-checkout-pickup-restrict-notice {
   margin: 0 0 14px;
   width: 100%;
}

/* Global SIM 結帳「選擇時間」（付款方式上方） */
.vs-checkout-sim-dates {
   margin: 0 0 20px;
   max-width: 100%;
   box-sizing: border-box;
}

.vs-checkout-sim-dates__card {
   border: 1px solid #e5e7eb;
   border-radius: 12px;
   padding: 18px 18px 8px;
   background: #fff;
   box-sizing: border-box;
}

.vs-checkout-sim-dates__head {
   margin-bottom: 14px;
}

.vs-checkout-sim-dates__title-row {
   display: flex;
   align-items: center;
   gap: 10px;
   margin-bottom: 10px;
}

.vs-checkout-sim-dates__icon {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 36px;
   height: 36px;
   border-radius: 8px;
   background: #e0f2fe;
   color: #01488c;
   flex-shrink: 0;
}

.vs-checkout-sim-dates__title {
   margin: 0;
   font-size: 1.15rem;
   font-weight: 700;
   color: #111827;
}

.vs-checkout-sim-dates__notice {
   margin: 0;
   font-size: 14px;
   line-height: 1.55;
   color: #dc2626;
   font-weight: 500;
}

.vs-checkout-sim-dates__logic-msg {
   margin: 10px 0 0;
   padding: 10px 12px;
   border-radius: 8px;
   background: #fef2f2;
   border: 1px solid #fecaca;
   color: #b91c1c;
   font-size: 14px;
   font-weight: 600;
   line-height: 1.5;
}

.vs-checkout-sim-dates__input.vs-sim-date-logic-bad {
   border-color: #dc2626 !important;
   box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.35);
}

.vs-checkout-sim-dates__lines {
   display: flex;
   flex-direction: column;
   gap: 12px;
}

.vs-checkout-sim-dates__row {
   display: flex;
   flex-wrap: wrap;
   gap: 16px;
   align-items: flex-start;
   padding: 12px;
   border: 1px solid #e5e7eb;
   border-radius: 10px;
   background: #fafafa;
   box-sizing: border-box;
}

.vs-checkout-sim-dates__product {
   display: flex;
   gap: 12px;
   flex: 1 1 220px;
   min-width: 0;
}

.vs-checkout-sim-dates__thumb {
   flex-shrink: 0;
   width: 56px;
   height: 56px;
   border-radius: 8px;
   overflow: hidden;
   border: 1px solid #e5e7eb;
   background: #fff;
}
.vs-checkout-sim-dates__thumb img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: block;
}

.vs-checkout-sim-dates__name {
   font-size: 15px;
   font-weight: 700;
   color: #111827;
   margin-bottom: 4px;
   word-break: break-word;
}

.vs-checkout-sim-dates__meta {
   display: flex;
   flex-direction: column;
   gap: 2px;
   font-size: 13px;
   color: #6b7280;
   line-height: 1.45;
}

.vs-checkout-sim-dates__meta-line {
   display: block;
   word-break: break-word;
}

.vs-checkout-sim-dates__qty {
   font-size: 13px;
   color: #6b7280;
   margin-top: 4px;
}

.vs-checkout-sim-dates__fields {
   display: flex;
   flex-wrap: wrap;
   gap: 12px 20px;
   flex: 1 1 280px;
   align-items: flex-end;
   justify-content: flex-end;
}

.vs-checkout-sim-dates__field {
   display: flex;
   flex-direction: column;
   gap: 6px;
   min-width: 140px;
}

.vs-checkout-sim-dates__label {
   font-size: 13px;
   font-weight: 600;
   color: #374151;
}

.vs-checkout-sim-dates__input-wrap {
   position: relative;
}
/* 與區塊結帳「付款選項」等 radio 外框一致（見本檔 .wc-block-components-radio-control--highlight-checked:after） */
.vs-checkout-sim-dates__input,
.vs-checkout-sim-dates input.flatpickr-input,
.vs-checkout-sim-dates input.vs-checkout-sim-dates__input {
   width: 100%;
   min-width: 140px;
   padding: 10px 36px 10px 12px;
   font-size: 14px;
   border: 1px solid #999;
   border-radius: 4px;
   background: #fff;
   box-sizing: border-box;
   cursor: pointer;
   outline: none;
   box-shadow: none;
}
.vs-checkout-sim-dates__input:hover,
.vs-checkout-sim-dates input.flatpickr-input:hover {
   border-color: #999;
}
.vs-checkout-sim-dates__input:focus,
.vs-checkout-sim-dates__input:focus-visible,
.vs-checkout-sim-dates input.flatpickr-input:focus,
.vs-checkout-sim-dates input.flatpickr-input:focus-visible,
.vs-checkout-sim-dates input.flatpickr-input.active {
   border: 1px solid #999;
   outline: none;
   box-shadow: none;
}

.vs-checkout-sim-dates__cal {
   position: absolute;
   right: 10px;
   top: 50%;
   transform: translateY(-50%);
   width: 18px;
   height: 18px;
   pointer-events: none;
   opacity: 0.5;
   background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Crect x='2' y='4' width='14' height='12' rx='2'/%3E%3Cpath d='M2 8h14M6 2v4M12 2v4'/%3E%3C/svg%3E") center/contain no-repeat;
}

@media (max-width: 600px) {
   .vs-checkout-sim-dates__fields {
      justify-content: flex-start;
   }
}

/* Flatpickr 日曆 z-index：高於付款方式區塊 */
.vs-checkout-sim-dates .flatpickr-calendar {
   z-index: 99999 !important;
}

/* 未選擇日期：紅框提示 */
.vs-checkout-sim-dates__input.vs-sim-date-missing,
.vs-checkout-sim-dates input.vs-sim-date-missing {
   border-color: #dc2626 !important;
   background-color: #fef2f2 !important;
}

/* 結帳按鈕被阻止時的樣式 */
.vs-checkout-btn-blocked {
   opacity: 0.6;
   cursor: not-allowed !important;
}

/* 區塊結帳：聯絡資訊電子郵件下方提醒 */
.vs-checkout-email-confirm-hint {
   margin: 12px 0 0;
   padding: 0;
   font-size: 14px;
   line-height: 1.55;
   color: #374151;
   max-width: 42em;
}

/* 聯絡資訊：登入按鈕左側第三方快速登入（HTML 由 checkout-custom.js 插入，與 my-account 同 .vs-social-buttons） */
.vs-checkout-inline-social-host {
   display: inline-flex;
   align-items: center;
   flex-wrap: nowrap;
   gap: 8px;
   margin-right: 0;
   max-width: 100%;
   vertical-align: middle;
}

.vs-checkout-inline-social-host .vs-social-buttons {
   margin: 0;
}

/* 訪客身分提示（卡片外上方） */
.vs-checkout-guest-identity-note.vs-checkout-guest-above-card {
   margin: 0 0 12px !important;
   padding: 0 !important;
   font-size: 14px;
   line-height: 1.5;
   color: #4b5563;
   text-align: left;
   width: 100%;
   max-width: 100%;
   box-sizing: border-box;
}

/* 標題列：左「聯絡資訊」、右「快捷登入 + 登入」成組 */
.wp-block-woocommerce-checkout-contact-information-block .wc-block-components-checkout-step__heading {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   justify-content: space-between;
   width: 100%;
   gap: 8px 12px;
   box-sizing: border-box;
}

.wp-block-woocommerce-checkout-contact-information-block .vs-checkout-login-actions {
   display: inline-flex;
   align-items: center;
   align-self: center;
   flex-wrap: nowrap;
   gap: 8px 12px;
   margin-left: auto;
}

/* 右側「快捷登入 + 登入」內部上下居中（對齊「聯絡資訊」標題列） */
.wp-block-woocommerce-checkout-contact-information-block .vs-checkout-login-actions .vs-social-buttons,
.wp-block-woocommerce-checkout-contact-information-block .vs-checkout-login-actions .vs-checkout-inline-social-host {
   display: inline-flex;
   align-items: center;
   align-self: center;
}

.wp-block-woocommerce-checkout-contact-information-block .vs-checkout-login-actions .the_champ_outer_login_container {
   display: flex;
   flex-direction: row;
   align-items: center;
   margin: 0 !important;
   padding: 0 !important;
}

.wp-block-woocommerce-checkout-contact-information-block .vs-checkout-login-actions .the_champ_login_container {
   display: flex;
   align-items: center;
   margin: 0 !important;
   padding: 0 !important;
}

/* 插件產生的 clear 佔位會把整組頂上去，結帳列內隱藏 */
.wp-block-woocommerce-checkout-contact-information-block .vs-checkout-login-actions .vs-social-buttons > div[style*="clear"],
.wp-block-woocommerce-checkout-contact-information-block .vs-checkout-login-actions .the_champ_outer_login_container + div[style*="clear"] {
   display: none !important;
   height: 0 !important;
   margin: 0 !important;
   padding: 0 !important;
   overflow: hidden !important;
}

/* 「登入」連結與圖示按鈕同一基線、垂直居中 */
.wp-block-woocommerce-checkout-contact-information-block .vs-checkout-login-actions a.wc-block-checkout__login-prompt {
   display: inline-flex !important;
   align-items: center;
   align-self: center;
   line-height: 1.25;
   margin: 0;
}

.wp-block-woocommerce-checkout-contact-information-block .vs-checkout-login-actions .theChampLogin,
.wp-block-woocommerce-checkout-contact-information-block .vs-checkout-login-actions i.theChampLogin {
   display: inline-flex !important;
   align-items: center;
   justify-content: center;
   vertical-align: middle;
}

/* 與「登入」同列時隱藏插件「快速登入方式」標題，避免擠到標題下方 */
.wp-block-woocommerce-checkout-contact-information-block .vs-checkout-login-actions .the_champ_social_login_title,
.wp-block-woocommerce-checkout-contact-information-block .vs-checkout-login-actions .theChampLoginTitle,
.wp-block-woocommerce-checkout-contact-information-block .vs-checkout-login-actions .the_champ_login_container > h3:first-child {
   display: none !important;
   height: 0 !important;
   margin: 0 !important;
   padding: 0 !important;
   overflow: hidden !important;
}

/* 區塊結帳：未登入聯絡資訊列，登入按鈕左側第三方快速登入 */
.wc-block-woocommerce-checkout .vs-checkout-inline-social-host {
   display: inline-flex;
   align-items: center;
   margin-right: 0;
   vertical-align: middle;
}

.wc-block-woocommerce-checkout .vs-checkout-inline-social-host .vs-checkout-inline-social-buttons {
   display: inline-flex;
   align-items: center;
}

.wc-block-woocommerce-checkout .vs-checkout-inline-social-host .the_champ_login_ul,
.wc-block-woocommerce-checkout .vs-checkout-inline-social-host .theChampLoginUl {
   display: inline-flex !important;
   align-items: center;
   gap: 8px;
   margin: 0 !important;
   padding: 0 !important;
}

.wc-block-woocommerce-checkout .vs-checkout-guest-identity-note:not(.vs-checkout-guest-above-card) {
   margin: 6px 0 2px;
   font-size: 13px;
   line-height: 1.45;
   color: #6b7280;
}

.wc-block-components-address-card{
   border-color: #999;
}

.wc-block-components-radio-control--highlight-checked:after{
   border: 1px solid #999;
}

.wc-block-checkout__sidebar .wc-block-components-product-name{
   font-size: 14px;
   font-weight: bold;
}

/*
 * 訂單摘要：單價行與「方案／流量／天數」metadata 同一套字級、行高、上下間距；右側小計同色灰。
 */
body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__individual-prices {
	/* display: inline-block; */
	max-width: 100%;
	margin: 0;
	padding: 0;
	font-size: 12px !important;
	line-height: 1.5;
	font-weight: 400;
	color: #6b7280 !important;
	vertical-align: top;
}

body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__individual-prices::before {
	content: '\55AE\50F9\FF1A';
	font-weight: 400;
	color: #6b7280 !important;
}

body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__individual-prices .wc-block-components-product-price,
body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__individual-prices .wc-block-formatted-money-amount,
body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__individual-prices .woocommerce-Price-amount,
body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__individual-prices .woocommerce-Price-amount bdi,
body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__individual-prices .woocommerce-Price-currencySymbol {
	font-size: inherit !important;
	line-height: inherit !important;
	font-weight: 400 !important;
	color: #6b7280 !important;
}

body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__individual-prices del {
	font-weight: 400 !important;
	color: #6b7280 !important;
	opacity: 0.85;
}

body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__individual-prices ins {
	font-weight: 400 !important;
	color: #6b7280 !important;
	text-decoration: none;
}

/* 右側行金額（與 metadata 同灰） */
body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__total-price,
body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__total-price .wc-block-components-product-price,
body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__total-price .wc-block-formatted-money-amount,
body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__total-price .woocommerce-Price-amount,
body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__total-price .woocommerce-Price-amount bdi,
body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__total-price .woocommerce-Price-currencySymbol {
	/* font-size: 12px; */
	line-height: 1.5;
	font-weight: 400 !important;
	/* color: #6b7280 !important; */
}

/* 方案／天數等 metadata：與單價行完全一致 */
body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item .wc-block-components-product-metadata {
	margin: 0;
	padding: 0;
	font-size: 12px;
	line-height: 1.5;
	color: #6b7280;
}

body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item .wc-block-components-product-metadata p,
body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item .wc-block-components-product-metadata li,
body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item .wc-block-components-product-metadata dd,
body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item .wc-block-components-product-metadata dt {
	font-size: inherit;
	line-height: inherit;
	color: inherit;
	margin: 0;
}

body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item .wc-block-components-product-metadata ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/*.wc-block-components-order-summary .wc-block-components-order-summary-item__individual-prices,.wc-block-components-order-summary .wc-block-components-order-summary-item .wc-block-components-product-metadata{*/
/*   display: none;*/
/*}*/

.wc-block-components-order-summary .wc-block-components-order-summary-item__image{
   margin: 6px 0;
   padding-bottom: 0;
}

/*.wc-block-components-order-summary .wc-block-components-order-summary-item__description,.wc-block-components-order-summary .wc-block-components-order-summary-item__total-price{*/
/*   align-items: center;*/
/*   padding-bottom: 0;*/
/*   display: flex;*/
/*}*/
/* 訂單摘要標題：圖示與「訂單摘要」文字垂直置中（用 flex，避免只對文字設 margin 造成響應式／字級變化時跑位） */
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 10px;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title svg,
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title .wc-block-components-checkout-order-summary__title-icon {
	flex-shrink: 0;
	display: block;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title .wc-block-components-checkout-order-summary__title-text {
	margin: 0;
	padding: 0;
	font-size: 1.25rem;
	font-weight: bold;
	line-height: 1.25;
}

body .page-content ul, body .page-content ol{
   margin: 10px 0 0 0;
   padding-left: 0;
}

/* ========================================
   Thank You Page (Order Received) - Premium Design
   Colors: #FFAA01, #333, #ff7272
======================================== */

/* Main Container */
.woocommerce-order {
   margin: 40px auto;
   padding: 0 20px;
}

/* Success Message */
.woocommerce-thankyou-order-received {
   background: linear-gradient(135deg, #FFAA01 0%, #ffbb33 100%);
   color: #fff;
   padding: 30px 40px;
   border-radius: 16px;
   font-size: 22px;
   font-weight: 600;
   text-align: center;
   margin-bottom: 40px;
   box-shadow: 0 10px 30px rgba(255, 170, 1, 0.2);
   border: none;
   position: relative;
   overflow: hidden;
}

.woocommerce-thankyou-order-received::before {
   content: "✓";
   position: absolute;
   left: 30px;
   top: 50%;
   transform: translateY(-50%);
   font-size: 36px;
   font-weight: bold;
   opacity: 0.9;
}

.woocommerce-thankyou-order-received::after {
   content: "";
   position: absolute;
   right: -50px;
   top: -50px;
   width: 150px;
   height: 150px;
   background: rgba(255, 255, 255, 0.1);
   border-radius: 50%;
}

/* Order Overview Details */
.woocommerce-order-overview {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
   gap: 20px;
   margin: 0 0 40px 0;
   padding: 0;
   list-style: none;
}

.woocommerce-order-overview li {
   background: #fff;
   padding: 25px 30px;
   border-radius: 12px;
   border: 2px solid #f0f0f0;
   transition: all 0.3s ease;
   position: relative;
   overflow: hidden;
}

.woocommerce-order-overview li::before {
   content: "";
   position: absolute;
   left: 0;
   top: 0;
   width: 4px;
   height: 100%;
   background: #FFAA01;
   transform: scaleY(0);
   transition: transform 0.3s ease;
}

.woocommerce-order-overview li:hover {
   border-color: #FFAA01;
   box-shadow: 0 5px 20px rgba(255, 170, 1, 0.15);
   transform: translateY(-2px);
}

.woocommerce-order-overview li:hover::before {
   transform: scaleY(1);
}

.woocommerce-order-overview li strong {
   display: block;
   color: #333;
   font-size: 18px;
   font-weight: 700;
   margin-top: 8px;
}

.woocommerce-order-overview li::first-line {
   color: #888;
   font-size: 12px;
   font-weight: 500;
   text-transform: uppercase;
   letter-spacing: 1px;
}

/* Order Number Special Styling */
.woocommerce-order-overview__order {
   background: linear-gradient(135deg, #333 0%, #555 100%);
   color: #fff;
   border: none;
}

.woocommerce-order-overview__order::before {
   background: #FFAA01;
}

.woocommerce-order-overview__order strong {
   color: #FFAA01;
   font-size: 24px;
}

/* Total Amount Special Styling */
.woocommerce-order-overview__total {
   border-color: #FFAA01;
}

.woocommerce-order-overview__total strong {
   color: #FFAA01;
   font-size: 22px;
}

/* Order Details Section */
.woocommerce-order-details {
   background: #fff;
   border-radius: 12px;
   padding: 30px;
   margin-bottom: 30px;
   border: 2px solid #f0f0f0;
}

.woocommerce-order-details h2 {
   color: #333;
   font-size: 24px;
   font-weight: 700;
   margin-bottom: 25px;
   padding-bottom: 15px;
   border-bottom: 3px solid #FFAA01;
   display: inline-block;
}

/* Order Table */
.woocommerce-table {
   width: 100%;
   border-collapse: collapse;
   margin-top: 20px;
}

.woocommerce-table thead {
   background: #f8f8f8;
}

.woocommerce-table th.product-name, .woocommerce-table th.product-total{
   color: #333;
   font-weight: 600;
   text-transform: uppercase;
   font-size: 12px;
   letter-spacing: 1px;
   padding: 15px;
   text-align: left;
   border-bottom: 2px solid #FFAA01;
   margin-bottom: 0;
   min-height: initial;
   line-height: 1.5;
   display: table-cell;
}

.woocommerce-table td {
   padding: 20px 15px;
   color: #666;
   border-bottom: 1px solid #f0f0f0;
}

.woocommerce-table tfoot th,
.woocommerce-table tfoot td {
   font-weight: 600;
   color: #333;
   font-size: 16px;
   padding-top: 15px;
}

.woocommerce-table .amount {
   color: #FFAA01;
   font-weight: 700;
}

/* Customer Details */
.woocommerce-customer-details {
   margin-top: 30px;
}

.woocommerce-customer-details h2 {
   color: #333;
   font-size: 20px;
   font-weight: 700;
   margin-bottom: 20px;
}

.woocommerce-customer-details address {
   background: #f8f8f8;
   padding: 20px 25px;
   border-radius: 8px;
   border-left: 4px solid #FFAA01;
   font-style: normal;
   line-height: 1.8;
   color: #666;
}

/* Buttons and Links */
.woocommerce-order a,
.woocommerce-order .button {
   color: #ff7272;
   text-decoration: none;
   font-weight: 600;
   transition: all 0.3s ease;
}

.woocommerce-order a:hover {
   color: #FFAA01;
}

.woocommerce-order .button {
   background: #ff7272;
   color: #fff;
   padding: 12px 30px;
   border-radius: 8px;
   border: none;
   cursor: pointer;
   font-size: 15px;
   display: inline-block;
   transition: all 0.3s ease;
}

.woocommerce-order .button:hover {
   background: #FFAA01;
   transform: translateY(-2px);
   box-shadow: 0 5px 15px rgba(255, 170, 1, 0.3);
}

/* Failed Order Notice */
.woocommerce-thankyou-order-failed {
   background: linear-gradient(135deg, #ff7272 0%, #ff8888 100%);
   color: #fff;
   padding: 25px 30px;
   border-radius: 12px;
   border: none;
   margin-bottom: 20px;
}

.wc-block-components-totals-discount__coupon-list .wc-block-components-chip{
   font-size: 14px;
}

.wc-block-components-totals-discount__coupon-list .wc-block-components-chip span{
   padding-top: .2em;
}

/* Mobile Responsive */
@media (max-width: 768px) {
   .woocommerce-order {
      padding: 0 15px;
      margin: 20px auto;
   }
   
   .woocommerce-thankyou-order-received {
      padding: 25px 20px;
      font-size: 18px;
   }
   
   .woocommerce-thankyou-order-received::before {
      left: 15px;
      font-size: 28px;
   }
   
   .woocommerce-order-overview {
      grid-template-columns: 1fr;
      gap: 15px;
   }
   
   .woocommerce-order-overview li {
      padding: 20px;
   }
   
   .woocommerce-order-details {
      padding: 20px;
   }
   
   .woocommerce-table {
      font-size: 14px;
   }
   
   .woocommerce-table th,
   .woocommerce-table td {
      padding: 12px 10px;
   }
}

/* Print Styles */
@media print {
   .woocommerce-order {
      max-width: 100%;
   }
   
   .woocommerce-thankyou-order-received {
      background: #FFAA01;
      box-shadow: none;
   }
   
   .woocommerce-order-overview li {
      break-inside: avoid;
   }
}

.product-name,.product-total{
   line-height: 1.8;
   margin-bottom: 0;
   min-height: initial;
}

.woocommerce-table tfoot th, .woocommerce-table tfoot td{
   text-align: right;
}