/*
 Theme Name:   Hakafood
 Template:     aate
 Text Domain:  hakafood
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500&display=swap');
@import url("https://use.typekit.net/osj7toj.css");


.maintenance h3 {
    margin-top: 1em;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
 font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

main {
    background: #e4e5dd;
    background-image: url('https://projektit.aate.fi/tilaustarjoilut/wp-content/uploads/tausta.png');
    z-index: 9999;
    position: relative;
}

.navbar-expand-lg {
    justify-content: space-between;
}

.main-menu-side {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}


#popup-window {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}
#popup-window .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.woocommerce ul.products li.product .popup-content h3 {
    font-size: 1.3em;
    margin-bottom: .5em;
}

.woocommerce ul.products {
    justify-content: center;
}

small.woocommerce-price-suffix {
    font-size: .7em;
}

/* Tuotelistan ulkoasu */

.add-to-cart.disabled, .add-to-cart-product.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nappirivi {
    display: flex;
    gap: 10px;
    margin-bottom: 1em;
    justify-content: center;
        flex-wrap: wrap;
  }

.nappirivi a {
    border-radius: 0;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
    background: #e5e4df;
    border: 2px solid #81623a;
    outline: none;
    box-shadow: none;
    color: #81623a;
    padding: 5px 20px;
    font-family: museo-slab, serif;
    font-weight: 500;
    font-size: 1.1em;
    width: 100%;
    text-align: center;
}

  .nappirivi a.active, .nappirivi a:hover, .nappirivi a:focus {
    background-color: #81623a;
    color: #fff !important;
    text-decoration: none !important;
  }

  .valilehti {
    display: none;
    margin-top: 5em;
  }

  .valilehti.active {
    display: block;
  }
  
  
  
.product-row {
    display: flex;
    margin-bottom: 20px;
}
.product-row {
    background: #e5e4df !important;
    border: 1px solid #c3bfbc;
}


.product-image {
    width: 100%;
    margin-right: 25px;
}

.product-info {
    width: 100%;
        padding: 0 20px 20px 20px;
}

.product-variations {
    margin-top: 10px;
}

.product-variations select {
    padding: 5px;
    font-size: 14px;
}

h3.woocommerce-loop-product__title {
    color: #81633B;
    font-size: 1.3em !important;
    margin-top: .6em !important;
}

.woocommerce ul.products li.product .price {
    font-size: 1em !important;
    margin-bottom: 2.3em;
    margin-top: .4em;
}


.open-description {
    position: absolute;
        bottom: 10px;
        right: 10px;
        background: rgba(255,255,255,0.9);
        border: none;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        transition: all 0.2s ease;
}

.product-popup {
     display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(3px);
        z-index: 9999;
        align-items: center;
        justify-content: center;
}

.popup-content {
    background: #fff;
    border-radius: 12px;
    padding: 20px 30px;
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: fadeIn 0.25s ease-out;
    max-height: calc(100vh - 170px);
    top: 40px;
    overflow: auto;
}

.close-popup {
     position: absolute;
                top: 10px;
                right: 10px;
                background: none;
                border: none;
                font-size: 22px;
                cursor: pointer;
}

@keyframes fadeIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

ul.products {
  display: flex;
  flex-wrap: wrap;
}

ul.products li.product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.product-row {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Kuva-asettelu */
.product-image {
  position: relative;
  background-size: cover;
  background-position: center;
  width: 100%;
  padding-top: 70%; /* kuvasuhde */
  border-bottom: 1px solid #eee;
}

/* Tuotetiedot */
.product-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 20px;
}

/* Otsikko ja hinta pysyvät aina ylhäällä */
.product-info h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.product-info .price {
  margin-bottom: 1rem;
  display: block;
}

/* Tämä pysyy aina alhaalla */
.bottom-info {
  margin-top: auto; /* työntää divin alas */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
      width: 100%;
}

/* Keskitetään tekstit ja napit */
.bottom-info label,
.bottom-info select,
.bottom-info input,
.bottom-info button {
  width: 100%;
}



.tekstisisalto .row {
    max-width: 960px;
}

.tekstisisalto h2 {
    font-size: 1.5em;
    margin-top: 1.3em;
}


/***********************
*       TYPOGRAFIA     *
***********************/

h1, h2, h3, h4, h5 {
font-family: museo-slab, serif;
    font-weight: 700;
}

h1 {
    text-align: center;
    font-size: 2em;
}

h2.center {
    font-size: 2.2em;
    margin-bottom: .5em;
}


