/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */

/*=======Changes the text highlight colour=======*/
::-moz-selection {
color: #ffffff;
background: #005ABD;
}
::selection {
color: #ffffff;
background: #005ABD;
}
/*=======Changes the text highlight colour=======*/

/*=======Inter Regular was not was loading - this forces it=======*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 400; /* or 500/600 if you want them a bit heavier */
}
/*=======Inter Regular was not was loading - this forces it=======*/

/* ======================== HAMBURGER MENU TEXT LINK STYLING - BELOW ======================== */
#hamburger-menu-item {
  text-decoration: none; /* Remove underline by default */
  color: #5e5e5; /* Original color */
  transition: color 0.3s ease; /* Smooth color transition */
}

#hamburger-menu-item:hover {
  color: #005ABD; /* Change color on hover */
}
/* ======================== HAMBURGER MENU TEXT LINK STYLING - ABOVE ======================== */

/* ======================== FOOTER MENU TEXT LINK STYLING - BELOW =========================== */
#footer-menu-item {
  text-decoration: none; /* Remove underline by default */
  color: #5e5e5e; /* Original color */
  transition: color 0.3s ease; /* Smooth color transition */
}

#footer-menu-item:hover {
  color: #005ABD; /* Change color on hover */
}
/* ======================== FOOTER MENU TEXT LINK STYLING - ABOVE =========================== */

/* =============== DESIGN HALL CREDIT STYLING IN FOOTER - BELOW ================== */
/* Default state for the #designhall link */
#designhall {
  text-decoration: none; /* Remove underline by default */
  color: rgba(255, 255, 255, 0.6); /* Original color with partial opacity */
  transition: color 0.3s ease; /* Smooth transition */
}

/* Hover state for the #designhall link */
#designhall:hover {
  color: rgba(255, 255, 255, 1); /* Fully opaque white on hover */
}
/* =============== DESIGN HALL CREDIT STYLING - ABOVE ================== */

/* =============== INTER REGUALR TO OVERRIDE SETTINGS FOR PARAGRAPH TEXT BELOW ================== */
p {
  font-family: 'Inter', sans-serif;
  font-weight: 400; /* Regular */
}
/* =============== INTER REGUALR TO OVERRIDE SETTINGS FOR PARAGRAPH TEXT ABOVE ================== */

/* ================================= UI BUTTON TEMPLATES BELOW ================================= */
/* ===== Primary Blue Button Styling ===== */
#btn-primary-blue {
  background-color: #005ABD !important;
  color: #ffffff !important;
  border-color: #005ABD !important;
  transition: all 0.3s ease;
}

#btn-primary-blue:hover {
  background-color: #013F84 !important;
  border-color: #013F84 !important;
}

/* ===== Primary Blue Outline Button Styling ===== */
#btn-primary-blue-outline {
  background-color: transparent !important;
  color: #0073e6 !important;   /* light blue text */
  border: 2px solid #005ABD !important;
  transition: all 0.3s ease;
}

#btn-primary-blue-outline:hover {
  background-color: rgba(0, 115, 230, 0.15) !important;  /* semi-transparent fill */
  border-color: transparent !important;                  /* border disappears */
  color: #ffffff !important; 
}

/* ===== Light Blue Button Styling ===== */
#btn-light-blue {
  background-color: #0073e6 !important;
  color: #ffffff !important;
  border-color: #0073e6 !important;
  transition: all 0.3s ease;
}

#btn-light-blue:hover {
  background-color: #005ABD !important;
  border-color: #005ABD !important;
}

/* ===== Light Blue Outline Button Styling ===== */
#btn-light-blue-outline {
  background-color: transparent !important;
  color: #0073e6 !important;   /* light blue text */
  border: 2px solid #0073e6 !important;
  transition: all 0.3s ease;
}

