/*
Theme Name:     1st Choice Metals
Theme URI:      https://www.1stchoicemetals.co.uk/
Description:    Child theme for Storefront theme
Author:         Devision
Author URI:     https://de.vision
Template:       storefront
Version:        0.2.9
*/

* {

  font-family: 'Lato', sans-serif;

  --primary-colour: #02a0c5;
  --secondary-colour: #015265;
  --text-color: #6d6d6d;
  --light-grey: #ebe9ec;
  --dark-grey: #4d4d4d;
  --black: #000000;
  --white: #ffffff;
  --green: #059c19;

}

html,
body {
  font-size: 14px;
}

a {
  color: var(--primary-colour);
}

a:focus,
button:focus,
.button.alt:focus,
input:focus,
textarea:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus {
  outline-color: var(--secondary-colour);
}

fieldset {
  padding: 0;
  margin: 0;
  background-color: transparent;
}

/* BEST BUY */
ul.products li .bv_tag {
    background: #059c19;
    border-radius: 20px;
    display: inline-block;
    padding: 4px 10px;
    margin-bottom: 10px;
    color: white;
}

@media screen and (min-width: 1024px) {
	ul.products li .bv_tag {
		position:relative;
		margin-bottom:0;
		margin-right:10px;
		top:-26px;
	}
}

/* moved from customised additional CSS */
.current-menu-item {
	background: #02a0c5;
}
ul.products li.product a {
	height: initial;
}
ul.products li.product .woocommerce-loop-product__title {
	min-height: 75px;
}

.woocommerce-cart .woocommerce-message .button {
		background-color: #33b945;
    color: #fff;
    margin-left: 0;
    padding-left: 0.5em;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    font-size: 1.1em;
    border: 2px solid #fff !important;
}

button.menu-toggle {
  background-color: transparent;
}

.site-header {
  padding-top: 1em;
  padding-bottom: 0;
  border-bottom: none;
  background-color: var(--primary-colour);
}

.handheld-navigation {
  padding-top: 1rem;
}

.handheld-navigation .menu-item:last-of-type:before,
#menu-top .menu-item:last-of-type:before,
.handheld-navigation .menu-item:nth-last-of-type(2):before,
#menu-top .menu-item:nth-last-of-type(2):before,
.site-header-cart .cart-contents:before,
.header-widget-region .widget a:after,
.delivery-information-links a:after {
  content: ' ';
  display: inline-block;
  width: 20px;
  height: 20px;
  background-size: 20px 20px;
  vertical-align: middle;
}

.widget_nav_menu ul li:before {
  content: '';
}

.widget_nav_menu ul#menu-sidebar li:after,
.header-widget-region .widget a:after {
  content: '\f138';
  margin-left: 1rem;
  font-family: 'Font Awesome 5 Free';
}

.widget_nav_menu ul#menu-sidebar li:after {
  float: right;
}

.handheld-navigation .menu-item:last-of-type a,
#menu-top .menu-item:last-of-type a,
.handheld-navigation .menu-item:nth-last-of-type(2) a,
#menu-top .menu-item:nth-last-of-type(2) a {
  display: inline-block;
  padding-left: 0.5rem;
}

.handheld-navigation .menu-item:last-of-type:before,
#menu-top .menu-item:last-of-type:before {
  background-image: url('./assets/images/envelope-solid.svg');
}

.handheld-navigation .menu-item:nth-last-of-type(2):before,
#menu-top .menu-item:nth-last-of-type(2):before {
  background-image: url('./assets/images/phone-alt-solid.svg');
}

.site-header .custom-logo-link img {
  max-width: 120px;
}

