
/*
Theme Name:   YearbookLife Storefront
Theme URI:    https://michellec153.sg-host.com
Description:  Child theme for Storefront
Author:       YearbookLife
Author URI:   https://michellec153.sg-host.com
Template:     storefront
Version:      1.0.0
Text Domain:  storefront-child
*/

/* Your custom styles go here */

/* Hide search from the header */
.wp-child-theme-storefront-child .widget_product_search {
	display: none;
}

/* Center the footer copyright and remove padding */
.wp-child-theme-storefront-child .site-footer {
    text-align: center;
    padding: 0;
}

@media (min-width: 768px) {

    /* Reduce spacing above the site header */
    .wp-child-theme-storefront-child .site-header {
        padding-top: 1.617924em;
    }    
	
	/* Make the logo container full width */	
    .wp-child-theme-storefront-child.woocommerce-active .site-header .site-branding {
        width: 100%;
        float: left;
        margin-right: 0;
    }

	/* Center the logo */
    .wp-child-theme-storefront-child .site-header .site-branding img {
        height: auto;
        max-width: 230px;
        max-height: none;
        margin: auto;
    }

    /* Remove spacing under the logo */
    .wp-child-theme-storefront-child .site-branding, .site-search,
    .wp-child-theme-storefront-child .site-header-cart, .site-logo-anchor,
    .wp-child-theme-storefront-child .site-logo-link, .custom-logo-link {
        margin-bottom: 0;
    }    

    .wp-child-theme-storefront-child .main-navigation ul.menu>li>a, .main-navigation ul.nav-menu>li>a {
        padding: 0.7em 1em;
    }

    .wp-child-theme-storefront-child .site-header-cart .cart-contents {
        padding: 0.7em 0;
    }

}
/* Top announcement bar */
.wp-child-theme-storefront-child .top-announcement-bar {
    background: #D2E5E9;
    color: #000;
    padding: 6px 0;
    text-align: center;
}

/* Remove outline on the logo link */
.custom-logo-link:focus {
    outline: none;
}

.custom-logo-link {
    opacity: 1;
    transition: opacity 300ms;
}

.custom-logo-link:hover {
    opacity: 0.6;
}

/* Add a border to the main menu */
.storefront-primary-navigation {
    border-top: 1px solid #e3e3e3;
    border-bottom: 1px solid #e3e3e3;
}

/* Hide page breadcrumbs */
.wp-child-theme-storefront-child .storefront-breadcrumb {
    display: none !important;
}

.wp-child-theme-storefront-child .site-content {
    padding-block-start: 2rem;
}

.wp-child-theme-storefront-child.home .site-content {
    padding-block-start: 0;
}

/* Remove the Shop and Product page sidebars */
#secondary.widget-area {
    display: none;
}

#primary.content-area {
    width: 100%;
    margin: 0;
}

/* Hide the next and prev product */
.storefront-product-pagination {
    display: none !important;
}

.wp-child-theme-storefront-child .site-footer {
    background-color: #eaeff3;
    border-top: 1px solid #c1cad2;
}

.wp-child-theme-storefront-child .site-info {
    padding: 1.617924em 0;
    font-size: 14px;    
}

.wp-child-theme-storefront-child .hentry .entry-content .wp-block-button .wp-block-button__link, 
.wp-child-theme-storefront-child .editor-styles-wrapper .wp-block-button .wp-block-button__link {
    border-radius: 30px;
    font-size: 16px;
    line-height: 1.5;
    padding: 0.618047em 3.41575em;
}

/* ========================================
   CUSTOM PRODUCT FIELDS STYLING - MINIMAL
   ======================================== */

/* Main container styling */
.pewc-product-extra-groups-wrap {
    max-width: 100%;
    margin: 1rem 0;
}

/* Group containers - slimmed down */
.pewc-group-wrap {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
}

/* Group headings - much smaller and more compact */
.pewc-group-heading-wrapper h3 {
    background: #f5f5f5;
    color: #333;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #ddd;
}

/* Group content - less padding */
.pewc-group-content-wrapper {
    padding: 1rem;
}

/* Remove default list styling */
.pewc-product-extra-groups {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Individual field items - tighter spacing */
.pewc-item {
    margin-bottom: 1rem;
}

.pewc-item:last-child {
    margin-bottom: 0;
}

/* Field labels - smaller */
.pewc-field-label {
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    display: block;
}

.pewc-field-label .required {
    color: #e74c3c;
}

/* Text input fields - slimmer */
.pewc-form-field {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background: #ffffff;
}

.pewc-form-field:focus {
    outline: none;
    border-color: #007cba;
}

/* Radio button styling - minimal, no custom styling on radio inputs */
.pewc-checkbox-group-wrapper {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pewc-checkbox-group-wrapper li {
    margin-bottom: 0.5rem;
}

.pewc-radio-form-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #ffffff;
}

.pewc-radio-form-label:hover {
    border-color: #007cba;
}

/* Style the radio input to be smaller */
.pewc-radio-form-field {
    margin-right: 0.6rem;
    width: 16px;
    height: 16px;
    transform: none;
}

.pewc-radio-option-text {
    flex: 1;
    font-size: 0.9rem;
    color: #333;
}

.pewc-option-cost-label {
    font-weight: 500;
    color: #333;
    margin-left: 0.5rem;
}

/* Total section styling - minimal */
.pewc-total-field-wrapper {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1rem;
}

.pewc-total-field-wrapper p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 0.3rem 0;
    font-size: 0.9rem;
}

.pewc-total-field-wrapper p:last-child {
    margin-bottom: 0;
    border-top: 1px solid #ddd;
    padding-top: 0.6rem;
    margin-top: 0.6rem;
    font-weight: 600;
}

.pewc-total-field {
    font-weight: 500;
    color: #333;
}

/* Override heading styles */
.pewc-group-heading-wrapper h3 {
    font-size: 16px !important;
    font-weight: bold !important;
}

/* Custom radio button styling */
.pewc-preset-style .pewc-checkbox-form-label span.pewc-theme-element, 
.pewc-preset-style .pewc-radio-form-label span.pewc-theme-element, 
.pewc-preset-style .pewc-item-field-wrapper span.pewc-theme-element, 
.pewc-preset-style .pewc-item-checkbox span.pewc-theme-element, 
.pewc-preset-style .pewc-checkbox-wrapper span.pewc-theme-element, 
.pewc-preset-style .pewc-radio-wrapper span.pewc-theme-element {
    content: "";
    position: absolute;
    top: 12px;
    left: 8px;
    height: 20px;
    width: 20px;
    background: #eee;
    cursor: pointer;
}

.pewc-preset-style .pewc-radio-form-label span.pewc-theme-element:after, 
.pewc-preset-style .pewc-radio-list-label-wrapper span.pewc-theme-element:after {
    top: 5px;
    left: 5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pewc-group-content-wrapper {
        padding: 0.8rem;
    }
    
    .pewc-group-heading-wrapper h3 {
        padding: 0.5rem 0.6rem;
        font-size: 14px !important;
    }
}