/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/
/* Apply styles only for screens 1366px and wider */
@media (min-width: 1366px) {
    .container, .container-fluid {
        width: 90%;
    }
}
.home .wd-content-layout {
    padding-block: 0 !important;
}
.widgettitle, .widget-title {
    color: #ffffff;
}

.wd-copyrights {
    background: #181818;
}

.custom-checkout-message {
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #e1e1e1;
    margin-bottom: 20px;
    font-size: 16px;
    list-style-type: none;
}
.custom-checkout-message ul {
    margin: 0;
    padding: 0;
}
.custom-checkout-message li {
    margin: 5px 0;
    list-style: none;
}


/* Ensure clean layout for remaining fields */
.woocommerce-checkout #billing .form-row {
    width: 100%; /* Full width for all fields */
    margin-bottom: 10px; /* Add space between fields */
}

.woocommerce-checkout #billing label {
    font-size: 14px; /* Smaller label text */
    margin-bottom: 5px;
}

.woocommerce-checkout #billing input[type="text"],
.woocommerce-checkout #billing input[type="tel"],
.woocommerce-checkout #billing input[type="email"],
.woocommerce-checkout #billing select,
.woocommerce-checkout #billing textarea {
    width: 100%; /* Full width for inputs */
    padding: 10px;
    font-size: 14px; /* Adjust font size */
    border-radius: 5px;
    border: 1px solid #ddd; /* Subtle border */
    margin-bottom: 10px;
}

/* Remove unnecessary padding or margin between the fields */
.woocommerce-checkout #billing .form-row-first,
.woocommerce-checkout #billing .form-row-last {
    width: 100%;
}

p:where(.form-/* Ensure clean layout for remaining fields */
.woocommerce-checkout #billing .form-row {
    width: 100%; /* Full width for all fields */
    margin-bottom: 10px; /* Add space between fields */
}

.woocommerce-checkout #billing label {
    font-size: 14px; /* Smaller label text */
    margin-bottom: 5px;
}

.woocommerce-checkout #billing input[type="text"],
.woocommerce-checkout #billing input[type="tel"],
.woocommerce-checkout #billing input[type="email"],
.woocommerce-checkout #billing select,
.woocommerce-checkout #billing textarea {
    width: 100%; /* Full width for inputs */
    padding: 10px;
    font-size: 14px; /* Adjust font size */
    border-radius: 5px;
    border: 1px solid #ddd; /* Subtle border */
    margin-bottom: 10px;
}

/* Remove unnecessary padding or margin between the fields */
.woocommerce-checkout #billing .form-row-first,
.woocommerce-checkout #billing .form-row-last {
    width: 100%;
}
row-first,.form-row-last) {
    overflow: visible;
    width: 100%;
}

/* Style for the "Thana" and "Detail Address" fields */
.woocommerce-checkout #billing .form-row {
    width: 100%; /* Full width for all fields */
    margin-bottom: 10px; /* Space between fields */
}

.woocommerce-checkout #billing label {
    font-size: 14px; /* Smaller font size for labels */
    margin-bottom: 5px; /* Space between label and input */
}

.woocommerce-checkout #billing input[type="text"],
.woocommerce-checkout #billing input[type="tel"],
.woocommerce-checkout #billing input[type="email"],
.woocommerce-checkout #billing select,
.woocommerce-checkout #billing textarea {
    width: 100%; /* Full width for inputs */
    padding: 10px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ddd; /* Subtle border */
    margin-bottom: 10px;
}

/* Styling for the "Thana" and "Detail Address" */
.woocommerce-checkout #billing #billing_city_field,
.woocommerce-checkout #billing #billing_address_1_field {
    width: 100%;
    margin-bottom: 10px;
}

/* Ensure labels are styled consistently */
.woocommerce-checkout #billing label {
    font-size: 14px; /* Smaller text for labels */
    font-weight: normal;
    display: block; /* Block display for the label */
}

