﻿/************************************ PAGE CONTENT *******************************/

.page-content {
    margin: 16px auto 0 auto;
    max-width: 1584px;
    width: 100%;
}

/************************************ SERVICE *******************************/

.service-container {
    background: #F6F9FC;
    margin: 0 16px 24px 16px;
    padding: 8px;
    display: flex;
    justify-content: space-between;
}

.service-item {
    display: flex;
    align-items: center;
    margin: 4px 8px;
}

.service-item img {
    margin-right: 8px;
}

.service-item.phone,
.service-item.email {
    white-space: nowrap;
}


/************************************ PRODUCT DETAIL PAGE *******************************/

.product-detail {
    padding: 0 16px;
}

.product-main-info-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-left: -16px;
    margin-right: -16px;
}

/********************************* IMAGES ********************************/

.product-images-container {
    width: 50%;
    max-width: 632px;
    padding: 0 16px;
    position: relative;
    margin-bottom: 64px;
}

/****** PRODUCT IMAGE = RESPONSIVE SQUARE ********/

.product-detail-image {
    height: auto;
    width: 100%;
    border: 1px solid #C7D2D9;
    position: relative;
}

.product-detail-image:after {
    content: "";
    display: block;
    padding-bottom: 100%;
}

.product-detail-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    pointer-events: none;
}

.videowrapper {
    height: 100%;
    width: 100%;
    position: absolute;
}

/******************** GALLERY **********************/

.product-images-gallery {
    background: #F6F9FC;
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
}

.product-images-gallery-image {
    height: 86px;
    width: 86px;
    flex: 0 0 auto;
    border: 1px solid #C7D2D9;
    background-color: #fff;
    margin: 12px;
    white-space: nowrap;
    font-size: 0;
    position: relative;
    cursor: pointer;
}

.product-images-gallery-image.current-image {
    border: 2px solid #003247;
}

.helper {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.product-images-gallery img {
    display: inline;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    vertical-align: middle;
}

.video-thumb-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -20px;
    margin-top: -20px;
}

.loader {
    position: absolute;
    left: 50%;
    top: 50%;
    height: 60px;
    width: 60px;
    margin-left: -30px;
    margin-top: -30px;
    -webkit-animation: rotation .6s infinite linear;
    -moz-animation: rotation .6s infinite linear;
    -o-animation: rotation .6s infinite linear;
    animation: rotation .6s infinite linear;
    border-left: 6px solid rgba(0, 174, 239, .15);
    border-right: 6px solid rgba(0, 174, 239, .15);
    border-bottom: 6px solid rgba(0, 174, 239, .15);
    border-top: 6px solid rgba(0, 174, 239, .8);
    border-radius: 100%;
    z-index: 100;
}


/************************************** MAIN INFO ***********************************/

.product-main-info {
    flex: 1;
    padding: 0 16px;
    margin-bottom: 64px;
}

form.product-instance-form {
    max-width: 600px;
    margin-bottom: 16px;
}

/****************** ARTICLE NUMBER ****************/
.product-articlenumber-container {
    margin-bottom: 32px;
}

.product-articlenumber-container > div:not(:last-child) {
    margin-bottom: 8px;
}

.product-articlenumber-container > div span:first-child {
    font-weight: 600;
}


/******************* INSTANCE SELECTION *****************/
.instance-selection {
    margin-bottom: 32px;
}

.instance-selection .form-row {
    display: flex;
    flex-direction: column;
    margin: 0 0 16px 0;
}

.instance-selection .form-row > label {
    flex: 100%;
    margin: 0 0 2px 0;
    font-size: 14px;
    color: #003247;
    letter-spacing: -0.1px;
    line-height: 18px;
    font-weight: 400;
}

.instance-selection .form-row > select {
    flex: 100%;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    background: #fff url("/assets/icons/icon-arrowdown-darkgrey-12.svg") right 8px center no-repeat;
    border: 1px solid #C7D2D9;
    border-radius: 4px;
    padding: 0 8px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    cursor: pointer;
}

.instance-selection .form-row > select:hover {
    border-color: #9AABB3;
}

.instance-selection .form-row > select:focus-visible {
    border-color: #0092D2;
}

a.variants-link {
    display: inline-block;
    background: #F6F9FC;
    border-radius: 4px;
    padding: 8px 12px;
}


/******************* PRICE + ADD TO CART CONTAINER *****************/

.product-price-container > div:not(:last-child) {
    margin-bottom: 16px;
}