.hero-slider,
.hero-slider-mobile {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-slider {
  display: none;
  height: 10rem;
}

.hero-slider-mobile {
  display: block;
  height: 14rem;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  margin-top: 1rem;
  background-position: left center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-image .title {
  display: block;
  padding: 2rem;
  border-left: none;
  color: var(--white);
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  text-shadow: 0 0 1rem black;
}

.hero-icons {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: flex-start;
  margin: 2rem  auto 0;
  color: var(--white);
}

.hero-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 1rem;
  text-align: center;
}

.hero-icon img {
  margin: 1rem;
}

@media screen and (min-width: 768px) {

  .hero-slider {
    display: block;
  }

  .hero-slider-mobile {
    display: none;
  }

}

.home.blog .site-header,
.home.post-type-archive-product .site-header {
  margin-bottom: 1rem;
}

.home.page:not(.page-template-template-homepage) .site-header {
  margin-bottom: 0;
}

.storefront-breadcrumb {
  padding-top: 0.5rem;
  margin: 0;
}

.woocommerce-breadcrumb a:first-of-type::before {
  content: '';
  margin: 0;
}

.woocommerce-breadcrumb a {
  color: var(--primary-colour);
  font-weight: bold;
  text-decoration: none;
}

.woocommerce-breadcrumb .breadcrumb-separator::after {
  color: var(--primary-colour);
  font-weight: normal;
  opacity: 1;
}

.hentry .entry-header {
  border: none;
}

.header-widget-region .widget_text,
body:not(.woocommerce-account) .entry-content h2 {
  padding: 0.5rem;
  background-color: var(--primary-colour);
  color: var(--white);
}

body.home .entry-content h2 {
  padding: 0.5rem 0;
  background-color: transparent;
  color: var(--primary-colour);
  font-weight: bold;
}

.header-widget-region {
  margin-bottom: 1rem;
}

.header-widget-region .widget_text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.hentry .entry-taxonomy {
  border-top: none;
}

.header-widget-region .widget .widget-title,
.header-widget-region .widget .widgettitle {
  padding-bottom: 0;
  border-bottom: none;
  font-size: 1.5rem;
  font-weight: bold;
}

.header-widget-region .widget a {
  color: var(--white);
}

.header-widget-region .widget p {
  margin: 0;
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6,
.site-footer .widget .widget-title,
.site-footer .widget .widgettitle {
  border: none;
  color: var(--white);
  font-weight: bold;
}

.widget .widget-title,
.widget .widgettitle {
  margin-bottom: 0;
}

.wc-block-grid__products {
  margin: 0;
}

.wc-block-grid__product {
  border: none;
}

.wc-block-components-price-slider__range-input-progress, 
.rtl .wc-block-components-price-slider__range-input-progress {
    --range-color: #02a0c5 !important;
}

ul.products,
.wc-block-grid__products {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  margin-bottom: 1rem;
}

.tax-product_cat .wc-block-grid__products {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.tax-product_cat .site-main ul.products.columns-5 li.type-product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  align-self: center;
  width: 100%;
  max-width: 100%;
  margin: 1rem 0;
}

.tax-product_cat ul.products li.type-product .woocommerce-LoopProduct-link {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-width: 80%;
}

.tax-product_cat ul.products li.type-product img {
  max-height: 80px;
  max-width: 80px;
  margin: 0 2rem 0 0;
}

.tax-product_cat ul.products li.type-product .woocommerce-loop-product__title,
.tax-product_cat ul.products li.type-product .price {
  margin: 0;
}

@media screen and (min-width: 1024px) {

  .tax-product_cat .site-main ul.products.columns-5 li.type-product,
  .tax-product_cat ul.products li.type-product .woocommerce-LoopProduct-link {
    flex-direction: row;
  }

  .site-main ul.products.columns-5 li.product {
    margin: 1rem;
  }

  .tax-product_cat ul.products li.type-product .price {
    margin-left: auto;
  }

}

ul.products li.type-product,
ul.products .wc-block-grid__product,
.wc-block-grid__products li.type-product,
.wc-block-grid__products .wc-block-grid__product {
  padding: 1rem;
  box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.2);
}

ul.products li.product a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
ul.products li.product a.button {
  height: inherit;
}

@media screen and (max-width: 768px) {

	.buttonsGreen .button {
		width: 100% !important;
		margin-top: 5px;
	}
	
  ul.products,
  .wc-block-grid__products {
    text-align: center;
  }

  ul.products li.product,
  ul.products .wc-block-grid__product,
  .wc-block-grid__products li.product,
  .wc-block-grid__products .wc-block-grid__product {
    max-width: calc(50% - 2rem);
    display: inline-block;
    padding: 1rem;
    margin: 1rem 0.5rem;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.2);
    vertical-align: top;
  }

}

.wc-block-grid__product-title {
  color: var(--text-color);
}

.wc-block-grid__product-title:after {
  content: 'View';
  display: block;
  background-color: var(--primary-colour);
  color: var(--white);
  padding: 0.3rem;
  margin: 1rem;
}

#secondary .widget_nav_menu li {
  padding: 1rem;
  border-top: solid 1px var(--light-grey);
  margin: 0;
  background-color: var(--primary-colour);
  color: var(--white);
  cursor: pointer;
}

#secondary .widget_nav_menu li a {
  color: var(--white);
  font-size: 1rem;
  text-decoration: none;
}

.site-footer {
  padding: 1rem 0;
  margin-bottom: 2rem;
  background-color: var(--dark-grey);
  color: var(--white);
}

