/*
 Theme Name:  Divi Child Theme
 Theme URI:    https://divilife.com
 Description:  Child Theme for Divi
 Author:       Tim Strifler
 Author URI:   https://divilife.com
 Template:     Divi
 Version:      1.0.0
*/

/*****Add any custom CSS below this line*****/

/* ALL Event Pages */
article [class^='tribe'] a {
    color: #437a1c !important;
}

.tribe-common--breakpoint-medium.tribe-common .tribe-common-l-container {
    padding-left: 85px;
    padding-right: 85px;
}

/* Main Container */
.tribe-common--breakpoint-medium.tribe-events .tribe-events-l-container {
  padding-top: 0;
  padding-bottom: 0;
}


/* *********************** */
/* Landing Page Additional Divi Content */
/* *********************** */

/* Scooping the contents out of Divi pages causes you to lose some additional page styles */
/* These styles are for the second page, loaded after the map, top page styles are loaded inline */
.et-db #et-boc .et-l .et_pb_section.findfood-cta-section {
  padding-top: 0;
  padding-bottom: 0;
}

.et-db #et-boc .et-l .et_pb_section.findfood-disclaimer .et_pb_row {
  border-top: 1px solid #437a1c !important;
}



/* *********************** */
/* Search/Map Styles */
/* *********************** */


/* Remove basic search (we only want location search) */
.tribe-events-c-search__input-control--keyword {
  display: none;
}

/* Search bar Outer wrapper */
.tribe-common--breakpoint-medium.tribe-events .tribe-events-header--has-event-search .tribe-events-c-events-bar {
  background: hsl(35, 40%, 94%);
  border-color: #82075f;
  padding: 10px 0;
  /* border-width: 2px; */
  
}

/* Search bar inner container */
.tribe-common--breakpoint-medium.tribe-events .tribe-events-c-events-bar__search-container {
  background: none;
}


/* Address Input */
#tribe-events-events-bar-location {
  background: none;
  /* color: white; */
  font-weight: bold;
}

#tribe-events-events-bar-location:hover::placeholder {
  color: black;
}

#tribe-events-events-bar-location:focus::placeholder {
  opacity: .3;
}

.tribe-events .tribe-events-c-search__input-control-icon-svg path {
  /* fill: white;
  fill: #fdb812; */
  fill: #82075f;
}

/* View selector */
.tribe-common--breakpoint-medium.tribe-events .tribe-events-c-view-selector__content {
  background: none;
}

.tribe-events .tribe-events-c-view-selector__list-item-text {
  color: #437a1c;
  font-weight: bold;
}

.tribe-events .tribe-events-c-view-selector__list-item--active {

}

.tribe-events .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-text {
  color: #82075f;
  border-bottom: none;

}

/* ARCHIVE BUTTON - MAP VIEW */
.tribe-events span.tribe-events-calendar-series-archive__container {
	display: none !important;
}

div.tribe-events-series-relationship-single-marker {
	display: none !important;
}


.tribe-common--breakpoint-medium.tribe-events .tribe-events-c-view-selector--tabs .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link::after {
  background-color: #82075f;
  bottom: -11px; /*  was -1px, but needs 10px extra to match new padding on outer element */
}

/* Search Button */

.tribe-common .tribe-common-c-btn, .tribe-common a.tribe-common-c-btn,
.tribe-common .tribe-events-c-ical__link {
	background: white !important;
	color: #82075f !important;
	font-family: adelle, serif;
	font-weight: bold;
	border: 2px solid #82075f !important;
	border-radius: 0;
}

.tribe-common .tribe-common-c-btn:focus, .tribe-common .tribe-common-c-btn:hover, .tribe-common a.tribe-common-c-btn:focus, .tribe-common a.tribe-common-c-btn:hover,
.tribe-common .tribe-events-c-ical__link:focus, .tribe-common .tribe-events-c-ical__link:hover {
  background-color: #82075f !important;
  color: white !important;
  outline: none;

}
.tribe-common .tribe-common-c-btn-border, .tribe-common a.tribe-common-c-btn-border {
  border-radius: 0;
} 