/*************** STOCK ***************/
.product-stock {
    font-size: 0;
    color: #0EAE0E;
    letter-spacing: -0.45px;
    font-weight: 600;
}

.product-stock > img {
    margin-right: 8px;
    vertical-align: middle;
}

.product-stock > span {
    font-size: 16px;
    vertical-align: middle;
}

/*************** PRICE ***************/
.product-price {
    font-size: 22px;
    color: #74838A;
    letter-spacing: -0.92px;
    font-weight: 400;
}

.product-price-currency,
.product-price-amount {
    font-size: 40px;
    color: #003247;
    letter-spacing: -1px;
    line-height: 46px;
    font-weight: 700;
}

/************* ADD TO CART CONTAINER **************/
.add-to-cart-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

/************** quantity **************/
.quantity-wrapper {
    display: flex;
    margin-right: 16px;
    margin-bottom: 16px;
    border-radius: 4px;
    background-color: #F6F9FC;
    border: 1px solid #C7D2D9;
    overflow: hidden;
}

.quantity-button {
    width: 55px;
    height: 54px;
    padding: 0;
    background-color: transparent;
    border: none;
    background-repeat: no-repeat;
    background-position: center center;
}

.quantity-button.decrease {
    background-image: url(/assets/icons/icon-minus-darkgrey-16.svg);
}

.quantity-button.increase {
    background-image: url(/assets/icons/icon-plus-darkgrey-16.svg);
}

.quantity-button:disabled {
    opacity: 0.4;
}

.quantity-button:not(:disabled):hover {
    background-color: #D8E3EB;
}

.quantity-wrapper input[type=number] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    background-color: #fff;
    border: none;
    height: 54px;
    width: 56px;
    padding: 0;
    margin: 0;
    font-size: 16px;
    text-align: center;
    outline: none;
}

/*** hide default browser up/down arrows for number input ***/
.quantity-wrapper input::-webkit-outer-spin-button,
.quantity-wrapper input::-webkit-inner-spin-button {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
}


/*************** buttons add to cart, favorites ***************/
.primary-button.add-to-cart-button {
    /* general rules primary */
    background-image: linear-gradient(180deg, #009DE0 0%, #0081C7 100%);
    border: none;
    border-radius: 4px;
    color: #FFFFFF;
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    /* specific rules this button */
    text-align: center;
    min-width: 216px;
    height: 56px;
    padding: 0;
    letter-spacing: -0.45px;
    flex: 1;
    margin-right: 16px;
    margin-bottom: 16px;
    /*remove whitespace*/
    font-size: 0;
    margin-top: auto;
}

.primary-button.add-to-cart-button:disabled {
    background: #72B4E0;
    cursor: not-allowed;
    pointer-events: all !important;
}

.primary-button.add-to-cart-button:hover {
    background: #003247;
}

.primary-button.add-to-cart-button img {
    vertical-align: middle;
    margin-right: 12px;
}

.primary-button.add-to-cart-button span.cart-label {
    font-size: 16px;
    vertical-align: middle;
}

.secondary-button.favorites-button {
    /* general rules secondary */
    background: #FFFFFF;
    border: 1px solid #C7D2D9;
    border-radius: 4px;
    color: #003247;
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    /* specific rules this button */
    width: 56px;
    height: 56px;
    padding: 0;
    margin-bottom: 16px;
}

.secondary-button.favorites-button:disabled {
    cursor: not-allowed;
    pointer-events: all !important;
}

.secondary-button.favorites-button:hover {
    border-color: #003247;
}

.secondary-button.favorites-button img {
    vertical-align: middle;
}


/*************** SUBHEADINGS ***************/
h3.product-detail-subheading {
    padding: 16px 0;
    margin: 0;
    border-bottom: 2px solid #0092D2;
}

.product-description-container h3.product-detail-subheading,
.product-packagecontents h3.product-detail-subheading,
.product-downloads h3.product-detail-subheading {
    margin-bottom: 16px;
}


/*************** SPECIFICATIONS ***************/
.product-specifications-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-left: -16px;
    margin-right: -16px;
}

.product-specifications-container > div {
    flex: 1;
    /* if there are several cols, show them in pairs of 2, so min-width 50% */
    min-width: 50%;
    padding: 0 16px;
    margin-bottom: 64px;
}

.product-packagecontents {
    margin-bottom: 32px;
}

h4.product-specification-subheading {
    padding: 18px 0;
    border-bottom: 1px solid #C7D2D9;
}

.product-specification-row {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid #C7D2D9;
}

.product-detail-specification {
    width: 50%;
    padding: 16px 12px;
}

