/*
Theme Name: Leekin Elementor Theme
Theme URI: http://localhost:8080/
Author: Leekin
Author URI: http://localhost:8080/
Description: Lightweight Elementor-first theme for Leekin Driving School.
Version: 0.1.3
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.2
Text Domain: leekin-elementor
*/

:root {
  --leekin-color-navy: #111f35;
  --leekin-color-navy-soft: #111f3580;
  --leekin-color-red: #ab202a;
  --leekin-color-red-dark: #7f1d1d;
  --leekin-color-yellow: #f8b72a;
  --leekin-color-green: #244549;
  --leekin-color-green-soft: #335055;
  --leekin-color-surface: #ffffff;
  --leekin-color-background: #f9fafb;
  --leekin-color-gray-100: #f3f4f6;
  --leekin-color-border: #e5e7eb;
  --leekin-color-gray-300: #d1d5db;
  --leekin-color-muted: #6b7280;
  --leekin-color-gray-700: #374151;
  --leekin-color-gray-900: #111827;
  --leekin-font-sans: "Noto Sans TC", "Noto Sans HK", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --leekin-radius-sm: 8px;
  --leekin-radius-md: 16px;
  --leekin-shadow-soft: 0 18px 48px rgba(17, 31, 53, 0.08);
  --leekin-content-width: 1140px;
  --wp--style--global--content-size: 1140px;
  --wp--style--global--wide-size: 1140px;
  --leekin-gutter: clamp(20px, 4vw, 48px);
}

/* Lesson Calendar selection carried into scheduled-course product pages. */
.leekin-selected-lesson {
  margin: 0 0 20px;
  padding: 18px 20px;
  border: 1px solid #d8dee8;
  border-left: 4px solid var(--leekin-color-red);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--leekin-color-navy);
}

