/*
 Theme Name:     Divi Child Theme
 Theme URI:      https://www.elegantthemes.com/gallery/Divi/
 Description:    Divi Child Theme
 Author:         Nitchy
 Author URI:     https://nitchy.ie
 Template:       Divi
 Version:        5.x
*/

@import url("/wp-content/themes/Divi/style.css");

/* Custom styles go below this line
-------------------------------------------------------------- */

/*Celuplast website version 6*/

h1,h2,h3,h4,h5,h6{

	font-style: normal;
	color:#0D3560 !important;

}

body:not(.et-tb) #main-content .container, body:not(.et-tb-has-header) #main-content .container {
  padding-top: 24px !important;
}

ul{
	list-style-type: none !important;
}

a{
	
}
a:hover{
	
}


/*--align classes--*/
.center{
	text-align: center;
	align-items: center;
}
.left{
	text-align: left;
}
.right{
	text-align: right;
}

/*--end align--*/



/*--colours--*/
.white{
	color:#fff !important;
}

/*navy*/
.blue3{
	color:#0D3560;
}
.blue3-bg{
	background-color:#0D3560;
}
/*ortinges*/
.orange2{
	color:#cf6437;	
}
.orange3{
	color:#EA6834;	
}



/*--end colours--*/

/*--btns--*/

.single_add_to_cart_button, .button , .et_pb_button, #decking-calculator-form button,
#add-all-to-cart{
	width:100% !important;
	background:#0D3560 !important;
	color:#fff !important;
	border-radius:3px !important;
	border:1px solid #0D3560 !important;
	text-transform:uppercase;
	text-align:center;
	font-weight:bold;
	font-size:20px;
	letter-spacing:1px;
	padding-top: 12px !important;
	padding-right: 50px !important;
	padding-bottom: 12px !important;
	padding-left: 50px !important;
}
.single_add_to_cart_button:hover, .button:hover, .et_pb_button:hover, #decking-calculator-form button:hover,
#add-all-to-cart:hover{
	background:#EA6834 !important;
	border-radius:3px !important;
	letter-spacing:1px !important;
}

/*--end btns--*/



/*--blog styles--*/
.et_pb_post {
    margin-bottom: 0 !important;
}
.et_pb_post a:hover{
	color:#EA6834 !important;
}

/*--end blog styles--*/


/*instagram feed*/
sbi_btn_text{
	font-weight:bold !important;
}
.sbi_load_btn{
	border-radius:5px !important;
	color:#fff !important;
	background-color:#0D3560 !important;opacity:1 !important;
	box-shadow: none !important;
}
.sbi_load_btn:hover{
	background-color:#EA6834 !important;
		opacity:1 !important;
}
/*end IG feed*/



/*--woocommerce--*/
.onsale{background:#f26419!important}

.quantity input.qty{
	margin-bottom:15px !important;
}
.woocommerce-store-notice, p.demo_store{
	background:#EA6834 !important;	
}
div#tab-description.woocommerce-Tabs-panel.woocommerce-Tabs-panel--description.panel.entry-content.wc-tab h2{display:none !important;}

.woocommerce-price-suffix{
	font-size:12px !important;
	font-weight:normal !important;
}
.woocommerce span.onsale, .woocommerce-page span.onsale{
	background-color:#EA6834 !important;
}

/* 1) If Divi/Woo outputs more than one thumbnail list, hide all but the LAST (bottom) one */
.single-product .et_pb_wc_images .woocommerce-product-gallery .flex-control-thumbs:not(:last-of-type) {
  display: none !important;
}

/* 2) Make the remaining (bottom) thumbs a single horizontal row with scroll, no wrapping */
.single-product .et_pb_wc_images .woocommerce-product-gallery .flex-control-thumbs:last-of-type {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  margin-top: 12px;
}

/* 3) Prevent squashing; keep each thumb its own width */
.single-product .et_pb_wc_images .woocommerce-product-gallery .flex-control-thumbs:last-of-type li {
  flex: 0 0 auto;
}

/* 4) Tidy thumbnail sizing */
.single-product .et_pb_wc_images .woocommerce-product-gallery .flex-control-thumbs:last-of-type img {
  max-height: 80px; /* adjust to taste */
  width: auto;
  height: auto;
  display: block;
  border-radius: 6px;
}


/*--end woocommerce--*/

/*--calculators--*/
	/*decking calc*/
#decking-calculator-form {
  max-width: 100%;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 0px;
  border-color:#1f76ad;
  margin-bottom: 20px;
}