.product-detail-specification-value {
    width: 50%;
    padding: 16px 12px;
    background: #F6F9FC;
}

.product-download-pdf {
    margin-bottom: 16px;
}

.product-download-pdf img {
    margin-right: 8px;
    vertical-align: middle;
}

.product-download-pdf span.product-pdf-filesize {
    margin-left: 8px;
    color: #74838A;
}


/**************************** VARIANTS TABLE *************************/
.table.sortable {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

/* table heading */
.table.sortable thead tr {
    border-bottom: 1px solid #C7D2D9;
}

.table.sortable thead tr:first-child {
    background: #F6F9FC;
    border-bottom: 2px solid #0092D2;
}

.table.sortable th {
    vertical-align: middle;
    padding: 16px;
    border: none;
    letter-spacing: -0.1px;
    line-height: 18px;
}

.table.sortable thead tr:first-child th {
    padding: 20px 16px;
    font-weight: 600;
    white-space: nowrap;
}

.table.sortable th:not(.sorttable_nosort) {
    cursor: pointer;
}

/* last column with add-to-cart button */
.table.sortable th.cart-button {
    width: 96px;
}


/* sorting arrows */
.table.sortable th:not(.sorttable_nosort):after {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url(/assets/icons/icon-sort-grey-12.svg) center center no-repeat;
    vertical-align: middle;
}

.table.sortable th.sorttable_sorted:after {
    background-image: url(/assets/icons/icon-sort-asc-12.svg);
}

.table.sortable th.sorttable_sorted_reverse:after {
    background-image: url(/assets/icons/icon-sort-desc-12.svg);
}

/* filter */

/* labels for select are hidden on desktop */
.show-mobile {
    display: none;
}

.table.sortable select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    background: #fff url(/assets/icons/icon-arrowdown-darkgrey-12.svg) right 8px center no-repeat;
    border: 1px solid #C7D2D9;
    border-radius: 4px;
    padding: 0 8px;
    height: 40px;
    line-height: 40px;
    width: 100%;
    font-size: 14px;
    cursor: pointer;
}

.table.sortable select:hover {
    border-color: #9AABB3;
}

.table.sortable select:focus-visible {
    border-color: #0092D2;
}

.table.sortable input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #FFFFFF;
    border: 1px solid #C7D2D9;
    border-radius: 2px;
    width: 16px;
    height: 16px;
    margin: 0 6px 0 0;
    vertical-align: middle;
    cursor: pointer;
}

.table.sortable input[type="checkbox"]:checked {
    background: #0092D2 url(/assets/icons/icon-check-white-12.svg) center center no-repeat;
    border: 1px solid #0092D2;
}


/* table content */
.table.sortable tbody tr {
    border-bottom: 1px solid #C7D2D9;
}

.table.sortable td {
    vertical-align: middle;
    padding: 12px 16px;
    border: none;
    letter-spacing: -0.1px;
    line-height: 18px;
}

.table.sortable .product-stock > span {
    font-size: 14px;
    letter-spacing: -0.1px;
}

td.product-variant-price {
    white-space: nowrap;
}


/* buttons, links */
.primary-button.medium.add-to-cart-button {
    min-width: 64px;
    height: 40px;
    padding: 0;
    margin: 0;
}

.primary-button.medium.add-to-cart-button img {
    margin-right: 0;
}

.product-instance-btn-current {
    font-size: 12px;
    font-weight: 600;
    color: #003247;
    letter-spacing: -0.25px;
    line-height: 16px;
    padding: 6px;
    background: #fff;
    display: none;
}

.product-instance-btn-link {
    display: inline-block;
    padding-right: 16px;
    background: url(/assets/icons/icon-arrowforward-blue-12.svg) right center no-repeat;
}

/* current variant */
tr.product-variant-selected {
    border-left: 2px solid #0092D2;
    background: #D2F1FF;
}

tr.product-variant-selected .product-instance-btn-link {
    display: none;
}

tr.product-variant-selected .product-instance-btn-current {
    display: inline-block;
}

/**************************************** 1024px *******************************************/

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


    /********************** PRODUCT DETAIL ********************/
    /* less margin */
    .product-images-container {
        margin-bottom: 48px;
    }

    .product-main-info {
        margin-bottom: 48px;
    }

    .product-specifications-container > div {
        margin-bottom: 48px;
    }

    .product-articlenumber-container,
    .instance-selection {
        margin-bottom: 24px;
    }


}


