/**
Theme Name: Trycktema
Author: Evlos
Author URI: https://web.evlos.se
Description: Astra child theme by Evlos
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trycktema
Template: astra
*/

/* ------------------------------------ */
/* Works best in desktop mode (show on tablets) */
.tablet-warning-popup {
  position: absolute;
  top: 0;
  left: 0;

  height: 100vh;
  width: 100%;

  background: rgba(0, 0, 0, .1);
  z-index: 9999;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.tablet-warning-popup-content {
  margin: 0 auto;
  text-align: center;

  padding: 30px 50px;
  max-width: 500px;

  background-color: #fff;
  border-radius: 5px;

  z-index: 10000;

  -webkit-box-shadow: 0px 0px 23px -5px rgba(0,0,0,0.25);
  -moz-box-shadow: 0px 0px 23px -5px rgba(0,0,0,0.25);
  box-shadow: 0px 0px 23px -5px rgba(0,0,0,0.25);
}

.tablet-warning-close-button {
  display: block;
  margin: 0 auto;
  margin-top: 20px;
}

.tablet-warning-popup.hide {
  display: none;
}

@media only screen and (min-width: 1024px) {
  .tablet-warning-popup {
    display: none;
  }
}

/* ------------------------------------ */
/* Hide design button in cart */
.product-name > .nbd-cart-upload-file {
  display: none !important;
}


.ast-site-header-cart:focus .widget_shopping_cart, .ast-site-header-cart:hover .widget_shopping_cart, .woocommerce .ast-site-header-cart:focus .widget_shopping_cart, .woocommerce .ast-site-header-cart:hover .widget_shopping_cart {
  width: 1000px;
}

.main-header-menu .sub-menu {
  background-color: #f5f5f5;
}

.footer-adv-overlay {
  background-color: #5b6770;
}

.ast-below-header, .ast-below-header-menu .sub-menu {
  background-color: #5b6770;
}

/* Checkout full width cart */
.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals {
  width: 100%;
}

.ast-left-sidebar #secondary {
  width: 20%;
}

.wc-block-grid__product {
  padding: 15px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

.woocommerce ul.products li.product .price, .woocommerce-page ul.products li.product .price {
  display: none;
}

.woocommerce ul.products li.product.box-shadow-0.box-shadow-0-hover.align-left .button, .woocommerce ul.products li.product.box-shadow-0.box-shadow-0-hover.align-left .star-rating, .woocommerce-page ul.products li.product.box-shadow-0.box-shadow-0-hover.align-left .button, .woocommerce-page ul.products li.product.box-shadow-0.box-shadow-0-hover.align-left .star-rating {
  display: none;
}

.woocommerce ul.products li.product.box-shadow-0.box-shadow-0-hover, .woocommerce-page ul.products li.product.box-shadow-0.box-shadow-0-hover {
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

.woocommerce ul.products li.product.box-shadow-0.box-shadow-0-hover .astra-shop-summary-wrap, .woocommerce-page ul.products li.product.box-shadow-0.box-shadow-0-hover .astra-shop-summary-wrap {
  padding: 15px;
}

.ast-right-sidebar #secondary {
  display: none;
}

#primary {
  width: 100%;
}

.ast-right-sidebar #primary {
  padding: 0;
}

.ast-right-sidebar #primary {
  border: none;
}

.woocommerce form .payment_method_cheque p {
  margin-bottom: 10px;
}

/*.content-area {
  width: 100% !important;
}*/

/*#primary, #secondary {
  float: right;
}

.ast-right-sidebar #secondary {
  padding-left: 0;
  padding-right: 0;
  border-left: none;
}

.ast-right-sidebar #primary {
  border-right: none;
}

.woocommerce #content .ast-woocommerce-container div.product div.summary, .woocommerce .ast-woocommerce-container div.product div.summary, .woocommerce-page #content .ast-woocommerce-container div.product div.summary, .woocommerce-page .ast-woocommerce-container div.product div.summary {
  width: 100%;
}

.woocommerce #content .ast-woocommerce-container div.product div.images, .woocommerce .ast-woocommerce-container div.product div.images, .woocommerce-page #content .ast-woocommerce-container div.product div.images, .woocommerce-page .ast-woocommerce-container div.product div.images {
  width: 100%;
}*/

.wc-block-grid.has-4-columns:not(.alignwide):not(.alignfull) .wc-block-grid__product, .wc-block-grid.has-5-columns:not(.alignfull) .wc-block-grid__product, .wc-block-grid.has-6-columns:not(.alignfull) .wc-block-grid__product, .wc-block-grid.has-7-columns .wc-block-grid__product, .wc-block-grid.has-8-columns .wc-block-grid__product {
  margin: 10px;
}

.entry-content p {
  margin-bottom: 70px;
}

.woocommerce-page.woocommerce-checkout form #customer_details.col2-set, .woocommerce.woocommerce-checkout form #customer_details.col2-set {
  width: 100%;
}

#order_review_heading {
  width: 100%;
}

.woocommerce-page.woocommerce-checkout form #order_review, .woocommerce-page.woocommerce-checkout form #order_review_heading, .woocommerce.woocommerce-checkout form #order_review, .woocommerce.woocommerce-checkout form #order_review_heading {
  width: 100%;
}

.woocommerce-page.woocommerce-checkout form #order_review td, .woocommerce-page.woocommerce-checkout form #order_review th, .woocommerce.woocommerce-checkout form #order_review td, .woocommerce.woocommerce-checkout form #order_review th {
  width: 30% !important;
}