#decking-calculator-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}

#decking-calculator-form input {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/*#decking-calculator-form button,
#add-all-to-cart {
  display: inline-block;
  background-color: #e16d33;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
	font-size:16px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

#decking-calculator-form button:hover,
#add-all-to-cart:hover {
  background-color: #e16d33;
}
*/
#decking-results {
  margin-top: 20px;
  padding: 15px;
  background-color: #eef6f9;
  border: 1px solid #cce0e5;
  border-radius: 10px;
}

#decking-results p {
  margin: 8px 0;
}

#add-to-cart-message {
  margin-top: 10px;
  font-size: 0.95rem;
}

	/*end decking calc*/
	/*floor calc*/
#fieldname4_1, #fieldname11_1{
	padding:15px!important;
	width:100% !important;
	background-color:#fff !important;
}



#fieldname13_1{
	border: none !important;
	font-size:34px !important;
	font-weight:bold !important;
	padding:0px 0px 0px 15px!important;
	background:none !important;
}

@media (max-width: 767px){
	.cff-width{}
	.cff-length{}
  .single-product [id^="cp_calculatedfieldsf"] #fbuilder{
    display:flex; flex-wrap:wrap; gap:12px;
  }
  .single-product [id^="cp_calculatedfieldsf"] #fbuilder > .fields{ width:100%; }
  .single-product [id^="cp_calculatedfieldsf"] #fbuilder > .fields.cff-text-field:nth-of-type(1),
  .single-product [id^="cp_calculatedfieldsf"] #fbuilder > .fields.cff-text-field:nth-of-type(2){
    width:calc(50% - 6px);
  }
}


/*end floor calc*/

/*balustrade calc*/
#box-width-input.wide_input_field{
	padding:10px;width:100%;margin-bottom:15px;
}
.calculate_button{
	/*margin-top:15px;*/
}

/*--end calcu--*/

/*--cross sells--*/
h1.product_title.entry-title, h2.woocommerce-loop-product__title, h2.related.products,
.product .related h2{
	font-size:18px !important;
}

/*end cross sells*/

/*--divi customisations--*/
/* Hide navigation arrows in Divi gallery module */
.et-pb-slider-arrows, .et-pb-controller {
    display: none !important;
}


/* --end divi customisations-- */

/*--misc--*/

 	/*???*/
.category-box{
padding:20px;	
	
}

	/*fibo*/
	.fibo{ display: flex; } 
	.fibo-logo{float:left;width:100px;position:relative;}
	.flag{width:50px;position:relative;}	
	.fibo2{display:block;float:left;position:relative;margin-top:-50px;margin-left:125px;}
	/*end fibo*/


@media only screen and (max-width: 980px) {
.four-cols-mobile .et_pb_column {
width: 25%!important;
}
}

/*discounts*/
.discount{
	font-size:24px !important;
	color:#EA6834 !important;
	padding-bottom:15px !important;
}


.wpb_wmca_accordion_wrapper_theme_transparent ul li a{
	color:#fff !important;
}
.wpb_wmca_accordion_wrapper_theme_transparent #menu-main-nav-5-0 > li.menu-item.menu-item-type-post_type.menu-item-object-page.menu-item-19720
{display:none;}

/*--end misc--*/


/*--footer--*/
#footer-widgets .footer-widget li{
	margin-left:-14px !important;
	line-height:1.7em !important;

}

