/*
Theme Name: Castle Twenty-Twenty Five child 3
Theme URI: 
Author: Castlewood Inc.
Author URI: 
Description: Child theme of Wordpress Block Theme 2025
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: castle-twenty-twenty-five-child-3
Tags: 
*/


/* Start Additional CSS Styles */
/* Kinfork.com */
/* 09-23-26 v3.009 */

/* Add Bold option to Fonts */
strong, b {font-weight: 700 !important;
}
/* END */

/* STOP Box Around Chosen Menu Items */
:where(.wp-site-blocks *:focus){outline-width:0px !important;outline-style:solid;}
/* END */

/* START Limit All Template Parts to 1920px wide */
.wp-block-template-part {
max-width:1920px;
margin: 0px auto
}
/* END */

/**** START Header ****/
/* START Header 1 */
@media only screen and (max-width:619px){
.wp-block-site-logo {
max-width:300px;
margin: 0px auto !important;
}
}

@media only screen and (min-width:620px) and (max-width:1100px){
.wp-block-site-logo {
max-width:250px;
}
}

@media only screen and (min-width:1101px){
.wp-block-site-logo {
max-width:350px;
padding:0px 0px 0px 40px;
}
}

.phone-header1 {
margin: 0px 0px -10px 0px !important;
font-size:26px !important;
text-align:center !important;
}

@media only screen and (min-width: 600px){
.phone-header1 {
margin: 0px 40px 0px 0px !important;
font-size:22px !important;
text-align:right !important;}

.wp-block-navigation {
padding:0px 20px 0px 0px;
}
}
/************************/


/******* Menu *******/
/* Main Menu Font Hover Color */
.wp-block-navigation .wp-block-navigation-item :hover {
background-color: none;
color: #f0c318;
text-decoration:none;
}

/* Active Link Menu Colors */
.wp-block-navigation-item.current-menu-item {
color: #c33d2d !important;
}
/* END */

/* Sub Menu (Drop Down) Container for Desktop Main Menu Only*/
.wp-block-navigation__submenu-container {
	margin-top:0px !important;
	border: 0px solid #000000 !important;
	width:200px !important;
}

/* Sub Menu Item Color Both Main Menu and Mobile */
.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	background-color:#292828 !important;
	border: 1px solid #000000 !important;
	margin: 0px !important;
	padding: 8px !important;
	font-size: 18px;
	color: #ffffff  !important;
	justify-content:center !important;
}

.wp-block-navigation-submenu .wp-block-navigation-item :hover {
color: #353536  !important;
background-color:#ffffff !important;
}

.wp-block-navigation-submenu .wp-block-navigation-item {
    margin: 0px !important;
}


/**** Mobile Hamburger Menu ****/
/* Mobile Hamburger Icon and X */
.wp-block-navigation__responsive-container-open svg{
fill: currentColor;
color:#ffffff !important; 
display: block;
height: 32px;
width: 32px;
margin:10px 20px 0px 20px;
}

.wp-block-navigation__responsive-container-close svg {
fill: currentColor;
color:#ffffff !important; 
display: block;
height: 32px;
width: 32px;
margin:20px 20px 20px 20px;
}
/* END */

/* Mobile Hamburger Icon & Menu Items Justified */
@media only screen and (max-width:650px){
.wp-block-navigation {
justify-content: right !important; /* Hamburger Menu Alignment */
padding-right:20px; /* Hamburger Menu Padding */
text-align: left !important; /* Mobile Menu Items Alignment */
--navigation-layout-justification-setting: left !important;
}
}/* END */

/* Mobile Menu Items Spacing */
@media only screen and (max-width:650px){
.wp-block-navigation-item__content {
padding: 0px 10px 0px 30px!important;
}
}

/* Mobile Menu Top Level Fonts */
@media only screen and (max-width:700px){
.wp-block-navigation-item__content {
font-size:24px !important;
}
}/* END */

/* Mobile Menu SUB Items - THIS CHANGES THE BACKGROUND OF SUB MENU ITEMS - Not Needed if the same as Desktop Sub Menu Items */
@media only screen and (max-width:650px){
.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
margin: 0px 0px 0px 20px !important;
color: #ffffff !important;
padding:5px 10px 5px 10px !important;
font-size:20px !important;
}
	
.wp-block-navigation-submenu .wp-block-navigation-item :hover {
color: #ffffff !important;
background-color:#F44336 !important;
}	
}
/* END */

/* Make only top-level link unclickable */
.unclickable > a {
pointer-events: none;
cursor: default;
text-decoration: none;
}

