/*
Theme Name: Digia ComPack
Theme URI: https://digia.com
Description: An optimized custom theme for Woocommerce
Version: 0.0.1
Author: Digia
Author URI: https://digia.com
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: digia

Digia ComPack WordPress Theme, Copyright (C) 2023, Sivustonikkari
Digia ComPack is distributed under the terms of the WTFPL
*/
@font-face {
  font-family: "Swiss";
  src: url("fonts/Swiss-721-Condensed-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
sub,
sup,
tt,
var,
center,
dl,
dt,
dd,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  font-family: var(--e-global-typography-text-font-family), sans-serif;
}
:root {
  --digia-color-blue: #00599b;
  --digia-color-red: #9d3127;
  --digia-color-green: #00692b;
  --digia-color-gray: #3d3d3d;
}
/*TODO make into a setting?*/
#content {
  /*margin-top:100px;
    margin-top:135px;
	padding-top:30px;*/
  margin-top: 130px;
  padding-top: 0;
  background: none;
}

#main {
  width: calc(100% - 60px);
  max-width: 1460px;
  margin: auto;
  padding: 0 30px;
  background: #fff;
}
body,
html {
  width: 100%;
  overflow-x: hidden;
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--e-global-typography-primary-font-family), sans-serif;
}
h2:not(#elementor-panel-header-title) {
  font-size: 26px !important;
}
h3 {
  font-size: 22px !important;
}
h4 {
  font-size: 18px !important;
}
h5 {
  font-size: 16px !important;
}
h6 {
  font-size: 16px !important;
  font-weight: normal !important;
}
p {
  margin-top: 18px;
  line-height: 1.75;
}
.elementor p:first-of-type {
  margin-top: 0;
}

body.page-template-default #content,
body.post-template-default #content {
  width: calc(100% - 60px);
  max-width: 1460px;
  margin: 145px auto 50px;
  padding: 30px;
}

h1.entry-title {
  text-transform: none;
  font-size: 40px;
  font-weight: bold !important;
  padding-top: 30px;
}
#breadcrumbs a {
  color: var(--e-global-color-text);
}
#breadcrumbs a:hover {
  color: var(--e-global-color-primary);
}

/*Scrollbar customization */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-button {
  background: #eee;
  height: 0;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #666;
}

::-webkit-scrollbar-track-piece {
  background: #fff;
}
.wpcf7-list-item {
  display: block;
}

.wpcf7 input:not(.btn),
.wpcf7 textarea,
.wpcf7 select,
.wpcf7 .seldiv,
.wpcf7 .select2-choice,
.wpcf7 .select2-selection--single {
  display: block;
  line-height: initial;
  margin: 9px 0px 9px 0px;
  padding: 10px 15px 10px 15px;
  border-style: solid;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  background-color: #fff;
  border: 1px solid #eee;
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  width: 100%;
}
.wpcf7 input[type="checkbox"] {
  display: inline !important;
  width: auto !important;
}
.wpcf7-form-control option {
  color: #000 !important;
}
/*input[type="submit"],
input[type="reset"],
input[type="button"],
button[type="submit"] {
  font-size: 12px !important;
  padding: 13px 31px !important;
  color: #fff !important;
}*/
a.elementor-button {
  /*transform:skew(-15deg);*/
}
.elementor-button.elementor-button-link {
  background-image: url("https://gef.fi/wp-content/themes/Digia/icons/arrow-white.png");
  background-repeat: no-repeat;
  background-position: bottom 50% right 10px;
}
.elementor-element.elementor-button-info .elementor-button {
  background-image: url("https://gef.fi/wp-content/themes/Digia/icons/arrow-black.png");
  background-color: var(--e-global-color-accent);
  color: #1e1e1e;
  border: 2px solid var(--e-global-color-accent);
}

.elementor-element.elementor-button-danger .elementor-button {
  background-image: url("https://gef.fi/wp-content/themes/Digia/icons/arrow-purple.png");
  background-color: transparent;
  color: #1e1e1e;
  border: 2px solid transparent;
  padding-left: 0;
}
elementor-button-info .elementor-button.elementor-button-link {
  background-image: url("https://gef.fi/wp-content/themes/Digia/icons/arrow-black.png");
  background-color: var(--e-global-color-accent);
  color: #1e1e1e;
}
a.elementor-button.elementor-size-xs {
  /* background-image: url('icons/arrow-white.svg');
    background-repeat: no-repeat;
    background-position: right;
    background-size: 20px;*/
}
a.elementor-button .elementor-button-text {
  /*transform:skew(15deg);*/
}
.noston-hinta .elementor-widget-container {
  width: 100px !important;
  height: 100px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#breadcrumb a {
  color: var(--e-global-color-primary);
  margin-top: 170px !important;
}

div.wpforms-container-full button[type="submit"] {
  background-color: var(--e-global-color-primary) !important;
  font-weight: bold !important;
  letter-spacing: 2px;
}

.elementor-widget-wrap table {
  background-color: transparent;
  width: 100%;
  margin-block-end: 15px;
  font-size: 0.9em;
  border-spacing: 0;
  border-collapse: collapse;
}