/*--end footer--*/

/* ===== CP HEADER ===== */

/* Reset */
.cp-header-wrap,
.cp-header-wrap *,
.cp-header-wrap *::before,
.cp-header-wrap *::after { box-sizing: border-box; }
.cp-header-wrap ul,
.cp-header-wrap li { list-style: none; margin: 0; padding: 0; }
.cp-header-wrap a { text-decoration: none; }
.cp-header-wrap button { font-family: inherit; }

/* Wrapper */
.cp-header-wrap {
    width: 100%;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    z-index: 999;
}

/* ===== TOP BAR ===== */
.cp-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 30px;
    background: #fff;
    border-bottom: 3px solid #1B365D;
    position: relative;
    z-index: 1001;
}

/* Logo */
.cp-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
}
.cp-logo img {
    height: 60px;
    width: auto;
    display: block;
}
.cp-logo-text {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1;
}
.cp-logo-celu { color: #1B365D; }
.cp-logo-plast { color: #1B365D; font-weight: 400; }

/* Header actions */
.cp-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ===== SEARCH ===== */
.cp-search-wrapper {
    display: flex;
    align-items: center;
}
.cp-search-bar {
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    transition: max-width 0.4s ease, opacity 0.3s ease, margin 0.4s ease;
    margin-right: 0;
}
.cp-search-bar.active {
    max-width: 350px;
    opacity: 1;
    margin-right: 10px;
}
.cp-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cp-search-toggle svg {
    width: 28px;
    height: 28px;
    stroke: #E8632B;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ===== HAMBURGER ===== */
.cp-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 34px;
    flex-shrink: 0;
}
.cp-hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #E8632B;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.cp-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.cp-hamburger.active span:nth-child(2) {
    opacity: 0;
}
.cp-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== DESKTOP NAVIGATION ===== */
.cp-nav-desktop {
    max-height: 0;
    overflow: hidden;
    background: #1B365D;
    position: relative;
    z-index: 1000;
    transition: max-height 0.4s ease;
}
.cp-nav-desktop.active {
    max-height: 600px;
    overflow: visible;
}
.cp-nav-desktop > ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 10px;
    margin: 0;
    position: relative;
}
.cp-nav-desktop > ul > li {
    position: relative;
}
.cp-nav-desktop > ul > li > a {
    display: block;
    color: #fff !important;
    text-decoration: none !important;
    padding: 16px 14px;
    font-size: 14px;
    font-weight: 800;
	line-height:1em;
	text-transform:uppercase;
    text-align: center;
    white-space: normal;
    border-bottom: 3px solid transparent;
    transition: border-color 0.2s ease;
}
.cp-nav-desktop > ul > li > a:hover,
.cp-nav-desktop > ul > li.mega-open > a {
    border-bottom-color: #E8632B;
    color: #fff;
}

/* Slide-from-left animation */
@keyframes cpSlideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to   { transform: translateX(0);     opacity: 1; }
}
.cp-nav-desktop.active > ul {
    animation: cpSlideInLeft 0.45s ease forwards;
}