/* Keep submenu links clickable */
.unclickable .sub-menu a {
pointer-events: auto;
cursor: pointer;
}
/* END */

/* No Link No Cursor */
.no-link > a {
  pointer-events: none;
  cursor: default; /* changes the mouse cursor icon */
}
/* END */
/**************************/


/**************************/
/* Banner Changes */
.wp-block-image.banner1 {
padding:0px;}

.banner1 {
min-height: 350px !important;
}

@media only screen and (min-width: 600px) and (max-width:900px) {
.banner1 {
min-height:400px !important;
}
}

@media only screen and (min-width: 901px) {
.banner1 {
min-height:555px !important;
}
	
.bannerbox {
max-width: 60% !important;
margin: 0px 0px 0px 10% !important;}

.banner1text2 {
line-height: 1.3em !important;
}		
}
/* END */
/************************/


/***** Utility Class ****/
/*clear margins*/.clear{clear:both;}

/* Hide in mobile */ .nomobile{display:none !important;}
@media (min-width:768px){ .nomobile{display:block !important;}	}

/* Hide in desktop */ .nodesktop{display:block !important;}
@media (min-width:667px){ .nodesktop{display:none !important;}	}

/* Hide block, pictures, video, etc */
.hide:not(.editor-styles-wrapper .hide) {display:none !important;}
/* END */

/* Reverse Columns */   
@media only screen and (min-width: 666px) {
.wp-block-columns.reversecolumn {
flex-direction: row-reverse !important;
flex-wrap: nowrap;
}
}
/* END */

/* Stop Flex Wrap on Tablets and Larger */
@media only screen and (min-width:600px) {
.noflexmedium {
flex-wrap:nowrap!important;
}
}
/* END */

/* START Stop Flex on All Devices */
.noflex {
flex-wrap:nowrap!important;
gap: 0px !important;
}
/* END */