#btn-light-blue-outline:hover {
  background-color: rgba(0, 115, 230, 0.15) !important;  /* semi-transparent fill */
  border-color: transparent !important;                  /* border disappears */
  color: #ffffff !important;                             /* keep text white */
}

/* ===== White Outline / Ghosting Button Styling ===== */
#btn-white-outline {
  background-color: transparent !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  transition: all 0.3s ease;
}

#btn-white-outline:hover {
  background-color: rgba(255, 255, 255, 0.35) !important;
  border-color: #ffffff !important;
}

/* ================================= UI BUTTON TEMPLATES ABOVE ================================= */

/* ===== DELETE ???? Category Carousel Swiper Pagination: Left Align ===== */
#mackay-boats-carousel .et-pb-controllers {
  display: flex !important;
  justify-content: flex-start !important;
  text-align: left !important;
  padding-left: 0px; /* optional: adjust for spacing */
  position: absolute;
  bottom: 0; /* sits at the bottom of the padding space */
  left: 0;
  width: 100%;
  z-index: 10;
}

/* ===== Base pagination bullet style ===== */
#mackay-boats-carousel .et-pb-controllers a {
  width: 11px !important;
  height: 11px !important;
  margin: 0 6px;
  opacity: 15%;
  background-color: #005ABD; /* lighter version of active blue */
  border-radius: 999px;
  transition: background-color 0.3s ease, width 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

/* ===== Active bullet styling: elongated pill shape ===== */
#mackay-boats-carousel .et-pb-controllers .et-pb-active-control {
  width: 80px !important;
  height: 12px !important;
  opacity: 1;
  background-color: #005ABD; /* active blue */
  border-radius: 999px;
  transform: scale(1.05);
  transition: background-color 0.3s ease, width 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

/* ===== Position pagination below slider ===== */
#mackay-boats-carousel {
  position: relative;
  padding-bottom: 40px; /* space for bullets */
  overflow: visible !important; /* allow bullets outside slider */
}

/* FOR THE FORD STYLE FILTER BANNER TABBED MODULE */
/* Tab menu container */
.et_pb_tabs_controls.clearfix {
    display: flex;
    justify-content: center; /* optional, tabs will fill anyway */
    width: 100%;
    background: none;
    gap: 0px; /* no gap needed if stretching */
    border: none;
}

/* Individual tabs stretch equally */
.et_pb_tabs_controls.clearfix li {
    flex: 1;               /* each tab takes equal width */
    text-align: center;
    position: relative;
    border-right: none;
}

/* Tab link fills the tab */
.et_pb_tabs_controls.clearfix li a {
    display: block;        /* full width */
    width: 100%;
    padding: 15px 0 25px 0; /* adjust top/bottom padding */
    color: #000000;
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
    background: none;
}

/* Hover text color */
.et_pb_tabs_controls.clearfix li a:hover {
    color: #005ABD;
}

/* Underline effect */
.et_pb_tabs_controls.clearfix li a::after {
    content: '';
    display: block;
    width: 0;
    height: 5px;
    background: #005ABD;
    position: absolute;
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}

/* Animate underline on hover */
.et_pb_tabs_controls.clearfix li a:hover::after {
    width: 100%;
}

/* Active tab underline */
.et_pb_tabs_controls.clearfix li.et_pb_tab_active a::after {
    width: 100%;
}

.mackay-configurable-badge {
  display: inline-block;
  background-color: #004A99;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  padding: 6px 14px;
  border-radius: 0;
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 20;

  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-16px);

  transition:
    opacity 0.25s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.2s ease,
    visibility 0s linear 0.25s; /* ⬅ delay hiding */
}

/* Reveal */
.woocommerce ul.products li.product .woocommerce-loop-product__link:hover .mackay-configurable-badge,
.et_shop_item .et_shop_image:hover .mackay-configurable-badge,
.et_shop_item a:hover .mackay-configurable-badge {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);

  transition:
    opacity 0.25s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.2s ease,
    visibility 0s; /* ⬅ visible immediately */
}