a, a:visited, summary {
    color: #81633B;
}

/***********************
*       HEADER         *
***********************/


header .container {
    height: 100%;
    width: 100%;
    clear: both;
    position: relative;
}

header .row {
    position: absolute;
    top: calc(50% + 50px);
    transform: translateY(-50%);
    width: 100%;
}

header p.nosto {
    text-align: left;
}

/***********************
*        RAKENNE       *
***********************/

.col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto, .col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto {
    padding-right: 25px;
    padding-left: 25px;
}

.container, .container-fluid {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    max-width: 100%;
}

.row, .container {
    max-width: 1200px;
    margin: 0 auto;
}

.container-fluid.wide .row {
    max-width: 100%;
}
.text {
    padding-top: 50px;
    padding-bottom: 50px;
    order: 2;
}

.background {
    padding-left: 0;
    padding-right: 0;
    height: 300px;
    order: 1;
}

.kuva {
    order: 1;
}

.teksti {
    margin-top: 30px;
    order: 2;
}

.background-image {
    background-size: cover;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.laatikko {
    height: 100%;
    margin-bottom: 30px;
    overflow: hidden;
}

.laatikkokuva {
    height: 200px;
    width: 100%;
    background-position: center;
    background-size: cover;
}

.laatikkoteksti {
    padding: 20px;
}

.alamargin {
    margin-bottom: 20px;
}

.logot img {
    margin: 0 auto;
    width: 100%;
    max-width: 250px;
}


a:focus {
    color: #0082ff !important;
    text-decoration: underline !important;
}

a.button:focus, nav a:focus {
    text-decoration: none !important;
}

img {
    width: 100%;
}
/*********************
*   KUVAGALLERIA     *
*********************/

.wrapper.galleria {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.kuvagalleriakuva {
    height: 300px;
    background-size: cover;
    background-position: center;
    transition: .3s all;
    cursor: pointer;
    margin-bottom: 15px;
}

.kuvagalleriakuva:last-child{
    margin-bottom: 0;
}

.kuvagalleriakuva:hover {
    opacity: .7;
}

.light-box {
    position: fixed;
    height: 100%;
    width: 100%;
    background: rgba(255,255,255,0.7);
    z-index: 999;
    top: 0;
    left: 0;
    cursor: pointer;
}

.light-box img {
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    cursor: pointer;
    width: auto;
}
 
.light-box p {
    max-width: 80%;
    max-height: 80%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    cursor: pointer;
}
 
 .light-box img:hover {
    cursor: pointer;
}

/*********************
*  yleiset luokat  *
*********************/

.nosto p, p.nosto {
    font-size: 1.1em;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
}

.no-paddings {
    padding-top: 0;
    padding-bottom: 0;
}

.padding-bottom-0 {
    padding-bottom: 0;
}

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

.padding-top-puolikas {
    padding-top: 40px;
}
.center img {
    margin-left: auto;
    margin-right: auto;
}

.kapea {
    max-width: 900px;
}

/*********************
*    ARTIKKELIT      *
*********************/

.artikkeli {
    margin-bottom: 30px;
}

.artikkelikirjoitus {
    height: 100%;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transition: 0.5s;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    display: flex;
    flex-direction: column;
}

.artikkelikuva {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: all .5s;
}

.artikkeliteksti {
    padding: 30px 25px 25px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.artikkeliteksti h3 {
    margin-bottom: .2em;
}

p.julkaistu {
    font-size: .8em;
    text-align: left;
    margin-top: 0;
}

p.teksti {
    margin-bottom: 1.2rem;
}

p.alin {
    display: flex;
    margin-top: auto;
    border: 0;
    outline: 0;
    background: transparent;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 0;
}

.single h1 {
    margin-bottom: 0;
}

/*********************
*    YHTEYSTIEDOT    *
*********************/

.henkilo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 50px;
    justify-content: center;
}

.henkilokuva, .henkilotekstit p, .henkilotekstit h2, .henkilotekstit h3 {
    width: 100%;
    text-align: center;
}

.henkilokuva img {
    width: 100%;
    border-radius: 50%;
    max-width: 200px;
    margin: 0 auto;
}


/* VALITSE NAYTOS */

.show-products-dropdown input, .show-products-dropdown select {
    background: #fff;
    padding: 10px !important;
    border: 0 solid transparent;
    border-radius: 0;
    width: 100% !important;
}

.show-products-dropdown div:first-child,
.show-products-dropdown div:nth-child(2) {
    width: 100%;
    padding-right: 0;
}

.show-products-dropdown input {
    padding: 8px 10px !important;
}

.show-products-dropdown div:nth-child(3) {
    width: 100%;
}

.show-products-dropdown button {
    width: 100%;
    padding: 7px !important;
}

.showtime h2 {
    margin-bottom: 1em;
}

.showtime .row {
    max-width: 1000px;
}

/*********************
*  HAKAFOOD  *
*********************/

.text h2, .text p {
    max-width: 700px;
}

.page-header {
    max-height: 500px;
}

.home .header-image, .page-header {
    max-height: 400px;
}

.header-image {
    height: 70vh;
}

.ylapalkki {
    background-color: #252a2d;
        z-index: 99999;
}

a.nav-link, a.cart-customlocation {
    font-weight: 600;
    font-family: museo-slab, serif;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #fff !important;
}

a.nav-link:hover, a.cart-customlocation:hover {
    color: #81623a !important;
}

.button, .button:visited, a.button, a.button:visited, a.button.wc-backward {
    background-color: #81633B;
    border: 2px solid #81633B;
    padding: 2px 17px;
    color: #fff;
    display: inline-block;
    font-size: .9em;
     font-family: museo-slab, serif;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
    width: auto;
    text-decoration: none;
    text-align: center;
    text-indent: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    transition: all .2s ease-in-out;
    border-radius: 50px;
}

a.button.wc-backward {
    padding: 10px 25px;
}

.button:hover, .button:visited:hover, a.button:hover, a.button:visited:hover, a.button.wc-backward:hover, a.button.wc-backward:focus  {
    text-decoration: none;
    background-color: #252a2d;
    color: #fff;
    border-color: #252a2d;
}

a.button.wc-backward:focus {
    color: #fff !important;
}

footer {
    background-color: #14161a;
}

footer a, footer a:visited, footer a:hover, footer a:focus, footer a:visited:hover, footer a:visited:focus {
    color: #fff;
}

p.copyright {
    margin-top: 3em;
    font-size: .8em;
    color: #929292;
}

footer .container {
    padding-top: 60px;
    padding-bottom: 30px;
}

footer p.copyright a {
    color: #929292 !important;
}

footer .wp-block-image img {
    max-width: 110px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

footer .row {
    max-width: 900px;
}



.woocommerce form .form-row label {
    margin-bottom: 0 !important;
    margin-top: 7px !important;
}

#add_payment_method #payment div.payment_box, .woocommerce-cart #payment div.payment_box, .woocommerce-checkout #payment div.payment_box {
    background: #fff !important;
}

#add_payment_method #payment div.payment_box::before, .woocommerce-cart #payment div.payment_box::before, .woocommerce-checkout #payment div.payment_box::before {
    border: 1em solid #ffffff !important;
        border-right-color: transparent !important;
    border-left-color: transparent !important;
    border-top-color: transparent !important;
}

.woocommerce ul.order_details li {
    margin-bottom: 20px !important;
    width: 100% !important;
    border-right: 0 !important;
}

/* Valitse naytos */

.show-products-dropdown {
    margin-top: 2em;
}


/* Tilaus vahvistettu */

.woocommerce ul.order_details {
    padding-inline-start: 0 !important;
}

.woocommerce-order-received main h2 {
    font-size: 1.5em;
    margin-top: 2.5em !important;
}

/* Kauppanakyma */

.tuotelista .row {
    max-width: 1100px;
}

ul.products li.product {
        padding: 0 15px !important;
}

.product-image {
    width: 100%;
    margin-right: 0;
}

.product-image {
    height: 160px;
    background-size: cover;
    background-position: center;
}

.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
    border-bottom: none;
   /* border-top: 1px solid #707070 !important;*/
    margin: 0 0 !important;
    margin-bottom: 30px !important;
}