.leekin-selected-lesson__heading { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.leekin-selected-lesson__details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; margin: 0; }
.leekin-selected-lesson__details div { min-width: 0; }
.leekin-selected-lesson__details dt { margin: 0 0 3px; color: #526174; font-size: 13px; font-weight: 600; }
.leekin-selected-lesson__details dd { margin: 0; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.leekin-selected-lesson__debug { margin-top: 16px; padding-top: 12px; border-top: 1px solid #d8dee8; }
.leekin-selected-lesson__debug summary { cursor: pointer; color: #526174; font-size: 13px; font-weight: 600; }
.leekin-selected-lesson__debug table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 12px; table-layout: fixed; }
.leekin-selected-lesson__debug th,
.leekin-selected-lesson__debug td { padding: 7px 8px; border: 1px solid #d8dee8; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.leekin-selected-lesson__debug thead th { background: #edf1f6; }

.leekin-lk-console-debug { margin: 0 0 24px; padding: 20px; border: 1px solid #f0b7bc; border-radius: 10px; background: #fff7f8; }
.leekin-lk-console-debug h2 { margin: 0 0 6px; font-size: 20px; }
.leekin-lk-console-debug > p { margin: 0 0 14px; color: #526174; font-size: 13px; }
.leekin-lk-console-debug details { margin-top: 10px; padding: 10px 12px; border: 1px solid #e3c9cc; border-radius: 6px; background: #fff; }
.leekin-lk-console-debug summary { cursor: pointer; overflow-wrap: anywhere; font-size: 13px; font-weight: 700; }
.leekin-lk-console-debug h3 { margin: 14px 0 6px; font-size: 14px; }
.leekin-lk-console-debug pre { max-height: 280px; margin: 0; padding: 12px; overflow: auto; border-radius: 5px; background: #111f35; color: #f8fafc; font-size: 12px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 480px) {
  .leekin-selected-lesson { padding: 16px; }
  .leekin-selected-lesson__details { grid-template-columns: 1fr; gap: 10px; }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--leekin-color-background);
  color: var(--leekin-color-navy);
  font-family: var(--leekin-font-sans);
  font-size: 16px;
  line-height: 1.5;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--leekin-color-red);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--leekin-color-red-dark);
}

button,
input,
select,
textarea {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.screen-reader-text:focus {
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  margin: 0;
  overflow: visible;
  clip: auto;
  background: var(--leekin-color-surface);
  color: var(--leekin-color-navy);
  box-shadow: var(--leekin-shadow-soft);
  z-index: 100000;
}

.leekin-site {
  min-height: 100vh;
}

.leekin-shell {
  width: min(var(--leekin-content-width), calc(100% - (var(--leekin-gutter) * 2)));
  margin-inline: auto;
}

.leekin-site-header,
.leekin-site-footer {
  background: var(--leekin-color-surface);
}

.leekin-site-header {
  border-bottom: 1px solid var(--leekin-color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-bar .leekin-site-header {
  top: 32px;
}

@media (min-width: 1025px) {
  .elementor .elementor-element.elementor-element-registration-summary-panel {
    position: sticky !important;
    top: 96px !important;
    align-self: flex-start !important;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    z-index: 20 !important;
  }

  .admin-bar .elementor .elementor-element.elementor-element-registration-summary-panel {
    top: 128px !important;
    max-height: calc(100vh - 152px);
  }
}

.leekin-site-header__inner,
.leekin-site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.leekin-site-branding {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.leekin-site-branding img {
  max-height: 44px;
  width: auto;
}

.leekin-site-branding__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.leekin-site-title {
  color: var(--leekin-color-navy);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.leekin-site-tagline {
  color: var(--leekin-color-muted);
  font-size: 0.875rem;
  line-height: 1.3;
}

.leekin-fallback-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.leekin-fallback-menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leekin-fallback-menu a {
  color: var(--leekin-color-navy);
  text-decoration: none;
}

.elementor-location-header .elementor-element-header-main-menu > .plus-navigation-wrap > .plus-navigation-inner > #theplus-navigation-normal-menu > .plus-navigation-menu > .navbar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.elementor-location-header .elementor-element-header-main-menu > .plus-navigation-wrap > .plus-navigation-inner > #theplus-navigation-normal-menu > .plus-navigation-menu > .navbar-nav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.elementor-location-header .elementor-element-header-main-menu > .plus-navigation-wrap > .plus-navigation-inner > #theplus-navigation-normal-menu > .plus-navigation-menu > .navbar-nav > li:not(.plus-fw) {
  position: relative;
}

.elementor-location-header .elementor-element-header-main-menu > .plus-navigation-wrap > .plus-navigation-inner > #theplus-navigation-normal-menu > .plus-navigation-menu > .navbar-nav > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  color: #171717;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

.elementor-location-header .elementor-element-header-main-menu > .plus-navigation-wrap > .plus-navigation-inner > #theplus-navigation-normal-menu > .plus-navigation-menu > .navbar-nav > li:hover > a,
.elementor-location-header .elementor-element-header-main-menu > .plus-navigation-wrap > .plus-navigation-inner > #theplus-navigation-normal-menu > .plus-navigation-menu > .navbar-nav > li:focus-within > a,
.elementor-location-header .elementor-element-header-main-menu > .plus-navigation-wrap > .plus-navigation-inner > #theplus-navigation-normal-menu > .plus-navigation-menu > .navbar-nav > li.active > a {
  color: var(--leekin-color-red);
}

/*
 * The Plus mobile panel is absolutely positioned below its 36px toggle widget,
 * but the shared header row is 80px tall. Keep the drawer clear of the logo.
 */
@media (max-width: 1024px) {
  .elementor-location-header .plus-navigation-wrap > .plus-navigation-inner > .plus-mobile-menu-content {
    top: calc(100% + 10px) !important;
  }
}

/* Scoped fallback for Plus Addons mega menus while Elementor atomic layout CSS is missing. */
.elementor-location-header .elementor-element-header-main-menu .plus-navigation-menu .navbar-nav > li.plus-fw > ul.dropdown-menu {
  display: block;
  left: 50% !important;
  right: auto !important;
  width: min(100vw, var(--leekin-content-width)) !important;
  min-width: min(100vw, var(--leekin-content-width)) !important;
  transform: translateX(-50%);
}

.elementor-location-header .elementor-element-header-main-menu .plus-navigation-menu .navbar-nav > li.plus-fw > ul.dropdown-menu > li {
  display: block;
  width: 100%;
  padding: 0 !important;
}

.elementor-location-header .elementor-element-header-main-menu .plus-navigation-menu .navbar-nav > li.plus-fw > ul.dropdown-menu .plus-megamenu-content,
.elementor-location-header .elementor-element-header-main-menu .plus-navigation-menu .navbar-nav > li.plus-fw > ul.dropdown-menu .plus-megamenu-content > .elementor {
  width: 100%;
}

.elementor-location-header .plus-megamenu-content .e-flexbox-base:has(> .lesson-submenu) {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  width: 100%;
}

.elementor-location-header .plus-megamenu-content .lesson-submenu {
  flex: 1 1 0;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.elementor-location-header .plus-megamenu-content .lesson-submenu > .e-heading-base,
.elementor-location-header .plus-megamenu-content .lesson-submenu .elementor-heading-title {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 4px solid var(--leekin-color-red-dark);
  color: var(--leekin-color-navy);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.elementor-location-header .plus-megamenu-content .lesson-submenu .plus-navigation-menu .navbar-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.elementor-location-header .plus-megamenu-content .lesson-submenu .plus-navigation-menu .navbar-nav > li {
  width: 100%;
  padding: 0 !important;
}

.elementor-location-header .elementor-menu-cart__toggle .elementor-button,
.elementor-location-header .elementor-menu-cart__toggle .elementor-button:hover,
.elementor-location-header .elementor-menu-cart__toggle .elementor-button:focus {
  background-color: var(--leekin-color-surface);
  transition: none;
}

.leekin-site-main {
  min-height: 50vh;
}

.leekin-content-wrap {
  padding: 48px 0 72px;
}

.leekin-entry-card {
  background: var(--leekin-color-surface);
  border: 1px solid rgba(17, 31, 53, 0.06);
  border-radius: var(--leekin-radius-md);
  box-shadow: var(--leekin-shadow-soft);
  padding: clamp(24px, 4vw, 48px);
}

.leekin-entry-title,
.page-title {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.leekin-entry-meta {
  margin: 0 0 20px;
  color: var(--leekin-color-muted);
  font-size: 0.95rem;
}

.leekin-entry-content > *:first-child {
  margin-top: 0;
}

.leekin-entry-content > *:last-child {
  margin-bottom: 0;
}

.leekin-post-list {
  display: grid;
  gap: 24px;
}

.leekin-post-card {
  background: var(--leekin-color-surface);
  border: 1px solid rgba(17, 31, 53, 0.06);
  border-radius: var(--leekin-radius-md);
  box-shadow: var(--leekin-shadow-soft);
  padding: 28px;
}

.leekin-post-card h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.leekin-post-card p:last-child {
  margin-bottom: 0;
}

.leekin-site-footer {
  border-top: 1px solid var(--leekin-color-border);
}

.leekin-site-footer__copy {
  color: var(--leekin-color-muted);
  font-size: 0.9375rem;
}

.elementor-location-footer {
  background: var(--leekin-color-navy);
  color: var(--leekin-color-surface);
}

.elementor-location-footer a {
  color: var(--leekin-color-gray-100);
  text-decoration: none;
}

.elementor-location-footer a:hover,
.elementor-location-footer a:focus {
  color: var(--leekin-color-yellow);
}

.elementor-location-footer p {
  margin: 0;
}

.elementor-location-footer .elementor-widget-theme-site-logo img {
  width: auto;
  max-height: 52px;
}

.elementor-location-footer .elementor-widget-text-editor,
.elementor-location-footer .elementor-widget-text-editor p,
.elementor-location-footer .elementor-widget-text-editor span {
  color: var(--leekin-color-gray-300);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.elementor-location-footer .elementor-heading-title {
  margin: 0;
}

.elementor-location-footer .elementor-nav-menu {
  gap: 0;
}

.elementor-location-footer .elementor-nav-menu--layout-vertical .elementor-nav-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.elementor-location-footer .elementor-nav-menu--layout-horizontal .elementor-nav-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.elementor-location-footer .elementor-nav-menu a,
.elementor-location-footer .elementor-item {
  padding: 0;
  color: var(--leekin-color-gray-100);
  line-height: 1.6;
}

/* Keep footer navigation fixed in place when a link receives hover or focus. */
.elementor-location-footer .elementor-nav-menu .elementor-item,
.elementor-location-footer .elementor-nav-menu .elementor-item:hover,
.elementor-location-footer .elementor-nav-menu .elementor-item:focus {
  transform: none !important;
  transition-property: color, fill;
}

.elementor-location-footer .menu-item-has-children > .sub-menu,
.elementor-location-footer .elementor-nav-menu--dropdown .sub-menu {
  display: flex !important;
  position: static !important;
  float: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-width: 0 !important;
  margin: 12px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  flex-direction: column;
  gap: 12px;
}

.elementor-location-footer .menu-item-has-children > a {
  margin-bottom: 12px;
}

.elementor-location-footer .elementor-nav-menu li {
  margin: 0;
}

.elementor-location-footer .elementor-nav-menu a:hover,
.elementor-location-footer .elementor-nav-menu a:focus,
.elementor-location-footer .elementor-item:hover,
.elementor-location-footer .elementor-item:focus {
  color: var(--leekin-color-yellow);
}

/* Course catalog styles live primarily in Elementor component controls.
   These helpers cover child markup details Elementor does not expose directly. */
.leekin-catalog-pill {
  position: absolute !important;
  top: 18px !important;
  left: 18px !important;
  z-index: 2;
  width: auto !important;
  max-width: calc(100% - 36px);
  margin: 0 !important;
}

.leekin-catalog-card {
  position: relative;
}

main#content .e-con:has(> .e-con-inner > .elementor-widget-image):has(.leekin-catalog-pill) {
  position: relative;
}

main#content .e-con:has(> .e-con-inner > .leekin-catalog-pill),
main#content .e-con:has(> .e-con-inner > .leekin-catalog-pill) > .e-con-inner {
  position: static !important;
}

.leekin-catalog-pill .elementor-heading-title {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  margin: 0;
}

.leekin-catalog-section-title-iconbox .elementor-icon,
.leekin-catalog-bullet .elementor-icon,
.leekin-catalog-cef-card .elementor-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.leekin-private-course-price-table .elementor-price-table__feature-inner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #020805;
  line-height: 1.5;
  justify-content: flex-start;
  margin-left: 0 !important;
  transform: none !important;
}

.leekin-private-course-price-table .elementor-price-table__features-list {
  text-align: left;
}

.leekin-private-course-price-table .elementor-price-table__features-list li {
  text-align: left;
}

.leekin-private-course-price-table .elementor-price-table__feature-inner i,
.leekin-private-course-price-table .elementor-price-table__feature-inner svg {
  width: 12px;
  min-width: 12px;
  font-size: 12px;
  color: #ab202a;
  fill: #ab202a;
  margin-top: 4px;
}

.leekin-private-course-price-table .elementor-price-table__feature-inner span,
.leekin-private-course-price-table .elementor-price-table__feature-inner div {
  color: #020805;
}

.leekin-section-red-rule {
  width: 80px !important;
  max-width: 80px;
}

/* WooCommerce checkout controls are plugin markup, not Elementor widgets. */
/* WooCommerce's default columns reserve room for shipping. This checkout uses
 * a single customer-details flow, so let each populated column fill the row. */
body.woocommerce-checkout .woocommerce #customer_details .col-1,
body.woocommerce-checkout .woocommerce #customer_details .col-2 {
  float: none;
  width: 100%;
}

/* Keep the HKID format helper available without making the field row taller. */
body.woocommerce-checkout .woocommerce #hkid_field {
  position: relative;
}

body.woocommerce-checkout .woocommerce #hkid-description {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 2;
  pointer-events: none;
}

body.woocommerce-checkout .woocommerce form .form-row label {
  display: block;
  margin: 0 0 8px;
  color: var(--leekin-color-navy) !important;
  font-weight: 600;
}

body.woocommerce-checkout .woocommerce form .form-row label .required {
  color: var(--leekin-color-red);
}

body.woocommerce-checkout .woocommerce form .form-row input.input-text,
body.woocommerce-checkout .woocommerce form .form-row textarea,
body.woocommerce-checkout .woocommerce form .form-row select,
body.woocommerce-checkout .woocommerce form .select2-container--default .select2-selection--single {
  min-height: 48px;
  border: 1px solid var(--leekin-color-gray-300) !important;
  border-radius: var(--leekin-radius-sm) !important;
  background: var(--leekin-color-surface) !important;
  color: var(--leekin-color-navy) !important;
  box-shadow: none;
}

body.woocommerce-checkout .woocommerce form .form-row input.input-text,
body.woocommerce-checkout .woocommerce form .form-row textarea,
body.woocommerce-checkout .woocommerce form .form-row select {
  padding: 12px 14px;
}

body.woocommerce-checkout .woocommerce form .form-row textarea {
  min-height: 112px;
}

body.woocommerce-checkout .woocommerce form .form-row input.input-text::placeholder,
body.woocommerce-checkout .woocommerce form .form-row textarea::placeholder {
  color: var(--leekin-color-muted);
  opacity: 1;
}

body.woocommerce-checkout .woocommerce form .form-row input.input-text:focus,
body.woocommerce-checkout .woocommerce form .form-row textarea:focus,
body.woocommerce-checkout .woocommerce form .form-row select:focus,
body.woocommerce-checkout .woocommerce form .select2-container--default.select2-container--focus .select2-selection--single,
body.woocommerce-checkout .woocommerce form .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--leekin-color-red) !important;
  outline: 2px solid rgb(171 32 42 / 0.16);
  outline-offset: 1px;
}

body.woocommerce-checkout .woocommerce form .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0 42px 0 14px;
  color: var(--leekin-color-navy) !important;
  line-height: 46px;
}

body.woocommerce-checkout .woocommerce form .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px;
  right: 10px;
}

body.woocommerce-checkout .woocommerce #payment {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--leekin-color-border);
  border-radius: var(--leekin-radius-sm);
  background: var(--leekin-color-surface);
  color: var(--leekin-color-navy);
}

