/*
Theme Name:   	2026 Storefront Child Theme
Author:       	Compass Classroom
Author URI:     https://compassclassroom.com
Template:     	storefront
Description:  	This is a child theme for StoreFront theme
Version:      	2.0.1
Text Domain:  	storefront
*/

/* Old CSS from JOY & Sridhar, Philip, etc. */

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.3;
}

h5 {
  font-size: 18px;
  font-weight: 700;
}

p+h4,
p+h2 {
  margin-top: 0;
}

body {
  font-size: 1.1em;
  font-weight: 300;
  color: #000;
}

#masthead {
  z-index: 1000;
}

.active a {
  outline: 0;
}

a {
  color: #325598;
}

.site-content a {
  font-weight: 700;
}

strong {
  font-weight: 700;
}

.storefront-breadcrumb {
  margin: 0 !important;
}

.woocommerce-breadcrumb {
  margin-bottom: 0.25em !important;
  padding: 0 !important;
}

.woocommerce .composite_form:not(.paged) .component .component_inner {
  padding-bottom: 0;
}

.woocommerce .component_content,
.woocommerce .component_options {
  float: left;
}

.woocommerce .component_content {
  margin-left: 10px;
  position: relative;
  top: -5px;
}


.single.single-product div.product form.cart {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.quantity .input-text {
  background: #fff;
}

.single.single-product .composite_form .step_title_wrapper,
.single.single-product div.product .woocommerce-product-rating,
.woocommerce-product-details__short-description p {
  margin-bottom: 0;
}

.single.single-product div.product .embed-container {
  margin-bottom: 2em;
}

.single.single-product .composite_button {
  margin-top: 1em !important;
}

.composite_form .step_title_wrapper {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1em;
  line-height: 1;
}

.single.single-product .composite_form:not(.paged) .component:not(.first) .component_title_wrapper,
.single.single-product .composite_form:not(.paged) .composite_wrap {
  padding-top: 1em;
}

.single.single-product .stock.in-stock {
  margin: 0.2em 0 0;
}

.single.single-product .stock.in-stock:before {
  content: "";
  margin-right: 0;
}

.single.single-product div.product .component_selections .select_label {
  display: none;
}

.single.single-product div.product p.price {
  margin: 0.4em 0;
}

.single.single-product .woocommerce-tabs ul.tabs li a {
  color: #aaa;
  font-weight: 400;
}

.single.single-product .woocommerce-tabs ul.tabs li.active a {
  color: #000;
  font-weight: 700;
}

.woocommerce-tabs.wc-tabs-wrapper {
  background: #f9f9f9;
  box-shadow: inset 0 0 10px #eee;
  border: 1px solid #ddd;
  padding: 35px;
  margin-bottom: 1.5em;
  border-radius: 5px;
}

.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--view-subscription74267 a::before {
  content: "\f073";
}

.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--wc-smart-coupons a::before {
  content: "\f3d1";
}

.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--courses a::before {
  content: "\f19d";
}

.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--settings a::before {
  content: "\f4fe";
}

#pay_with_amazon {
  display: block !important;
  float: none !important;
}

#pay_with_amazon img {
  margin: 0 auto !important;
}

.single-product .component .component_wrap span.price {
  display: none !important;
}

.wpp-list li {
  overflow: hidden;
  float: none;
  clear: both;
  border-bottom: 1px solid #e4e4e4;
  padding: 5px;
}

.wpp-post-title {
  font-weight: 100 !important;
  text-decoration: none !important;
}

.widget .widget-title,
.widget .widgettitle {
  font-size: 15px !important;
}

@media (max-width: 479px) {
  .woocommerce-page #primary ul.products li.product:nth-child(n) {
    width: 45% !important;
  }
}

@media (min-width: 768px) {
  .ccs-blogContainer {
    display: unset;
    flex-direction: row;
    margin-bottom: 3em;
    width: 73.9130434783%;
    float: left;
    margin-right: 4.347826087%;
  }

  .ccs-right-sidebar .widget-area {
    width: 21.7391304348%;
    float: right;
    margin-right: 0;
  }
}

@media (max-width: 320px) {
  .addtoany_list {
    display: block !important;
    clear: both;
    text-align: center;
    padding: 10px 0;
  }

  #amPayButton {
    float: none !important;
    text-align: center;
    display: block !important;
  }

  #amPayButton img {
    margin: auto;
  }

  .woocommerce-tabs.wc-tabs-wrapper {
    padding: 15px;
    width: 100%;
  }

  .woocommerce-tabs.wc-tabs-wrapper ol {
    margin: 0 0 0 18px;
  }

  .single.single-product .woocommerce-tabs ul.tabs li a {
    padding: 0.5em 0;
  }

  .woocommerce-tabs .panel h2:first-of-type {
    font-size: 22px !important;
    margin-bottom: 0.6em !important;
  }

  .single.single-product div.product form.cart {
    padding: 0.6em;
  }

  .quantity .qty {
    width: 100% !important;
  }

  .cart .single_add_to_cart_button {
    font-size: 15px;
    width: 100%;
    margin-top: 10px;
  }

  .single-product div.product form.cart .quantity {
    float: none;
    margin-right: 0;
  }

  .woocommerce-tabs.wc-tabs-wrapper .shop_attributes tr td,
  .woocommerce-tabs.wc-tabs-wrapper .shop_attributes tr th {
    font-size: 14px;
    padding: 1em 0.41575em;
  }

  #tab-sample-lesson .button {
    text-align: center;
  }
}


