/* Course Finder v1.1: non-modal, compact left drawer. No layout-moving JS. */
.akch-cf-launcher {
  position: fixed !important;
  left: 16px !important;
  right: auto !important;
  bottom: 16px !important;
  z-index: 100008;
  padding: 11px 15px;
  border: 0;
  border-radius: 28px;
  background: #087f37;
  color: #fff;
  font: 750 13px/1.35 system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .18);
}
.akch-cf-launcher span { font-size: 18px; margin-right: 4px; }
.akch-cf-launcher:hover { background: #096b31; }
/* Avoid overlapping the drawer's cart bar when the drawer is open. */
body.akch-cf-body-open .akch-cf-launcher { visibility: hidden !important; pointer-events: none !important; }

.akch-cf-panel {
  position: fixed !important;
  left: 16px !important;
  right: auto !important;
  top: auto !important;
  bottom: 16px !important;
  width: min(390px, calc(100vw - 32px)) !important;
  max-width: min(390px, calc(100vw - 32px)) !important;
  height: min(680px, calc(100dvh - 48px)) !important;
  max-height: calc(100dvh - 48px) !important;
  display: flex !important;
  flex-direction: column;
  z-index: 100010;
  background: #fff;
  color: #17211e;
  border: 1px solid #e5ebe7;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .19);
  font: 13px/1.45 system-ui, -apple-system, Segoe UI, sans-serif;
  transform: translate3d(calc(-100% - 36px), 0, 0) !important;
  transition: transform .18s ease;
  visibility: hidden;
  pointer-events: none;
}
.akch-cf-panel * { box-sizing: border-box; }
.akch-cf-panel.akch-cf-open {
  transform: translate3d(0, 0, 0) !important;
  visibility: visible;
  pointer-events: auto;
}
.akch-cf-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #e5ebe7;
}
.akch-cf-header strong { display: block; font-size: 18px; color: #102d1a; }
.akch-cf-header small { display: block; font-size: 11px; color: #698077; }
.akch-cf-panel .akch-cf-close {
  flex: 0 0 36px !important;
  position: static !important;
  display: inline-grid !important;
  place-items: center;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  background: #edf1ee !important;
  color: #143e25 !important;
  font: 800 25px/1 system-ui, sans-serif !important;
  border: 1px solid #ccd9ce !important;
  border-radius: 9px !important;
  cursor: pointer !important;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: none !important;
}
.akch-cf-panel .akch-cf-close:hover,
.akch-cf-panel .akch-cf-close:focus-visible { background: #d5e9da !important; color: #003b1a !important; }
.akch-cf-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; padding: 12px 14px; }
.akch-cf-intro { background: #eff9f2; border: 1px solid #d8efdf; border-radius: 10px; padding: 10px; margin-bottom: 12px; font-size: 12px; }
.akch-cf-choices { display: flex; gap: 7px; margin-top: 8px; }
.akch-cf-choices button { border: 1px solid #0b7f3e; color: #07672f; background: #fff; border-radius: 7px; padding: 7px 9px; font-size: 12px; font-weight: 700; cursor: pointer; }
.akch-cf-choices button:first-child { background: #087f37; color: #fff; }
.akch-cf-form label { display: block; font-size: 12px; font-weight: 750; margin-bottom: 6px; }
.akch-cf-controls { display: flex; gap: 7px; }
.akch-cf-controls input { flex: 1; min-width: 0; border: 1px solid #cbd8cf; border-radius: 8px; padding: 8px 10px; min-height: 38px; font: 13px system-ui, sans-serif; background: #fff; color: #17211e; }
.akch-cf-controls button, .akch-cf-add { background: #087f37; color: #fff; border: 0; border-radius: 8px; padding: 8px 11px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.akch-cf-controls button:hover, .akch-cf-add:hover { background: #096b31; }
.akch-cf-message { font-size: 11px; margin: 10px 0 4px; color: #566960; min-height: 15px; }
.akch-cf-product { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid #edf1ed; }
.akch-cf-thumb { display: block; width: 65px; min-width: 65px; height: 65px; background: #f7f8f7; border-radius: 7px; overflow: hidden; }
.akch-cf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.akch-cf-product-info { flex: 1; min-width: 0; }
.akch-cf-product-title { color: #122f1c; font-size: 12px; font-weight: 750; line-height: 1.35; text-decoration: none; display: block; }
.akch-cf-product-title:hover { text-decoration: underline; }
.akch-cf-product-info small { color: #718079; font-size: 10px; display: block; margin-top: 2px; }
.akch-cf-price { color: #0b7443; font-weight: 800; margin: 4px 0; }
.akch-cf-price del { color: #819187; font-weight: 400; }
.akch-cf-add { font-size: 11px; padding: 6px 9px; }
.akch-cf-add:disabled { opacity: .55; cursor: wait; }
.akch-cf-view { font-size: 11px; color: #087f37; }
.akch-cf-more { flex: 0 0 auto; display: block; margin: 0; width: 100%; border: 0; border-top: 1px solid #cbd8cf; background: #ecf7ee; color: #075c29; padding: 9px 10px; font-weight: 750; cursor: pointer; }
.akch-cf-more[hidden], .akch-cf-bundle[hidden] { display: none !important; }
.akch-cf-bundle { display: flex; flex-direction: column; margin-top: 14px; background: #fff8e5; border: 1px solid #fae7a7; padding: 10px; border-radius: 9px; gap: 3px; }
.akch-cf-bundle strong { color: #5e4911; }
.akch-cf-bundle span { color: #76643b; font-size: 11px; }
.akch-cf-footer { flex: 0 0 auto; padding: 9px 13px; border-top: 1px solid #e6ebe7; background: #fff; }
.akch-cf-footer a { display: block; text-align: center; text-decoration: none; color: #fff; background: #1f2937; border-radius: 8px; padding: 9px; font-weight: 700; }
/* Do NOT lock scrolling on the product page. */
body.akch-cf-body-open { overflow: auto !important; }
.akch-cf-panel a, .akch-cf-panel button, .akch-cf-panel input { pointer-events: auto; }
@media(max-width:650px) {
  .akch-cf-launcher { left: 10px !important; bottom: 10px !important; }
  .akch-cf-panel { left: 8px !important; bottom: 8px !important; width: min(390px, calc(100vw - 16px)) !important; max-width: calc(100vw - 16px) !important; height: min(620px, calc(100dvh - 56px)) !important; max-height: calc(100dvh - 56px) !important; }
}
@media(prefers-reduced-motion:reduce) { .akch-cf-panel { transition: none; } }

/* AKCH_CF_CENTER_FLOAT_V12 */
#akch-cf-launcher.akch-cf-launcher {
  top: 50% !important; bottom: auto !important;
  left: 16px !important; right: auto !important;
  transform: translateY(-50%) !important;
}
#akch-cf-panel.akch-cf-panel {
  top: 50% !important; bottom: auto !important;
  left: 16px !important; right: auto !important;
  transform: translate3d(calc(-100% - 36px), -50%, 0) !important;
}
#akch-cf-panel.akch-cf-panel.akch-cf-open {
  transform: translate3d(0, -50%, 0) !important;
}
@media(max-width:650px) {
 #akch-cf-launcher.akch-cf-launcher { left: 10px !important; }
 #akch-cf-panel.akch-cf-panel { left: 8px !important; }
}

/* Course Finder v1.2 — persistent cart state and savings summary. */
.akch-cf-panel .akch-cf-add.akch-cf-in-cart {
  background: #fff1e6 !important;
  color: #a34700 !important;
  border: 1px solid #f0b27a !important;
  font-weight: 800 !important;
}
.akch-cf-panel .akch-cf-add.akch-cf-in-cart:hover { background: #ffe4cf !important; }
.akch-cf-panel .akch-cf-bundle {
  margin: 10px 0 5px !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  background: #f0f9f0 !important;
  border: 1px solid #cbe8d0 !important;
  gap: 2px !important;
}
.akch-cf-panel .akch-cf-bundle strong { font-size: 12px; color: #9a3412; }
.akch-cf-panel .akch-cf-bundle span { font-size: 11px; color: #7c2d12; }
.akch-cf-panel .akch-cf-summary { display: grid; gap: 3px; padding-bottom: 7px; font-size: 11px; color: #405349; }
.akch-cf-panel .akch-cf-summary[hidden] { display: none !important; }
.akch-cf-panel .akch-cf-summary div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.akch-cf-panel .akch-cf-summary strong { color: #102d1a; font-weight: 800; }
.akch-cf-panel .akch-cf-summary .akch-cf-savings-row, .akch-cf-panel .akch-cf-summary .akch-cf-savings-row strong { color: #087f37; }
.akch-cf-panel .akch-cf-summary .akch-cf-total-row { border-top: 1px solid #edf1ed; padding-top: 4px; font-size: 12px; font-weight: 800; }
.akch-cf-panel .akch-cf-footer a #akch-cf-cart-count { font-size: 11px; font-weight: 600; opacity: .9; }

/* AKCH_CF_BLUE_UPDATE_BANNER_V1 */

#akch-cf-panel .akch-cf-update-promise {
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin: 9px 12px 0 !important;
    padding: 10px 12px !important;

    background: #f0f5ff !important;
    color: #26466f !important;
    border: 1px solid #c9daf5 !important;
    border-radius: 10px !important;

    font-family: system-ui, sans-serif !important;
    line-height: 1.45 !important;
    box-sizing: border-box !important;
}

#akch-cf-panel .akch-cf-update-promise strong {
    display: block !important;
    color: #26466f !important;
    font-size: 12px !important;
    font-weight: 750 !important;
}

#akch-cf-panel .akch-cf-update-promise span {
    display: block !important;
    color: #355b88 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
}

/* Keep the existing independently scrollable product area */

#akch-cf-panel .akch-cf-body {
    min-height: 0 !important;
    flex: 1 1 auto !important;
    overflow-y: auto !important;
}

@media (max-width: 650px) {
    #akch-cf-panel .akch-cf-update-promise {
        margin: 7px 10px 0 !important;
        padding: 8px 10px !important;
    }
}