/**************************************** 768px *******************************************/

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

    /********************** HEADER ********************/
    .header {
        margin-top: 8px;
    }

    .logo {
        width: 32px;
        height: 32px;
        background-image: url("/logo-mobile-orig.svg");
        background-size: 32px;
    }

    .header-search {
        margin: 8px 0 0 0;
        order: 2;
    }

    .header-buttons {
        width: calc(100% - 32px);
        justify-content: flex-end;
    }

    .header-button {
        width: 52px;
    }

    .header-button-text {
        display: none;
    }

    .header-shopping-cart-quantity {
        right: 0;
    }

    .header-nav-container {
        margin-top: 12px;
    }


    /********************** SERVICE ********************/
    .service-container {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .service-item:not(.phone):not(.email) {
        display: none;
    }

    .service-item {
        margin-right: 24px;
    }


    /********************** BREADCRUMB ********************/
    .breadcrumb {
        margin-bottom: 8px;
    }

    .breadcrumb-item {
        font-size: 12.5px;
        line-height: 28px;
    }

    .breadcrumb-item.active {
        display: none;
    }


    /********************** PRODUCT DETAIL ********************/
    h1 {
        font-size: 21px;
    }

    /* all sections 100% width, less margin */
    .product-images-container {
        width: 100%;
        margin-bottom: 32px;
    }

    .product-main-info {
        margin-bottom: 32px;
    }

    .product-specifications-container > div {
        min-width: 100%;
        margin-bottom: 32px;
    }

    /* make small images horizontally scrollable */
    .product-images-gallery {
        flex-wrap: nowrap;
        overflow-x: scroll;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .product-images-gallery::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    /* less margin, smaller font */
    .product-articlenumber-container,
    .instance-selection {
        margin-bottom: 16px;
    }

    .product-price {
        font-size: 20px;
    }

    .product-price-currency,
    .product-price-amount {
        font-size: 36px;
    }


    /********************** VARIANTS TABLE ********************/
    .table.sortable,
    .table.sortable thead,
    .table.sortable tbody,
    .table.sortable th,
    .table.sortable td,
    .table.sortable tr {
        display: block;
    }

    /* Hide first table header row (but not display: none;, for accessibility) */
    .table.sortable thead tr:first-child {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    /* filter row */
    .table.sortable thead tr {
        border-bottom: 2px solid #0092D2;
        padding: 8px;
    }

    .table.sortable th {
        padding: 0;
    }

    .table.sortable th .table-filter {
        padding: 8px;
    }

    .show-mobile {
        display: block;
    }


    /* table content */
    .table.sortable tbody tr {
        padding: 0 16px 8px 16px;
        overflow: hidden;
        max-height: 58px;
        transition: max-height 0.35s ease;
        /* remove whitespace */
        font-size: 0;
    }

    .table.sortable tbody tr.open {
        max-height: 999px;
    }

    .table.sortable td {
        /* reset font size */
        font-size: 14px;
        padding: 8px 0;
    }

    /* 'td' behaves like a 'row' */
    .table.sortable td:not(.link-current-button):not(.cart-button):not(.product-variant-values) {
        position: relative;
        padding-left: 50%;
        white-space: normal;
        text-align: right;
    }

    /* make labels for the new 'rows' */
    .table.sortable td:not(.link-current-button):not(.cart-button):not(.product-variant-values):before {
        content: attr(data-title);
        position: absolute;
        top: 0;
        left: 0;
        width: 50%;
        padding: 8px 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
        color: #74838A;
    }

    /* (shown on mobile) 'new head' for every 'row' (toggles the row) */
    .table.sortable td.product-variant-values {
        padding: 20px 16px;
        margin-left: -16px;
        margin-right: -16px;
        background: transparent url("/assets/icons/icon-arrowdown-blue-16.svg") right 16px center no-repeat;
        cursor: pointer;
    }

    .table.sortable td.product-variant-values.open {
        background-image: url("/assets/icons/icon-arrowup-blue-16.svg");
    }

    .table.sortable td.product-variant-values > div {
        margin-right: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .table.sortable td.product-variant-values span {
        color: #0092D2;
    }

    .table.sortable td.product-variant-values span + span:before {
        content: ' | ';
    }


    /* link and cart buttons */
    .table.sortable td.link-current-button,
    .table.sortable td.cart-button {
        width: 50%;
        display: inline-block;
    }

    .table.sortable td.cart-button {
        text-align: right;
    }
}


#sorttable_sortfwdind {
    display: none;
}

#sorttable_sortrevind {
    display: none;
}
