#single-product-left-panel,
#single-product-right-panel {
  display: inline-block;
  position: relative;
  margin-bottom: 60px;
  color: var(--e-global-color-primary);
}
#single-product-left-panel {
  width: calc(40% - 20px);
  vertical-align: top;
  position: relative;
}

/*product images*/
#product-images {
  width: 100%;
  margin: 0 0 30px 0;
}
#product-images #main-image {
  height: 500px;
  width: 100%;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  margin-bottom: 1rem;
  transition: background-image 0.3s ease-in-out;
}
.digia-product.image-placeholder #product-images #main-image {
  background-size: 75% !important;
  opacity: 33%;
}
#product-images #gallery-images {
  display: flex;
  justify-content: left;
  flex-wrap: nowrap;
  flex-direction: row;
}
#gallery-images .gallery-image {
  display: block;
  width: 20%;
  max-width: 20%;
  border: 2px solid var(--e-global-color-primary);
  aspect-ratio: 1/1;
  background-size: auto 85%;
  background-repeat: no-repeat;
  background-position: center;
  margin: 10px;
}
#gallery-images .gallery-image:hover {
  background-color: var(--e-global-color-primary);
  cursor: pointer;
}
#product-images #gallery-images img:nth-of-type(5n + 5) {
  margin-right: 0;
}
#product-video iframe {
  max-width: 100% !important;
  width: 100% !important;
}
#sharepoint-video-link {
  width: 100% !important;
  height: 150px;
  display: block !important;
  text-align: center;
  position: relative;
}
#sharepoint-video-link svg {
  height: 100%;
}
#sharepoint-video-link:hover svg path {
  fill: #000;
}
#sharepoint-video-hint {
  text-align: center;
}
#single-product-right-panel {
  width: calc(60% - 20px);
  vertical-align: top;
  padding-left: 30px;
}

h1.single-product-title {
  color: var(--e-global-color-primary);
  font-size: 30px;
  font-weight: bold !important;
}
.single-product-short-description {
  color: var(--e-global-color-primary);
}
#single-product-add-to-cart-wrapper {
  margin: 30px 0;
}
#single-product-add-to-cart-wrapper .woocommerce-Price-amount.amount {
  font-family: var(--e-global-typography-text-font-family), sans-serif;
  font-weight: bold;
  font-size: 40px;
  color: #fff;
  background: var(--e-global-color-primary);
  color: #1e1e1e;
  background: #fff;
  padding: 5px 29px;
  padding-left: 0;
  display: inline-block;
}
#single-product-add-to-cart-wrapper .woocommerce-Price-amount.amount bdi {
  display: block;
}
#single-product-add-to-cart-wrapper .woo-price-unit {
  font-family: var(--e-global-typography-text-font-family), sans-serif;
  font-weight: bold;
  font-size: 20px;
  text-transform: lowercase;
  margin-left: 3px;
}
#single-product-add-to-cart-wrapper small.woocommerce-price-suffix {
  display: block;
  font-family: var(--e-global-typography-text-font-family), sans-serif;
  font-size: 12px;
  margin-top: -8px;
}
#single-product-add-to-cart-wrapper form.cart {
  float: right;
}
#single-product-add-to-cart-wrapper .single_add_to_cart_button.button.alt {
  background: var(--e-global-color-primary);
  border-radius: 2px;
  padding: 3px 3px 3px 3px !important;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-family: var(--e-global-typography-text-font-family), sans-serif;
  font-size: 0px !important;
  float: none;
  font-size: 0px !important;
  text-transform: inherit;

  font-size: 12px !important;
  text-transform: inherit;
  padding: 15px !important;
  border-radius: 500vh;
}

#toimitusmyynti-note-row-1 {
  color: #777;
  text-transform: uppercase;
  margin-top: -15px;
}
#toimitusmyynti-note-row-2 {
  color: #777;
  margin-bottom: 10px;
}

.stock_status_indicator {
  display: inline-block;
  background: gray;
  width: 12px;
  height: 12px;
  border-radius: 100%;
  margin: 0 0 -2px 5px;
}
#single-product-add-to-cart-wrapper #stock_status {
  margin-bottom: 20px;
}
.stock_status_indicator.red {
  background: red;
}
.stock_status_indicator.orange {
  background: orange;
}
.stock_status_indicator.green {
  background: green;
}
.add_to_cart_icon {
  width: 40px;
  height: 50px;
  display: inline-block;
}
.add_to_cart_icon svg {
  width: 100%;
  height: 100%;
  margin-bottom: -3px;
  margin-right: -18px !important;
}
.add_to_cart_icon svg path {
  fill: #fff;
}