/* Badge hover */
.mackay-configurable-badge:hover {
  background-color: #003A7A;
}

/* Single product page */
.single-product .mackay-configurable-badge {
  position: relative;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 10px;
  opacity: 1;
  visibility: visible;
}

/* Display cart quantity in circle in menu */
.et_pb_menu__cart-count {
    background-color: #005ABD;
    border-radius: 50%;
    border:1px solid #fff;
    min-width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -21px;
    margin-top: -21px;
    z-index:9;
}

/* Add extra space left of cart icon in desktop menu */
@media (min-width: 981px) {
.et_pb_menu__icon.et_pb_menu__cart-button {
    margin-left:22px
}
}

/* Line shopping cart icon in menu */
.et_pb_menu__cart-button:after {
    content: "\e015" !important;
}

/* Product configurator */
.wapf-field-container.wapf-field-p .wapf-field-label {
	display: none;
}

.wapf-swatch--color .wapf-color {
	border: 1px solid #dadada;
}

.wapf-swatch--color.wapf-checked .wapf-color {
	border: 2px solid #005abd;
	box-shadow: none;
}

.wapf-card-vertical .wapf-card-row {
	flex-flow: column;
	align-items: flex-start;
}

.wapf-card-price {
	color: #005abd;
}

.wapf-checkbox .wapf-custom {
	width: 20px;
	height: 20px;
}

.wapf-checkbox label, .wapf-radio label {
	font-size: 14px;
	line-height:1.2;
}

.wapf-card-title {
	line-height:1.2;
}

.wapf-product-totals div span:last-child span {
	float: none;
}
/* Hide only titled sections on desktop - JS will show active tab content */
.wapf-field-group.wapf--tabbed .wapf-section:has(.wapf-section-title) {
		@media (min-width: 1200px) {
        display: none;
    }
}

/* Tab navigation bar */
.wapf-tab-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #005abd;
    margin-bottom: 0;
    padding: 0 !important;
    list-style: none !important;
	width: 100%;
}

.wapf-tab-nav__item {
    margin: 0;
	flex-grow: 1;
	padding: 10px 18px;
}

.wapf-tab-nav__item.is-active, .wapf-tab-nav__item.is-active:hover {
	background-color: #005abd;
	color: #ffffff;
}

.wapf-tab-nav__item:hover {
	background-color: rgba(0,90,198,0.1);
}

.wapf-tab-nav__btn {
    display: block;
    border: none;
    border-bottom: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
	width: 100%;
	background: none;
}

.wapf-tab-nav__btn:hover {
    
}

.wapf-tab-nav__btn.is-active {
    color: #ffffff;
}

/* Active section content panel */
.wapf-field-group.wapf--tabbed .wapf-section.is-active-tab {
    display: block;
}

/* Section content padding */
.wapf-section-content {
    padding: 20px 0;
}

/* Hide the title div inside tabs (the tab button replaces it) */
.wapf-field-group.wapf--tabbed .wapf-section-title {
    display: none;
}

.wapf-field-container {
	padding: 0px;
}

.wapf-card-wrap {
	display: flex;
	flex-wrap: wrap;
}

.wapf-card-wrap .wapf-card {
	width: 100%;
}

.wapf-card-body {
	justify-content: center;
}

.wapf-card-wrap .wapf-card.wapf-card-vertical {
	width: calc(50% - 8px);
}

/* =============================================================================
   Mobile accordion (< 1200px)
   ============================================================================= */