.product-row {
    margin-bottom: 0 !important;
        flex-wrap: wrap;
}
/*.woocommerce ul.products li.first, .woocommerce-page ul.products li.first {
    border-top: 2px solid #c5c3bc !important;
}*/



ul.products .quantity input, ul.products .product-variations select {
    background: #fbfaf7;
    padding: 5px 7px;
    border: 0 solid transparent;
    border-radius: 0;
    font-size: .9em;
}

button.add-to-cart, button.add-to-cart-product {
    background: #81623a;
    border: 2px solid #81623a;
    outline: none;
    box-shadow: none;
    color: #fff;
    padding: 2px 10px;
    font-family: museo-slab, serif;
    font-weight: 500;
    margin-top: 1em;
    float: right;
    margin-top: 0;
    margin-left: 0;
    width: 100%;
    margin-top: 10px;
}

.added-to-cart-message {
    color: white;
    background-color: green;
    padding: 5px 7px;
    margin-top: 0;
    text-align: center;
    font-size: 16px;
    border-radius: 0;
    margin-right: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 1em;
        width: 100%;
    margin-right: 0;
    margin-top: 8px;
    margin-bottom: 0;
        font-family: museo-slab, serif;
    font-weight: 500;
}

.added-to-cart-message:hover, .added-to-cart-message:focus {
    text-decoration: none !important;
    background-color: #252a2d;
}

