/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/


/* REQUEST INFO BUTTON */
/* Wrapper for layout and spacing */
.request_info_wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 10px;
    padding-bottom: 10px;
  }

  .request_info_wrapper .request_info_button {
    margin-top: 10px;
  }
  
  /* Custom button styling */
  .request_info_button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: var(--btn-padding, 5px 20px);
    min-height: var(--btn-height, 42px);
    font-size: var(--btn-font-size, 13px);
    line-height: 1.2;
    vertical-align: middle;
    text-align: center;
    text-decoration: none !important;
    text-shadow: none;
    cursor: pointer;
    transition: all 0.25s ease;
  
    /* Visual styling from button variables */
    color: var(--btn-accented-color, #333);
    background-color: var(--btn-accented-bgcolor, rgb(217,243,0));
    border: var(--btn-brd-width, 0px) var(--btn-brd-style, solid) var(--btn-brd-color, #E9E9E9);
    border-radius: var(--btn-accented-brd-radius, 5px);
    box-shadow: var(--btn-accented-box-shadow, none);
    text-transform: var(--btn-accented-transform, uppercase);
    font-weight: var(--btn-accented-font-weight, 600);
    font-family: var(--btn-accented-font-family, "Manrope", Arial, Helvetica, sans-serif);
    font-style: var(--btn-accented-font-style, unset);
  }
  
  /* Hover state */
  .request_info_button:hover {
    background-color: var(--btn-accented-bgcolor-hover, rgb(183,204,0));
    color: var(--btn-accented-color-hover, #fff);
    box-shadow: var(--btn-accented-box-shadow-hover, inset 0 0 0 1000px rgba(0,0,0,0.1));
  }
  
  /* Optional: mimic loading spinner (disabled by default) */
  .request_info_button::before,
  .request_info_button::after {
    content: "";
    position: absolute;
    opacity: 0;
    transition: opacity 0s ease;
    z-index: 1;
    border-radius: inherit;
    background-color: inherit;
    box-shadow: inherit;
  }
  .request_info_button::after {
    top: calc(50% - 9px);
    left: calc(50% - 9px);
    width: 18px;
    height: 18px;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0);
    border-left-color: currentColor;
    border-radius: 50%;
    vertical-align: middle;
    animation: wd-rotate 450ms infinite linear paused;
    z-index: 2;
  }
  .request_info_button {
    /* Core layout and appearance */
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: var(--btn-padding, 5px 20px);
    min-height: var(--btn-height, 42px);
    font-size: var(--btn-font-size, 13px);
    line-height: 1.2;
    vertical-align: middle;
    text-align: center;
    text-decoration: none !important;
    text-shadow: none;
    cursor: pointer;
    transition: all 0.25s ease;
  
    /* Visual styling from button variables */
    color: var(--btn-accented-color, #333);
    background-color: var(--btn-accented-bgcolor, rgb(217,243,0));
    border: var(--btn-brd-width, 0px) var(--btn-brd-style, solid) var(--btn-brd-color, #E9E9E9);
    border-radius: var(--btn-accented-brd-radius, 5px);
    box-shadow: var(--btn-accented-box-shadow, none);
    text-transform: var(--btn-accented-transform, uppercase);
    font-weight: var(--btn-accented-font-weight, 600);
    font-family: var(--btn-accented-font-family, "Manrope", Arial, Helvetica, sans-serif);
    font-style: var(--btn-accented-font-style, unset);
  }
  .request_info_button:hover {
    background-color: var(--btn-accented-bgcolor-hover, rgb(183,204,0));
    color: var(--btn-accented-color-hover, #fff);
    box-shadow: var(--btn-accented-box-shadow-hover, inset 0 0 0 1000px rgba(0,0,0,0.1));
  }
  /* Optional: mimic loading spinner (disabled by default) */
  .request_info_button::before,
  .request_info_button::after {
    content: "";
    position: absolute;
    opacity: 0;
    transition: opacity 0s ease;
    z-index: 1;
    border-radius: inherit;
    background-color: inherit;
    box-shadow: inherit;
  }
  .request_info_button::after {
    top: calc(50% - 9px);
    left: calc(50% - 9px);
    width: 18px;
    height: 18px;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0);
    border-left-color: currentColor;
    border-radius: 50%;
    vertical-align: middle;
    animation: wd-rotate 450ms infinite linear paused;
    z-index: 2;
  }
  



.add-to-cart-loop:not(.request_info_button) {
  display: none !important;
  visibility: hidden;
  opacity: 0;
}


/* Base button styling */
.wd-add-btn-replace .request_info_carousel {
  overflow: hidden;
  padding: 0;
  position: relative;
}

/* Text span inside the button */
.wd-add-btn-replace .request_info_carousel span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: inherit;
  transition: transform 0.25s ease, opacity 0.15s ease;
}

/* Icon that slides in on hover */
.wd-add-btn-replace .request_info_carousel::before {
  content: "\f123"; /* Try \f114 or \f112 if this doesn't render */
  font-family: "woodmart-font";
  font-weight: 400;
  font-size: 20px;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(100%);
  transition: opacity 0.15s ease, transform 0.25s ease;
}

/* Animate icon in and text out */
.wd-add-btn-replace .request_info_carousel:hover::before {
  transform: translateY(0) translateZ(0);
}

.wd-add-btn-replace .request_info_carousel:hover span {
  transform: translateY(-100%) translateZ(0);
}



/* Override CF7 inline font-size for acceptance label */
.consent-block .wpcf7-list-item-label {
  font-size: 0.8em !important;
  line-height: 1;
  color: var(--wd-text-color-light) !important;
}



/* Fix wrapping and visibility */
.consent-label-fix .wpcf7-list-item-label {
  white-space: normal !important;
  display: inline-block !important;
  overflow: visible !important;
  font-size: 0.55em !important;
  line-height: 1.4 !important;
  color: var(--wd-text-color-light) !important;
  margin-left: 6px; /* spacing from checkbox */
}

/* Align checkbox + text properly */
.consent-label-fix .wpcf7-list-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

/* Make checkbox align with top of text */
.consent-label-fix input[type="checkbox"] {
  margin-top: 3px !important;
}



li.item-with-label.item-label-primary:has(> ul.sub-sub-menu) > a {
  display: flex;                 /* stack image + text vertically */
  flex-direction: column;        /* image on top, text below */
  align-items: flex-start;       /* or center, if you prefer */
  
  font-weight: 400 !important;
  text-transform: uppercase !important;
  font-size: 8px !important;
  line-height: 1.1 !important;
}

li.item-with-label.item-label-primary:has(> ul.sub-sub-menu) > a img {
  margin-bottom: 0.6em;
}




/* Remove author block on single post pages */
.wd-single-post-header .wd-post-meta .wd-post-author,
.wd-single-post-header .wd-post-meta .wd-meta-author {
    display: none !important;
}


/* Hide the comments counter block on single posts */
.wd-single-post-header .wd-post-meta .wd-post-reply {
  display: none !important;
}




.wd-copyrights .wd-col-end{
  font-size: 0.7em !important;
}





/* Base badge style */
.product-labels.labels-rectangular {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 20;
}

.product-labels.labels-rectangular .wd-label,
.product-labels.labels-rectangular .product-label {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 5px;
  color: #fff;
}

.wd-label-green { background-color: #b9cd06; }
.wd-label-orange { background-color: #e6a400; }
.wd-label-red { background-color: #F44336; }


/* Custom stock badge styled like Woodmart labels */
.custom-stock-badge {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 5px;
  color: #fff;
  line-height: 1.2;
  pointer-events: auto;
}

/* Colors matching Woodmart */
.wd-label-green { background-color: #b9cd06; }
.wd-label-orange { background-color: #e6a400; }





/* Rent price styling */
.price .rent-price {
    font-size: 0.85em;
    font-weight: 600;
    opacity: 0.9;
}




.cky-revisit-bottom-left {
  bottom: 70px !important;
  left: 15px;
}

/* Mobile / Android adjustments */
@media screen and (max-width: 600px) {
  .cky-revisit-bottom-left {
    bottom: 55px !important;
    left: 15px;
    transform: scale(0.9); /* optional: slightly smaller */
  }
}



/* Make the gallery container a positioning context */
.wd-carousel-inner {
  position: relative;
}

/* Position the badge container above the image */
.wd-carousel-inner .product-labels {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 50; /* higher than gallery images */
  pointer-events: none;
}

/* Allow clicking on the badge if needed */
.wd-carousel-inner .product-labels .product-label {
  pointer-events: auto;
}