.woocommerce div.product form.cart div.quantity {
  margin-right: 0;
}
#single-product-add-to-cart-wrapper .input-text.qty.text {
  padding: 17px;
  border: none;

  border-radius: 5px !important;
  border: solid 2px #dedede !important;
  padding: 5px 6px;
  margin: 0;
  margin-right: 0 !important;
}
#single-product-add-to-cart-wrapper input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
#single-product-add-to-cart-wrapper input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  display: none;
}
.quantity-input-with-plusminus {
  display: inline-block;
  background: #fff;
  margin-right: 8px;
}
.quantity-input-with-plusminus .quantity-input-plus,
.quantity-input-with-plusminus .quantity-input-minus {
  display: inline-block;
  background: #fff;
  color: #333;
  padding: 13px 10px;
  cursor: pointer;
  padding: 0;
  background-color: #aac3dc;
  border-radius: 5px;
  height: 30px;
  width: 30px;
  text-align: center;
  line-height: 1.7;
}
.quantity-input-with-plusminus div.quantity {
  display: inline-block;
  float: none !important;
}

.single-product-label {
  display: inline-block;
  width: 180px;
  font-family: var(--e-global-typography-text-font-family), sans-serif;
  margin-bottom: 8px;
}

.single-product-value {
  display: inline-block;
  font-family: var(--e-global-typography-text-font-family), sans-serif;
  margin-bottom: 8px;
  color: #777777;
  max-width: calc(100% - 200px);
}
#stock_status {
  margin-bottom: 30px;
}
#single-product-categories .single-product-value a {
  color: #777;
  margin-left: 10px;
}
#single-product-categories .single-product-value a:first-child {
  margin-left: 0;
}

#single-product-categories .single-product-value a:after {
  content: ",";
}
#single-product-categories .single-product-value a:last-child:after {
  content: "";
}

#single-product-categories .single-product-value a:hover {
  color: #00599b;
}
#single-product-categories {
  padding-bottom: 30px;
  border-bottom: 2px solid;
}
.single-product-info-content {
  overflow: hidden;
  max-height: 0;
  transition: all 0.3s ease-in-out;
}
.single-product-info.open .single-product-info-content {
  overflow-y: auto;
  max-height: 80vh;
}
.single-product-info-title {
  border-bottom: 2px solid;
  padding: 20px 0;
  text-transform: none;
  font-size: 18px;
  font-weight: bold;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.single-product-info-title:hover {
  background: #fafafa;
  padding-left: 10px;
}
.single-product-info-title:after {
  content: "+";
  float: right;
  margin-right: 15px;
  font-size: 18px;
}
.single-product-info.open .single-product-info-title:after {
  content: "-";
}
#single-product-description-icon,
#single-product-details-icon {
  width: 30px;
  height: 30px;
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 1px;
  margin-right: 10px;
}

#single-product-details-content {
  width: 100%;
  background: #ddd;
  border-collapse: collapse;
}
#single-product-details-content p {
  color: var(--e-global-color-primary) !important;
}
#single-product-details-content tr.single-product-details-row:nth-child(even) {
  background: #eee;
}
#single-product-details-content th.single-product-details-label {
  text-align: left;
  width: 40%;
  padding-left: 10px;
}

#single-product-details-content td.single-product-details-value {
  text-align: left;
  padding: 7px;
}
#single-product-files-icon {
  width: 14px;
  height: 10px;
  display: inline-block;
  padding: 3px;
  vertical-align: bottom;
  margin-bottom: 5px;
  margin-right: 8px;
}
.single-product-filelink {
  margin: 5px 0;
  display: block;
}
.digia-icon-download {
  width: 14px;
  height: 15px;
  display: inline-block;
  padding: 3px;
  vertical-align: bottom;
  margin-bottom: 5px;
  margin-right: 8px;
}
.single-product-filelink-text {
  display: inline-block;
  font-family: var(--e-global-typography-text-font-family), sans-serif;
  margin-bottom: 4px;
  color: #333;
  max-width: calc(100% - 30px);
  vertical-align: bottom;
}
#popular-products {
  margin-top: 50px;
  margin-bottom: 0px;
}
#cross-sells-title,
#popular-products-title {
  font-family: var(--e-global-typography-text-font-family), sans-serif;
  font-size: 25px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
}