a.lisatty:hover, a.lisatty:focus {
    text-decoration: none !important;
}

.buttons-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: right;
}

button.add-to-cart:hover, button.add-to-cart-product:hover {
    background: #363636;
    border: 2px solid #363636;
    color: #fff;
}

ul.products li:nth-child(odd) {
    background: #e4e3de;
}

ul.products li:nth-child(even) {
    background: #e4e3de;
}

ul.products .quantity,
ul.products .product-variations {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

ul.products .quantity label,
ul.products .product-variations label{
    width: 100%;
}

ul.products .quantity input,
ul.products .product-variations select {
    width: 100%;
}

.quantity,
.product-variations {
    width: 100%;
}

h3.woocommerce-loop-product__title {
    width: 100%;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

span.price {
    width: 100%;
}

.tuotelista h2 {
    margin-top: 1.5em;
    font-size: 2em;
}

.product-info {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
}

a.lisatty {
    width: 100%;
}


/***************
 * WooCommerce *
****************/


/* WooCommerce custom cart menu*/
.cart-customlocation {
	margin-left: 17px;
	min-width: 35px;
}

.cart-customlocation:hover {
	text-decoration: none;
}

.cart-customlocation:after {
	font-family: "Font Awesome 5 Free"; 
	font-weight: 900;
	content: '\f291';
	padding-left: 5px;
	font-size: 1.1em;
}

.product-amount-cart {
	background-color: #ff0000;
    padding: 3px 7px;
	border-radius: 50px;
	color: #fff;
	position: relative;
	left: -19px;
	top: -12px;
	font-size: 11px;
	margin-right: -25px;
}

.container .woocommerce {
	margin-top: 2em;
}

table.shop_table.shop_table_responsive.cart.woocommerce-cart-form__contents {
    background: #e5e4df;
}

.woocommerce table.shop_table {
    background: #e5e4df;
        border-color: #c3bfbc;
}

.woocommerce table.shop_table td {
    border-color: #c3bfbc;
}

.woocommerce-cart table.cart .product-thumbnail {
    display: none;
}

.woocommerce table.shop_table td {
    padding: 4px 12px;
}


/* info */
.woocommerce-info {
	border-top-color: #005cb9;
}

.woocommerce-info::before {
	color: #005cb9;
}

/* Message */
.woocommerce-message {
	border-top-color: #00ae41;
}
.woocommerce-message::before {
	color: #00ae41;
}

/* Col fix */
.col-1, .woocommerce-input-wrapper {
	min-width: 100%;
}

/* Button radius fix */
.woocommerce .cart .button {
	border-radius: 0;
}

.woocommerce-billing-fields h3 {
	text-align: left;
}

/* Coupon button */
.woocommerce button.button {
    font-family: museo-slab, serif;
    background-color: #81623a;
    border: 2px solid #81623a !important;
    padding: 8px 25px 9px 25px !important;
    color: #fff;
    display: inline-block;
    font-size: 1em;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: none;
    width: auto;
    text-decoration: none;
    text-align: center;
    text-indent: 0;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    transition: all .2s ease-in-out;
    border-radius: 0 !important;
}


/* MailPoet Subscribe Fixes */
 .mailpoet-subscription-section {
  padding-top: 50px;
 }
 .mailpoet-subscription-section h3:before { content: '\E0E1'; }

.product-template-default .text, .quantity .text {
	padding-right: 0;
}

.product-template-default .woocommerce-cart-form__cart-item .text, .quantity .text {
	padding-top: 5px;
	padding-bottom: 5px;
	border-radius: 0;
}

.summary .price .woocommerce-Price-amount {
	color: #00ae41;
	font-size: 2em;
	font-weight: bold;
}

/* 2 column layout */
@media (min-width: 981px) {
  .woocommerce-checkout .woocommerce { overflow: hidden;}
  .woocommerce-checkout .woocommerce:after { clear: both; }
  .woocommerce-checkout .woocommerce .col2-set .col-1, .woocommerce-checkout .col2-set .col-1 { width: 100%; }
  .woocommerce-checkout .woocommerce .col2-set .col-2, .woocommerce-checkout 
 .woocommerce-page .col2-set .col-2 { display: none; }
 .woocommerce-checkout .woocommerce .col2-set, .woocommerce-checkout .woocommerce-page .col2-set { float:left; width: 48%; }
  .woocommerce-checkout #order_review_heading, .woocommerce-checkout .woocommerce #order_review, .woocommerce-checkout .woocommerce-page #order_review { 
    float: left; 
    width:48%; 
    margin-left: 4%; 
  }
}

#customer_details > div.col-2 {
	display: block;
	min-width: 100%;
	margin-top: 2em;
}