body.woocommerce-checkout .woocommerce #payment ul.payment_methods {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

body.woocommerce-checkout .woocommerce #payment ul.payment_methods li.wc_payment_method {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--leekin-color-gray-300);
  border-radius: var(--leekin-radius-sm);
  background: var(--leekin-color-surface);
}

body.woocommerce-checkout .woocommerce #payment ul.payment_methods li.wc_payment_method:has(input.input-radio:checked) {
  border-color: var(--leekin-color-red);
  background: var(--leekin-color-background);
}

body.woocommerce-checkout .woocommerce #payment ul.payment_methods li.wc_payment_method > input.input-radio {
  flex: 0 0 auto;
  margin: 0 0 0 16px;
  float: none;
  accent-color: var(--leekin-color-red);
}

body.woocommerce-checkout .woocommerce #payment ul.payment_methods li.wc_payment_method > label {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 14px 16px 14px 12px;
  color: var(--leekin-color-navy) !important;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}

body.woocommerce-checkout .woocommerce #payment ul.payment_methods li.wc_payment_method > label img {
  display: inline-block;
  width: auto !important;
  max-width: 80px !important;
  height: 46px !important;
  margin: 0;
  padding: 0 !important;
  object-fit: contain;
}

/* Course terms require a larger, keyboard-accessible control than the browser default. */
body.woocommerce-checkout .woocommerce input#dic_preservice_terms,
body.woocommerce-checkout .woocommerce input#same_center_rules,
body.woocommerce-checkout .woocommerce input#driving_course_tnc {
  -webkit-appearance: none;
  appearance: none;
  display: inline-grid;
  width: 22px;
  height: 22px;
  margin: 0 8px 0 0;
  border: 2px solid var(--leekin-color-navy);
  border-radius: 4px;
  background: var(--leekin-color-surface);
  color: var(--leekin-color-red);
  cursor: pointer;
  place-content: center;
  transform: none;
  vertical-align: baseline;
}