#cross-sells .digia-product,
#popular-products .digia-product {
  display: inline-block;
  width: calc(16% - 15px) !important;
  float: none;
  vertical-align: top;
}

#popular-products {
  padding-bottom: 30px;
}
#popular-products .digia-product {
  border: 1px solid #eee;
}
#popular-products .digia-loop-add-to-cart {
  bottom: 10px;
}
.digia_view_product_button {
  background: #00599b;
  border-radius: 2px;
  padding: 18px 30px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-family: var(--e-global-typography-text-font-family), sans-serif;
  font-size: 12px;
  float: none;
  color: #fff !important;
  display: inline-block;
  margin: auto;
}

/*children*/
.digia-child-product {
  border: 1px solid #eee;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: row;
  margin-top: 30px;
  margin-bottom: 10px;
  padding: 5px 10px;
  align-items: center;
}
.digia-child-product-info {
  display: inline-block;
  vertical-align: top;
  width: 45%;
  max-width: 200px;
  margin-right: 10px;
}
.digia-child-product-name-etc {
  min-width: 255px;
  margin-left: 10px;
  margin-right: 10px;
  max-width: 255px;
}
a.digia-child-product-name {
  display: block;
  font-family: var(--e-global-typography-text-font-family), sans-serif !important;
  color: #333 !important;
  font-weight: bold !important;
  font-size: 20px;
  text-transform: none !important;
}
a.digia-child-product-name:hover {
  color: var(--e-global-color-primary) !important;
}
.digia-child-product-price .toimitusmyynti-note-row-1,
.digia-child-product-price .toimitusmyynti-note-row-2,
.digia-child-product-price .stock_status_label {
  font-size: 12px;
}
.digia-child-product-price {
  min-width: 150px;
  max-width: 150px;
  padding-left: 10px;
}
.digia-child-product-price .woocommerce-price-suffix {
  display: block;
  font-size: 12px;
}
.digia-child-product-price bdi {
  font-weight: bold;
  font-size: 20px;
  color: #333;
  font-family: var(--e-global-typography-text-font-family), sans-serif;
}
.digia-child-product-price .woo-price-unit {
  font-size: 12px;
}
.digia-child-product-price .toimitusmyynti-note-row-1,
.digia-child-product-price .toimitusmyynti-note-row-2 {
  display: none;
}
.digia-child-product-add-to-cart form {
  margin-bottom: 0 !important;
}
.digia-child-product-add-to-cart {
  text-align: right;
  margin-left: auto;
}
.digia-child-product .input-text.qty {
  padding: 13.5px 0;
  border: 1.5px solid #eee;
  border-radius: 2px;
}
.digia-child-product-image {
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
  width: 50px;
  height: 50px;
  max-width: 50px;
  max-height: 50px;
  min-width: 50px;
  min-height: 50px;
  flex-grow: 0;
}
.digia-child-product-info-label {
  font-size: 12px;
  font-weight: bold;
}
.digia-child-product-info-value {
  font-size: 12px;
  font-weight: normal;
}

.digia-child-product .digia_add_to_cart_button {
  float: none !important;
  background-color: var(--e-global-color-primary) !important;
  border-radius: 100% !important;
  width: 50px !important;
  height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  padding: 0 0 0 3px !important;
  font-size: 0 !important;
  background-image: url(//maritim.fi/wp-content/themes/Digia/icons/add-to-cart-white.svg) !important;
  background-size: 20px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}
.digia-child-product-price .maritim-unit {
  text-transform: lowercase;
}
.digia-child-product-price .woocommerce-price-suffix {
  display: inline;
}
.digia-child-product-price .maritim-svh {
  font-size: 12px !important;
  color: #aaa;
}
.digia-child-product-price .maritim-svh bdi {
  color: #aaa;
  font-size: 14px;
}
#single-product-add-to-cart-wrapper .maritim-unit,
#single-product-add-to-cart-wrapper .maritim-svh,
#single-product-add-to-cart-wrapper .maritim-svh bdi,
#single-product-add-to-cart-wrapper .maritim-svh .vat-txt {
  font-size: 16px !important;
  font-family: var(--e-global-typography-text-font-family), sans-serif;
  color: #888;
  font-weight: normal;
}

