/* TIKAIR hold-timer bar for Checkout Countdown for WooCommerce Pro (CARTPAGE1).
   The plugin keeps the wording: its "Counting Down Text" setting carries the markup below and its script writes
   it into the notice every second ({minutes}/{seconds}). TAEM_Cart_Page::countdown_style() enqueues this sheet
   wherever the plugin loads its own and the text it writes is the bar, so the cart and the checkout show the same
   bar. The icon is drawn here, not in the text, because the plugin's editor drops inline SVG. */

/* The plugin prints the countdown as a WooCommerce error notice; its own frame and icon are not part of the bar. */
.woocommerce-error:has(.checkout-countdown-notice),
.woocommerce-error:has(.checkout-countdown-notice) > li { padding: 0; border: 0; background: none; box-shadow: none; list-style: none; }
.woocommerce-error:has(.checkout-countdown-notice) { margin: 0 0 20px; }
.woocommerce-error:has(.checkout-countdown-notice) > li { margin: 0; }
.woocommerce-error:has(.checkout-countdown-notice) .message-container { padding: 0; margin: 0; max-width: none; width: 100%; color: inherit; text-align: start; }
.woocommerce-error:has(.checkout-countdown-notice) .message-icon { display: none; }

/* The bar (approved design: navy, 16px radius, icon, two lines, the time in a white box). */
.checkout-countdown-wrapper .taem-cd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 18px 24px; border-radius: 16px; background: #0B1F3F; box-shadow: 0 14px 34px rgba(11, 31, 63, 0.2); color: #FFFFFF; text-align: start; line-height: 1.3; direction: rtl; }
.checkout-countdown-wrapper .taem-cd__main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.checkout-countdown-wrapper .taem-cd__main::before { content: ""; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M12 9v4l2.5 2'/%3E%3Cpath d='M9 2h6'/%3E%3C/svg%3E") center / 22px 22px no-repeat; }
.checkout-countdown-wrapper .taem-cd__copy { display: flex; flex-direction: column; min-width: 0; }
.checkout-countdown-wrapper .taem-cd__title { font-size: 17px; font-weight: 700; color: #FFFFFF; }
.checkout-countdown-wrapper .taem-cd__text { font-size: 14px; color: #D5DEEA; }
.checkout-countdown-wrapper .taem-cd__narrow { display: none; }
.checkout-countdown-wrapper .taem-cd__clock { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.checkout-countdown-wrapper .taem-cd__label { font-size: 13px; color: #D5DEEA; }
/* Flatsome bolds every span in a notice (.message-container span { font-weight: 700 }); the bar states its own weights. */
.checkout-countdown-wrapper .taem-cd span { font-weight: 400; }
.checkout-countdown-wrapper .taem-cd .taem-cd__title span { font-weight: inherit; }
.checkout-countdown-wrapper .taem-cd .taem-cd__time { display: inline-block; padding: 6px 14px; border-radius: 10px; background: #FFFFFF; color: #0B1F3F; font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: 1px; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

/* Until the script starts, the plugin's loading dots sit in the bar's own place (the notice exists only for a cart
   with items; .ccfwoo-is-hidden hides it when nothing counts). */
.checkout-countdown-notice .checkout-countdown-content:has(> .ccfwoo-loading-dots) { display: flex; align-items: center; justify-content: center; min-height: 80px; border-radius: 16px; background: #0B1F3F; }

@media (max-width: 599px) {
	.checkout-countdown-wrapper .taem-cd { flex-wrap: nowrap; gap: 12px; padding: 14px 16px; border-radius: 14px; box-shadow: none; }
	.checkout-countdown-wrapper .taem-cd__main { gap: 10px; }
	.checkout-countdown-wrapper .taem-cd__main::before { flex-basis: 22px; width: 22px; height: 22px; border-radius: 0; background-color: transparent; }
	.checkout-countdown-wrapper .taem-cd__title { font-size: 15px; }
	.checkout-countdown-wrapper .taem-cd__text { font-size: 12px; }
	.checkout-countdown-wrapper .taem-cd__wide,
	.checkout-countdown-wrapper .taem-cd__label { display: none; }
	.checkout-countdown-wrapper .taem-cd__narrow { display: inline; }
	.checkout-countdown-wrapper .taem-cd .taem-cd__time { padding: 4px 10px; border-radius: 8px; font-size: 20px; letter-spacing: 0; }
	.checkout-countdown-notice .checkout-countdown-content:has(> .ccfwoo-loading-dots) { min-height: 66px; border-radius: 14px; }
}