body.woocommerce-checkout .woocommerce input#dic_preservice_terms::before,
body.woocommerce-checkout .woocommerce input#same_center_rules::before,
body.woocommerce-checkout .woocommerce input#driving_course_tnc::before {
  width: 12px;
  height: 12px;
  background: currentColor;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  content: '';
  transform: scale(0);
  transform-origin: bottom left;
  transition: transform 120ms ease-in-out;
}

body.woocommerce-checkout .woocommerce input#dic_preservice_terms:checked::before,
body.woocommerce-checkout .woocommerce input#same_center_rules:checked::before,
body.woocommerce-checkout .woocommerce input#driving_course_tnc:checked::before {
  transform: scale(1);
}

body.woocommerce-checkout .woocommerce input#dic_preservice_terms:focus-visible,
body.woocommerce-checkout .woocommerce input#same_center_rules:focus-visible,
body.woocommerce-checkout .woocommerce input#driving_course_tnc:focus-visible {
  outline: 3px solid var(--leekin-color-red);
  outline-offset: 2px;
}

body.woocommerce-checkout .woocommerce #dic_preservice_terms_field {
  float: none;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
}

body.woocommerce-checkout .woocommerce #dic_preservice_terms_field label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

body.woocommerce-checkout .woocommerce #same_center_rules_field label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

body.woocommerce-checkout .woocommerce #same_center_rules_field label.checkbox > span:first-of-type {
  font-size: 18px;
  line-height: 19px;
}

body.woocommerce-checkout .woocommerce #payment .b27-antom-payments-icon-container,
body.woocommerce-checkout .woocommerce #payment .b27_antom_payments_label_wrap,
body.woocommerce-checkout .woocommerce #payment ._label_brands {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  float: none !important;
}

body.woocommerce-checkout .woocommerce #payment .payment_box {
  width: 100%;
  margin: 0;
  padding: 16px;
  border-top: 1px solid var(--leekin-color-border);
  background: var(--leekin-color-gray-100);
  color: var(--leekin-color-gray-700);
}

body.woocommerce-checkout .woocommerce #payment .place-order {
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--leekin-color-border);
}

body.woocommerce-checkout .woocommerce #payment .woocommerce-privacy-policy-text,
body.woocommerce-checkout .woocommerce #payment .woocommerce-privacy-policy-text p {
  color: var(--leekin-color-gray-700);
}

