/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* =====================================================
   Language Selector Styles
===================================================== */

/* Wrapper for the language switcher */
.header-locale-selector {
  display: flex;
  align-items: center;
}

/* Container for language options */
.locale-lang-selector {
  display: flex;
  gap: 8px;
}

/* Individual language option */
.lang-opt {
  font-weight: bold;
  color: inherit;
  cursor: pointer;
}

/* Active language option */
.lang-opt.selected {
  color: #e5131d;
  padding-bottom: 1px;
  border-bottom: 2px solid #e5131d;
}

/* =====================================================
   Badge Styles
===================================================== */

/* Home badge styling */
.badge-home {
  color: #fff;
  background: #b12b2b;
  font-weight: bold;
  padding: 3px 5px;
  border-radius: 5px;
}

/* =====================================================
   WooCommerce Mini Cart Styles
===================================================== */

/* Hide the cart button in mini cart */
.woocommerce-mini-cart__buttons .btn-cart {
  display: none;
}

/* =====================================================
   JDGM Plugin (Review Widget) Styles
   Handles review widget elements and form styling
===================================================== */

/* Adjust reviewer name format select element */
select[id^="jdgm_review_reviewer_name_format"] {
  top: -5px;
}

/* Maintain inherited float for review widget summary */
.jdgm-rev-widg__summary {
  float: inherit;
}

/* Apply border-radius to various review widget elements */
.jdgm-write-rev-link,
.jdgm-ask-question-btn,
.jdgm-widget input.jdgm-review-search,
.jdgm-subtab__name,
.jdgm-widget .jdgm-btn.jdgm-btn {
  border-radius: var(--btn-accented-brd-radius) !important;
}

/* Form inputs and textarea border-radius */
.jdgm-form input:not([type="submit"]),
.jdgm-form textarea {
  border-radius: var(--wd-form-brd-radius) !important;
}

/* Remove borders for several JDGM elements */
.jdgm-row-media,
.jdgm-row-search,
.jdgm-subtab,
.jdgm-row-actions,
.jdgm-quest,
.jdgm-rev,
.jdgm-paginate,
.jdgm-question-form-wrapper,
.jdgm-form-wrapper {
  border: none !important;
}

/* Styling for the JDGM sort dropdown */
.jdgm-sort-dropdown {
  padding: 0 15px !important;
  max-width: 100%;
  width: 100%;
  height: var(--wd-form-height);
  border: var(--wd-form-brd-width) solid var(--wd-form-brd-color) !important;
  border-radius: var(--wd-form-brd-radius);
  background-color: var(--wd-form-bg) !important;
  box-shadow: none;
  color: var(--wd-form-color) !important;
  vertical-align: middle;
  transition: border-color 0.5s ease;
  padding-right: 30px !important;
  background-image: var(--wd-form-chevron) !important;
  background-position: right 10px top 50% !important;
  background-size: auto 18px !important;
  background-repeat: no-repeat !important;
}

/* Hide the sort dropdown arrow */
.jdgm-sort-dropdown-wrapper .jdgm-sort-dropdown-arrow {
  display: none !important;
}

/* JDGM form container styling */
.jdgm-form {
  padding: 30px !important;
  max-width: 730px !important;
  border-radius: var(--wd-brd-radius);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.12);
}

/* Review block styling within the JDGM widget */
.jdgm-rev-widg__body .jdgm-rev {
  border: none !important;
  border-radius: var(--wd-brd-radius);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.12);
  padding: 20px 25px !important;
  margin-top: 25px !important;
}

/* Hide the review title */
.jdgm-rev__title {
  display: none !important;
}

/* Hide product info wrapper in JDGM gallery popup */
.jdgm-gallery-popup .jdgm-rev__prod-info-wrapper {
  display: none !important;
}

/* Ensure consistent font family for JDGM gallery thumbnails */
.jdgm-gallery .jdgm-gallery__thumbnail-link:nth-child(n) .jdgm-gallery__thumbnail-wrapper:before {
  font-family: inherit !important;
}

/* Override display property for JDGM row media */
.jdgm-row-media {
  display: initial !important;
}

/* Hide histogram for specific JDGM widget configurations */
.jdgm-widget:not(.jdgm-review-widget--small, .jdgm-review-widget--medium) .jdgm-rev-widg__summary + .jdgm-histogram {
  display: none;
}

/* =====================================================
   ReCAPTCHA Styles
===================================================== */

/* Hide the Google reCAPTCHA badge */
.grecaptcha-badge {
  visibility: hidden;
}

/* =====================================================
   Main Header and Banner Styles
===================================================== */

/* Main header shadow styling */
.whb-main-header {
  box-shadow: rgb(99 99 99 / 10%) 0px 2px 8px 0px;
}

/* Banner mask overlay styling */
.banner-mask .wrapper-content-banner {
  background-color: rgb(0 0 0 / 15%);
}

/* =====================================================
   XLWCTY Coupon and Order Details Styles
===================================================== */

/* Coupon code styling and text transformation */
.xlwcty_wrap .xlwcty_coupon .xlwcty_coupon_code {
  text-transform: uppercase;
  display: inline-block;
  border-radius: 5px;
}

/* Coupon button border radius */
.xlwcty_wrap .xlwcty_coupon .xlwcty_btn {
  border-radius: 12px;
}

/* Reset margin for order details list items */
.xlwcty_wrap .xlwcty_order_details_2_col .xlwcty_pro_list .xlwcty_leftDiv .xlwcty_p_name .xlwcty_info .wc-item-meta li > * {
  margin-bottom: 0px !important;
}

/* =====================================================
   WooCommerce Order Payment Styles
===================================================== */

/* Styling for order details on the WooCommerce order payment page */
.woocommerce-order-pay ul.order_details {
  list-style: none;
  border: 2px dashed #cb1c1b;
  padding: 10px 15px;
  border-radius: 9px;
}

/* =====================================================
   CWG Instock Subscribe Form Styles
===================================================== */

/* Panel primary styling for instock subscribe form */
.cwginstock-subscribe-form .panel-primary {
  border-color: #cb1c1b;
}

/* Panel heading styling for instock subscribe form */
.cwginstock-subscribe-form .panel-primary > .panel-heading {
  color: #fff;
  background-color: #cb1c1b;
  border-color: #cb1c1b;
}

/* Remove bottom margin from instock panel heading */
.cwginstock-panel-heading h4 {
  margin-bottom: 0;
}

/* Padding adjustments for instock subscribe form panel body */
.cwginstock-subscribe-form .panel-body {
  padding: 15px;
  padding-top: 25px;
}

/* =====================================================
   WooCommerce Checkout Styles
===================================================== */

/* Hide billing country field on checkout */
.woocommerce-checkout #billing_country_field {
  display: none;
}

/* Hide payment box on checkout payment methods */
.woocommerce-checkout .payment_methods .payment_box {
  display: none !important;
}

/* =====================================================
   PhotoSwipe Gallery Background
===================================================== */

/* Set PhotoSwipe background to white */
.pswp__bg, .pswp__img {
  background: #fff !important;
}

/* =====================================================
   WPCLV
===================================================== */
.wpclv-terms-select {
    cursor: pointer;
    -webkit-appearance: menulist;
	touch-action: manipulation;
}

