/*
Theme Name: Membersites Conference
Theme URI: 
Author: Membersites
Author URI: https://membersites.co
Description: Conference theme by Membersites
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: tecology-fse-2024
Text Domain: membersites-conference




/******************** Woocommerce Styling ********************/

/********** Menu **********/

/* 1. Global Styling */
/* 2. Navigation */
/* 3. Alert Banner */
/* 4. Bootstrap styling to Edit Address Form */
/* 5. Billing Address Box */
/* 6. Media Queries */



/********** 1. Global Styling **********/

/* Woocommerce */
.woocommerce{
    width:100% !important;
    max-width: 100%!important;
}


.woocommerce-account .woocommerce-MyAccount-content {
    width: 100%
}

.woocommerce-MyAccount-orders{
 font-size:16px!important;
}

.woocommerce-Address {
    width: 100%;
}

.woocommerce-Address-title h2, .woocommerce-MyAccount-content h2 {
    display: none;
}

/********** 2. Navigation **********/

/* Align My Account navigation horizontally */
.woocommerce-MyAccount-navigation ul {
    display: flex;
    justify-content: center; /* Center align navigation items */
    padding: 0;
    list-style: none;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 1em;
}

.woocommerce-MyAccount-navigation li {
    margin: 0 15px; /* Spacing between items */
}

/* List Item */
.woocommerce-MyAccount-navigation ul li{
 margin-left:0px;
 margin-right:0px;
}

.woocommerce-MyAccount-navigation a {
    color: #333;
    padding: 10px 15px;
    display: block;
    font-weight: bold;
}

.woocommerce-MyAccount-navigation .is-active a {
    border-bottom: 2px solid #333; /* Highlight active item */
    color: #000; /* Active link color */
}

.woocommerce-MyAccount-content {
    padding-top: 1em;
}

.entry-content :not(.wp-block-group) li:last-child {
    padding-bottom: 0px !important;
}


/* Limit the 100% width rule to the My Account page's navigation only */
.woocommerce-account nav.woocommerce-MyAccount-navigation {
    width: 100% !important;
}


/* List */
.woocommerce-MyAccount-navigation ul{
 margin-bottom:0px!important;
 justify-content:flex-start;
}

/* Link */
.woocommerce-MyAccount-navigation-link a{
 text-decoration:none !important;
}

 /* List Item */
 .woocommerce-MyAccount-navigation ul li{
  padding-bottom:0px!important;
 }
 

.woocommerce form .form-row label {
    line-height: 1;
}

.woocommerce-MyAccount-content label {
    margin-bottom: 0.7rem;

}



/********** 3. Alert Banner **********/

.wc-block-components-notice-banner {
    margin-top: 1em;
    padding: 10px;
    border-radius: 7px;
    font-size: 1rem;
}


/* Division */
.wc-block-components-notice-banner__content{
 display:flex;
 justify-content:space-between;
 align-items:center;
}


/********** 5. Billing Address Box **********/

/* Address */
.woocommerce-Address address{
 background-color:#f4f4f4;
 border-style:solid;
 border-width:1px;
 border-radius:4px;
 border-color:#d6d6d6;
 padding:10px;
 margin-top:20px;
}


/********** 6. Media Queries **********/

@media (max-width:767px){

    /* Fixed navigation padding */
    .woocommerce .woocommerce-MyAccount-navigation ul li{
    padding-top:0px !important;
    }
 
    /* Button */
    .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link:nth-child(2) a{
    margin-top:2px;
 }
    .order .woocommerce-orders-table__cell-order-actions a{
    margin-top:0px;
    }
 
    /* Button */
    .order .woocommerce-orders-table__cell-order-actions .view{
    margin-top:30px;
    }
 
    /* Stacks the no order banner and adds gap */
    .wc-block-components-notice-banner__content{
    flex-direction:column;
    align-items:flex-start;
    gap: 10px;
 }
 
  /* List Item */
.woocommerce .woocommerce-MyAccount-navigation ul li{
  padding:0px !important;
 }
 
 /* List item */
 .woocommerce-MyAccount-navigation ul .woocommerce-MyAccount-navigation-link:nth-child(1){
  padding-top:0px !important;
 }
 
  /* List Item */
.woocommerce .woocommerce-MyAccount-navigation ul li{
  padding:0px !important;
 }
 
 /* List item */
 .woocommerce-MyAccount-navigation ul .woocommerce-MyAccount-navigation-link:nth-child(1){
  padding-top:0px !important;
 }
 
}

@media (min-width:769px){

 /* List Item */
.woocommerce .woocommerce-MyAccount-navigation ul li{
  padding:0px !important;
 }
 
 /* List item */
 .woocommerce-MyAccount-navigation ul .woocommerce-MyAccount-navigation-link:nth-child(1){
  padding-top:0px !important;
 }
 
}

@media (max-width:569px){

 /* Woocommerce table  product table */
.woocommerce .woocommerce-MyAccount-content .woocommerce-order-details .woocommerce-table--order-details thead tr .woocommerce-table__product-table{
  width:100px !important;
 }
 
}


/* Removes front end admin logo */

#wp-admin-bar-wp-logo .ab-item img{
 display:none !important;
}