#wholesale_price_value bdi {
  font-size: 16px !important;
}
#package_size_title,
#package_size_value,
#package_size_unit,
#price_scaling,
#wholesale_price_title,
#wholesale_price_value {
  font-size: 16px;
}

#package_size_value,
#package_size_unit,
#wholesale_price_value {
  padding-left: 5px;
}

#price_scaling {
  border: 1px solid #999;
  background: #fff;
  padding: 5px;
  display: table;
}

#price_scaling div {
  display: table-row;
}

#price_scaling span {
  display: table-cell;
  padding: 1px;
}

.price_scale_quantity_value {
  text-align: right;
}

.price_scale_quantity_unit,
#package_size_unit {
  font-size: 12px;
}

.price_scale_amount_value:before {
  content: ":";
  padding-right: 5px !important;
}

#package_size_increment_popup,
#package_size_minimum_popup {
  position: fixed;
  background: #fff;
  width: 300px;
  padding: 0 20px;
  top: calc(50vh - 160px);
  left: calc(50vw - 160px);
  z-index: 99999999999;
  box-shadow: 0px 0px 24px -1px rgba(0, 0, 0, 0.75);
  text-align: center;
  display: none;
}

#package_size_increment_title,
#package_size_minimum_title {
  font-size: 18px;
  margin-bottom: 10px;
  text-align: left;
}

#package_size_increment_question,
#package_size_minimum_question {
  font-size: 18px;
  text-align: left;
}

#package_size_increment_modify,
#package_size_increment_continue,
#package_size_minimum_modify,
#package_size_minimum_continue {
  font-size: 12px;
  background: #666;
  color: #fff;
  padding: 15px 20px;
  margin: 10px;
  font-weight: 300;
  text-transform: uppercase;
  font-family: var(--e-global-typography-text-font-family), sans-serif;
  float: right;
}

#package_size_minimum_modify,
#package_size_increment_modify {
  background-color: #00599b;
}

#package_size_increment_modify:hover,
#package_size_increment_continue:hover,
#package_size_minimum_modify:hover,
#package_size_minimum_continue:hover {
  background: #000;
  cursor: pointer;
}

/*For carousels*/
h3.digia-loop-title a {
  font-size: 16px;
  display: block;
  max-width: 90%;
  margin: auto;
  text-decoration: none !important;
}

#konfiguraattoriin h3 {
  font-size: 24px;
  margin: 20px 0;
}
#konfiguraattoriin a.button {
  background: var(--e-global-color-primary);
  border-radius: 30px;
  padding: 10px 20px 10px 20px !important;
  color: #fff;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-family: var(--e-global-typography-text-font-family), sans-serif;
}
.gef-tuotepaketti-title a {
  text-decoration: none;
  color: #333;
  border: 1px solid gray;
  padding: 3px 10px;
  border-radius: 10px;
}
.gef-tuotepaketti-title a:hover {
  color: #fff;
  background: var(--e-global-color-primary);
}
.gef-tuotepaketti-row {
  margin: 10px 0 10px 0;
  margin-left: 10p;
}
#add_bundle_to_cart {
  margin-top: 10px;
}
/*upsells, cross-sells and related products*/
a.digia-loop-thumbnail {
  height: 250px;
  width: 100%;
  display: block;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.digia-product.image-placeholder a.digia-loop-thumbnail {
  background-size: 75% !important;
  opacity: 33%;
}
li.digia-product {
  text-align: center;
  padding: 9px;
  box-shadow: 0px 5px 5px rgb(0 0 0 / 10%);
  position: relative;
  background: #fff;
  width: calc(25% - 35px);
  margin: 8px 3px;
  height: 360px;
  height: 500px;
}
body:not(.logged-in) li.digia-product {
  height: 400px;
}
.digia-loop-brand-positioner {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 12px;
  width: 100%;
}
.digia-loop-brand {
  border: 1px solid var(--e-global-color-secondary);
  display: inline;
  background: #fff;
  padding: 1px 6px;
  border-radius: 10px;
}
h3.digia-loop-title a {
  font-weight: 600;
  font-family: var(--e-global-typography-text-font-family), sans-serif;
  color: var(--e-global-color-primary);
}
.digia-loop-meta {
  font-size: 12px;
}
.digia-loop-meta-label {
  font-weight: bold;
  min-width: 100px;
}
.stock_status_indicator {
  display: inline-block;
  background: gray;
  width: 12px;
  height: 12px;
  border-radius: 100%;
  margin: 0 0 -2px 5px;
}
.single-product-add-to-cart-wrapper .stock_status {
  margin-bottom: 20px;
}
.stock_status_indicator.red {
  background: red;
}
.stock_status_indicator.orange {
  background: orange;
}
.stock_status_indicator.green {
  background: green;
}
.digia-recommended-readmore {
  display: block;
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
}
a.digia_read_more {
  display: block;
  color: #fff !important;
  background-color: var(--e-global-color-primary) !important;
  border-radius: 100px !important;
  padding: 12px 20px 12px 20px !important;
}

@media (max-width: 1500px) {
  .product-type-grouped #single-product-left-panel {
    width: calc(100% - 900px);
  }
  .product-type-grouped #single-product-right-panel {
    width: 840px;
  }
}
@media (max-width: 1200px) {
  .product-type-grouped #single-product-left-panel {
    width: 100%;
  }
  .product-type-grouped #single-product-right-panel {
    width: calc(100% - 30px);
    padding-left: 0;
  }
}
@media (max-width: 875px) {
  .digia-child-product-price {
    padding-left: 0px;
  }
}