.social-icons {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.social-icons img {
  width: 48px;
  height: 48px;
  margin: 1rem;
}

.site-footer a,
.site-footer a:not(.button):not(.components-button) {
  color: var(--white);
  text-decoration: none;
}

.widget_nav_menu ul li {
  padding-left: 0;
  margin-bottom: 0.5rem;
}

.storefront-handheld-footer-bar > ul {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}

.storefront-handheld-footer-bar .search {
  display: none;
}

.form-row label {
  margin-bottom: 1rem;
}

.required {
  color: var(--dark-grey);
}

abbr[title].required {
  border: none;
  text-decoration: none;
}

.woocommerce-MyAccount-navigation {
  display: none;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-noreviews,
p.no-comments {
  background-color: var(--green);
}

.edit-link {
  display: none;
}

.page .site-main,
.page .hentry {
  margin-bottom: 0;
}

.page-template-template-fullwidth-php .cart-collaterals .cart_totals table.shop_table.shop_table_responsive,
.woocommerce-account form,
.woocommerce-cart form,
.woocommerce-orders-table,
div#customer_details {
  padding: 2rem;
  border: solid 1px var(--light-grey);
  margin-top: 2rem;
}

.woocommerce-edit-account .entry-content h2,
.woocommerce-edit-address .entry-content h2,
.woocommerce-orders .entry-content h2 {
  display: none;
}

th.woocommerce-orders-table__header.woocommerce-orders-table__header-order-actions {
  display: none;
}

td.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions {
  text-align: center;
}

.my_account_orders .button {
  padding: 0.5rem 3rem;
  background-color: var(--light-grey);
  color: var(--black);
}

.my_account_orders .button.view::after {
  content: none;
}

table:not( .has-background ) th {
  padding: 0.5rem;
  background-color: transparent;
}

.sheet_input-error-empty td,
.input-error-empty td,
.sheet_input-error-length td,
.warning-message td {
    padding: 10px !important;
    background-color: #ff9800;
    color: white;
    text-align: center;
    font-weight: bold;
    display: none;
}

.warning-message td {
    background-color: red;
}

.exceed {
    color: #fff;
    background-color: #ff0000;
    padding: 3px 6px;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 9997; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.5); /* Black with opacity */
    padding-top: 5%;
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Adjust based on your preference */
    margin: 0 auto;
    position: relative;
    max-width: 500px;
}

.selected-size-txt {
    position: absolute;
    font-size: 40px;
    left: 50%;
    text-align: center;
    color: #bfbfbf;
}

.inner-center {
    position: relative;
    left: -50%;
}

.modal .selected-size-txt {
    top: 30%;
    z-index: 9998;
}

.modal .cut {
    z-index: 9999;
}

.wrap_sheet_visualization {
    max-height: 250px;
    overflow: auto;
    background-color: #f0f8ff;
}

#modalVisualizationContent {
    position: relative;
    width: 100%;
    /* Set padding-top based on the aspect ratio of the sheet */
    padding-top: 50%; /* Example for a 1:1 aspect ratio, adjust as needed */
    border: 1px solid black;
    background-color: #f0f8ff;
}

#modalVisualizationContent .sheet {
    position: static;
    width: 100%;
    height: 100%;
}

#modalVisualizationContent .cut {
    border: 1px solid black;
    position: absolute;
}

.entry-content .cart_item a {
  color: var(--text-color);
  text-decoration: none;
}

.woocommerce-cart .amount {
  color: var(--primary-colour);
}

.page-template-template-fullwidth-php .cart-collaterals .cart_totals h2 {
  margin-bottom: 0;
  background-color: transparent;
  color: var(--black);
  text-transform: capitalize;
}

.cart_item .amount,
.cart_totals .amount {
  font-weight: bold;
}

a.checkout-button.button.alt.wc-forward {
  text-transform: capitalize;
}

.wc-forward::after,
.woocommerce-Button--next::after {
  content: '';
}

.tax-product_cat .woocommerce-products-header__title {
  display: none;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
  color: var(--white);
}

.woocommerce-price-suffix {
  color: var(--green);
}

.woocommerce-price-suffix span.woocommerce-Price-amount.amount {
  color: var(--text-color);
}

button.alt,
input[type="button"].alt,
input[type="reset"].alt,
input[type="submit"].alt,
.button.alt,
.widget-area .widget a.button.alt {
  background-color: var(--primary-colour);
  border-color: var(--primary-colour);
  color: var(--white);
}

input[type='text'],
input[type='number'],
input[type='email'],
input[type='tel'],
input[type='url'],
input[type='password'],
input[type='search'],
select,
textarea,
.input-text {
  padding: 0.3rem;
  background-color: var(--white);
  border: solid 1px var(--dark-grey);
  border-radius: 4px;
}
.length_field, .quantity_field {
    min-width: 30px;
}

.jumbotron {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 4rem 2rem;
  background-color: var(--light-grey);
}

.home .jumbotron {
  position: absolute;
  left: 0;
}

.jumbotron-icons {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: flex-end;
  margin: 0 12%;
}

.jumbotron-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  text-align: center;
}

.jumbotron-icon img {
  margin-bottom: 1rem;
}

.jumbotron-icon h4 {
  color: var(--primary-colour);
  font-weight: bold;
  text-transform: uppercase;
}

.jumbotron-footer hr {
  max-width: 40px;
  margin: 1rem auto 2rem auto;
  background-color: var(--primary-colour);
}

.jumbotron-footer p {
  font-style: italic;
  text-align: center;
}

.jumbotron + * {
  margin-top: 2rem;
}

.home .jumbotron + * {
  margin-top: 84rem;
}

.delivery-information-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.delivery-information-links a {
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: var(--light-grey);
  color: var(--black);
  font-weight: bold;
  text-transform: uppercase;
}

.delivery-information-links a:after {
  content: '\f054';
  margin-left: 1rem;
  font-family: "Font Awesome 5 Free";
  vertical-align: initial;
}

.single-product div.product .summary {
  border: solid 1px var(--light-grey);
  padding: 2rem;
}