/* End of Old CSS */

/* ── Default page hero header ─────────────────── */
.cc-page-hero {
  width: 100%;
  background-color: #404C64;
}

.cc-page-hero__wrap {
  max-width: 66.4989378333em;
  margin: 0 auto;
  padding: 60px 2.617924em;
  box-sizing: border-box;
}

.cc-page-hero__title {
  font-family: 'Lora', Georgia, serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 1.28;
  color: #FFFFFF;
  margin: 0;
}

.page-template-default .storefront-breadcrumb {
  display: none;
}

@media (max-width: 768px) {
  .cc-page-hero__title {
    font-size: 36px;
  }
}

@media (max-width: 480px) {
  .cc-page-hero__title {
    font-size: 28px;
  }
}

.page-template-default #primary.content-area {
  padding-top: 2em;
}

.page-template-default .widget-area {
  padding-top: 2em;
}

/* ═══════════════════════════════════════════════════════════════
   Global Button Override — Brand Blue (replaces green)
   ═══════════════════════════════════════════════════════════════ */

.added_to_cart,
.button,
.site-header-cart .widget_shopping_cart a.button,
.widget a.button,
button,
button.single_add_to_cart_button.alt,
input[type=button],
input[type=reset],
input[type=submit] {
  background: #2B5D9A;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  color: #FFFFFF;
  border-radius: 5px;
  padding: 8px 24px;
  text-transform: none;
  letter-spacing: normal;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.added_to_cart:hover,
.button:hover,
.site-header-cart .widget_shopping_cart a.button:hover,
.widget a.button:hover,
button:hover,
input[type=button]:hover,
input[type=reset]:hover,
input[type=submit]:hover {
  background: #1e4a7a;
  border-color: #1e4a7a;
  color: #FFFFFF;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ═══════════════════════════════════════════════════════════════
   Global Input Field Override — Figma Text Field style
   ═══════════════════════════════════════════════════════════════ */

.input-text,
input[type=email],
input[type=password],
input[type=search],
input[type=text],
input[type=url],
input[type=tel],
input[type=number],
textarea {
  background: #FFFFFF;
  border: 2px solid #E3E6E9;
  border-radius: 6px;
  box-shadow: none;
  color: #16161D;
  padding: 10px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-text:focus,
input[type=email]:focus,
input[type=password]:focus,
input[type=search]:focus,
input[type=text]:focus,
input[type=url]:focus,
input[type=tel]:focus,
input[type=number]:focus,
textarea:focus {
  border-color: #2B5D9A;
  box-shadow: 0 0 0 1px #2B5D9A;
  outline: none;
}

/* Remove Product Sorting Dropdown on Shop Page */
select.orderby {
  display: none;
}

/* Image with 'data' attribute is hidden */
img[data-lazy-src] {
  /* we set the opacity to 0 */
  opacity: 0;
}

/* Image without 'data' attribute is (or becomes) visible */
img.lazyloaded {
  /* prepare the future animation */
  -webkit-transition: opacity .5s linear 0.2s;
  -moz-transition: opacity .5s linear 0.2s;
  transition: opacity .5s linear 0.2s;
  /* we set the opacity to 1 to do the magic */
  opacity: 1;
}

/***Storefront Styling***/
.storefront-full-width-content .content-area {
  width: 90%;
  margin-left: 5%;

}

.storefront-full-width-content.woocommerce-cart .entry-header,
.storefront-full-width-content.woocommerce-checkout .entry-header,
.storefront-full-width-content.woocommerce-account .entry-header,
.storefront-full-width-content .woocommerce-products-header {
  text-align: center;
  padding: 5%;
}

@media (min-width: 1150px) {
  .ld_course_grid {
    height: auto !important;
  }
}

.woocommerce-ordering {
  display: none;
  margin-bottom: 1em;
  margin-top: 1em;
}

.elementor-wc-products ul.products li.product .price {
  font-weight: 300 !Important;
}

span.onsale {
  display: none !Important;
}

.elementor-wc-products ul.products li.product .button {
  display: none;
}

.woocommerce-result-count {
  margin-top: 25px;
}

.star-rating span:before,
.quantity .plus,
.quantity .minus,
p.stars a:hover:after,
p.stars a:after,
.star-rating span:before,
#payment .payment_methods li input[type=radio]:first-child:checked+label:before {
  color: #FCB71D !important;
  font-weight: bold;
}

input[type=checkbox] {
  display: inline-block;
}

/*Make short description on composite spacing improved*/
.composite_form .component .component_summary .composited_product_details_wrapper {
  padding-top: 10px;
}

/*Remove active tab Purple outline */
.tab.active_tab,
:focus {
  outline: none !important;
}

.elementor-element.elementor-element-ad694bb.elementor-search-form--skin-full_screen input[type="search"].elementor-search-form__input {
  border: 3px solid #2b5c9a;
}

/*Add Home Icon to Yoast Breadcrumbs*/
p#breadcrumbs:before {
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  line-height: inherit;
  vertical-align: baseline;
  content: "";
  margin-right: 0.540791em;
  font-variant: normal;
}

/* Make Last Breadcrumb black */
span.breadcrumb_last {
  color: black
}

/* Make Thank You Page Responsive on Mobile for download orders*/
.xlwcty_wrap .xlwcty_order_details_2_col table tr td,
.xlwcty_wrap .xlwcty_order_details_2_col table tr th {
  padding: 0px !important;
  font-size: 14px;
}

/* Tab Color on Product Page*/
.woocommerce .elementor-584176 .elementor-element.elementor-element-ee2ab5a .woocommerce-tabs ul.wc-tabs li a {
  color: #808080;
}

li.active a {
  color: #333333 !important;
  transition: all ease 100ms;
}

.available-on-backorder {
  margin-top: 25px;
}

/* Remove White Space below WooCommerce Notice*/
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
  margin-bottom: 0px;
}