body.woocommerce-checkout .woocommerce #payment #place_order {
  min-height: 48px;
  margin: 0;
  padding: 12px 20px;
  border: 1px solid var(--leekin-color-red);
  border-radius: var(--leekin-radius-sm);
  background: var(--leekin-color-red);
  color: #fff;
  font-weight: 700;
}

body.woocommerce-checkout .woocommerce #payment #place_order:hover,
body.woocommerce-checkout .woocommerce #payment #place_order:focus {
  border-color: var(--leekin-color-red-dark);
  background: var(--leekin-color-red-dark);
  color: #fff;
}

@media (max-width: 575px) {
  body.woocommerce-checkout .woocommerce #payment {
    padding: 16px;
  }

  body.woocommerce-checkout .woocommerce #payment ul.payment_methods li.wc_payment_method > label {
    padding-right: 12px;
  }
}

/* The Plus Login/Register popup: aligns its third-party markup with Leekin form controls. */
#lrlkhaccount .tp-modal-wrapper {
  background: rgb(17 31 53 / 0.62);
  backdrop-filter: blur(4px);
}

#lrlkhaccount .tp-modal-wrapper .tp-modal {
  width: min(420px, calc(100vw - 32px));
  max-width: none;
  padding: 32px;
  border: 1px solid var(--leekin-color-border);
  border-radius: var(--leekin-radius-md);
  background: var(--leekin-color-surface);
  box-shadow: 0 18px 48px rgb(17 31 53 / 0.08);
}

#lrlkhaccount .tp-field-group:not(.tp-user-login-password):not(.tp-remember-me) {
  margin: 0 0 16px;
}

#lrlkhaccount .tp-modal input[type="text"],
#lrlkhaccount .tp-modal input[type="email"],
#lrlkhaccount .tp-modal input[type="password"] {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--leekin-color-gray-300);
  border-radius: var(--leekin-radius-sm);
  background: var(--leekin-color-surface) !important;
  color: var(--leekin-color-navy);
  font: inherit;
  box-shadow: none;
}

#lrlkhaccount .tp-modal input:focus {
  border-color: var(--leekin-color-red);
  outline: 2px solid rgb(171 32 42 / 0.16);
  outline-offset: 1px;
}

#lrlkhaccount .tp-modal input:-webkit-autofill,
#lrlkhaccount .tp-modal input:-webkit-autofill:hover,
#lrlkhaccount .tp-modal input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--leekin-color-navy);
  box-shadow: 0 0 0 1000px var(--leekin-color-surface) inset;
  transition: background-color 9999s ease-out 0s;
}

#lrlkhaccount form.tp-form-stacked-fp {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 48px 32px 32px;
  background: var(--leekin-color-surface);
  text-align: left;
}

#lrlkhaccount form.tp-form-stacked-fp .tp-lpu-back {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  border: 1px solid var(--leekin-color-gray-300);
  border-radius: var(--leekin-radius-sm);
  background: var(--leekin-color-surface);
  color: var(--leekin-color-red);
  text-decoration: none;
}

#lrlkhaccount form.tp-form-stacked-fp .tp-lpu-back:hover,
#lrlkhaccount form.tp-form-stacked-fp .tp-lpu-back:focus {
  border-color: var(--leekin-color-red);
  background: var(--leekin-color-background);
  color: var(--leekin-color-red-dark);
}

#lrlkhaccount form.tp-form-stacked-fp .tp-forgot-password-label {
  display: block;
  margin: 0 0 24px;
  color: var(--leekin-color-navy);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

#lrlkhaccount form.tp-form-stacked-fp .tp-forgot-password-label p {
  margin: 0;
}

#lrlkhaccount form.tp-form-stacked-fp .tp-ulp-input-group {
  margin-bottom: 16px;
}

#lrlkhaccount form.tp-form-stacked-fp .tp-ulp-input-group .tp-input {
  text-align: left;
}

#lrlkhaccount .tp-field-group.tp-remember-me {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0 0 20px;
}

#lrlkhaccount .tp-field-group.tp-remember-me .tp-form-label,
#lrlkhaccount .tp-field-group.tp-remember-me .remember-me-label {
  color: var(--leekin-color-subtle);
  font-size: 14px;
  font-weight: 600;
}

#lrlkhaccount .tp-field-group.tp-remember-me [type="checkbox"]:checked + label:before,
#lrlkhaccount .tp-field-group.tp-remember-me [type="checkbox"]:not(:checked) + label:before {
  border-color: var(--leekin-color-gray-300);
  border-radius: 4px;
}

#lrlkhaccount .tp-field-group.tp-remember-me [type="checkbox"]:checked + label:after {
  background: var(--leekin-color-red);
}

#lrlkhaccount .tp-modal .tp-button,
#lrlkhaccount .tp-modal .tp-button-fp {
  min-height: 48px;
  margin-top: 0;
  padding: 12px 20px;
  border: 1px solid var(--leekin-color-red);
  border-radius: var(--leekin-radius-sm);
  background: var(--leekin-color-red);
  color: var(--leekin-color-surface);
  font: inherit;
  font-weight: 600;
  line-height: 1.25;
}

#lrlkhaccount .tp-modal .tp-button:hover,
#lrlkhaccount .tp-modal .tp-button:focus,
#lrlkhaccount .tp-modal .tp-button-fp:hover,
#lrlkhaccount .tp-modal .tp-button-fp:focus {
  border-color: var(--leekin-color-red-dark);
  background: var(--leekin-color-red-dark);
  color: var(--leekin-color-surface);
}