.product-service-boxes,
.product-accessory-boxes {
  flex-direction: column;
  justify-content: space-evenly;
  width: 100%;
}

.product-service-boxes {
  display: flex;
  align-items: center;
  border-bottom: solid 1px var(--secondary-colour);
  margin-bottom: 1rem;
}

.product-accessory-boxes {
  display: none;
  align-items: stretch;
  order: 1;
  border-bottom: none;
  margin: 2rem 0 0 0;
}

.product-service-box,
.wc-pao-addons-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  margin: 0 auto;
}

.product-service-box-alt {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  margin: 0 auto;
}

.product-service-box {
  background-color: var(--secondary-colour);
}

.product-service-box + .product-service-box {
  margin-top: 2rem;
}

.product-service-box img {
  margin: 1rem auto !important;
}

.product-service-box p {
  text-align: center;
  font-style: italic;
	border:var(--secondary-colour) 2px solid;
	padding:4px;
	margin-bottom:0;
}

.product-service-box > a {
  padding: 1rem;
  background-color: var(--secondary-colour);
  color: var(--white);
  text-align: center;
  text-decoration: none !important;
}

.single_variation_wrap:before {
  content: 'We accept all types of credit and debit cards.';
  height: 8rem;
  margin: 0 1rem 2rem 1rem;
  background-image: url('assets/images/payment.png');
  background-position: center bottom;
  background-repeat: no-repeat;
  font-style: italic;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .single_variation_wrap:before {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    margin: 0 0 -10rem 0;
  }
}

.woocommerce-product-gallery.woocommerce-product-gallery--with-images {
  display: flex;
  flex-direction: column;
}

@media screen and (min-width: 1024px) {

  .single_variation_wrap:before {
    height: 7rem;
    width: 50%;
    margin: 0 0 -7rem 0;
  }

  .product-accessory-boxes {
    flex-direction: row;
    align-items: stretch;
    order: 1;
    border-bottom: none;
    margin: 2rem;
  }

  .product-service-box + .product-service-box {
    margin-top: 0;
  }

}

.single_variation_wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  padding: 1rem 1rem 0;
}

.single_variation_wrap span.woocommerce-Price-amount.amount {
  font-size: 2rem;
  font-weight: bold;
}

.single_variation_wrap .price > span.woocommerce-Price-amount.amount:first-of-type {
  color: var(--primary-colour);
  font-size: 2rem;
}

.woocommerce-variation.single_variation {
  margin-top: 10rem;
}

.site-main ul.products.columns-5 li.product {
  margin: 1rem 1rem;
  float: none;
}

.single-product div.product p.price {margin:0.8em 0;}
.single-product div.product form.cart {padding:0.5em 0;}