/* Hide the "Ship to a different address?" section */
#ship-to-different-address {
    display: none !important;
}
p:where(.form-row-first,.form-row-last) {
    overflow: visible;
    width: 100%;
}
/* Red box only around option area (right side) */
.variations td.value.bl-error-box {
  border: 2px solid #e00000;
  border-radius: 10px;
  padding: 10px 12px !important;
}

/* keep label side clean */
.variations td.label {
  vertical-align: top;
}

/* Inline message */
.bl-error-text {
  margin-top: 8px;
  font-size: 13px;
  color: #e00000;
}

/* Summary message */
.bl-variation-error {
  margin-bottom: 15px;
  padding: 12px 14px;
  border: 1px solid #e00000;
  background: #fff4f4;
  border-radius: 8px;
  font-size: 14px;
}
/*button*/
/* =========================================================
   BASE: Smaller square button style (Size & Color)
========================================================= */
.variations_form .variations td.value .wd-swatch, .variations_form .variations td.value .swatch, .variations_form .variations td.value .variable-item {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 0;
    margin: 0px 0px 0 0;
    border: 1px solid #bfbfbf !important;
    border-radius: 6px !important;
    background: #ffffff;
    cursor: pointer;
    line-height: 1;
    font-weight: 600;
    font-size: 13px;
    box-shadow: none !important;
}
/* =========================================================
   SIZE TEXT STYLE
========================================================= */
.variations_form .variations td.value .wd-swatch-text,
.variations_form .variations td.value .swatch-text {
  font-weight: 600;
  font-size: 12px;
}

/* =========================================================
   COLOR SWATCHES – FORCE SQUARE SHAPE (SMALL)
========================================================= */
.variations_form .variations td.value .wd-swatch-color,
.variations_form .variations td.value .swatch-color {
  width: 100% !important;
  height: 100% !important;
  border-radius: 4px !important;
  border: none !important;
}

/* Color wrapper padding */
.variations_form .variations td.value .wd-swatch.wd-swatch-color,
.variations_form .variations td.value .swatch.wd-swatch-color {
  padding: 3px !important;
  overflow: hidden;
}

/* =========================================================
   HOVER EFFECT
========================================================= */
.variations_form .variations td.value .wd-swatch:hover,
.variations_form .variations td.value .swatch:hover,
.variations_form .variations td.value .variable-item:hover {
  border-color: #111 !important;
}

/* =========================================================
   SELECTED STATE – CLEAN BORDER
========================================================= */
.variations_form .variations td.value .wd-swatch.wd-active,
.variations_form .variations td.value .wd-swatch.selected,
.variations_form .variations td.value .swatch.selected,
.variations_form .variations td.value .variable-item.selected {
  border: 2px solid #111 !important;
}

/* =========================================================
   REMOVE DEFAULT WOODMART CHECK ICONS
========================================================= */
.variations_form .variations td.value .wd-swatch .wd-swatch-check,
.variations_form .variations td.value .swatch .swatch-check,
.variations_form .variations td.value .variable-item .variable-item-span::before,
.variations_form .variations td.value .variable-item .variable-item-span::after {
  display: none !important;
}

/* =========================================================
   GREEN TICK (✓) – SMALLER, BOTTOM RIGHT
========================================================= */
.variations_form .variations td.value .wd-swatch.wd-active::after,
.variations_form .variations td.value .wd-swatch.selected::after,
.variations_form .variations td.value .swatch.selected::after,
.variations_form .variations td.value .variable-item.selected::after {
  content: "✓";
  position: absolute;
  right: 4px;
  bottom: 4px;

  width: 14px;              /* ↓ smaller tick */
  height: 14px;
  border-radius: 3px;

  background: #2fb34a;
  color: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  z-index: 3;
}

/* =========================================================
   CLEAR BUTTON ALIGNMENT
========================================================= */
.variations_form .reset_variations {
  margin-top: 6px;
  font-size: 12px;
}

/*sazzad*/
/* ==========================================
   COD Payment Card — perfect alignment
   Works with your exact markup:
   li > input + label + .payment_box
   ========================================== */