/* Text Shadow */
.textshadow {text-shadow: 2px 2px 2px #000000;}
/* END */

/* Captions to Center of Images */
figcaption {
text-align: center;
font-size: .5em !important;
font-style: italic;
}
@media only screen and (min-width: 558px) {
figcaption {
font-size: .8em !important;
}
}
/* END */

/* Figcaption STOP BLUR */
.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
/* END */

/* Figcaption Background Color */
.wp-block-gallery.has-nested-images figcaption {
background: #0000004f !important;
}
/* END */


/*********END utility class section***********/

/*************** START Contact Page & Google Map Fixes *******************/

/*---CONTACT FORM 7---*/

.wpcf7 p {margin:0px;}

input.inputbox, .registration input, .login input, .contact input, .contact textarea, select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input, input[type="checkbox"] {
height: auto;
background: #e8e8e8;
border: #bebebe 1px solid;
}

.wpcf7 input {max-width:800px}
.wpcf7 p {
padding:0px 0px 5px 0px !important;
margin: 0px !important;
}

.wpcf7 textarea {
 height: 200px !important;
}

/* Length of Contact Form 7 fields */
.wpcf7 input[type="text"],.wpcf7 input[type="email"],.wpcf7 textarea,.wpcf7 input[type="tel"]
{
width: 90%;
height: 20px;
font-size: 18px;
padding: 5px;
margin:0px 0px 10px 0px;
font-family: arial, sans-serif;
}
/* END */

/* Length of Contact Form 7 messages */
.wpcf7-response-output
{width:70%;}
/* END control length of contact form 7 messages */

/* Contact Form 7 Submit Button */
.wpcf7-submit {
	font-size:16px;
	width:80px;
	padding:4px;
	background: #fcb903;
	color:#713040;
	font-weight:bold;
}
/* END Change Contact Form 7 Submit Button */

/*---END CODE FOR CONTACT FORM 7 Plugin---*/


/**** Making Embedded Google Map "Responsive" ****/
/*This responsive code works by positioning an iframe within a div. The
div's dimensions are determined by the iframe's hard-coded size.
Padding-bottom removes a percentage of the available bottom area equal to
the desired aspect ratio, resulting in responsive resizing*/

.responsiveMap-container {
    position: relative;/*So we can position the iframe within it*/
    padding-bottom: 48%;/*58.33%;Desired aspect ratio. 600px x 350px iframe means 350/600=.58333 or  58.33%*/
    padding-top: 35px;/*This is really only needed for YouTube video embeds*/
    height: 0;/*This allows the padding-bottom property to override the default div height*/
    overflow: hidden;/*The Iframe still hangs off the page, but the overflow is hidden*/
    max-width:800px;/*Keeps map from getting wider than we want*/  
    max-height:800px;/*Keeps map from getting taller than we want*/  
    margin: auto;  /*So things are nicely centered*/
}

.responsiveMap-container iframe {
    position: absolute;/*So we can position the iframe within the div
    --needed because of the 0px height*/
    top:0;/*the top left corner of the iframe is positioned at the very top
    of the div*/
    left: 0;/*the top left corner of the iframe is positioned at the very
    left of the div*/
    height: 100%;/*take up all vertical space available within the div
    (determined by the padding-bottom property*/
    max-height:auto;/*350px; Keeps map from getting bigger than we want*/
    width: 100%;/*take up all horizontal space available within the div
    (determined by the padding-bottom property*/
}
/* END */

/*************** END Contact Page & Google Map Fixes *******************/


/*------------START WP Customer Reviews Plugin---------------------*/
/* Styling Overall form */
.review {
border:1px solid black;
border-radius:4px;
box-shadow:5px 6px 8px #aeaeae;
background:#efefef;
padding:15px;
text-align:left;
margin: 0px auto 40px auto !important;
}
/* END */

/* Hide Review Date*/
div.wpcr3_review div.wpcr3_review_datePublished{
display:none !important;
}
/* END */

/* Change Name */
div.wpcr3_review_item div.wpcr3_item_name {
    font-size: 18px;
    font-style: italic;
    font-weight: 600;
}
/* END */

/* Change Author */
div.wpcr3_review_author {
font-size: 16px;
font-weight: normal;
}
/* END */

/* Change Title */
div.wpcr3_review div.wpcr3_review_title {
margin:10px auto 1px auto;
font-size:16px;
font-weight:600;
}
/* END */

/* START Review Text */
div.wpcr3_review blockquote.wpcr3_content p {
font-size:1.2em !important;
text-align:left;
}
/* END */

/* Block Quotes */
.wpcr3_review blockquote.wpcr3_content {
margin: 0px 10px 0px 10px;
}
/* END */

/* Change  Review REPLY text */
div.wpcr3_review blockquote.wpcr3_content.wpcr3_admin_response {
margin-left: 30px;
color: #6b7f1e;
}
/* END */
/*------END WP Customer Reviews Plugin --------*/
/**************************/

/**************************/
/* Footer */
.attributions a {color:#000089!important;}

.footeraddress a {color:#000089 !important}

.footer-castlewood-link  a  {color:#f8e5bf !important;
}

@media only screen and (max-width: 600px) {
.footercolumns {
column-gap: 0px !important;
gap: 0px !important;
}
}

@media only screen and (max-width: 650px) {
.footer .wp-block-navigation {
justify-content: left !important;
}
}

.footercolumns .wp-block-navigation-item__label {font-size:14px !important;
}

.footercolumns .wp-block-navigation .wp-block-navigation-item :hover {
color:#bebebe !important;
}

.footercolumns .wp-block-navigation-item.current-menu-item {
color: #ffffff !important;
}
/* END */

/* YouTube */
.wp-block-embed-youtube {
max-width:800px;
}
/* END */

/* Media/Text Block */
.wp-block-media-text>.wp-block-media-text__content {padding: 0px 10px 0px 10px;
}
/* END */

/* ADD GAP TO GALLERIES */
.wp-block-gallery {
    --wp--style--unstable-gallery-gap: 10px !important;
    gap:10px !important;
}
/* END */

/* Stop Gallery Image Padding */
.wp-block-gallery figure.wp-block-image:not(#individual-image) {padding:0px 0px;
}
/* END */

/* Images Add Padding */
.wp-block-image:not (.wp-block-gallery) {padding:10px}
/* END */

/* AlignRight - AlignLeft Image fix */
@media only screen and (max-width:600px){
.wp-block-image.alignleft, .wp-block-image.alignright {margin: 10px auto 10px auto !important; float:none;
}
}
/* END */

/* Text Link as Button */
.textlinkasbutton1 {
max-width:200px;
margin:0px auto !important;
}

.textlinkasbutton2 {
max-width:330px;
margin:0px auto !important;
}
/* END */

/* START Footer Column */
.missionbox {margin: 10px;}
/* END */

/* Blog Featured Image */
@media only screen and (max-width:650px){
.blogfeaturedimage {
margin: 0px auto 0px auto !important; float: none !important;
}
}
/* END */

/* Blog Query Pagination */
.wp-block-query-pagination-numbers, .wp-block-query-pagination-next {
margin: 0px 10% 40px 10% !important;
font-size: 24px
}
/* END */

/* Fix Blog Page Titles Not Wrapping */
.wp-block-post-title {
display: flex !important;
margin: 0px 0px 0px 0px;
}
/* END */

/* Fix Blog Page Post */
.wp-block-post {margin:100px 20px 100px 20px;
}

.wp-block-post-excerpt__excerpt {padding-bottom:0px
}

.wp-block-post-excerpt__more-text {
float:right;
}
/* END */

/* START Hide All Titles*/
.wp-block-post-title {display: none !important;}
/* END */


/*========= START WP eStore Adjustments ==============*/
/* START Change Fancy Product Displays Fancy 9 */
.eStore_fancy9_main {
    border: 0px solid #ccc !important;
    margin-bottom: 9% !important;
}

.eStore_fancy9_name {
    font-weight: bold !important;
    float: left;
    padding: 11px !important;
	display:none;
}

.eStore_fancy9_price {
	font-size:24px;
    font-weight: bold !important;
    float: left;
    padding: 11px !important;
}

.eStore-button-form input {
    width: auto !important;
    padding: 5px !important;
    margin: 5px 5px !important;
}

/**** The Words “PRICE” - Show or Don’t Show ****/
.eStore_price_label {
	display:none;
}

.eStore_variation {
	margin: 10px 0px 10px 0px !important;
	font-size: 18px;
}

/* START Break Line Before QTY */
.eStore_item_default_qty_data::before {
    content: "\a";
    white-space: pre;
}
/* END */

.eStore_add_to_cart_button {
	background:#a30000 !important;
	color:#ffffff;
    border: 1px solid #000000;
}

.eStore_fancy9_button {
    float: left;
    padding: 1% 0px 80px 0px !important;
    height: 0px !important;
	
}

@media only screen and (min-width:1050px){
.eStore_fancy9_button {
    float: left;
    padding: 50px 0px 50px 0px !important; */
    height: 0px !important;
    /* max-width:600px !important; */
}
}

/* END */

/* START Adjust View Cart Box */
.eStore_compact_cart3 {
    background-color: #3f3f3f !important;
    margin: 0px 0px 0px 0px !important;
	float:right;
	max-width:350px !important;
}
/* END */

/* START Adjust View Cart Window */
.eStore_cart_fancy1 {
	margin:0px -20px 0px -20px !important;
}

.eStore_cart_fancy1_header {
	color: #000000 !important;
}

.eStore_cart_item_qty_with_update {
	max-width:40px !important;
}
/* END */

/* Stops Items from Breaking Between Letters & Numbers */
table td {
    word-break: normal;
}
/* END */

/* START Fix Update Warning Message in Checkout */
.shipping_var_changed_default.eStore_warning {
	line-height:1.5em !important;
	margin: 10px 0px 10px 0px;
}
/* END */

/* START Fix Checkout in Mobile */
@media only screen and (max-width:650px){
table, thread, tbody, th, td, tr {display: block;}

td {
    max-width: 350px !important;
}

.estore-cart-total {
	display:table;
	float:right;
}

.eStore_save_retrieve_cart_section {
	margin: 90px 0px 0px 0px;
}
}
/* END */

/* START hide Cart Button on specific pages & posts */
.page-id-1332 .cartbutton {display: none !important;} /*About Page*/
.page-id-1255 .cartbutton {display: none !important;} /*Beef Page*/
.page-id-1329 .cartbutton {display: none !important;} /*Blog Page*/
.page-id-2306 .cartbutton {display: none !important;} /*Cafe Page*/
.page-id-1327 .cartbutton {display: none !important;} /*Dairy Page*/
.page-id-12 .cartbutton {display: none !important;} /*Home Page*/
.page-id-1340 .cartbutton {display: none !important;} /*Produce Page*/
.page-id-1336 .cartbutton {display: none !important;} /*Wholesale Page*/
.page-id-26 .cartbutton {display: none !important;} /*Contact Us Page*/
.page-id-237 .cartbutton {display: none !important;} /*Thank You Page*/
.page-id-3 .cartbutton {display: none !important;} /*Privacy Policy Page*/

/* Posts */
[class*="1505"] .cartbutton, [class*="1521"] .cartbutton, [class*="1530"] .cartbutton, [class*="1535"] .cartbutton, [class*="1540"] .cartbutton, [class*="1546"] .cartbutton, [class*="1555"] .cartbutton, [class*="1565"] .cartbutton, [class*="1578"] .cartbutton, [class*="1597"] .cartbutton, [class*="1600"] .cartbutton, [class*="1607"] 
.cartbutton {
  display: none !important;
}
/* End */
/*========= END WP eStore ==============*/