/* For Dark Background Option */
/* .tribe-common .tribe-common-c-btn, .tribe-common a.tribe-common-c-btn,
.tribe-common .tribe-events-c-ical__link {
	background:#fdb812;
	color: black !important;
	font-family: adelle, serif;
	font-weight: bold;
	border: 2px solid white !important;
	border-radius: 0;
}

.tribe-common .tribe-common-c-btn:focus, .tribe-common .tribe-common-c-btn:hover, .tribe-common a.tribe-common-c-btn:focus, .tribe-common a.tribe-common-c-btn:hover,
.tribe-common .tribe-events-c-ical__link:focus, .tribe-common .tribe-events-c-ical__link:hover {
  background-color: #f7ce6d !important;
  border-color: white;
  outline: none;

}
.tribe-common .tribe-common-c-btn-border, .tribe-common a.tribe-common-c-btn-border {
  border-radius: 0;
} */

.tribe-common--breakpoint-medium.tribe-events .tribe-events-header__top-bar {
  /* background-color: #f6f1ea !important;
  padding: 15px; */
}


/* switched to inline svg at some point...
.tribe-events a.tribe-events-c-ical__link::before {
  display: none !important;
} */

.tribe-events .tribe-events-c-ical__link-icon-svg path {
  stroke: #82075f;
}

.tribe-events .tribe-events-c-ical__link-icon-svg:hover path {
  stroke: white;
}

.tribe-events-c-nav__prev-label-plural,
.tribe-events-c-nav__next-label-plural {
  display: none;
}

/* Filter Bar  */
#tribe_events_filters_wrapper.tribe-events-filters-horizontal, .tribe-filters-closed #tribe_events_filters_wrapper.tribe-events-filters-horizontal {
  background: #f6f1ea;
}

.tribe-events-filters-horizontal .tribe-events-filters-content {
  background: #f6f1ea;
  border: 1px solid #f6f1ea;
}

/* .tribe-events-filters-content {
  background: #437a1c;

}

#tribe_events_filters_wrapper label.tribe-events-filters-label {
  color: white;
}

.tribe-filters-vertical .tribe-events .tribe_events_filters_reset {
  color: white;
}

#tribe_events_filters_wrapper .tribe-events-filters-group-heading {
  background: #f6f1ea;
} */

button[id^=filterbar_geofence] .tribe-filter-bar-c-filter__toggle-label {
  color: #82075f;
  color: #dc3537;
  font-weight: bold;
}

button[id^=filterbar_geofence] .tribe-filter-bar-c-filter__toggle-icon svg path{
  stroke: #82075f;
  stroke: #dc3537;
}

/* hide unwanted filter options: distance */
ul[id$=filterbar_geofence_distance-results] li:nth-child(6),
ul[id$=filterbar_geofence_distance-results] li:nth-child(7),
ul[id$=filterbar_geofence_distance-results] li:nth-child(8),
/* hide unwanted filter options: time of day */
div[id^=filterbar_time_of_day-container] div.tribe-filter-bar-c-filter__filter-fields div:nth-child(1),
div[id^=filterbar_time_of_day-container] div.tribe-filter-bar-c-filter__filter-fields div:nth-child(5)
{
  display:none;
}

 .tribe-common a.reset-filters {
  color: #437a1c;
  font-weight: bold;
  display: block;
  margin-bottom: 15px;

}

.tribe-common a.reset-filters svg path {
  stroke: #437a1c;
}

/* hide original filter button area now that Reset button is above filters */
.tribe-filter-bar .tribe-filter-bar__selected-filters-header {
  display: none !important;
}

/* selected filters now butt up to filters heading */
.tribe-filter-bar .tribe-filter-bar__selected-filters-list {
  padding-top:10px;
}

/* Event Card (side list) */