.woocommerce-checkout #payment,
.woocommerce-checkout #payment ul.payment_methods{
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* CARD */
.woocommerce-checkout #payment li.wc_payment_method.payment_method_cod {
    border: 2px solid #111827 !important;
    border-radius: 16px !important;
    background: #fff !important;
    padding: 15px 15px !important;
    margin: 0 0 14px !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08) !important;
    display: grid !important;
    grid-template-columns: 22px 60px 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 14px !important;
    row-gap: 8px !important;
    align-items: start !important;
}

/* Remove any theme pseudo blocks */
.woocommerce-checkout #payment li.payment_method_cod > label::before,
.woocommerce-checkout #payment li.payment_method_cod > label::after{
  content: none !important;
  display: none !important;
}

/* RADIO (placed in grid col 1) */
.woocommerce-checkout #payment li.payment_method_cod > input#payment_method_cod{
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 2px 0 0 0 !important;
  transform: scale(1.15);
}
/* Center the radio button vertically with icon + title */
.woocommerce-checkout #payment li.payment_method_cod > input#payment_method_cod{
  align-self: center !important;   /* THIS is the key */
  margin-top: 0 !important;        /* remove top offset */
}

/* LABEL (icon + title + badge) in grid cols 2-4 */
.woocommerce-checkout #payment li.payment_method_cod > label {
    grid-column: 2 / 5;
    grid-row: 1 / 2;
    display: grid !important;
    grid-template-columns: 40px 1fr auto;
    align-items: center !important;
    column-gap: 7px !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    font-weight: 800 !important;
    color: #111827 !important;
}

/* ICON BOX */
.woocommerce-checkout #payment li.payment_method_cod .ue-pay-icon {
    width: 40px !important;
    height: 30px !important;
    border-radius: 8px !important;
    background: #fde68a !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #111827 !important;
}
.woocommerce-checkout #payment li.payment_method_cod .ue-pay-icon svg{
  width: 24px !important;
  height: 24px !important;
}

/* TITLE */
.woocommerce-checkout #payment li.payment_method_cod .ue-pay-title{
  font-size: 15px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  margin: 0 !important;
}

/* BADGE */
.woocommerce-checkout #payment li.payment_method_cod .ue-pay-badge{
  font-size: 12px !important;
  font-weight: 800 !important;
  padding: 8px 16px !important;
  border-radius: 999px !important;
  background: #eef2ff !important;
  border: 1px solid #c7d2fe !important;
  color: #2563eb !important;
  white-space: nowrap !important;
}

/* DESCRIPTION (payment_box) aligned under title */
.woocommerce-checkout #payment li.payment_method_cod .payment_box{
  grid-column: 2 / 5;
  grid-row: 2 / 3;

  background: transparent !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce-checkout #payment li.payment_method_cod .payment_box::before{
  display: none !important;
}

/* The actual text line — create the subtle “input-like” area */
.woocommerce-checkout #payment li.payment_method_cod .payment_box p {
    margin: 0 !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    border: 1px solid #eef2f7 !important;
    color: #6b7280 !important;
    font-size: 15px !important;
    /* margin-left: 74px !important; */
}

/* Hover polish */
.woocommerce-checkout #payment li.payment_method_cod:hover{
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12) !important;
}

/* Mobile stacking */
@media (max-width: 480px){
  .woocommerce-checkout #payment li.wc_payment_method.payment_method_cod{
    grid-template-columns: 22px 56px 1fr;
    grid-template-rows: auto auto auto;
  }
  .woocommerce-checkout #payment li.payment_method_cod > label{
    grid-column: 2 / 4;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
  }
  .woocommerce-checkout #payment li.payment_method_cod .ue-pay-badge{
    grid-column: 2 / 3;
    justify-self: start;
    margin-top: 6px;
  }
  .woocommerce-checkout #payment li.payment_method_cod .payment_box p{
    margin-left: 0 !important;
  }
}
@media (max-width: 767px){
    .d-none {
        display: none;
    }
}
@media (min-width: 768px) {
    .d-md-block {
        display: block !important;
    }
}
/* ---------- Delivery Notice (exact screenshot look) ---------- */
.ue-delivery-notice-row td{
  padding-top: 14px !important;
  padding-bottom: 10px !important;
  border: 0 !important;
}

