/**
Theme Name: Fengshui Tools
Author: Bruce Laird
Author URI: https://tools.fengshui.net/
Description: Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.4.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fengshui-tools
Template: astra


/* Make  Gtranlate plugin visible and style */

/* Reset Astra menu inheritance */
/* Nuclear reset for GTranslate */
/* Container for proper absolute positioning */
/* Container styling */
.gtranslate-menu-item {
    display: flex !important;
    align-items: center !important;
}

/* Reset GTranslate styles */
.gtranslate-menu-item .gtranslate_wrapper {
    all: initial !important;
    position: relative !important;
    display: inline-block !important;
}

/* Language options container */
.gtranslate-menu-item .gt_container {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    padding: 10px !important;
    min-width: 180px !important;
    z-index: 999999 !important;
    display: none !important;
}

/* Current language display */
.gtranslate-menu-item .gt_current {
    cursor: pointer !important;
    padding: 0 15px !important;
    display: flex !important;
    align-items: center !important;
}

/* Language options */
.gtranslate-menu-item .gt_option a {
    display: flex !important;
    align-items: center !important;
    padding: 8px 12px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px !important;
}

.gtranslate-menu-item .gt_option a:hover {
    background: #f5f5f5 !important;
}

.gtranslate-menu-item .gt_option img {
    width: 20px !important;
    height: 20px !important;
    margin-right: 8px !important;
}

/* Mobile styles */
@media (max-width: 768px) {
    .gtranslate-menu-item .gt_container {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

/* menu position absolute */

.gt_switcher .gt_option {
    position: absolute !important;
}

/* override userprivate files plugin css */
.upfp_content_wrapper{
  position: relative;
  min-height: 900px;
  border-top: 1px solid #ccc;
}

.edit_doc_upf_popup .doc_view{
  text-align: center;
  height: 1100px;
  overflow: auto;
}

.edit_doc_upf_popup #maincalc {
    text-align: inherit;
}

.helpIcon {
	display: none;
}
.hide-email-row {
	display: none;
}
button#downloadImage, button#downloadjpgImage, button#btn-generate, button#btn-generate-jpg, button#calculate-centroid, button#reset-canvas, button#applySyygAccess {
    padding: 15px;
    color: #ffffff;
    display: block;
	width: 100%;
    max-width: 320px;
    margin: 0 auto 10px;
}

button#calculate-centroid, button#reset-canvas, button#applySyygAccess {
	width: auto;
}
button#reset-canvas {
	background-color: #ededed;
	color: #444;
}
button#btn-generate {
	display: inline-block;
}
.small-text {
	font-size: 11px;
}
.upfp_content_wrapper {
    min-height: 1200px;
}

.calcnavigation {
	justify-content: space-between;
	margin-bottom: 20px;
}
.upfp_row .upf_doc_inner .doc_view img.helpIcon {
    display: none;
}
.upfp_banner a#upfp_share_fldr_btn {
	display: none !important;
}
/* BaZi Calc */
.button-action {
	text-align: center;
	margin-top: 20px !important;
}

.canvasdiv {
    display: inline-block;        /* key */
    border: 1px solid #edebd9;
    text-align: left;
}

/* Canvas should define size, not parent */
.canvasdiv canvas {
    display: block;               /* removes inline gap */
}

/* Space on extreme right so close icon is never clipped */
.fsml-calc-grid {
    padding-right: 60px;
    box-sizing: border-box;
}

/* FSML Calc – FLEX (FINAL) */

.fsml-calc-grid {
    display: flex;
    align-items: flex-start;
}

/* Canvas wrapper */
.fsml-calc-grid > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    overflow: hidden;
}

/* Sidebar wrapper */
.fsml-calc-grid > div:last-child {
    flex: 0 0 auto;
    max-width: 220px;   /* already defined in HTML, safe to reinforce */
    width: 100%;
    margin-left: 30px;  /* SAFE spacing */
    position: relative;
}

/* Existing FSML spacing */
.fsml-calc-grid .row {
    margin: 0 0 15px 0;
}

.fsml-calc-grid select,
.fsml-calc-grid input {
    margin: 0 5px 0 0;
}

.fsml-calc-grid .calctype {
    display: flex;
}