/* Language Switcher */

.wp-block-tecology-language-switcher .language-switcher-wrapper .select-container .language-select {
    min-width: 250px!important;
    border: 1px solid var(--wp--preset--color--borderline)!important;

}

/** Jet Dynamic Table Styling **/

.jet-dynamic-table-wrapper {
  overflow: hidden;
}

.jet-dynamic-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

/* Remove individual cell borders */
.jet-dynamic-table th,
.jet-dynamic-table td {
  border: none;
  padding: 10px;
}

/* Header styling */
.jet-dynamic-table thead th {
  background-color: var(--wp--preset--color--base-3)!important;
  color: var(--wp--preset--color--contrast);
}

.jet-dynamic-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid var(--wp--preset--color--borderline);
}

.text-shadow {
  color: #fff;
  text-shadow:
     0px  2px 4px rgba(0, 0, 0, 0.8);
}

body.home .breadcrumb-footer {
  display: none !important;
}

.jet-form-builder__required {
	font-weight: 900!important;
	font-size: 18px;
}


/********** Hidden for now. Need to add custom URL redirect for this feature to go back through WB selector funnel **********/
.rcp_sub_details_change_membership {
	display:none!important;
}


/********** Hide front end query button **********/

.jet-engine-frontend-query-editor-buttons {
	display: none!important;
}


/* === IN THIS SECTION: SIDEBAR VISIBILITY LOGIC === */

/* 1. Hide all items by default */
.in-this-section .wp-block-pages-list__item {
	display: none;
}

/* 2. Show the current page */
.in-this-section .wp-block-pages-list__item.current-menu-item {
	display: list-item;
}

/* 3. Show the parent page (when on a child page or on the parent page itself) */
.in-this-section .wp-block-pages-list__item.current-menu-ancestor,
.in-this-section .wp-block-pages-list__item.current-menu-item.has-child {
	display: list-item;
}

/* 4. Show all children under the parent */
.in-this-section .current-menu-ancestor > .wp-block-navigation__submenu-container > .wp-block-pages-list__item,
.in-this-section .current-menu-item.has-child > .wp-block-navigation__submenu-container > .wp-block-pages-list__item {
	display: list-item;
}

/* 5. Make sure the submenu container itself is visible */
.in-this-section .wp-block-navigation__submenu-container {
	display: block !important;
	width: auto !important;
}

/* === STRUCTURE + RESET STYLES === */

.in-this-section .wp-block-page-list,
.in-this-section .wp-block-page-list ul,
.in-this-section .wp-block-pages-list__item {
	list-style: none;
	margin: 0;
	padding: 0;
}

.in-this-section .wp-block-pages-list__item__link {
	text-decoration: none;
	display: block;
	padding: 0.25em 0;
	transition: all 0.3s ease;
	cursor: pointer;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
}

/* === PARENT PAGE HEADING STYLE === */

.in-this-section .wp-block-pages-list__item.current-menu-ancestor > a,
.in-this-section .wp-block-pages-list__item.current-menu-item.has-child > a {
	font-weight: 700;
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--contrast);
	margin: 0;
	padding: 0.25em 0;
	position: relative;
}

.in-this-section .wp-block-pages-list__item.current-menu-ancestor > a::after,
.in-this-section .wp-block-pages-list__item.current-menu-item.has-child > a::after {
	content: '';
	display: block;
	width: 100%;
	height: 1px;
	background-color: var(--wp--preset--color--base-3);
	opacity: 0.6;
	margin-top: 0.25em;
}

/* === ACTIVE PAGE HIGHLIGHT === */

.in-this-section .wp-block-pages-list__item.current-menu-item:not(.has-child) > a {
	color: var(--wp--preset--color--accent);
	font-weight: 600;
}

/* === HOVER EFFECT === */

.in-this-section .wp-block-pages-list__item__link:hover {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

/* === EDITOR PREVIEW SUPPORT === */

.editor-styles-wrapper .in-this-section .wp-block-pages-list__item {
	display: list-item !important;
}

.editor-styles-wrapper .in-this-section .wp-block-navigation__submenu-container {
	display: block !important;
	width: auto !important;
}

.editor-styles-wrapper .in-this-section .wp-block-page-list,
.editor-styles-wrapper .in-this-section .wp-block-page-list ul,
.editor-styles-wrapper .in-this-section .wp-block-pages-list__item {
	list-style: none;
	margin: 0;
	padding: 0;
}

.editor-styles-wrapper .in-this-section .wp-block-pages-list__item__link {
	text-decoration: none;
	display: block;
	padding: 0.25em 0;
	transition: all 0.3s ease;
	cursor: pointer;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
}

.editor-styles-wrapper .in-this-section .wp-block-pages-list__item:first-child > a {
	font-weight: 700;
	font-size: var(--wp--preset--font-size--large);
	margin-bottom: 0.5em;
	position: relative;
}

.editor-styles-wrapper .in-this-section .wp-block-pages-list__item:first-child > a::after {
	content: '';
	display: block;
	width: 100%;
	height: 1px;
	margin-top: 0.5em;
	background-color: var(--wp--preset--color--base-3);
	opacity: 0.6;
}
