/*
 Theme Name:   StoreFront - StoryTheme
 Theme URI:    https://www.gutenacht-geschichten.com/storefront-storytheme/
 Description:  StoreFront - StoryTheme Child Theme
 Author:       Idealizer GmbH
 Author URI:   https://www.idealizer.ch
 Template:     storefront
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  storefront-storytheme
*/

/* [file: wp-content/themes/storefront-storytheme/style.css] */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Emilys+Candy&family=Madimi+One&display=swap');


/* Header */

.beta.site-title a {
  font-family: "Madimi One", sans-serif !important;
  font-weight: 400;
  font-style: normal;	
  font-size: 1.7em;
  letter-spacing: px;
  margin: 0;
}

.site-branding .site-description {
  font-size: 1.5em;
}


#masthead.site-header {
    /* margin-bottom: 20px; */
}

.site-header {
  padding-top: 0.5em;
}

.woocommerce-active .site-header .site-search {
    width: 21.7391304348%;
    float: right;
    margin-right: 0;
    clear: none;
	display: none;
  }

  .woocommerce-active .site-header .main-navigation {
    width: 100%;
    float: left;
    margin-right: 4.347826087%;
    clear: both;
  }

.storefront-full-width-content.woocommerce-account .entry-header, .storefront-full-width-content .woocommerce-products-header {
    text-align: left;
    padding: 0 0 5.9968353111em;
  }

/*  Login / Registration Button  */

.primary-navigation {
   font-size: 1.2em;
}


.primary-navigation li.right {
    float: right;
    margin-left: 20px;
}

.primary-navigation li.right a {
    background-color: #0073aa; /* WordPress blue */
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.primary-navigation li.right a:hover {
    background-color: #005177; /* Darker blue */
}

.primary-navigation .right.menu-item {
    display: none;
}

/* Body */

/* Center the entry-title h1 within entry-header */
.entry-header .entry-title {
  text-align: center;
  margin: 15px 0 0 0; /* Centers the text and ensures the h1 uses the full width available */
}

/* Existing styles for other elements */
.hentry .entry-content a {
  text-decoration: none;
}

.hentry .wp-post-image {
  margin-bottom: 0;
}

.page-template-template-homepage .type-page {
  padding-top: 1em;
  padding-bottom: 1em;
  position: relative;
}

/* Ensure the entry-header text is centered only for the homepage */
.page-template-template-homepage .entry-header {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center; /* This centers the container's text, but we override h1 specifically */
}

.page-template-template-homepage .entry-header h1 {
  font-size: 2.5em;
}

/* Override for entry-content and entry-header to ensure text alignment is left, excluding the centered h1 */
.page-template-template-homepage .entry-content, .page-template-template-homepage .entry-header {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}



.page-template-template-homepage:not(.has-post-thumbnail) .site-main {
  padding-top: 0em;
}

.storefront-hero__button-edit {
    display: none !important;
}

 .storefront-breadcrumb {
    padding: 0em 0;
    margin: 0 0 0em;
  }


/* Suppress focus outline for links, inputs, textareas, and buttons */
a:focus, input:focus, textarea:focus, button:focus {
    outline: none; /* Removes the focus outline */
}

/* Column full width */

/* Mobile styles */


@media (max-width: 768px) {

    #masthead.site-header {
        padding-bottom: 0.3em; /* Reduce bottom padding on mobile */
    }
	
    .storefront-breadcrumb {
        margin-bottom: 0; /* Remove bottom margin on mobile */
    }
	
  .col-full {
	max-width: 100%;
	margin-left: 0.5em; /* 16px */
	margin-right: 0.5em; /* 16px */
	padding: 0;
	box-sizing: content-box;
  }
	
h1, .alpha {
  font-size: 1.5em;
  line-height: 1.214;
  letter-spacing: -1px;
}
	
  .beta.site-title a {
    font-size: 0.9em;
  }
	
  .custom-product-cards-container .custom-product-card {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 20px;
    margin-bottom: 20px;
  }

	.site-search {
		display: none;
	}

	/* Position the menu button at the top right */
	.site-header .menu-toggle {
		position: absolute;
		right: 10px;
		top: 20px;
	}

	
}