.elementor-widget-wrap table td,
.elementor-widget-wrap table th {
  padding: 15px;
  line-height: 1.5;
  vertical-align: top;
  border: 1px solid hsla(0, 0%, 50.2%, 0.5019607843);
}

.elementor-widget-wrap table th {
  font-weight: 700;
}

.elementor-widget-wrap table tfoot th,
.elementor-widget-wrap table thead th {
  font-size: 1em;
}

.elementor-widget-wrap table caption + thead tr:first-child td,
.elementor-widget-wrap table caption + thead tr:first-child th,
.elementor-widget-wrap table colgroup + thead tr:first-child td,
.elementor-widget-wrap table colgroup + thead tr:first-child th,
.elementor-widget-wrap table thead:first-child tr:first-child td,
.elementor-widget-wrap table thead:first-child tr:first-child th {
  border-block-start: 1px solid hsla(0, 0%, 50.2%, 0.5019607843);
}

.elementor-widget-wrap table tbody > tr:nth-child(odd) > td,
.elementor-widget-wrap table tbody > tr:nth-child(odd) > th {
  background-color: hsla(0, 0%, 50.2%, 0.0705882353);
}

.elementor-widget-wrap table tbody tr:hover > td,
.elementor-widget-wrap table tbody tr:hover > th {
  background-color: hsla(0, 0%, 50.2%, 0.1019607843);
}

.elementor-widget-wrap table tbody + tbody {
  border-block-start: 2px solid hsla(0, 0%, 50.2%, 0.5019607843);
}
.elementor-widget-wrap dd,
.elementor-widget-wrap dl,
.elementor-widget-wrap dt,
.elementor-widget-wrap li,
.elementor-widget-wrap ol,
.elementor-widget-wrap ul {
  margin-block-start: 0;
  margin-block-end: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}
.no-border img {
  border: 0 !important;
}
@media (min-width: 1100px) {
  .hide-desktop {
    display: none !important;
  }
}
@media (max-width: 1100px) {
  #main {
    width: calc(100% - 20px);
    max-width: 1460px;
    margin: auto;
    padding: 0 10px;
    background: #fff;
  }
  #content {
    margin-top: 100px;
  }
}
@media (max-width: 960px) {
  body.page-template-default #content,
  body.post-template-default #content {
    width: 100%;
    margin: 145px 0 50px 0;
    padding: 10px 0;
  }
}
@media (max-width: 768px) {
  #content {
    margin-top: 114px;
  }
}

@media (max-width: 767px) {
  .elementor-widget-wrap table {
    font-size: 0.8em;
  }

  .elementor-widget-wrap table td,
  .elementor-widget-wrap table th {
    padding: 7px;
    line-height: 1.3;
  }

  .elementor-widget-wrap table th {
    font-weight: 400;
  }
}

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}
#not-logged-in-prompt {
  padding: 100px 50px;
  text-align: center;
}
form.woocommerce-ResetPassword {
  max-width: 620px !important;
}

#user_login,
#username,
#password {
  max-width: 320px;
  padding: 5px 10px !important;
  font-size: 1em !important;
  border: 1px solid #ccc !important;
}
form.woocommerce-EditAccountForm input,
form.woocommerce-EditAccountForm select {
  padding: 5px 10px !important;
  font-size: 1em !important;
  border: 1px solid #ccc;
}
button.add-contact,
button[type="submit"],
p.return-to-shop a.button.wc-backward,
a#loginbutton {
  display: inline-block;
  text-decoration: none;
  font-weight: 600 !important;
  font-size: 12px !important;
  letter-spacing: 1.4px !important;
  color: #fff !important;
  background-color: var(--e-global-color-primary) !important;
  border-style: solid !important;
  border-width: 2px 2px 2px 2px !important;
  border-color: var(--e-global-color-primary);
  border-radius: 500px !important;
  padding: 12px 20px 12px 20px !important;
}
body.woocommerce-account h1.entry-title,
body.order-by-sku h1.entry-title,
body.wishlist h1.entry-title {
  background: var(--e-global-color-primary);
  color: #fff;
  padding: 20px 30px;
  margin-bottom: 20px;
}

.woocommerce-orders-table {
  background: #fff;
}

.woocommerce-button {
  border-radius: 500px !important;
  font-size: 12px !important;
  text-transform: none !important;
}

input.delrow,
input.addrow {
  padding: 12px !important;
  border: none !important;
  text-align: center !important;
}

/*lomakkeiden ulkoasu*/
.wpforms-form input {
  width: 100% !important;
  padding: 5px 10px;
  font-size: 1em;
}

.wpforms-field-row,
.wpforms-field,
.wpforms-field-medium {
  width: 100% !important;
  max-width: 640px !important;
}
.wpforms-one-half {
  display: inline-block !important;
}
.wpforms-form ul {
  list-style: none !important;
  padding-left: 0;
}
.wpforms-form li {
  list-style: none !important;
  display: flex;
  align-items: left;
  justify-content: left;
}
.wpforms-form li input {
  max-width: 15px;
  text-align: left!;
}
.wpforms-submit {
  width: 100%;
  max-width: 640px !important;
  padding: 5px 10px;
  font-size: 1em;
  margin-top: 5px;
}
body.logged-in:not(.elementor-editor-active) .logged-out {
  display: none;
}