.woocommerce-page.woocommerce-checkout form #order_review td, .woocommerce-page.woocommerce-checkout form #order_review th, .woocommerce.woocommerce-checkout form #order_review td, .woocommerce.woocommerce-checkout form #order_review th {
  width: auto;
}

/* Header fix */
.ast-flex.ast-above-header-section-wrap {
  justify-content: space-between;
}

/* Större text på fälten "Skriv din text här" */
.gform_legacy_markup_wrapper .gform_body .preview-font-selected input:not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=button]):not([type=image]):not([type=file]) {
  height: 85px;
  font-size: 70px;
}
.hidden-text-special {
  visibility: hidden;
  width: auto;
  display: inline-block;
  position: fixed;
  overflow: auto;
  font-size: 70px;
}

/* Dölj "Stäng designfönstret krysset" */
#closeFrameDesign {
  display: none;
}

/*
  Beräkna Höjd & Bredd popup
*/
.popup-overlay {
  visibility: hidden;
  position: fixed;
  background-color: white;
  width: 90%; /* Use percentage instead of fixed width */
  max-width: 600px; /* Maximum width on larger screens */
  height: auto; /* Auto height instead of fixed */
  max-height: 80vh; /* Reduced maximum height to minimize scrolling */
  z-index: 999;
  border: 2px solid #FE5000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center using transform instead of calc */
  overflow-y: auto; /* Add scrolling for small screens */
}

.popup-overlay.active {
  visibility: visible;
}

.popup-content {
  visibility: hidden;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.popup-content.active {
  visibility: visible;
}

.popup-content .footer {
  margin-left: auto;
  margin-top: 20px; /* Add some space above footer */
}

/* Field container styles */
.fields-container.calculate-width-height {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.fields-container.calculate-width-height .custom-col {
  width: 50%;
  padding-right: 10px;
}

/* Field group styles */
.calculate-width-height .field-group p {
  margin-bottom: 10px;
  font-weight: bold;
}

.calculate-width-height .field-group .label {
  display: inline-block;
  width: 50px;
}

.calculate-width-height .field-group .unit {
  margin-left: 10px;
}

.calculate-width-height .field-group input {
  width: 100%; /* Make inputs responsive */
  max-width: 165px;
  box-sizing: border-box; /* Include padding and border in width calculation */
}

.calculate-width-height .field-group input:disabled {
  background-color: lightgray;
}

.calculate-width-height .field-group div {
  margin-bottom: 5px;
}

/* Media queries for mobile responsiveness */
@media screen and (max-width: 600px) {
  .popup-overlay {
    width: 95%; /* Wider on very small screens */
    padding: 10px;
    max-height: 80vh; /* Slightly smaller max height to reduce scrolling */
  }

  .popup-content {
    padding: 10px;
  }

  /* Keep two-column layout but adjust sizing */
  .fields-container.calculate-width-height {
    flex-direction: row; /* Keep row direction */
    align-items: flex-start; /* Align items to top */
  }

  .fields-container.calculate-width-height .custom-col {
    width: 50%; /* Keep two columns */
    padding-right: 5px;
  }

  /* Make form elements more compact */
  .calculate-width-height .field-group p {
    margin-bottom: 5px;
    font-size: 0.9em;
  }

  .calculate-width-height .field-group .label {
    width: 40px;
    font-size: 0.9em;
  }

  .calculate-width-height .field-group .unit {
    margin-left: 5px;
    font-size: 0.9em;
  }

  .calculate-width-height .field-group input {
    width: calc(100% - 50px); /* Account for smaller label width */
    height: 28px; /* Slightly smaller height */
  }

  .calculate-width-height .field-group div {
    margin-bottom: 3px; /* Tighter spacing */
  }

  .popup-content .footer {
    margin: 10px auto 0; /* Less margin above footer */
  }
}

/*
  Kundnummer i kassan
*/
.woocommerce form .payment_method_cod p {
  margin-bottom: 10px;
}
.woocommerce form .customer-number-container input[type=number] {
  width: 100%;
  max-width: none;
}
/*
  Ta bort pilarna på input-fältet
*/
/* Chrome, Safari, Edge, Opera */
.woocommerce form .customer-number-container input::-webkit-outer-spin-button,
.woocommerce form .customer-number-container input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Firefox */
.woocommerce form .customer-number-container input[type=number] {
  -moz-appearance: textfield;
}

/*
  Specialare för att dölja prdoduktbild
*/
body.hide-product-image .product .woocommerce-product-gallery {
  display: none;
}
body.hide-product-image .product .entry-summary {
  width: 100% !important;
}

/*
  Ersätt "delete" bilden till en egen
*/
.gform_fields .ginput_preview img.gform_delete {
  content: url("/wp-content/uploads/2024/09/delete_new.jpg");
}

/* Make each element display on its own line */
.wcgfpa_grand_total p.price {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    line-height: normal;
}

/* Hide the original "Totalt" text that's directly in the paragraph */
.wcgfpa_grand_total p.price > text:first-child {
    display: none;
}

/* Style for the price including tax */
.wcgfpa_grand_total .formattedTotalPrice.ginput_total {
    font-size: 1.2em;
    font-weight: bold;
}

/* Style for the price excluding tax */
.wcgfpa_grand_total .price-ex-tax {
    font-size: 0.95em;
    color: #666;
}

/* Style for the small text (inkl/exkl moms) */
.wcgfpa_grand_total .woocommerce-price-suffix,
.wcgfpa_grand_total .price-ex-tax small {
    font-size: 0.85em;
    font-weight: normal;
}