@media (max-width: 1199px) {

    /* Hide tab nav */
    .wapf-tab-nav {
        display: none;
    }

    /* Show all titled sections as stacked blocks */
    .wapf-field-group.wapf--tabbed .wapf-section:has(.wapf-section-title) {
        display: block;
        border: 1px solid #ddd;
        border-radius: 4px;
        margin-bottom: 4px;
        overflow: hidden;
    }

    /* Show section title as accordion trigger */
    .wapf-field-group.wapf--tabbed .wapf-section-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        background: #f5f5f5;
        font-weight: 600;
        font-size: 1em;
        color: #555;
        cursor: pointer;
        user-select: none;
        transition: background 0.15s, color 0.15s;
    }

    .wapf-field-group.wapf--tabbed .wapf-section-title::after {
        content: '+';
        font-size: 1.2em;
        line-height: 1;
        flex-shrink: 0;
        margin-left: 10px;
    }

    /* Hide section content unless active */
    .wapf-field-group.wapf--tabbed .wapf-section:has(.wapf-section-title) .wapf-section-content {
        display: none;
    }

    /* Active section - show content, style title */
    .wapf-field-group.wapf--tabbed .wapf-section.is-active-tab .wapf-section-content {
        display: block;
    }

    .wapf-field-group.wapf--tabbed .wapf-section.is-active-tab .wapf-section-title {
        background: #fff;
        color: #222;
        border-bottom: 1px solid #ddd;
    }

    .wapf-field-group.wapf--tabbed .wapf-section.is-active-tab .wapf-section-title::after {
        content: '−';
    }

}

/* =============================================================================
   Field accordion - .wapf-section.accordion
   ============================================================================= */

.wapf-section.accordion .wapf-field-container {
    border: 1px solid #dadada;
    margin-bottom: 4px;
    overflow: hidden;
}

.wapf-section.accordion .wapf-field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: transparent;
    border-bottom: 1px solid transparent;
    margin: 0;
    user-select: none;
    transition: background 0.15s, color 0.15s;
	font-size: 14px !important;
}

.wapf-section.accordion .wapf-field-label::after {
    content: '+';
    font-size: 1.2em;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 10px;
}

.wapf-section.accordion .wapf-field-label.is-open {
	border-bottom: 1px solid #dadada;
}

.wapf-section.accordion .wapf-field-label.is-open, .wapf-section.accordion .wapf-field-label.is-open + .wapf-field-input {
    background: #fff;
}

.wapf-section.accordion .wapf-field-label.is-open::after {
    content: '−';
}

.wapf-section.accordion .wapf-field-input {
    padding: 16px;
}

/* ======================== Currency Converter Dropdown ======================== */
.mackay-currency-dropdown {
    position: relative;
	display: block;
    width: fit-content;
    margin: 0 auto;
}

.mackay-currency-dropdown__toggle {
    /**display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    padding: 0; **/
	color: #666666 !important;
    border-width: 0px !important;
    border-color: #FFFFFF;
    border-radius: 0px;
    font-size: 14.5px;
    font-family: 'Arial', Helvetica, Arial, Lucida, sans-serif !important;
    font-weight: 300 !important;
    background-color: #eaeaea;
	padding: 9px 20px !important;
	line-height: 1.7em !important;
	border: 2px solid;
	display: block;
	margin: 0px auto;
}

.mackay-currency-dropdown__arrow {
    display: inline-block;
    line-height: 1;
    transition: transform 0.2s ease;
}

.mackay-currency-dropdown__arrow::before {
    content: "\33";
    font-family: 'ETmodules';
    font-size: 1em;
    font-style: normal;
    font-weight: normal;
}

.mackay-currency-dropdown__toggle[aria-expanded="true"] .mackay-currency-dropdown__arrow {
    transform: rotate(180deg);
}

.mackay-currency-dropdown__panel {
    position: absolute;
    top: 100%;
    right: 0;
    background: #eaeaea;
    padding: 12px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 999;
}
.wcml-vertical-list, .wcml-vertical-list ul {
	border: none;
	padding: 0px;
}

.wcml-vertical-list li a {
	color: #666666 !important;
	font-size: 14.5px;
    font-family: 'Arial', Helvetica, Arial, Lucida, sans-serif !important;
    font-weight: 300 !important;
}
/* ============================================================================ */