/* Tablet & Mobile */
@media screen and (max-width: 1200px) {
    .fsml-calc-grid {
        flex-direction: column;
    }

    .fsml-calc-grid > div:last-child {
        margin-left: 0;
        margin-top: 30px;
        max-width: 100%;
    }
}

.switch {
  background-color: #fff;
  display: block;
  position: relative;
	width: 100%;
}
.switch label {
  padding: 12px 24px 12px 56px;
  width: 100%;
  display: block;
  text-align: left;
  color: #444;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color 200ms ease-in;
  overflow: hidden;
  background-color: #ebe9eb;
}
.switch label:before {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  content: "";
  background-color: #444;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale3d(1, 1, 1);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  z-index: -1;
}
.switch label:after {
  width: 32px;
  height: 32px;
  content: "";
  border: 2px solid #D1D7DC;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.414 11L4 12.414l5.414 5.414L20.828 6.414 19.414 5l-10 10z' fill='%23fff' fill-rule='nonzero'/%3E%3C/svg%3E ");
  background-repeat: no-repeat;
  background-position: 2px 3px;
  border-radius: 50%;
  z-index: 2;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  transition: all 200ms ease-in;
}
.switch input:checked ~ label {
  color: #fff;
}
.switch input:checked ~ label:before {
  transform: translate(-50%, -50%) scale3d(56, 56, 1);
  opacity: 1;
}
.switch input:checked ~ label:after {
  background-color: #D9270D;
  border-color: #D9270D;
}
.switch input {
  width: 32px;
  height: 32px;
  order: 1;
  z-index: 2;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  visibility: hidden;
}

select, .select2-container .select2-selection--single {
    padding-right: 2em !important;
    background-position-y: center;
}

/* */
.lostpassword-submit {
    margin: 10px 16px 16px;
}

/*Woocommerce*/

p.sumosubs_first_renewal_date, p.sumosubs_plan_message {
    font-size: 16px;
	margin: 0;
}

@media (min-width: 922px) {
    .woocommerce.woocommerce-checkout form #customer_details.col2-set, .woocommerce-page.woocommerce-checkout form #customer_details.col2-set {
        width: 100%;
        float: none;
        margin-right: 0;
    }
}


@media (min-width: 922px) {
    .woocommerce.woocommerce-checkout form #order_review, .woocommerce.woocommerce-checkout form #order_review_heading, .woocommerce-page.woocommerce-checkout form #order_review, .woocommerce-page.woocommerce-checkout form #order_review_heading {
        width: 100%;
        float: none;
        margin-right: 0;
        clear: right;
    }
}

.woocommerce-privacy-policy-text p {
    font-size: 12px;
}

.woocommerce-billing-fields > h3{
	display: none;
}

// Simple Testimonials

/* Remove spacing around rating field container */
.rm-field-rating.rm-field-wrapper {
  margin: 0 !important;
  padding: 0 !important;
}

/* Tighten radio button ratings */
.rm-rating-stars {
  display: inline-flex;
  gap: 2px; /* Adjust star spacing */
  margin: 0 !important;
  padding: 0 !important;
}

.rm-rating-stars input[type="radio"] {
  margin: 0 !important;
  position: absolute;
  opacity: 0;
}

.rm-rating-stars label {
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer;
  font-size: 20px;
  color: #ccc;
}

.rm-rating-stars label:before {
  content: "★";
  display: inline-block;
}

.rm-rating-stars input:checked ~ label,
.rm-rating-stars label:hover,
.rm-rating-stars label:hover ~ label {
  color: #ffc107 !important;
}

.fs-rating {
    color: #fbc326;
}

/* Fix dropdown rating spacing */
.rm-field-rating select {
  margin: 0 !important;
  max-width: 80px;
}

.simple-testimonials {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background: #f9f9f9;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 5px;
    position: relative;
}

.testimonial:before {
    content: '"';
    font-size: 60px;
    color: #e0e0e0;
    position: absolute;
    top: 10px;
    left: 15px;
    font-family: Georgia, serif;
}

.testimonial-rating {
    color: #FFD700;
    font-size: 20px;
    margin-bottom: 10px;
    margin-left: 30px;
}

.testimonial-content {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    padding-left: 30px;
}

.testimonial-author {
    font-weight: 600;
    text-align: right;
    color: #555;
    font-style: italic;
}