/* Tablet styles */
@media (min-width: 35.5em) { /* 568px / 16px = 35.5em */
  .col-full {
    max-width: 100%;
    margin-left: 1em; /* 32px */
    margin-right: 1em; /* 32px */
    padding: 0;
    box-sizing: content-box;
  }
}

/* Desktop styles */
@media (min-width: 48em) { /* 768px / 16px = 48em */

	.col-full {
		max-width: 100%;
		margin-left: 2em; /* 40px */
		margin-right: 2em; /* 40px */
		padding: 0;
		box-sizing: content-box;
	}

	.page-template-template-homepage .entry-content,
	.page-template-template-homepage .entry-header {
	  max-width: 100%;
	  margin-left: auto;
	  margin-right: auto;
	  text-align: left
	}

	.page-template-template-homepage .entry-content {
	  font-size: 1.5em;
	}

}
	
/* WooCommerce */
/* ---------------------------------------------------------------------------------------------*/

/* General styling for social login buttons */
.nextend-social-container .nextend-button-providers {
    display: block;
    width: 100%;
    margin-bottom: 10px; /* Adjust spacing between buttons */
}

/* Specific provider styling */
.nextend-social-container .nextend-button-provider.facebook {
    background-color: #3b5998; /* Facebook blue */
    color: white; /* Text color */
    /* Add more styling rules as needed */
}

.nextend-social-container .nextend-button-provider.google {
    background-color: #db4437; /* Google red */
    color: white; /* Text color */
    /* Add more styling rules as needed */
}

/* Style adjustments for the container or overall layout */
.nextend-social-container {
    text-align: center; /* Center align if desired */
    padding: 20px 0; /* Add some padding around the buttons */
}

/* Color for Date and Order on subscription cancellation page */
mark {
  color: #fbf6f6;
}

/* Color for Delete-Account-Button */
// [file: /wp-content/themes/storefront-storytheme/style.css]

#delete-account-container {
    text-align: center;
    margin-top: 20px; /* Adjust as needed */
}

#delete-account-btn, #confirm-delete-account-btn {
    background-color: red !important; /* Ensures red background */
    color: white !important; /* Ensures white text */
    border: none;
    cursor: pointer;
    padding: 10px 20px; /* Adjust padding as needed */
    margin-top: 10px; /* Provides spacing between button and confirmation input */
}



.onsale {
  border: 0px solid;
  border-color:#43454b;
  color: #fff;
  background-color: #f90000;
  padding:.202em .6180469716em;
  font-size:.875em;
  text-transform:uppercase;
  font-weight:600;
  display:inline-block;
  margin-bottom:1em;
  border-radius:3px;
  position:relative
}

.price {
  text-align: center;
}

.price ins {
  font-weight: 400;
  color: #38d538;
  font-size: 1.5em;
}

.price del {
  opacity: .7;
  font-weight: 400;
  color: #ff5e5e;
}

/* Product Card Adjustments */
.custom-product-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch; 
}

.custom-product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    width: calc(33.333% - 20px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    padding: 15px;
    background-color: #333;
    border-radius: 5px;
	align-items: center;
}

.custom-product-card a {
    text-decoration: none;
    color: inherit;
}

.custom-product-card img {
    max-width: 100%; /* Make sure the image can grow up to the full width of its container */
    height: auto; /* Maintain the aspect ratio of the image */
    display: block; /* This ensures the image takes up its own line */
}


.custom-product-title {
    font-size: 28px;
	font-weight: 400;
    margin: 15px 0 10px;
	text-align: center;
}

.custom-product-description,
.custom-product-price {
    font-size: 16px;
}

.custom-product-description ul {
	margin-left: 10px
}

.custom-product-description li {
    list-style-type: none;
    font-size: 16px; 
}