/* ===== MEGA DROPDOWN ===== */
.cp-nav-desktop .cp-mega-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 500px;
    padding: 25px 30px;
    z-index: 1002;
    border-bottom: 3px solid #1B365D;
    border-left: 3px solid #E8632B;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.cp-nav-desktop > ul > li.mega-open > .sub-menu.cp-mega-dropdown {
    display: flex;
    gap: 35px;
    animation: cpFadeInDown 0.25s ease forwards;
}
@keyframes cpFadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Mega columns */
.cp-mega-dropdown > li.cp-mega-column {
    min-width: 140px;
}
.cp-column-header {
    display: block;
    font-weight: 700;
    color: #1B365D;
    font-size: 14px;
    margin-bottom: 8px;
}
.cp-mega-column-links li { margin: 0; }
.cp-mega-column-links a {
    display: block;
    color: #444;
    text-decoration: none !important;
    padding: 4px 0;
    font-size: 14px;
    transition: color 0.2s;
}
.cp-mega-column-links a:hover { color: #E8632B; }

/* Reposition dropdowns for items near the right edge */
.cp-nav-desktop > ul > li:nth-last-child(-n+5) > .cp-mega-dropdown {
    left: auto;
    right: 0;
    border-left: none;
    border-right: 3px solid #E8632B;
}

/* ===== MOBILE DRAWER ===== */
.cp-drawer-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cp-drawer-overlay.active {
    display: block;
    opacity: 1;
}
.cp-drawer {
    position: fixed;
    top: 0;
    left: -340px;
    width: 320px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transition: left 0.35s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}
.cp-drawer.active { left: 0; }

.cp-drawer-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 3px solid #1B365D;
}
.cp-drawer-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #1B365D;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
}

/* Drawer nav */
.cp-drawer-nav > li {
    border-bottom: 1px solid #eee;
}
.cp-drawer-nav > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    color: #1B365D;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
}
.cp-drawer-nav > li.has-dropdown > a::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    color: #E8632B;
    transition: transform 0.3s;
    margin-left: 10px;
}
.cp-drawer-nav > li.has-dropdown.drawer-open > a::after {
    content: '\2212';
}

/* Drawer sub-menus */
.cp-drawer-nav .sub-menu {
    display: none;
    background: #f9f9f9;
    padding: 0 0 10px 0;
}
.cp-drawer-nav > li.drawer-open > .sub-menu {
    display: block;
}
.cp-drawer-nav .sub-menu .cp-column-header {
    display: block;
    padding: 12px 20px 4px 28px;
    font-weight: 700;
    color: #1B365D;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cp-drawer-nav .sub-menu .cp-mega-column { border: none; }
.cp-drawer-nav .sub-menu .cp-mega-column-links { padding: 0; }
.cp-drawer-nav .sub-menu .cp-mega-column-links li { border: none; }
.cp-drawer-nav .sub-menu .cp-mega-column-links a {
    display: block;
    padding: 6px 20px 6px 38px;
    color: #555;
    text-decoration: none !important;
    font-size: 14px;
    transition: color 0.2s, background 0.2s;
}
.cp-drawer-nav .sub-menu .cp-mega-column-links a:hover {
    color: #E8632B;
    background: #f0f0f0;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 1025px) {
    .cp-drawer,
    .cp-drawer-overlay {
        display: none !important;
    }
}
@media (max-width: 1024px) {
    .cp-nav-desktop { display: none !important; }
    .cp-header-top { padding: 12px 16px; }
    .cp-logo img { height: 45px; }
    .cp-logo-text { font-size: 24px; }
    .cp-search-bar.active { max-width: 200px; }
}
@media (max-width: 480px) {
    .cp-header-top { padding: 10px 12px; }
    .cp-header-actions { gap: 12px; }
    .cp-logo img { height: 38px; }
    .cp-logo-text { font-size: 20px; }
    .cp-search-bar.active { max-width: 140px; }
    .cp-search-toggle svg { width: 24px; height: 24px; }
    .cp-hamburger { width: 28px; gap: 5px; }
    .cp-hamburger span { height: 2.5px; }
    .cp-drawer { width: 280px; left: -300px; }
}


.et_pb_code ul {
  list-style: none;
  padding: 0;
  margin: 0;
	
}
.et_pb_code li{
	line-height:1.5em !important;
}
/*aws search form*/
.aws-container .aws-search-field{border-radius:20px !important; border-color:#E8632B !important; border-width:3px !important;width:100% !important;}

/*whatsappdoc*/

.wa-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.wa-float__bubble {
  background: #25D366;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-float:hover .wa-float__bubble {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
}

.wa-float__bubble svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

/* Hide on mobile — WhatsApp handles that natively */
@media (max-width: 768px) {
  .wa-float { display: none; }
}