@media (min-width: 768px) {
  .woocommerce-variation.single_variation {
    margin-top: 0   ;
  }

  .single_variation_wrap {
    margin-bottom: 8rem;
  }

  .site-header {
    padding-top: 2em;
    background-color: transparent;
  }

  .header-widget-region {
    margin-bottom: 0;
  }

  .header-widget-region .widget_text {
    flex-direction: row;
    align-items: center;
  }

  .site-header .custom-logo-link img {
    max-width: 230px;
  }

  .hero-slider {
    top: -6rem;
    height: 30rem;
  }

  .hero-image {
    flex-direction: row;
    justify-content: flex-start;
    position: relative;
    top: -6rem;
    height: 30rem;
    margin-top: 0;
    margin-bottom: -5rem;
  }

  .hero-slider .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    float: left;
    width: 100%;
    height: 100%;
  }

  .hero-image .title {
    padding: 0 2rem;
    border-right: 2rem solid var(--primary-colour);
    border-left: 5rem solid var(--primary-colour); /*was 20*/
    font-size: 3rem;
    text-align: left;
  }

  .col-full {
    max-width: 1400px;
  }

  .storefront-secondary-navigation.woocommerce-active .site-header .site-branding,
  .storefront-secondary-navigation.woocommerce-active .site-header .secondary-navigation {
    position: relative;
    z-index: 1;
    margin: 0;
  }

  .storefront-secondary-navigation.woocommerce-active .site-header .secondary-navigation,
  .woocommerce-active .site-header .site-header-cart {
    width: auto;
  }

  .main-navigation ul li a:hover,
  .main-navigation ul li:hover > a,
  #menu-top .site-title a:hover, .site-header ul.menu li.current-menu-item > a {
    color: var(--dark-grey);
  }

  .woocommerce-active .site-header .site-header-cart {
    padding: 0 4px;
    margin-top: 2px;
    background-color: var(--primary-colour);
    color: var(--white);
  }

  .site-header-cart .cart-contents:before {
    background-image: url('./assets/images/shopping-cart-solid.svg');
    margin-right: 0.5rem;
  }

  .site-header-cart .cart-contents {
    display: flex;
    padding: 0.3rem;
  }

  .site-header-cart a.cart-contents,
  .site-header-cart a.cart-contents:hover,
  .site-header-cart:hover > li > a {
    color: var(--white);
  }

  .site-header-cart .cart-contents .count {
    margin-left: 0.5rem;
    font-size: 1em;
    opacity: 1;
  }

  .site-header-cart .cart-contents:after {
    content: '';
  }

  .site-header-cart .widget_shopping_cart {
    width: 200%;
  }

  .added_to_cart, .site-header-cart .widget_shopping_cart a.button,
  .site-header-cart .widget_shopping_cart a.button:hover {
    background-color: var(--light-grey);
    color: var(--text-color);
  }

  .widget a.button.checkout,
  .widget a.button.checkout:hover {
    background-color: var(--primary-colour);
    color: var(--white);
  }

  #order_review_heading {
    margin-top: 4rem;
  }

  .storefront-primary-navigation {
    position: relative;
    top: -6em;
    padding: 4px 0;
    background-color: var(--primary-colour);
  }

  .site-header ul.menu li.current-menu-item > a.cart-contents,
  .primary-navigation ul.menu li.current-menu-item > a {
    color: var(--white)
  }

  .woocommerce-active .site-header .main-navigation {
    width: 100%;
    text-align: right;
  }

  .main-navigation ul.menu, .main-navigation ul.nav-menu {
    padding: 0.5rem 0;
  }

  .woocommerce-active .site-header .main-navigation ul li {
    padding: 0 1rem;
    border-right: solid 1px var(--dark-grey);
  }

  .woocommerce-active .site-header .main-navigation ul li:last-of-type {
    border-right: none;
  }

  .main-navigation ul.menu > li > a,
  .main-navigation ul.nav-menu > li > a {
    padding: 0;
    color: var(--white);
    font-weight: bold;
  }

  .hentry .entry-header .posted-on a {
    color: var(--primary-colour);
    text-decoration: none;
    font-weight: normal;
  }

  h1,
  .wc-block-grid__product-title {
    color: var(--primary-colour);
    font-size: 2rem;
    font-weight: bold;
  }

  .site-footer {
    margin-bottom: 0;
  }

  .footer-widgets {
    padding-top: 1rem;
    border-bottom: none;
  }

  .footer-widgets.col-4 .block {
    width: calc(25% - 1rem);
    margin-right: 1rem;
  }

  .left-sidebar .widget-area {
    width: 18%;
    margin-right: 0;
  }

  .left-sidebar .content-area {
    width: 100%;
  }

  .woocommerce-account.left-sidebar .content-area,
  .home.left-sidebar .content-area {
    width: 82%;
    padding: 2rem;
  }

  .home .jumbotron + * {
    margin-top: 68rem;
  }

  .jumbotron-icons {
    flex-direction: row;
  }

  .site-main ul.products.columns-5 li.product {
    margin: 1rem 0.5rem;
  }

  /* Templates */

  .wc-block-grid.has-5-columns .wc-block-grid__product {
    max-width: calc(20% - 1rem);
    margin: 0 1rem 2rem 0;
  }

  .wc-block-grid__product {
    padding: 1rem;
    border: solid 1px var(--light-grey);
    margin: 1rem;
  }

  .wc-block-grid__product-link:hover .wc-block-grid__product-title:after {
    background-color: var(--secondary-colour);
  }

  .single .content-area {
    width: 100%;
    margin: 0;
  }

  .woocommerce-price-suffix span.woocommerce-Price-amount.amount:before {
    content: '\A';
    white-space: pre;
  }

  .left-sidebar:not(.page-template-template-fullwidth-php) .woocommerce-MyAccount-content {
    width: 100%;
    margin: 0;
    float: none;
  }

  .single-product div.product .woocommerce-tabs {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;;
  }

  .woocommerce-tabs ul.tabs,
  li#tab-title-additional_information {
    display: none;
  }

  .woocommerce-tabs .panel:not(#tab-additional_information) {
    display: block !important;
    width: calc(50% - 3rem);
  }

}

@media screen and (min-width: 1200px) {

  .hero-image .title {
    max-width: 60%;
	border-left:20rem solid var(--primary-colour);
  }


  .home .jumbotron + * {
    margin-top: 64rem;
  }

  .site-main ul.products.columns-5 li.product {
    margin: 1rem 1.5rem;
  }

  .home .site-main ul.products.columns-5 li.product {
    margin: 1rem 1rem;
  }

}

@media screen and (min-width: 1400px) {

  .hero-image .title {
    max-width: 52%;
  }

}

@media screen and (max-width: 320px) {

  .storefront-handheld-footer-bar {
    max-height: 50px;
  }

  .storefront-handheld-footer-bar ul li > a::before {
    line-height: 3.5rem;
  }

}

.home .woocommerce.columns-5:first-of-type {
  display: block;
}

.home .woocommerce.columns-5 {
  display: none;
}

.tax-product_cat .ivpa-content {
  display: none;
}

@media screen and (max-width: 500px) {

  .site-header .custom-logo-link {
    display: block;
    position: absolute;
    z-index: 1;
  }

  .handheld-navigation .menu-item:nth-last-of-type(2):before {
    /*background-image: url('/wp-content/themes/1stchoicemetals/assets/images/envelope-wte-solid.svg');*/
  }

  .handheld-navigation .menu-item:last-of-type:before {
    /*background-image: url('/wp-content/themes/1stchoicemetals/assets/images/envelope-wte-solid.svg');*/
  }

}