#order_review_heading {
	padding-left: 10px;
}

.woocommerce-checkout .woocommerce table.shop_table {
	width: 100%;
}

#customer_details > div.col-2 > div.woocommerce-additional-fields > h3 {
	text-align: left;
}

#ship-to-different-address .woocommerce-form__label:before {
	font-family: "Font Awesome 5 Free"; 
	font-weight: 900;
	content: '\f48b';
	color: #00ae41;
	padding-right: 10px;
}

input#ship-to-different-address-checkbox {
    transform: scale(2);
    float: right;
    position: absolute;
    top: .45em;
	right: 1em;
}

#order_review > table {
	margin: 16px;
}

/* Rounded corners on the WooCommerce "alert" messages */
.woocommerce-error, .woocommerce-info, .woocommerce-message { border-radius: 3px; }

/* Style form fields to look like Divi */
input.text, input.title, input[type=email], input[type=password], input[type=tel], input[type=text], select, textarea {
  border: none;
  background-color: #eee;
}
.select2-container .select2-selection--single { height: 49px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { 
  line-height: 49px;
  color: #4e4e4e;
  font-weight: bold;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b { margin-top: 8px; }
.select2-container--default .select2-selection--single { 
  background-color: #eee; 
  border: none; 
}

/* some tweaks to simplify the payment method area */
.woocommerce-checkout #payment { background: none!important; }
.woocommerce-checkout #payment ul.payment_methods { border: none; }

/* place order button */
#place_order, .wc-forward, .wc-backward {
    display: inline-block;
    font-size: 1em;
    letter-spacing: .05em;
    text-transform: none;
    width: auto;
    text-decoration: none;
    text-align: center;
    text-indent: 0;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    transition: all .2s ease-in-out;
    border-radius: 0 !important;
        background: #81623a;
    border: 2px solid #81623a !important;
    outline: none;
    box-shadow: none;
    color: #fff;
    padding: 2px 10px;
    font-family: museo-slab, serif;
    font-weight: 500;
    margin-top: 10px;
}

#place_order:hover, .wc-forward:hover, .wc-backward:hover, .woocommerce .cart .button:hover,
#place_order:focus, .wc-forward:focus, .wc-backward:focus, .woocommerce .cart .button:focus {
    background-color: #252a2d;
    border-color: #252a2d !important;
}


/* CART */
.woocommerce-cart-form__cart-item .text, .quantity .text {
	padding-top: 7px;
	padding-bottom: 7px;
}

.checkout-button, .single_add_to_cart_button {
    font-family: museo-slab, serif;
    font-weight: 700;
	background-color: #81633B !important;
	border: 2px solid #81633B !important;
	color: #fff;
	display: inline-block;
	font-size: 1em;
	font-weight: 300;
	letter-spacing: .05em;
	text-transform: none;
	width: auto;
	text-decoration: none;
	text-align: center;
	text-indent: 0;
	-webkit-border-radius: 0 !important;
	-moz-border-radius: 0 !important;
	transition: all .2s ease-in-out;
	border-radius: 0 !important;
	margin-top: 10px;
}

.checkout-button:hover, .single_add_to_cart_button:hover,
.checkout-button:focus, .single_add_to_cart_button:focus {
    background-color: #252a2d;
    border-color: #252a2d;
    color: #fff;
}