.ue-delivery-notice{
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eafaf1;         /* light green like screenshot */
  color: #0f766e;              /* teal green text */
  padding: 12px 14px;
  border-radius: 0;            /* screenshot looks flat */
  font-size: 14px;
  font-weight: 600;
}

.ue-delivery-icon{
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f766e;
  flex: 0 0 auto;
}

.ue-delivery-icon svg{
  width: 18px;
  height: 18px;
}

/* ---------- Coupon row (exact screenshot look) ---------- */
.ue-coupon-row td{
  padding-top: 10px !important;
  padding-bottom: 6px !important;
  border: 0 !important;
}

/* Hide WooCommerce "Have a coupon?" message inside the moved form */
.ue-coupon-wrap .woocommerce-info{
  display: none !important;
}

/* Remove default coupon form container styling */
.ue-coupon-wrap form.checkout_coupon{
  display: flex !important;
  align-items: stretch !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

/* Input field */
.ue-coupon-wrap form.checkout_coupon input[name="coupon_code"]{
  flex: 1;
  height: 46px;
  border: 1px solid #e5e7eb !important;
  border-right: 0 !important;
  border-radius: 0 !important;
  padding: 0 14px !important;
  font-size: 14px;
  color: #111827;
  background: #fff;
}

/* Apply button */
.ue-coupon-wrap form.checkout_coupon button[name="apply_coupon"]{
  height: 46px;
  padding: 0 22px !important;
  border-radius: 0 !important;
  background: #2f2f2f !important;  /* dark grey like screenshot */
  color: #fff !important;
  font-weight: 700;
  border: 1px solid #2f2f2f !important;
  cursor: pointer;
}

/* Mobile: stack if needed */
@media (max-width: 480px){
  .ue-coupon-wrap form.checkout_coupon{
    flex-direction: column;
  }
  .ue-coupon-wrap form.checkout_coupon input[name="coupon_code"]{
    border-right: 1px solid #e5e7eb !important;
  }
}
.woocommerce-variation-add-to-cart>* {
    flex: initial !important;
}
.buy-now-button {
    border-radius: var(--btn-accented-brd-radius);
    color: var(--btn-accented-color);
    box-shadow: var(--btn-accented-box-shadow);
    background-color: var(--btn-accented-bgcolor);
    text-transform: var(--btn-accented-transform, var(--btn-transform, uppercase));
    font-weight: var(--btn-accented-font-weight, var(--btn-font-weight, 600));
    font-family: var(--btn-accented-font-family, var(--btn-font-family, inherit));
    font-style: var(--btn-accented-font-style, var(--btn-font-style, unset));
}
.buy-now-button:hover {
    color: var(--btn-accented-color-hover);
    box-shadow: var(--btn-accented-box-shadow-hover);
    background-color: var(--btn-accented-bgcolor-hover);
}

/* Floating chat icons like screenshot */
.bl-floating-chat{
  position: fixed;
  right: 18px;
  top: 52%;
  transform: translateY(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bl-float-btn{
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  border: 4px solid #fff; /* white ring like screenshot */
  text-decoration: none;
}

.bl-float-btn svg {
    width: 28px;
    height: 28px;
    display: block;
}

/* Messenger gradient circle */
.bl-messenger{
  background: radial-gradient(circle at 30% 30%, #ff4fd8 0%, #7a3cff 40%, #0084ff 100%);
}

/* WhatsApp green circle */
.bl-whatsapp{
  background: #25D366;
}

/* Slight overlap feel (like screenshot) */
.bl-whatsapp{
  margin-top: -6px;
}

/* Mobile size (better fit) */
@media (max-width: 767px){
  .bl-float-btn{ width: 45px; height: 45px; }
  .bl-float-btn svg{ width: 30px; height: 30px; }
  .bl-floating-chat{ right: 14px; }
}
