/* Crypto Capital Academy: small additions on top of the original the page builder / Tutor / WooCommerce styles
   (assets/theme/*.css, assets/tutor/, assets/woo/), which are loaded unchanged. */

/* the page builder swapped the footer "Useful links" text for a centred copy on phones (multi-view); same result in CSS. */
@media (max-width: 767px) {
  .cca-footer-links p { text-align: center; }
}

/* the page builder's mobile menu list is shown by its script; ours toggles inline display, keep it hidden by default. */
.et_mobile_menu { display: none; }

/* Phones: the page builder's desktop offsets that pushed parts of a page past the screen's edge, so the page scrolled sideways on
   the old site too (the owner's mobile pass), up to tablets, where the page builder stacks the columns. Home: the "Free Courses"
   card; About: the community heading and text. */
@media (max-width: 980px) {
  .page-id-14395 .cb_blurb_20.cb_blurb { margin-right: 0 !important; }
  .page-id-14703 .cb_text_6 { margin-right: 0 !important; }
  .page-id-14703 .cb_text_7 { width: auto; }
}

/* Very narrow phones (320px): Google's reCAPTCHA box is a fixed 304px; the registration forms already scale it to 0.89,
   a little more keeps it inside the form. */
@media (max-width: 360px) {
  .g-recaptcha { transform: scale(0.77) !important; transform-origin: 0 0; }
}

/* Copy protection (the old site's "WP Content Copy Protection" settings; site.js does the rest): no text selection
   outside form fields and editors, no image dragging, and printing gives a blank page. */
body *:not(input):not(textarea):not(select):not([contenteditable]):not([contenteditable] *) {
  -webkit-user-select: none;
  user-select: none;
}
input, textarea, select, [contenteditable], [contenteditable] * { -webkit-user-select: text; user-select: text; cursor: text; }
select { cursor: pointer; }
img { -webkit-user-drag: none; }
@media print {
  body * { display: none !important; }
}
/* The message shown when a blocked shortcut is used (the plugin's colours). */
#cca-copy-message {
  position: fixed; top: 20px; left: 50%; z-index: 999999; transform: translateX(-50%); max-width: calc(100% - 32px);
  padding: 12px 16px 12px 44px; font-size: 12px; color: #555555; background: #ffecec url('/assets/images/copy-warning.png') no-repeat 12px 50%;
  border: 1px solid #f5aca6; border-radius: 4px; box-shadow: 0 0 34px 2px #f2bfbf; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
#cca-copy-message.show { opacity: 1; visibility: visible; }

/* Phones: a course topic's summary tooltip opens as a full-width box under the topic title (beside the info icon it
   ran past the screen's edge and made the page scroll sideways). */
@media (max-width: 767px) {
  .tutor-accordion-item-header { position: relative; }
  .tutor-accordion-item-header .tooltip-wrap.tooltip-icon { position: static; }
  .tutor-accordion-item-header .tooltip-wrap .tooltip-txt.tooltip-right { left: 0; right: 0; top: 100%; max-width: none; width: auto; }
  .tutor-accordion-item-header .tooltip-wrap .tooltip-txt.tooltip-right:after { display: none; }
}

/* Tablets and small laptops: the account menu's drop-down (Dashboard, Log out) opens to the left, under the avatar,
   instead of past the screen's right edge. */
@media (max-width: 1280px) {
  [id^="menu-loginmenu"] > li > .sub-menu { left: auto !important; right: 0; }
}

/* Mike 2026-11-09: logo, menu, login and cart sit inside the black top bar (it is the top 40% of the 16vw header, so everything is placed in vw): logo and cart the same distance from each edge, the menu centred, the menu and login level with the bottom edge of the logo */
.cb_section_0_tb_header:not(.cb_sticky) .cb_row_0_tb_header,.cb_section_0_tb_header:not(.cb_sticky) .cb_row_0_tb_header>.cb_column{position:static!important}
.cb_section_0_tb_header:not(.cb_sticky) .cb_image_0_tb_header{position:absolute;left:8.8vw;top:3.2vw;width:12.5vw;margin:0!important;transform-origin:0 50%;transform:translateY(-50%) scale(2)!important}
.cb_section_0_tb_header:not(.cb_sticky) .cb_menu_0_tb_header{position:absolute;left:50%;top:3.2vw;width:auto;margin:0!important;transform:translate(-50%,calc(-50% + 9.5px + 2.58vw - 13px))}
.cb_section_0_tb_header:not(.cb_sticky) .cb_menu_1_tb_header{position:absolute;right:8.8vw;top:3.2vw;width:auto;margin:0!important;transform:translateY(calc(-50% + 2.58vw - 13px))}
.cb_section_0_tb_header:not(.cb_sticky) .cb_menu_1_tb_header .cb_menu__wrap{flex-wrap:nowrap;justify-content:flex-end;white-space:nowrap}
/* Mike 2026-11-09: the same after scrolling */
/* the header after scrolling: a fixed 120px strip whose black bar is its top 48px */
.cb_section_0_tb_header.cb_sticky .cb_row_0_tb_header,.cb_section_0_tb_header.cb_sticky .cb_row_0_tb_header>.cb_column{position:static!important}
.cb_section_0_tb_header.cb_sticky .cb_image_0_tb_header{position:absolute;left:8.8vw;top:24px;width:min(12.5vw,150px);margin:0!important;transform-origin:0 50%;transform:translateY(-50%) scale(1.3)!important}
.cb_section_0_tb_header.cb_sticky .cb_menu_0_tb_header{position:absolute;left:50%;top:24px;width:auto;margin:0!important;transform:translate(-50%,calc(-50% + 9.5px + min(12.5vw,150px)/4.85*0.65 - 15px))}
.cb_section_0_tb_header.cb_sticky .cb_menu_1_tb_header{position:absolute;right:8.8vw;top:24px;width:auto;margin:0!important;transform:translateY(calc(-50% + min(12.5vw,150px)/4.85*0.65 - 2px))}
.cb_section_0_tb_header.cb_sticky .cb_menu_1_tb_header .cb_menu__wrap{flex-wrap:nowrap;justify-content:flex-end;white-space:nowrap}

/* Mike 2026-11-09: help for lesson videos that will not play (assets/video-help.js) */
.video-help{margin:12px 0 0;border:1px solid #d9d9d9;border-radius:8px;background:#fafafa;font-size:15px;line-height:1.5}
.video-help>summary{cursor:pointer;padding:10px 14px;font-weight:600;color:#333}
.video-help-body{padding:0 14px 12px}
.video-help-body ul{margin:6px 0 10px 18px;padding:0}
.video-help-body li{margin:0 0 6px}
.video-help-note{margin:0 0 12px;padding:12px 14px;border:2px solid #e09900;border-radius:8px;background:#fff7e6;color:#222;font-size:15px;line-height:1.5}
.video-help-note ul{margin:6px 0 0 18px;padding:0}
.video-help-note li{margin:0 0 6px}