.tribe-events-pro .tribe-events-pro-map__event-card-wrapper--active .tribe-events-pro-map__event-card-button {
	border: 1px solid #82075f;
}
.tribe-events-pro .tribe-events-pro-map__event-card-button:focus, .tribe-events-pro .tribe-events-pro-map__event-card-button:hover {
	border: 1px solid #437a1c;
}

.tribe-common--breakpoint-medium.tribe-events-pro .tribe-events-pro-map__event-distance {
  color: #82075f;
  font-weight: bold;
}

.tribe-common div.venue-card-extra-text {
  display: none;
  font-size: 14px;
  padding-bottom: 15px;
}

.tribe-common .tribe-events-pro-map__event-card-wrapper--active div.venue-card-extra-text {
  display: block;
}

.tribe-common div.venue-card-extra-text h6 {
  margin-top: 10px;
  font-size: 16px;
}

.tribe-common div.venue-card-extra-text p {
  margin-bottom: 10px;
}

/* List view */

/* .tribe-events-calendar-list__event-details {
	background: hsl(35, 40%, 94%);
	padding-top: 30px;
	padding-bottom: 30px;
} */

.tribe-common time.tribe-events-calendar-list__event-date-tag-datetime {
	border-right: 1px solid #82075f;
	padding-top: 0px !important;
}

.tribe-events-calendar-list__event-date-tag-weekday,
.tribe-events-calendar-list__event-date-tag-daynum {
	background-color: #82075f;
	color: white !important;
	font-weight: bold !important;
}

.tribe-events-calendar-list__event-date-tag-weekday {
	border-top: 2px solid #82075f !important;
}

/* EVENT DAY/TIME ABOVE TITLE */
.tribe-events .tribe-events-calendar-list__event-datetime-wrapper.tribe-common-b2 .tribe-events-calendar-list__event-datetime {
	font-weight: bold;
	/* color:#82075f !important; */
}

/* VENU TITLE */
.tribe-events-calendar-list__event-venue-title {
	color:#82075f;
	font-size: 130%;
	display: block;
}

/* Week View */

.tribe-events-pro-week-grid__header-column-daynum-link {
  pointer-events: none;
}


/* *********************** */
/* List/Table Styles */
/* *********************** */
/* TOGGLE */
.et-db #et-boc .et-l a.view-pantry-list,
a.view-pantry-list {
	background-color: #437a1c;
	color: white;
	display: block;
	padding: 15px;
	text-align: center;
	font-weight: bold;
	transition: opacity .4s ease-in-out;
}

.et-db #et-boc .et-l a.view-pantry-list:hover,
a.view-pantry-list:hover {
	opacity: .6;
}

/* Food List Page */

article#post-66384 h1 {
	display: none !important;
}

body.page-id-66384 .et_pb_section {
	padding-top: 0 !important;
}

/* PANTRY TOGGLE BUTTONS */

.pantry-list-toggle {
  padding: 25px;
  color: white !important;
  background: #437a1c;
  margin: 30px 0 0 0;
  transition: opacity .4s ease-in-out;
  position: relative;

}

.pantry-list-toggle::after {
  content: "+";
  position: absolute;
  left: 97%;
  top: 50%;
  transform: translateY(-50%);
  transition: transform .4s ease-in-out;
}

@media all and (max-width: 980px) {
  .pantry-list-toggle::after {
    left: 93%;
  }
}

.pantry-list-toggle.active-list::after {
  transform: translateY(-50%) rotate(45deg);
}

.pantry-list-toggle:hover {
  cursor: pointer;
  opacity: .6;
}

.pantry-list-toggle.ypsilanti {
  background: #fdb812;
}

.pantry-list-toggle.outside-ann-arbor-ypsilanti {
  background: #82075f;
}

.pantry-list-toggle.open-now {
  background: #dc3537;
}

h5.print-all-button {
	margin-top: 3rem !important;
	margin-bottom: 3rem !important;
	text-align: center;
}