#lrlkhaccount .tp-modal .tp-lost-password,
#lrlkhaccount .tp-modal .tp-lpu-back {
  display: inline-block;
  margin-top: 16px;
  color: var(--leekin-color-red);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

#lrlkhaccount .tp-modal .tp-lost-password:hover,
#lrlkhaccount .tp-modal .tp-lost-password:focus,
#lrlkhaccount .tp-modal .tp-lpu-back:hover,
#lrlkhaccount .tp-modal .tp-lpu-back:focus {
  color: var(--leekin-color-red-dark);
  text-decoration: underline;
}

#lrlkhaccount .tp-modal .tp-ulsp-btn-close {
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

#lrlkhaccount .tp-modal .tp-ulsp-btn-close:focus-visible {
  outline: 2px solid var(--leekin-color-red);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  #lrlkhaccount .tp-modal-wrapper .tp-modal {
    padding: 24px;
  }
}

@media (min-width: 1400px) {
  :root {
    --leekin-content-width: 1320px;
    --wp--style--global--content-size: 1320px;
    --wp--style--global--wide-size: 1320px;
  }
}

@media (max-width: 1199px) {
  :root {
    --leekin-content-width: 960px;
    --wp--style--global--content-size: 960px;
    --wp--style--global--wide-size: 960px;
  }
}

@media (max-width: 991px) {
  :root {
    --leekin-content-width: 720px;
    --wp--style--global--content-size: 720px;
    --wp--style--global--wide-size: 720px;
    --leekin-gutter: 24px;
  }
}

@media (max-width: 782px) {
  .admin-bar .leekin-site-header {
    top: 46px;
  }
}

@media (max-width: 767px) {
  :root {
    --leekin-content-width: 540px;
    --wp--style--global--content-size: 540px;
    --wp--style--global--wide-size: 540px;
  }
}

@media (max-width: 575px) {
  :root {
    --leekin-content-width: 100%;
    --wp--style--global--content-size: 100%;
    --wp--style--global--wide-size: 100%;
    --leekin-gutter: 16px;
  }
}

@media (max-width: 767px) {
  .leekin-site-header__inner,
  .leekin-site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .leekin-content-wrap {
    padding: 32px 0 48px;
  }

  .elementor-location-footer .elementor-nav-menu--layout-horizontal .elementor-nav-menu {
    justify-content: flex-start;
  }

  .leekin-catalog-section-title-iconbox .elementor-icon-box-wrapper {
    align-items: flex-start;
  }
}

/* Keep the Buy Now action visible; hide only WooCommerce's standard cart controls. */
body.single-product form.cart .single_add_to_cart_button:not([name="wc-quick-buy-now"]),
.woocommerce ul.products li.product .add_to_cart_button {
  display: none !important;
}

body.single-product form.cart .quantity {
  display: none !important;
}

body.single-product form.cart button[name="wc-quick-buy-now"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--leekin-color-red);
  border-radius: var(--leekin-radius-sm);
  background: var(--leekin-color-red);
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
}

body.single-product form.cart button[name="wc-quick-buy-now"]:hover,
body.single-product form.cart button[name="wc-quick-buy-now"]:focus {
  border-color: var(--leekin-color-red-dark);
  background: var(--leekin-color-red-dark);
  color: #fff;
}

/* Course-option controls are rendered by WPC Product Options. */
body.single-product form.cart .wpcpo-wrapper {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--leekin-color-border);
  border-radius: var(--leekin-radius-md);
  background: var(--leekin-color-surface);
}

body.single-product form.cart .wpcpo-options {
  display: grid;
  gap: 16px;
}

body.single-product form.cart .wpcpo-option {
  margin: 0;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--leekin-color-border);
}

body.single-product form.cart .wpcpo-option:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

body.single-product form.cart .wpcpo-option-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  color: var(--leekin-color-navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

body.single-product form.cart .wpcpo-option-name strong {
  font: inherit;
}

body.single-product form.cart .wpcpo-option-name .label-price {
  color: var(--leekin-color-red);
}

body.single-product form.cart .wpcpo-option-form .form-row {
  margin: 8px 0 0;
  padding: 0;
}

body.single-product form.cart .wpcpo-option-field {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--leekin-color-gray-300);
  border-radius: var(--leekin-radius-sm);
  background: var(--leekin-color-surface);
  color: var(--leekin-color-navy);
  box-shadow: none;
}

body.single-product form.cart select.wpcpo-option-field {
  padding: 0 42px 0 14px;
}

body.single-product form.cart .wpcpo-option-field:focus {
  border-color: var(--leekin-color-red);
  outline: 2px solid rgb(171 32 42 / 0.16);
  outline-offset: 1px;
}

body.single-product form.cart .wpcpo-option-description {
  margin: 10px 0 12px;
  padding: 12px 14px;
  border-left: 3px solid var(--leekin-color-red);
  border-radius: 0 var(--leekin-radius-sm) var(--leekin-radius-sm) 0;
  background: #fff8f8;
  color: var(--leekin-color-red-dark) !important;
  font-size: 14px;
  line-height: 1.6;
}

body.single-product form.cart .wpcpo-option-description * {
  color: inherit !important;
}

body.single-product form.cart input[type="file"].wpcpo-option-field {
  padding: 8px;
  background: var(--leekin-color-background);
}

body.single-product form.cart input[type="file"].wpcpo-option-field::file-selector-button {
  margin-right: 10px;
  padding: 8px 12px;
  border: 1px solid var(--leekin-color-red);
  border-radius: 4px;
  background: var(--leekin-color-surface);
  color: var(--leekin-color-red);
  font-weight: 600;
  cursor: pointer;
}

body.single-product form.cart .wpcpo-option-form small {
  display: block;
  margin-top: 6px;
  color: var(--leekin-color-muted);
  font-size: 12px;
}