li.wc_payment_method {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.wc_payment_method label {
    width: calc(100% - 30px);
    margin-bottom: 0;
}


/* SINGLE PRODUCT */
.product-template-default .paivays {
	display: none;
}

.product-template-default h1 {
	color: #222;
	margin-top: 1em;
}

.summary .price .woocommerce-Price-amount {
	color: #00ae41;
	font-size: 1.5em;
	font-weight: bold;
}

.woocommerce div.product form.cart {
    margin-top: 2em;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border: 1px solid #d3ced2;
    background-color: #ebe9eb;
    display: inline-block;
    position: relative;
    z-index: 0;
    border-radius: 0 0 0 0;
    margin: 0 8px 0 0;
    padding: 0 1em;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:focus,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: #333 !important;
    text-decoration: none;
}

/* Checkout */

a.checkout-button.button.alt.wc-forward:hover, a.checkout-button.button.alt.wc-forward:focus,
.woocommerce .cart .button:hover, .woocommerce .cart .button:focus {
    background: #252a2d !important;
    border-color: #252a2d !important;
    color: #fff !important;
}

a.nav-link, a.cart-customlocation {
    font-size: .95em;
}

.logo img {
    height: 55px;
}


@media only screen and (min-width: 481px) {
	.single h2 {
        font-size: 1.5rem;
    }
}
@media only screen and (min-width: 500px) {
.woocommerce ul.products {
    justify-content: flex-start;
}
    .logo img, .shrink .logo img {
        height: auto;
        position: absolute;
        height: 170%;
        top: -10px;
    }

a.nav-link, a.cart-customlocation {
    font-size: 1.1em;
}
}

@media only screen and (min-width: 576px) {
.nappirivi a {
    width: auto;
}

}

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

    .logo img, .shrink .logo img {
        height: auto;
        position: absolute;
        height: 300%;
        top: -10px;
    }
    
h1 {
    font-size: 2.2em;
}

h3.woocommerce-loop-product__title {
    color: #81633B;
    font-size: 1.4em !important;
    margin-top: .6em !important;
}

.show-products-dropdown div:first-child,
.show-products-dropdown div:nth-child(2) {
    width: 40%;
    padding-right: 10px;
}

.show-products-dropdown div:nth-child(3) {
    width: 20%;
}

footer .wp-block-image img {
    max-width: 210px;
    float: right;
    margin-left: auto;
    margin-right: 0;
}

}

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

    
    ul.nav {
        padding-top: 0;
    }
    .text {
        padding-top: 120px;
        padding-bottom: 120px;
    }
    .background {
        height: auto;
    }
    .background, .text, .kuva, .teksti {
        order: inherit;
    }
    .teksti {
        margin-top: 0;
    }
	.laatikko {
	    margin-bottom: 0;
	}
	.artikkelit .col-lg-4 {
        padding-right: 15px;
        padding-left: 15px;
    }
    .kuvagalleriakuva, .kuvagalleriakuva:last-child {
        height: 350px;
    }
    
    .woocommerce-page.columns-3 ul.products li.product, .woocommerce.columns-3 ul.products li.product {
    width: 33.33%;
}
.woocommerce-checkout .woocommerce table.shop_table {
    width: calc(100% - 16px);
}
.woocommerce ul.order_details li {
    width: auto !important;
}


}

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


@media only screen and (min-width: 1800px) {
    .container-fluid.wide .kuvagalleriakuva {
        height: 450px;
    }
}

@media only screen and (max-width: 980px) {
    .woocommerce .col2-set .col-1, .woocommerce-page .col2-set .col-1 {
    width: 100%;
    padding: 0 0;
}

.woocommerce .col2-set .col-2, .woocommerce-page .col2-set .col-2 {
    width: 100%;
    padding: 0 0;
}
#order_review > table {
    margin: 0 0;
}

#order_review_heading {
    padding-left: 0;
    margin-top: 2em;
}

.woocommerce-checkout #payment ul.payment_methods {
    padding: 30px 0;
}

#add_payment_method #payment div.form-row, .woocommerce-cart #payment div.form-row, .woocommerce-checkout #payment div.form-row {
    padding: 1em 0;
}

.woocommerce-checkout main .container {
    padding-top: 50px;
}

}


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

tr.woocommerce-cart-form__cart-item.cart_item.product-type-show td.product-price,
tr.woocommerce-cart-form__cart-item.cart_item.product-type-show td.product-subtotal {
    display: none !important;
}

}


@media only screen and (max-width: 500px) {
    .woocommerce ul.products[class*=columns-] li.product, .woocommerce-page ul.products[class*=columns-] li.product {
        width: 100%;
        padding-left: 0 !important;
        padding-right: 0 !important;
        border-radius: 0;
    }
    button.add-to-cart, button.add-to-cart-product {
        padding: 5px 10px;
    }
}