/* Remove large space below rows of blog posts in grid */
.hentry {
  margin-bottom: 2em;
}

/*Add Padding to Back to Shop Button after removing item from cart */
a.button.wc-backward {
  margin-top: 10px;
}

/* YITH Reviews Plugin Affects Elementor Sliders - Pagination Dots */
.elementor-widget-loop-carousel .swiper-pagination-bullets.swiper-pagination-horizontal {
  left: calc(var(--dots-horizontal-position) + var(--dots-horizontal-offset)) !important;
}

/* YITH Reviews Text Sizing */
.yith-ywar-product-rating .total-reviews {
  font-size: 16px !important;
}

/* Composite Product Option Dropdowns Spacing */
.component .component_options_select {
  background: #fff;
  border-radius: 5px !important;
  padding: .75em 1.25em;
  font-weight: 400;
}

/* Authored by Dave Joyce
Restyle the default Select input field
 */
form.cart select {
  appearance: none;
  /* Remove default browser styling */
  border: 1px solid #ccc;
  padding: 5px 10px !important;
  background-color: #fff;
  color: #333;
  font-size: 16px;
  box-shadow: 0 1px 2px 0px rgba(0, 0, 0, .1);
  background-image: url('https://compassclassroom.com/wp-content/uploads/caret-down-solid.svg') !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  /* Adjust position as needed */
  background-size: 12px 16px !important;
  padding-right: 30px !important;
  /* Add padding to make space for the arrow */
  margin-bottom: 10px !important;
  border-radius: 5px !important;
}


/* Restyle the number input field
------------------------------------------ */
.composited_product_details_wrapper {
  padding-top: 0 !important;
}

.component_content {
  margin-left: 0px !important;
}

.quantity input[type="number"] {
  -webkit-appearance: none;
  /* Override default styling in WebKit browsers */
  -moz-appearance: none;
  /* Override default styling in Firefox */
  appearance: none;
  /* Override default styling in most modern browsers */
  border: 1px solid #ccc;
  padding: 5px;
  font-size: 16px;
  margin-top: 0;
  border-radius: 5px;
  height: 37px !important;
}

/* Tweak the add to cart spacing so it's in line with everything else
-----------------------------*/
.composite_button {
  margin-left: 0px !important;
}

button[name="add-to-cart"] {
  margin-left: 0px !important;
  margin-top: 10px !important;
}

form.cart {
  padding-left: 0px !important;
  padding-top: 0px !important;
}

/* Format + Quantity positing fix
-----------------------------*/
.single-product div.product form.cart [data-nav_title="Video Format"] .quantity {
  position: absolute;
  top: -47px;
  left: 210px;
}

[data-nav_title="Video Format"] .component_content {
  clear: both;
}

/* Out of Stock Message Padding */
.stock.out-of-stock {
  padding-top: 20px;
}

/*Center Align the add-to-cart and qty */
.woocommerce div.product.elementor form.cart:not(.grouped_form):not(.variations_form) {
  display: flex !important;
  align-items: center;
  gap: 15px;
}

/* Higher specificity, still generic */
/* Target the parent of the price widget, which is a flex container */
div#price-group {
  align-items: center;
  /* Ensures flex items are vertically centered */
}

/* Target the price widget element itself */
.elementor-element.elementor-element-0dcb8f1.elementor-widget.elementor-widget-woocommerce-product-price {
  align-self: center;
  /* Ensures this specific flex item is vertically centered */
}