body.single-product form.cart .wpcpo-total {
  margin: 24px 0 0;
  overflow: hidden;
  border: 1px solid var(--leekin-color-border);
  border-radius: var(--leekin-radius-sm);
  background: var(--leekin-color-gray-100);
}

body.single-product form.cart .wpcpo-total ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.single-product form.cart .wpcpo-total li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 14px 16px;
  color: var(--leekin-color-navy);
}

body.single-product form.cart .wpcpo-total .wpcpo-subtotal {
  border-top: 1px solid var(--leekin-color-border);
  background: var(--leekin-color-surface);
  font-weight: 700;
}

body.single-product form.cart .wpcpo-subtotal-amount .woocommerce-Price-amount {
  margin-left: 8px;
  color: var(--leekin-color-red);
  font-size: 18px;
}

body.single-product form.cart .wpcpo-clear-btn {
  color: var(--leekin-color-red);
  font-size: 13px;
  font-weight: 600;
}

/* Native WPC radio fields styled as accessible text swatches. */
body.single-product form.cart .wpcpo-option-radio .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 10px 0 0;
}

body.single-product form.cart .wpcpo-option-radio .form-row > label {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0 10px 10px 0;
  padding: 9px 14px;
  border: 1px solid var(--leekin-color-gray-300);
  border-radius: var(--leekin-radius-sm);
  background: var(--leekin-color-surface);
  color: var(--leekin-color-navy);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

body.single-product form.cart .wpcpo-option-radio .field-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

body.single-product form.cart .wpcpo-option-radio .form-row > label:has(.field-radio:checked) {
  border-color: var(--leekin-color-red);
  background: var(--leekin-color-red);
  color: var(--leekin-color-surface);
}

body.single-product form.cart .wpcpo-option-radio .form-row > label:has(.field-radio:focus-visible) {
  outline: 2px solid rgb(171 32 42 / 0.28);
  outline-offset: 2px;
}

body.single-product form.cart .wpcpo-option-radio .form-row > label span {
  margin-left: 4px;
  font-weight: 700;
}

body.single-product form.cart .wpcpo-option-radio .form-row > label:has(.field-radio:checked) .woocommerce-Price-amount {
  color: inherit;
}

@media (max-width: 575px) {
  body.single-product form.cart .wpcpo-wrapper {
    margin: 20px 0;
    padding: 16px;
  }

  body.single-product form.cart .wpcpo-total li {
    align-items: flex-start;
    padding: 14px;
  }
}

/* Product details are WooCommerce-generated child markup, beyond Elementor controls. */
body.single-product .summary.entry-summary > p.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 12px 0 24px;
  color: var(--leekin-color-red);
}

body.single-product .summary.entry-summary > p.price::before {
  content: "課程基本價格";
  color: var(--leekin-color-navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

body.single-product .summary.entry-summary > p.price .woocommerce-Price-amount {
  color: var(--leekin-color-red);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

body.single-product .summary.entry-summary .product_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  color: var(--leekin-color-gray-700);
  font-size: 14px;
  line-height: 1.35;
}

body.single-product .summary.entry-summary .product_meta > span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--leekin-color-border);
  border-radius: var(--leekin-radius-sm);
  background: var(--leekin-color-surface);
}

body.single-product .summary.entry-summary .product_meta .sku,
body.single-product .summary.entry-summary .product_meta a {
  color: var(--leekin-color-red);
  font-weight: 600;
  text-decoration: none;
}

/* Elementor's dynamic product widgets render these WooCommerce elements outside
 * the legacy .summary wrapper. Keep their product-page presentation identical. */
body.single-product .elementor-widget-woocommerce-product-price .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 12px 0 24px;
  color: var(--leekin-color-red);
}

body.single-product .elementor-widget-woocommerce-product-price .price::before {
  content: "課程基本價格";
  color: var(--leekin-color-navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

body.single-product .elementor-widget-woocommerce-product-price .price .woocommerce-Price-amount {
  color: var(--leekin-color-red);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

body.single-product .elementor-widget-woocommerce-product-meta .product_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  color: var(--leekin-color-gray-700);
  font-size: 14px;
  line-height: 1.35;
}

body.single-product .elementor-widget-woocommerce-product-meta .product_meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--leekin-color-border);
  border-radius: var(--leekin-radius-sm);
  background: var(--leekin-color-surface);
}

body.single-product .elementor-widget-woocommerce-product-meta .product_meta .sku,
body.single-product .elementor-widget-woocommerce-product-meta .product_meta a {
  color: var(--leekin-color-red);
  font-weight: 600;
  text-decoration: none;
}


body.woocommerce ul.products li.product a img,
body.single-product .related.products ul.products li.product a img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--leekin-color-surface);
}

/* WooCommerce order-received page: mirrors the approved payment-result layout. */
body.woocommerce-order-received .leekin-content-wrap {
  width: 100%;
  max-width: none;
  padding: 0;
}

.leekin-receipt {
  padding: clamp(56px, 7vw, 96px) 16px;
  background: #eee;
  color: var(--leekin-color-navy);
}

.leekin-receipt > * {
  width: min(896px, 100%);
  margin-inline: auto;
}

.leekin-receipt__intro {
  margin-bottom: 32px;
  text-align: center;
}

.leekin-receipt__status-icon {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--leekin-color-red);
  color: #fff;
  font-size: 62px;
  font-weight: 700;
  line-height: 1;
}