@media (max-width: 830px) {
  .digia-child-product {
    display: block;
    position: relative;
  }
  .digia-child-product-image {
    display: inline-block;
  }
  .digia-child-product-name-etc {
    width: calc(100% - 120px);
    display: inline-block;
    vertical-align: top;
  }
  .digia-child-product-info,
  .digia-child-product-price,
  .digia-child-product-add-to-cart {
    display: inline-block;
    width: calc(33% - 10px);
    min-width: calc(33% - 30px);
    margin: 5px;
    vertical-align: middle;
  }
  .digia-child-product .digia_add_to_cart_button {
    border-radius: 3px !important;
    width: auto !important;
    max-width: 9999px !important;
    padding: 0 0 0 3px !important;
    font-size: 12px !important;
    background-image: none !important;
    padding: 14px 14px !important;
    min-height: 0px !important;
    height: auto !important;
  }
}
@media (max-width: 680px) {
  .digia-child-product-image {
    width: 100%;
    max-width: 100%;
  }
  .digia-child-product-info,
  .digia-child-product-price,
  .digia-child-product-add-to-cart {
    width: 100%;
    min-width: 100%;
    text-align: center;
  }
  .digia-child-product-name-etc {
    min-width: 100%;
    width: 100%;
    text-align: center;
  }
  .digia-child-product-add-to-cart .digia-loop-add-to-cart {
    max-width: 200px;
    margin: auto;
  }
}

@media (max-width: 1240px) {
  #cross-sells .digia-product,
  #popular-products .digia-product {
    width: calc(32% - 15px) !important;
  }
}

@media (max-width: 860px) {
  #cross-sells .digia-product,
  #popular-products .digia-product {
    width: calc(32% - 18px) !important;
  }
  #single-product-left-panel,
  #single-product-right-panel {
    width: 100%;
    margin: auto;
    padding: 0;
    hyphens: auto;
  }
  h1.single-product-title {
    hyphens: auto;
    overflow-wrap: break-word;
  }
  #single-product-add-to-cart-wrapper .woocommerce-Price-amount.amount bdi {
    font-size: 26px;
  }
  .single-product-label,
  .single-product-value {
    display: block;
    max-width: 100%;
    hyphens: auto;
    overflow-wrap: break-word;
  }
  .single-product-label {
    font-weight: bold !important;
    margin-top: 15px;
    font-size: 18px;
  }
}
@media (max-width: 720px) {
  #cross-sells .digia-product,
  #popular-products .digia-product {
    width: calc(50% - 18px) !important;
  }
}
@media (max-width: 520px) {
  #cross-sells .digia-product,
  #popular-products .digia-product {
    width: calc(100% - 18px) !important;
  }
}
del .woocommerce-Price-amount {
  color: #ccc !important;
  text-decoration: line-through;
}