@media screen and (min-width: 768px) and (max-width: 1120px) {
  nav.secondary-navigation {
    max-width: 52%;
    margin-bottom: 8rem !important;
    text-align: right;
  }
}

/* Cutting tool */

.woocommerce-variation-add-to-cart-enabled {
  margin-bottom: 8rem;
}

.cutting-selection ul {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  padding: 0;
  margin: 0;
  width: 100%;
  list-style: none;
}

@media only screen and (max-width:425px) {
	.sheet_tool .sheet_items .sheet_item table td, 
	.sheet_tool .sheet_items .sheet_item table th,
	.tool .items .item table td, 
	.tool .items .item table th{
		padding:1em 0.5em;
	}
	#sheet_cuttool tfoot a,
	#cuttool tfoot a {
		height:inherit !important;
		padding-top:8px !important;
	}
	#cuttool tfoot .summary-cut p, 
	#cuttool tfoot .summary-cut p:last-child {
		width:100% !important;
		margin-bottom:8px !important;
	}
	#sheet_cuttool .sheet_foot-totals button,
	#cuttool .foot-totals button{
    	width: 100% !important;
	}
    .cutting-selection ul {
    	flex-direction: column;
    }
}

.cutting-selection ul li {
  padding: 1rem;
  margin: 1rem;
  background-color: var(--green);
  color: var(--white);
  cursor: pointer;
	text-align:center;
}

li.no-cut.active {
	background-color:#C52702;
}

.cutting-selection ul li:not(.active),
.cutting-additional-info {
  display: none;
}

.cutting-selection ul li a {
  color: var(--white);
}

.wc-pao-addons-container,
.wc-pao-addons-container .wc-pao-addon:not(:first-of-type) {
  display: none;
}

.more-cutting {
  cursor: pointer;
}

#ivpa-content span.selected-dropdown {
  display: inline-block;
  padding: 1rem;
  margin: 1rem 0;
  background-color: var(--primary-colour);
  color: var(--white);
}

#ivpa-content[data-selected] span.selected-dropdown:after {
  content: 'Change';
  margin-left: 1rem;
  text-decoration: underline;
  cursor: pointer;
}

.storefront-sorting {
  position: relative;
}

.product-list-title {
  display: none;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 0;
  padding: 1rem;
  background-color: #02a0c5;
  color: #ffffff;
  font-size: 1.2rem;
  width: 100%;
  margin: 10rem 0;
}

@media screen and (min-width: 1024px) {

  .storefront-sorting {
    margin-bottom: 5rem;
  }

  .product-list-title {
    display: flex;
    margin: 4rem 0;
  }

  .product-list-title-price {
    margin-right: 300px;
  }

}

@media screen and (max-width: 767px) {
    .sheet_section {
        display: none;
    }
    
    #content > .col-full {
        display: flex;
        flex-direction: column-reverse;
    }
	.site-header .custom-logo-link {
		display:block;
		position:absolute;
	}

	.handheld-navigation .menu-item:nth-last-of-type(2):before {
		/*background-image: url(/wp-content/themes/1stchoicemetals/assets/images/envelope-wte-solid.svg);*/
	}

	.handheld-navigation .menu-item:last-of-type:before {
		/*background-image: url(/wp-content/themes/1stchoicemetals/assets/images/envelope-wte-solid.svg);*/
	}
	
	.wrap_sheet_visualization {
        max-height: 150px;
    }
    
    .selected-size-txt {
        font-size: 22px;
    }
}

@media (min-width: 768px) {
	.secondary-navigation .menu a {
	padding: 1em 0.7em;
	}
	.site-header-cart.focus .widget_shopping_cart,
	.site-header-cart:hover .widget_shopping_cart {
		left:-140px;
	}
}

.handheld-navigation {
	padding-top:0;
}

ul#menu-top-1.menu {
	padding-top:3rem
}

.hero-slider .hero-image {
	background-position: left;
}

/**/
h2.woocommerce-loop-product__title {font-size:1.4rem!important;}
span.price {font-size:1.4rem;}

@media only screen and (max-width:767px) {
	h1, .wc-block-grid__product-title {
		color: var(--primary-colour);
    	font-size: 2rem;
    	font-weight: bold;
	}
}

@media only screen and (max-width:425px) {
	.product-template-default .hero-image .title{
		font-size:1.5rem;
	}
	.hero-icons {
		margin:0 auto;
	}
	.hero-icon {
		margin:0 1rem 0.5rem;
	}
	.product-template-default .hero-icon span {
		font-size:12px;
	}
	.single-product div.product .summary {
		padding:1rem;
	}
	.woocommerce-variation.single_variation {
		margin-top:1rem;
	}
	.tax-product_cat ul.products li.type-product img {
		margin:0 auto;
	}

}

