/*
 Theme Name: GeneratePress Child
 Template: generatepress
 Version: 1.0
*/

/* FONTS */
/* Local Inter font faces */

@font-face {
    font-family: 'Inter';
    src: url('/wp-content/uploads/fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/wp-content/uploads/fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/wp-content/uploads/fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Apply globally (might not do this)

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
} */

.button,
button,
.wp-block-button__link {
    font-weight: 600;
}
/* END FONTS */


/* Notice on Product page clarifying that this is an eBook */
.gcse-product-meta {
    margin-top: 12px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #f7f8fa;
    border-left: 3px solid #E5B94A;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

.gcse-product-meta strong {
    font-weight: 600;
    color: #111;
}

.gcse-product-meta .gcse-meta-note {
    color: #555;
}

/* Notice on checkout clarifying that this is an eBook */
.gcse-digital-notice {
    margin: 15px 0;
    padding: 12px 15px;
    background: #f5f7fa;
    border-left: 4px solid var(--accent3);
    font-size: 0.95rem;
}

/* Bundle link on every indiv Product page */
.gcse-bundle-link {
    margin: 8px 0 16px;
    font-size: 0.95rem;
}

/* Sample download link on every indiv Product page */
.gcse-sample-link {
    margin: 10px 0 18px;
    font-size: 0.95rem;
}

/* Hide Basket label on small screens */
@media (max-width: 768px) {
  .menu-basket-text { display: none; }
}

/* Hide bundled products section (clutter reduction) Might not be necessary any more as found a native way to do this
.bundled_products,
.bundled_products_title,
.bundled_products_summary,
.bundled_product_summary,
.bundled_product,
.bundled_product_images,
.bundled_product .product_title,
.bundled_product .details,
.bundled_product img {
    display: none !important;
} */

/* Hide tabs only on homepage bundle */
.home .woocommerce-tabs {
    display: none;
}

/* On sale symbol colour */
.woocommerce span.onsale {
    background-color: var(--accent);
	font-weight: 600;
	line-height: 3;
}
	
/* Margin between price and H1 title */
p.price {
margin-top: 0.5em;
}

/* Sale price edits */
.woocommerce div.product p.price del, .woocommerce div.product span.price del {
    font-size: 0.8em;
}
.woocommerce div.product p.price ins, .woocommerce div.product span.price ins {
    color: var(--accent);
}

/* Reverse columns on mobile for bundle section "What's Inside" */
@media (max-width: 768px) {

  .bundle-columns {
    display: flex;
    flex-direction: column-reverse;
  }

}

/* Make hero image static, on home page and single product pages */
.woocommerce-product-gallery__image a {
    pointer-events: none;
    cursor: default;
}

/* Various hero image display edits, on home page and single product pages */
.woocommerce-product-gallery img {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

.woocommerce-product-gallery {
    max-width: 520px;
    margin: 0 auto;
}

/* Sort margins */
.separate-containers.no-sidebar .site-main {
    margin: 0px;
}

/* WooCommerce buttons */
/* WooCommerce primary buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce input#submit,
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce input.button.alt,
body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link) {
  background-color: var(--accent);
  color: #fff;
  border: 0;
  font-weight: 600;
  padding: 0.85em 1.1em;
  border-radius: 6px;
}

/* Hover */
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce input.button.alt:hover,
body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link):hover {
  background-color: var(--accent3);
  color: #fff;
}

/* Active */
body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link):focus {
    box-shadow: none !important;
    outline: none !important;
}

/* Hide meta info on Checkout screen */
.wc-block-components-order-summary .wc-block-components-order-summary-item__description .wc-block-components-product-metadata, .wc-block-components-order-summary .wc-block-components-order-summary-item__description p {
    display: none;
}

/* Remove underline from Proceed to checkout button */
.woocommerce-cart .wc-block-cart__submit-container a.wc-block-cart__submit-button {
    text-decoration: none !important;
}

/* Various basket clean ups */
/* First one here prob not needed as hidden via native WooCommerce tick boxes (hiding only for Product 34)
.wc-block-components-product-metadata__description,
.is-bundled__cid_34  {
	display: none;
} */

/* Hide shipping stuff */
.wc-block-components-totals-footer-item .wc-block-components-totals-footer-item-shipping {
    display: none;
}

/* "Basket Totals" unnecessary label hide */
.wc-block-cart__totals-title {
        display: none !important;
}

/* Total border hide */
.wc-block-components-totals-wrapper {
	border: none !important;
}


/* Hide child items of bundles in Checkout prob not needed as hidden via native WooCommerce tick boxes
.is-bundled__subtotal_aggregated {
	display: none !important;
} */


/* Padding for Basket and Checkout pages */
.entry-content .alignwide {
    padding: 0 20px;
}


/* Hide quantity selector on product page */
.woocommerce div.product form.cart div.quantity {
    float: left;
    margin: 0 4px 0 0;
    display: none;
}

/* Footer links tweaks */
/* Improve spacing between copyright and policy links */
.site-info br {
    display: block;
    margin: 0.6em 0 0.4em;
}

/* Improve readability */
.site-info {
    line-height: 1.7;
    text-align: center;
}

/* Make legal links slightly subtler than main copyright */
.site-info a {
    text-decoration: none;
    font-size: 0.95em;
    opacity: 0.9;
}

/* Hover state */
.site-info a:hover {
    text-decoration: underline;
    opacity: 1;
}

/* Media, text padding, esp on About page */
.wp-block-media-text>.wp-block-media-text__content {
    padding: 0 8% 0 0;
}

/* Hide short description from displaying in Basket */
.wc-block-components-product-metadata {
    display: none;
}

/* Secondary button, for e.g. Amazon link etc */
.button2 a.wp-block-button__link {
	background-color:#55555e !important;
	opacity: 0.6;
    transition: opacity 0.2s ease;
	font-size: 0.85em;
}

.button2 a.wp-block-button__link:hover {
	background-color:#3f4047 !important;
	opacity: 0.8;
}

/* Social Links */
.wp-social-link {
	background-color: var(--contrast-3);
	opacity: 0.5;
}

.wp-social-link:hover {
	opacity: 8;
}

.wp-block-social-links {
    font-size: 1.5em;
}