.custom-product-description li:before {
    /* content: "\f00c";  FontAwesome check icon */
    /* font-family: 'FontAwesome', 'Font Awesome 5 Free'; /* Ensure the correct font-family */
    /* font-weight: 900; /* Required for solid icons in FA5 */
    /* color: #4BB543; */
    margin-right: 5px;
    display: inline-block; /* Ensure it behaves as expected */
	vertical-align: middle; /* Center the icon vertically in line with the text */
}


/* Reusing .onsale and .price classes for consistency */
.custom-product-card .onsale {
  border: 0px solid;
  border-color:#43454b;
  color: #fff;
  background-color: #f90000;
  padding:.202em .6180469716em;
  font-size:.875em;
  text-transform:uppercase;
  font-weight:600;
  display:inline-block;
  margin-bottom:1em;
  border-radius:3px;
  position:relative
}

.custom-product-card .price ins {
    /* Inherits WooCommerce styling for .price ins */
}

.custom-product-card .price del {
    /* Inherits WooCommerce styling for .price del */
}

.custom-product-card .button.alt {
    background-color: #5c6bc0; /* Adjust the color to fit your theme */
    color: #ffffff;
    text-align: center;
    width: auto; /* Set width to auto to allow the button to expand */
    display: inline-block; /* Allows the button to respect the width property */
    padding: 10px 15px; /* Adjust padding as needed, but ensure it fits in a single line */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px; /* Adjust font size to ensure it doesn't break onto two lines */
    margin: 10px 0; /* Add some margin at the top and bottom */
    box-sizing: border-box; /* Ensures padding is included in the width calculation */
}

.custom-product-card .button.alt:hover {
    background-color: #acd68f; /* Adjust the color to fit your theme */
}

.custom-product-card form {
    width: 100%; /* Ensure the form takes the full width of the card */
    display: flex;
    justify-content: center; /* This will center the button horizontally */
    align-items: center; /* This will center the button vertically */
}


.custom-add-to-cart {
    width: auto; /* Adjust based on your design */
    margin: 0 auto; /* This will center the button */
}



/* Woo-Commerce Dashboard */

/* Coins container styling */
.coins-container {
    display: flex;
    flex-direction: column; /* This ensures items stack vertically */
    align-items: flex-start; /* Align items to the start of the flex container */
}

.coins-container h3 {
    text-align: left;
}

/* Individual coin item styling */
.coin-item {
    flex-grow: 1;
    margin: 10px;
	font-size: 2em;
	color: #b1d698;
    align-items: center;
}

/* Coin message styling */
.coin-message {
    flex-basis: 100%;
    margin-top: 10px;
}

/* Adjustments for mobile screens */
@media (max-width: 768px) {
    .coins-container {
        flex-direction: column;
    }

    .coin-item {
        margin: 5px 0;
    }
}

/* Adjusting cart-width */
body .wc-block-components-sidebar-layout .wc-block-components-main {
  box-sizing: border-box;
  margin: 0;
  padding-right: 0; /* Adjusted to 0 to remove padding */
  width: 50%;
}

body .wc-block-components-sidebar-layout .wc-block-checkout__sidebar {
  width: 50%;
}

/* Making the checkout sidebar larger */
body .wc-block-components-sidebar-layout .wc-block-checkout__sidebar,
body .wc-block-components-sidebar-layout .wc-block-components-main {
  font-size: 18px; /* Adjust the font size as needed */
}

.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: 0 0 1.9968353111em;
  }
}


/* FOOTER */
/* ------------------------------------------------------------------------------------------------------------------------------------- */

.site-info {
	text-align: center;
	margin-bottom: 10px; /* Adjust spacing between the copyright text and flag links */
}
.flag-links {
	display: inline-block;
	margin-top: 5px; /* Adjust spacing between flag links */
}
.flag-link {
	display: inline-block;
	margin: 0 5px; /* Adjust spacing between flag links */
}
.flag-link img {
	height: 40px; /* Set a fixed height for the flags */
	margin: 0; /* Remove default image margins */
}

.site-footer a {
   text-decoration: none;
}