.leekin-receipt--pending .leekin-receipt__status-icon { background: #55657a; font-size: 46px; }
.leekin-receipt--failed .leekin-receipt__status-icon { background: #7f1d1d; font-size: 48px; }

.leekin-receipt h1,
.leekin-receipt h2,
.leekin-receipt h3,
.leekin-receipt p { margin-top: 0; }

.leekin-receipt h1 { margin-bottom: 12px; font-size: clamp(32px, 3.2vw, 40px); line-height: 1.2; }
.leekin-receipt__intro p { margin-bottom: 0; font-size: 18px; }

.leekin-receipt__card {
  margin-top: 32px;
  padding: 32px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
}

.leekin-receipt__card-heading,
.leekin-receipt__utilities,
.leekin-receipt__total,
.leekin-receipt__actions,
.leekin-receipt__help-grid {
  display: flex;
  align-items: center;
}

.leekin-receipt__card-heading { justify-content: space-between; gap: 20px; }
.leekin-receipt__card h2 { margin-bottom: 0; font-size: 26px; line-height: 1.35; }
.leekin-receipt__utilities { flex-wrap: wrap; justify-content: flex-end; gap: 12px; }

.leekin-receipt__button,
.leekin-receipt__action,
.leekin-receipt__contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  color: var(--leekin-color-navy);
  font: inherit;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
}

.leekin-receipt__button--primary,
.leekin-receipt__action--primary,
.leekin-receipt__contact {
  border-color: var(--leekin-color-red);
  background: var(--leekin-color-red);
  color: #fff;
}

.leekin-receipt__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  margin-top: 24px;
}

.leekin-receipt__details dl { margin: 0; }
.leekin-receipt__details dl > div { margin-bottom: 16px; }
.leekin-receipt__details dt { margin-bottom: 4px; color: var(--leekin-color-navy); font-size: 14px; }
.leekin-receipt__details dd { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.45; }

.leekin-receipt__total {
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  padding-top: 24px;
  border-top: 1px solid #eee;
  font-size: 18px;
  font-weight: 700;
}

.leekin-receipt__total strong { font-size: 26px; }

.leekin-receipt__next-steps { text-align: left; }
.leekin-receipt__next-steps h2 { margin-bottom: 28px; text-align: center; }
.leekin-receipt__next-steps ol { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.leekin-receipt__next-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.leekin-receipt__next-steps li > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--leekin-color-red); color: #fff; font-weight: 700; }
.leekin-receipt__next-steps h3 { margin-bottom: 4px; font-size: 18px; }
.leekin-receipt__next-steps p { margin-bottom: 0; line-height: 1.55; }

.leekin-receipt__actions { gap: 16px; margin-top: 32px; }
.leekin-receipt__action { flex: 1 1 0; min-height: 58px; gap: 10px; }
.leekin-receipt__action-icon { display: block; width: 18px; height: 18px; flex: 0 0 auto; }
.leekin-receipt__action--primary .leekin-receipt__action-icon { width: 18px; height: 16px; }

.leekin-receipt__help { text-align: center; }
.leekin-receipt__help > h2 { margin-bottom: 12px; }
.leekin-receipt__help > p { margin-bottom: 28px; }
.leekin-receipt__help-grid { gap: 24px; align-items: stretch; }
.leekin-receipt__help-grid > div { display: flex; flex: 1 1 0; flex-direction: column; align-items: center; min-height: 174px; padding: 28px 16px; border-radius: 10px; background: #eee; text-align: center; }
.leekin-receipt__help-grid h3 { margin-bottom: 12px; font-size: 18px; }
.leekin-receipt__help-grid strong { margin-bottom: 8px; font-size: 15px; }
.leekin-receipt__help-grid small { font-size: 13px; }
.leekin-receipt__contact { min-width: 156px; margin-top: 32px; }

@media (max-width: 778px) {
  .leekin-receipt { padding-block: 48px; }
  .leekin-receipt__card { padding: 24px 20px; }
  .leekin-receipt__card-heading { align-items: flex-start; flex-direction: column; }
  .leekin-receipt__utilities { justify-content: flex-start; }
  .leekin-receipt__details { grid-template-columns: 1fr; gap: 0; }
  .leekin-receipt__actions { flex-direction: column; }
  .leekin-receipt__action { width: 100%; }
  .leekin-receipt__help-grid { display: grid; grid-template-columns: 1fr; }
}

@media print {
  .leekin-site-header, .leekin-site-footer, .leekin-receipt__utilities, .leekin-receipt__actions, .leekin-receipt__help, .admin-bar { display: none !important; }
  .leekin-receipt { padding: 0; background: #fff; }
  .leekin-receipt__card { margin-top: 16px; }
}

}

/* leekin-wpcpo-select: make zero-cost branch selectors match the Leekin option treatment. */
.single-product .wpcpo-option-select .label-price {
	display: none;
}

.single-product .wpcpo-option-select select {
	width: 100%;
	min-height: 48px;
	padding: 10px 42px 10px 14px;
	color: #ffffff;
	background-color: #b51f2b;
	border: 1px solid #b51f2b;
	border-radius: 9px;
	font: inherit;
	font-weight: 700;
	line-height: 1.35;
	cursor: pointer;
}

.single-product .wpcpo-option-select select:hover,
.single-product .wpcpo-option-select select:focus {
	background-color: #971923;
	border-color: #971923;
	box-shadow: 0 0 0 3px rgba(181, 31, 43, 0.18);
	outline: none;
}

.single-product .wpcpo-option-select select option {
	color: #111f35;
	background-color: #ffffff;
}


/* leekin-mobile-header-menu-stacking: keep the opened navigation above page widgets. */
@media (max-width: 991px) {
  .elementor-location-header {
    position: relative;
    z-index: 10;
  }
  .elementor-location-header .plus-mobile-menu-content {
    z-index: 11;
  }
}