@media only screen and (max-width:1024px) {
	.header-widget-region div {display: none !important;}
}
@media only screen and (max-width:960px) {
	#menu-sidebar li {padding: 0.8em !important;}
	.columns-5 {margin: auto !important;}
	.columns-5 .product-category {margin: 0.5em !important; padding: 0.5em !important;}
}




#sheet_visualization {
    position: relative;
    border: 1px solid black; /* Represent the sheet */
}
#sheet_visualization .sheet {
    width: 100%;
    height: 100%;
}

#sheet_visualization .cut {
    position: absolute;
    border: 1px solid black; /* Represent each cut */
    background-color: lightgray;
}


.no-cuttool-btn {
    width: 50%;
    min-height: 43px;
}

.cuttool-btn {
    width: 49%;
    text-align: center;
}

.no-cuttool-btn,
.cuttool-btn,
.buy-cuttool-tbn {
    background:#059c19;
}

.no-cuttool-btn:hover,
.cuttool-btn:hover,
.buy-cuttool-tbn:hover {
    background:#078718;
}

.cuttool-btn.disabled {
    cursor: not-allowed !important;
}

.cut-warning-message {
    background-color: red;
    padding: 10px;
    text-align: center;
    color: #fff;
    font-size: 20px;
}

.error-highlight {
    background-color: #ffcccc; /* Light red background */
    border: 1px solid red; /* Red border */
}

.cut .info {
    color: black;
    margin-left: 5px;
}

.cuttool-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cuttool-btn.disabled:hover {
    color: inherit; /* Prevents color change on hover */
}


#sheet_cuttool, #cuttool {margin-top:40px;}

#sheet_cuttool #sheet_roffcut.error, #cuttool #roffcut.error {position:relative;}
#sheet_cuttool #sheet_roffcut.error::after, #cuttool #roffcut.error::after {position:relative; content:'The cut sizes must not exceed the size of the product'; background:red; color:white; position:absolute; font-size:12px; top:25px; left:-170px; width:160px; padding:2px 5px; border-radius:5px; text-align:center;}

#sheet_cuttool .obsInt, #cuttool .obsInt {position:relative;background:#333; color:white; font-style:normal; border-radius:100px; display:inline-block; width:22px; height:22px; text-align:center; color:white; margin-right:3px;}
#sheet_cuttool .obsInt span, #cuttool .obsInt span {position:absolute; bottom:26px; left:-130px; width:270px; font-size:12px; display:none; background:black; color:white; padding:3px 5px; border-radius:3px;}
#sheet_cuttool .obsInt.top span, #cuttool .obsInt.top span {left:-200px;}
#sheet_cuttool .obsInt:hover span, #cuttool .obsInt:hover span {display:block;}

#sheet_cuttool .sheet_tool, #cuttool .tool {display:none}
/*#cuttool .head-enable {display:none}*/
#sheet_cuttool .sheet_head-enable label input, #cuttool .head-enable label input {display:none;}
#sheet_cuttool .sheet_head-enable label span, #cuttool .head-enable label span {cursor:pointer; background:#059c19; color:white; text-transform: uppercase; display:inline-block; padding:10px 20px;}
#sheet_cuttool .sheet_head-enable label input:checked + span, #cuttool .head-enable label input:checked + span {background:#059c19;}
#sheet_cuttool .sheet_head-enable label input + span .txt-remove, #cuttool .head-enable label input + span .txt-remove {display:none;}
#sheet_cuttool .sheet_head-enable label input:checked + span .txt-remove, #cuttool .head-enable label input:checked + span .txt-remove {display:inline-block;}
#sheet_cuttool .sheet_head-enable label input + span .txt-add, #cuttool .head-enable label input + span .txt-add {display:inline-block;}
#sheet_cuttool .sheet_head-enable label input:checked + span .txt-add, #cuttool .head-enable label input:checked + span .txt-add {display:none;}

#sheet_cuttool h4, #cuttool h4 {background:#02a0c5; color:white; font-size:14px; text-transform: uppercase; padding:10px; margin-top: 15px;}
#sheet_cuttool h4.sheet_original-length, #cuttool h4.original-length {margin-bottom:1px;}
#sheet_cuttool tfoot .sheet_summary-cut h5, #cuttool tfoot .summary-cut h5 {padding:10px 0 0 10px;}
#sheet_cuttool h4.sheet_remaining-offcut-top, #cuttool h4.remaining-offcut-top {margin-top:0; background:#0087a7; margin-left:-10px; margin-right:-10px;}
#sheet_cuttool input[type='number'], #cuttool input[type='number'] {width:80%;}
#sheet_cuttool table tbody tr:nth-child(odd) td, #cuttool table tbody tr:nth-child(odd) td {background:#f1f1f1}
#sheet_cuttool tfoot a, #cuttool tfoot a {
  text-transform: uppercase;
  float:right;
  width:100%;
	height:67px;
	text-align:center;
	padding-top:22px;
}
#sheet_cuttool tfoot td, #cuttool tfoot td {padding:5px 0px;}
#sheet_cuttool tfoot .sheet_summary-cut, #cuttool tfoot .summary-cut {
	background:#f9f9f9;
	padding:0 0 10px 0;
}
#sheet_cuttool tfoot .sheet_summary-cut p h5, #cuttool tfoot .summary-cut p h5 {
font-weight:bold; padding:0px 2%;
font-size:14px;}
#sheet_cuttool tfoot .sheet_summary-cut p, #cuttool tfoot .summary-cut p {
	display:inline-block;
	width:45%;
	/*width:30%;*/
	margin:0px 1%;
	vertical-align:top;
}
#sheet_cuttool tfoot .sheet_summary-cut p:last-child, #cuttool tfoot .summary-cut p:last-child {
	width:45%;
	/*width:32%;*/
}
#sheet_cuttool tfoot .sheet_summary-cut p.sheet_remaining-offcut, #cuttool tfoot .summary-cut p.remaining-offcut {color:white; font-size:14px; padding:10px; margin-top:10px; background:#0087a7; margin-left:0; margin-right:0; width:100%; font-weight:600;}
#sheet_cuttool tbody tr:first-child a.sheet_remove, #cuttool tbody tr:first-child a.remove {display:none;}