table.pantry-table {
  border: 1px solid #437a1c;
   border-collapse: collapse;
}

table.pantry-table.ypsilanti {
  border-color: #fdb812;
}
table.pantry-table.outside-ann-arbor-ypsilanti {
  border-color: #82075f;
}
table.pantry-table.open-now {
  border-color: #dc3537;
}

.pantry-list-group.open-now .tribe-common--breakpoint-medium.tribe-events .tribe-ext-events-happening-now--multiple {
  border-color: #dc3537;
}

.pantry-list-group.open-now .tribe-events-calendar-list__event-venue-title {
  font-size: 22px;
}

.pantry-list-group.open-now .tribe-events-calendar-list__event-title {
  font-size: 16px;
}

.pantry-list-group.open-now .tribe-events-calendar-list__event-header {
	padding: 30px;
}


.pantry-list-group {
  display: block;
  margin: 15px 0 0 0;
}

table.pantry-table thead {
  font-family: adelle, serif;
  font-weight: 700;
}

table.pantry-table thead tr {
  background: #437a1c;

}

table.pantry-table thead tr th,
.entry-content table.pantry-table thead tr th {
	color: white !important;
}

    table.pantry-table.ypsilanti thead tr {
      background: #fdb812;
    }
    table.pantry-table.outside-ann-arbor-ypsilanti thead tr {
      background: #82075f;
    }
    table.pantry-table.open-now thead tr {
      background: #dc3537;
    }

table.pantry-table thead th {
  padding: 10px;
  border: 1px solid white;
  vertical-align: center;
  border-collapse: collapse;
}

table.pantry-table tbody tr {
  background: #f6f1ea;
}

table.pantry-table tbody td {
  padding: 25px 15px;
  border: 1px solid #437a1c;
  border-collapse: collapse;
  vertical-align: top;
}

/* force contact cell width */
table.pantry-table tbody td:nth-child(3) {
  min-width: 200px;
}

    table.pantry-table.ypsilanti tbody td {
      border-color: #fdb812;
    }
    table.pantry-table.outside-ann-arbor-ypsilanti tbody td {
      border-color: #82075f;
    }
    table.pantry-table.open-now tbody td {
      border-color: #dc3537;
    }

table.pantry-table tbody tr:nth-child(odd) {
  background: #e9e4de;
}





/*--------------------------------------------------------------
## Responsive Table Styles
--------------------------------------------------------------*/

@media all and (max-width: 980px) {



    	/* Force table to not be like tables anymore */
    	table.pantry-table, .pantry-table thead, .pantry-table tbody, .pantry-table .pantry-table th, .pantry-table td, .pantry-table tr {
    		display: block;
    	}

    	/* Hide table headers (but not display: none;, for accessibility) */
    	.pantry-table thead tr {
    		position: absolute;
    		top: -9999px;
    		left: -9999px;
    	}

    	.pantry-table tr { border: 1px solid #ccc; }



    	.pantry-table tr td {
    		/* Behave  like a "row" */
    		border: none;
    		border-bottom: 1px solid #eee;
    		position: relative;
    		padding-left: 50% !important;
    	}

    	.pantry-table tbody td:first-child,
      .pantry-table tbody tr.even td:first-child {
    		font-weight: 900;
    		background: #437a1c;
    		color: white;
    	}

    	.pantry-table tbody td:first-child a:after { content: " (Details \00BB)"; font-size: 100%; }

    	.pantry-table tbody td:first-child a {
    		color: #fff;
    	}



	.pantry-table td:before {
		/* Now like a table header */
		position: absolute;
		/* Top/left values mimic padding, so match to cell padding */
		top: 25px;
		left: 15px;
		width: 45%;
		padding-right: 10px;
		/* //white-space: nowrap; */

}

	/*
	Label the data
	*/

	/* product finder tables */
	.pantry-table td:nth-of-type(1):before { content: "Program Name"; }
	.pantry-table td:nth-of-type(2):before { content: "Mission Statement"; }
	.pantry-table td:nth-of-type(3):before { content: "Contact"; }
	.pantry-table td:nth-of-type(4):before { content: "Program Type & Hours"; }
	.pantry-table td:nth-of-type(5):before { content: "Immediate Assistance"; }
	.pantry-table td:nth-of-type(6):before { content: "SNAP Assistance"; }


} /* media */


/* Single Event Layout */
 .single-tribe_events .tribe-events-schedule .recurringinfo,
 .single-tribe_events .tribe-events-cal-links,
 .single-tribe_events .tribe-events-nav-pagination,
.tribe-events-event-categories-label,
.tribe-events-event-categories {
  display: none;
}

.tribe-events-meta-group-details,
.venue-post-content {
  line-height: 21px;
}


 .single-tribe_events .tribe-events-event-meta {
   /* flex-direction: column; */
  
 }

 .single-tribe_events .tribe-events-event-meta h3.mimic-tribe-meta {
  /* padding: 15px 4% 0 4%; */
  /* display: block;
  background: red; */
  width: 100%;
  padding-top: 30px;
}

.single-tribe_events .tribe-events-event-meta .tribe-events-meta-group {
  /* display: block;
  background: blue; */
  width: 50%;
}

/*--------------------------------------------------------------
## Giveffect - override Bootstrap styling - use #page-container #et-boc 
--------------------------------------------------------------*/

/*Link and Heading Styles - fix Bootstrap styles*/
/*menu styling has been updated in main Divi styles so BS doesn't override*/

body.page-id-16915 #page-container #et-boc h1,
body.page-id-16901 #page-container #et-boc h1,
body.page-id-16915 #page-container #et-boc h2,
body.page-id-16901 #page-container #et-boc h2,
body.page-id-16915 #page-container #et-boc h5,
body.page-id-16901 #page-container #et-boc h5 {
	font-weight: 700;
}

body.page-id-16915 #page-container #et-boc h3,
body.page-id-16901 #page-container #et-boc h3,
body.page-id-16915 #page-container #et-boc h4,
body.page-id-16901 #page-container #et-boc h4,
body.page-id-16915 #page-container #et-boc h6,
body.page-id-16901 #page-container #et-boc h6 {
	font-weight: 600;
}

body.page-id-16901 footer.et-l.et-l--footer p a,
body.page-id-16915 footer.et-l.et-l--footer p a,
body.page-id-16901 footer.et-l.et-l--footer p a:hover,
body.page-id-16915 footer.et-l.et-l--footer p a:hover {
	color: #437a1c !important;
	text-decoration: none !important;
}

body.page-id-16901 footer.et-l.et-l--footer ul.menu-quick-links li a,
body.page-id-16915 footer.et-l.et-l--footer ul.menu-quick-links li a {
	color: black !important;
	text-decoration: none !important;
}

body.page-id-16901 a,
body.page-id-16915 a {
	text-decoration: none !important;
}

/* Donation Amount (top and bottom) */

#page-container #et-boc form#giveffect-donation-form #donation-status, form#giveffect-donation-form #donation-status-bottom {
	padding: 15px 0;
	font-size: 1em;
	font-weight: bold;
}

/*Hide logo link & ein in form header*/
#page-container #et-boc form#giveffect-donation-form .form-header a,
#page-container #et-boc form#giveffect-donation-form .form-header div {
	display: none;
}

/*Bands on top of each form section*/

	#page-container #et-boc form#giveffect-donation-form .form-top {
		background: #437a1c;
		padding-bottom: 0;
	}

	#page-container #et-boc form#giveffect-donation-form .form-top h1 {
		color: white;
		font-size: 1.2em;
	}