#sheet_cuttool .sheet_foot-totals, #cuttool .foot-totals {
  text-align: right;
}
#sheet_cuttool .sheet_foot-totals button, #cuttool .foot-totals button {
	width:50%;
}
#sheet_cuttool .sheet_foot-totals p, #cuttool .foot-totals p {
  margin-bottom: 5px;
}
#sheet_cuttool .sheet_foot-totals p label, #cuttool .foot-totals p label {
margin-left:15px;
	font-weight:bold;
}


.invalid-input {
    border-color: red !important;
}

.single_variation_wrap .added_to_cart.wc-forward {display:none!important;}


.buttonsGreen .button {
	width:48.5%;
	background:#059c19;
	margin-right:1%;
	text-align:center;
}
.buttonsGreen .button b {
	display:none;
}

.cut-cart-box {
  background:#f1f1f1;
  padding:10px;
}

.cut-cart-box h4 {
  font-size:14px;
  font-weight: bold;
  text-transform: uppercase;
}

.cut-cart-box ul {
  font-size:12px;
  padding:5px 5px 5px 20px;
  margin:0px;
  margin-bottom: 10px;
  border-bottom:1px solid #ddd;
}




.listArchive .listItems.filters {
  width:calc(100% - 285px);
  display:inline-block;
  margin-right:30px;
}
.listArchive .sidebar {
  width:250px;
  display:inline-block;
  vertical-align: top;
}
@media (max-width:576px){
    .listArchive .listItems {
        width:100%!important;
        display:inline-block;
    }
    .listArchive .listItems li {
        width:100%!important;
        display:inline-block;
    }
    .listArchive .sidebar {
        width:100%;
        display:inline-block;
        vertical-align: top;
        margin-top:20px;
    }
    .cuttool-btn,
    .no-cuttool-btn {
        width: 100%;
        margin-top: 10px;
    }
}


/* Hide Stripe list-item */
li.payment_method_stripe {
    display: none;
}


/*
.archive .products li {  
  width:31%!important;
  margin:1%!important;
  position:relative;
  padding-bottom: 50px!important;
}

@media (max-width:576px){
  
.archive .products li {  width:100%!important; max-width:100%!important; margin-bottom: 40px;}
}

@media screen and (min-width: 1024px){
.tax-product_cat .site-main ul.products.columns-5 li.type-product, .tax-product_cat ul.products li.type-product .woocommerce-LoopProduct-link {
    flex-direction: column!important;
}

.archive .products li a {
  display:inline-block!important;
  width:100%!important;
}

.archive .products li a img{
  max-width:70%!important;
  max-height: 200px!important;
  margin:auto!important;
}

ul.products li.product.last, ul.products .wc-block-grid__product.last, .wc-block-grid__products li.product.last, .wc-block-grid__products .wc-block-grid__product.last {
  margin-right: 1%!important;
}

.archive ul.products li a.button {
  position:absolute;
  bottom:-2px;
  left:0;
  width: 100%;
}

.variations .value {position:relative;}

.archive ul.products li .bv_tag {
  background:#059c19;
  border-radius: 20px;
  display:inline-block;
  padding:4px 10px;
  margin-bottom: 10px;
  color:white;
}

@media (max-width:576px){
  .archive .products li {  
    width:98%!important;
    max-width: 100%!important;
    margin:1%!important;
    position:relative;
    padding-bottom: 50px!important;
  } 
  
}

*/
.widget_shopping_cart .widget_shopping_cart_content {display: none}
.storefront-handheld-footer-bar ul li.cart .count {display:none;}

#guide_modal_bg {
	z-index: 9998;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: black;
	opacity: 0.7;
	display: none;
}
#guide_modal {
	overflow-x: hidden;
	overflow-y: auto;
	z-index: 9999;
	position: fixed;
	top: 80px;
	left: 50%;
	transform: translate(-50%, 0%);
	width: 80%;
	height: 80%;
	border-radius: 2px;
	padding: 20px;
	background-color: white;
	display: none;
}

.woocommerce-button.invoice, .order-actions-button.wc_pip_view_invoice {
    display: none !important;
}