/*grey background color is applied to each element*/
	#page-container #et-boc form#giveffect-donation-form #donation-status, 
	#page-container #et-boc form#giveffect-donation-form #donation-status-bottom,
	#page-container #et-boc form#giveffect-donation-form .giveffect-form-bottom,
	#page-container #et-boc form#giveffect-donation-form #donation-error,
	#page-container #et-boc form#giveffect-donation-form .form-header {
		background: transparent;
	}

	#page-container #et-boc form#giveffect-donation-form {
		background: #f6f1ea;
		border: 1px solid #82075f;
	}

/* Subheadings */
	
	#page-container #et-boc form#giveffect-donation-form h2 {
		font-size: 1em;
		text-transform: none;
	}

/* Links */
	
	#page-container #et-boc form#giveffect-donation-form a {
		color:#437a1c;
	}


/* input styles */
	
	#page-container #et-boc form#giveffect-donation-form input[type="text"], 
	#page-container #et-boc form#giveffect-donation-form .radio-buttons label, 
	#page-container #et-boc form#giveffect-donation-form select.form-control {
		background: white;
	
	}

	form#giveffect-donation-form .radio-item label {
		font-size: 100% !important;
	}

	#page-container #et-boc small {
		font-size: 100% !important;
	}

	#page-container #et-boc input.text:focus, 
	#page-container #et-boc input.title:focus, 
	#page-container #et-boc input[type="text"]:focus, 
	#page-container #et-boc select:focus, 
	#page-container #et-boc textarea:focus {
		color: black;
		outline: none;
		border-color:#82075f;
		border-color:#437a1c;
	}

	#page-container #et-boc .form-control {
		border-radius:0;
	}

	#page-container #et-boc .form-control:focus {
		box-shadow: 0 0 0 .2rem rgba(130,7,95,.25);
		box-shadow: 0 0 0 .2rem rgba(67,122,28,.25);
	}
	

	#page-container #et-boc form#giveffect-donation-form .radio-buttons input[type="radio"]:checked + label {
		border-color: #437a1c;
		color: #437a1c;
		background-color: white;
	}

	#page-container #et-boc form#giveffect-donation-form .radio-buttons input[type="radio"]:checked + label::after {
		background-color: #fdb812;
	}
	
	#page-container #et-boc form#giveffect-donation-form input[type="text"] {
		padding-left: .75rem;
		padding-right: .75rem;
	}
	
/* Currency Indicator */

	#page-container #et-boc .input-group-text {
		background-color: #437a1c;
		color: white;
		border-radius: 0;
		font-weight: bold;
	}
	
/* submit button style - mimic food map button */
	
	#page-container #et-boc form#giveffect-donation-form .btn-primary {
		background: white;
		color: #82075f;
		font-family: adelle, serif;
		font-weight: bold;
		border: 2px solid #82075f;
		border-radius: 0;
		transition: background-color .2s ease;
	}

	#page-container #et-boc form#giveffect-donation-form .btn-primary:hover {
		background-color: #82075f;
		color: white;
	}
	
/*Bank Popup Button*/

	#page-container #et-boc #bank_popup.btn {
		color: white !important;
		background-color:#82075f;
		border-radius: 0;
	}
	
/* BS Alerts */	
	#page-container #et-boc .alert-primary,
	#page-container #et-boc .alert-secondary,
	#page-container #et-boc .alert-success,
	#page-container #et-boc .alert-danger,
	#page-container #et-boc .alert-warning,
	#page-container #et-boc .alert-info,
	#page-container #et-boc .alert-light,
	#page-container #et-boc .alert-dark {
		color: black;
		border-radius: 0;
	}
/* Giveffect Captcha (appeared sometime March 2022) */
	#page-container #et-boc form#giveffect-donation-form #captcha_cont {
		/* border-color: rgb(220, 53, 55); */
		border-color:rgb(67, 122, 28);
		background-color: rgba(67, 122, 28, .3);
		
		border-radius: 0;
	}

	#page-container #et-boc form#giveffect-donation-form #captcha_cont small {
		font-family: adelle, serif;
		font-weight: 900;
	}
	
