/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
:root {
    --form-bg-color: #fff;
    --form-label-text-color: #007bff;
    --form-border-color: #007bff;
}

#itr-mydhl-packages-container,
#itr-mydhl-extra-attributes,
#itr-mydhl-extra-info,
#itr-mydhl-product-list {
    display: none;
}

#itr-mydhl-info-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.48);
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
}

#itr-mydhl-info-screen {
    display: flex;
    flex-direction: column;
    width: 50%;
    height: 200px;
    align-content: center;
    text-align: center;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#itr-mydhl-message {
    color: white;
    font-size: 20px;
    font-style: italic;
}

#itr-mydhl-message svg {
    width: 50%;
    fill: var(--e-global-color-astglobalcolor0);
    margin-bottom: 80px;
    animation: spin 3s linear infinite;
}

#itr-mydhl-packages-container,
#itr-mydhl-address-container,
#itr-mydhl-product-list {
    padding: 40px;
    margin: 40px 0 40px 0;
    background-color: var(--form-bg-color);
    border-radius: 40px;

}

.itr-align-center {
    text-align: center;
}

.itr-hide-label-from-screen {
    position: absolute;
    top: -10000em;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.itr-remove-form-button {
    position: absolute;
    right: 40px;
}

#itr-mydhl-submit-address,
#itr-mydhl-submit-form-button,
.itr-mydhl-add-to-cart {
    border-radius: 40px !important;
}

.itr-form-row {
    margin-bottom: 10px;
    display: flex;
    /* justify-content: center; */
}

.itr-form-header {
    padding-left: 0.7em;
}

.itr-field-wrap {
    position: relative;
    margin: 0 10px;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

#itr-mydhl-packages-container .itr-field-wrap {
    justify-content: initial !important;
    height: 80px;
}

.floating-label {
    position: absolute;
    top: 15px;
    left: 16px;
    color: #999;
    font-size: 16px;
    transition: 0.2s ease all;
    pointer-events: none;
}

.floating-label.itr-description {
    display: none;
}

.itr-mydhl-input-field {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-bottom: 1px solid var(--form-border-color);
    font-size: 16px;
    background-color: transparent;
    transition: 0.2s ease all;
    border-radius: 5px !important;
}

.itr-mydhl-input-field:focus {
    outline: none;
    border-bottom: 2px solid var(--form-border-color);
}

.itr-mydhl-input-field:focus+.floating-label,
.itr-mydhl-input-field:valid+.floating-label {
    top: -15px;
    font-size: 15px;
    color: var(--ast-global-color-0);
    display: inherit;
    font-weight: 600;

}

.itr-label {}

/* Remove arrows from input text for Chrome, Safari, Edge, Opera */
#itr-mydhl-packages-container input::-webkit-outer-spin-button,
#itr-mydhl-packages-container input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#itr-mydhl-packages-container input[type=number] {
    -moz-appearance: textfield;
    /*width: 100px;*/
    height: 50px;
    border-radius: 5px !important;
}

#itr-mydhl-address-container input::placeholder,
#itr-mydhl-packages-container input::placeholder {
    font-weight: bold;
    opacity: 0.5;
    /* color: red; */
}

.itr-mydhl-h3 {
    text-align: center;
    font-size: 1.25rem !important;
    font-family: 'Ubuntu', sans-serif !important;
    line-height: 1.3em;
}

h3.itr-mydhl-delivery-product {
    font-size: 1.2rem !important;
}

.itr-extra-package {
    border-top: 5px solid var(--form-border-color);
    padding: 20px 0;
    margin: 30px 0;
}

#itr-mydhl-loading-screen,
#itr-mydhl-address-validate-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
}

.itr-mydhl-hidden {
    display: none !important;
}

.itr-mydhl-product {
    display: flex;
    justify-content: space-between;
    margin: 0 20px 40px 20px;
    padding: 20px;
    /*border: 2px solid var(--form-border-color);*/
    box-shadow: 3px 3px 7px var(--ast-border-color) !important;
    border-radius: 5px;
}

.itr-mydhl-added-to-cart {
    background-color: grey !important;
}

.itr-mydhl-added-to-cart-active {
    background-color: green !important;
}

.itr-form-seperator {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--ast-global-color-0);
    padding-bottom: 20px;
}

.select2-container .select2-selection--single {
    background-image: none !important;
}

.woocommerce-js .select2-container .select2-selection--single b,
.woocommerce-js select b,
.woocommerce-page .select2-container .select2-selection--single b,
.woocommerce-page select b {
    display: block !important;
}

.woocommerce-js .select2-container .select2-selection--single,
.woocommerce-js select,
.woocommerce-page .select2-container .select2-selection--single,
.woocommerce-page select {
    border: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    right: 10px !important;
}

#itr-shipping-date {
    background-color: #fff;
    box-shadow: none !important;
    border: none !important;
}

input,
.select2-container--default {
    box-shadow: none !important;
    border: none !important;
}

.select2-container--default {
    width: 80% !important;
}

#select2-origin-country-container,
#select2-destination-country-container {
    line-height: 1.6 !important;
}

.itr-from-country .itr-mydhl-floatsvg,
.itr-date-selector .itr-mydhl-floatsvg,
.itr-mydhl-icon svg {
    fill: var(--e-global-color-astglobalcolor0);
}

.itr-from-country .itr-country-descriptor,
label[for="itr-shipping-date"] {
    color: var(--e-global-color-astglobalcolor0);
    font-weight: 600;
    text-transform: uppercase;
}

label[for="itr-shipping-date"] {
    margin-right: 15px;
    margin-top: 3px;
    margin-bottom: 6px;
}

.itr-to-country .itr-mydhl-floatsvg {
    fill: #95cc29;
}

.itr-to-country .itr-country-descriptor {
    color: #95cc29;
    font-weight: 600;
}

.itr-country-descriptor {
    margin-left: 12px;
}

.select2-selection {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.itr-from-postal-code {
    border-right: 2px solid var(--e-global-color-astglobalcolor0);
}

#itr-shipping-date {
    /*box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;*/
}

.itr-tooltip {
    position: relative;
    display: inline-block;
    margin-left: -15px;
}

.itr-tooltip .itr-tooltiptext {
    visibility: hidden;
    width: 250px;
    background-color: var(--ast-global-color-0);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: -50%;
    left: 60%;
    margin-left: -60px;
}

.itr-tooltip:hover .itr-tooltiptext {
    visibility: visible;
    color: #fff !important;
}

.itr-tooltip:hover .itr-tooltiptext a {
    color: #fff !important;
}

.itr-tooltip:hover .itr-tooltiptext a:hover {
    text-decoration: underline;
}

.itr-tooltip svg {
    width: 15px;
}

.itr-tooltip svg path {
    fill: var(--ast-global-color-0);
}

.itr-field-error {
    color: #dc3232;
    font-size: 0.8em;
    font-weight: normal;
    display: block;
    margin-top: 10px;
}

.itr-field-hide {
    display: none;
}

.itr-mydhl-floatsvg {
    width: 43px;
    float: left;
    margin-right: 10px;
}

@media (min-width: 768px) {
    .itr-field-half {
        width: 50% !important;
    }
}

.itr-mydhl-delivery-header {
    font-weight: bold;
}

.itr-mydhl-icon {
    text-align: center;
    margin: 50px 0;
}

.itr-mydhl-icon svg {
    max-width: 10%;
    transform: rotate(90deg);
}

.itr-mydhl-cutoff {
    text-align: center
}

#itr-mydhl-easysend-logo {
    width: 50%;
    height: 50px;
    position: absolute;
    bottom: 40px;
}


.itr-mydhl-pricing-info {
    margin-top: 80px;
    font-size: 12px;
    font-style: italic;
    color: #999 !important;
    line-height: 16px;
}


@media (min-width: 1058px) {

    #itr-mydhl-packages-container input[type="number"] {
        width: 80%;
    }

    .itr-package-length::after,
    .itr-package-width::after {
        content: "×";
        position: absolute;
        top: 20%;
        right: -35px;
        transform: translateY(-50%);
        font-size: 50px;
        color: #999;
    }

    .itr-address-parent {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        grid-template-rows: repeat(4, 1fr);
        grid-column-gap: 20px;
        grid-row-gap: 20px;
    }

    .itr-package-parent {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(4, 1fr);
        grid-column-gap: 20px;
        grid-row-gap: 0px;
    }

    .itr-address-heading {
        grid-area: 1 / 1 / 2 / 8;
    }

    .itr-from-country {
        grid-area: 2 / 1 / 3 / 3;
    }

    .itr-from-city {
        grid-area: 2 / 3 / 3 / 5;
    }

    .itr-from-postal-code {
        grid-area: 2 / 5 / 3 / 6;
    }

    .itr-date-selector {
        grid-area: 2 / 6 / 3 / 8;
    }

    .itr-to-country {
        grid-area: 3 / 1 / 4 / 3;
    }

    .itr-to-city {
        grid-area: 3 / 3 / 4 / 5;
    }

    .itr-to-postal-code {
        grid-area: 3 / 5 / 4 / 6;
    }

    .itr-package-next {
        grid-area: 4 / 4 / 5 / 8;
        text-align: right;
    }

    .itr-product-next {
        grid-area: 4 / 4 / 5 / 8;
        text-align: right;
    }

    .itr-package-heading {
        grid-area: 1 / 1 / 2 / 7;
    }

    .itr-package-weight {
        grid-area: 2 / 1 / 3 / 2;
    }

    .itr-package-length {
        grid-area: 2 / 2 / 3 / 3;
    }

    .itr-package-width {
        grid-area: 2 / 3 / 3 / 4;
    }

    .itr-package-height {
        grid-area: 2 / 4 / 3 / 5;
    }

    .itr-package-value {
        grid-area: 2 / 5 / 3 / 6;
    }

    .itr-package-value-tooltip {
        grid-area: 2 / 6 / 3 / 7;
        justify-content: center;
        align-content: center;
    }

    .itr-package-description {
        grid-area: 3 / 1 / 4 / 8;
        margin-bottom: 20px;
    }

    .itr-package-description-tooltip {
        grid-area: 4 / 4 / 5 / 4;
        justify-content: center;
        text-align: center;
    }

    .itr-package-description .itr-mydhl-input-field {
        margin-right: 20px;
    }

    .itr-package-documents {
        grid-area: 4 / 1 / 5 / 5;
    }

    .itr-field-justify {
        margin-top: 20px;
    }

    input[type="email"],
    input[type="number"],
    input[type="password"],
    input[type="reset"],
    input[type="search"],
    input[type="tel"],
    input[type="text"],
    input[type="url"],
    select,
    textarea {
        padding: .75em .75em 0 .75em !important;
    }

    .itr-info {
        display: none;
    }

    .itr-package-description {
        min-height: 80px;
        max-height: 115px;
        height:unset!important;
    }
}

/* Breakpoint for medium screens (max-width: 1057px) */
@media (max-width: 1057px) {

    .itr-form-row {
        flex-direction: column;
    }

    .itr-field-wrap {
        margin: 0px 10px 20px 10px;
    }

    .select2-container {
        width: 95% !important;
    }

    .itr-tooltip {
        display: none;
    }

    .itr-info {
        font-size: 12px;
        font-style: italic;
        color: var(--e-global-color-astglobalcolor3);
        margin-top: -20px;
    }

    .itr-flex-row {
        flex-direction: row;
    }

    .itr-from-postal-code {
        border-right: none !important;
    }

    .itr-mydhl-floatsvg {
        width: 20px;
        margin-top: 10px;
    }

    .itr-address-parent {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(8, 1fr);
        grid-column-gap: 20px;
        grid-row-gap: 20px;
    }

    .itr-address-heading {
        grid-area: 1 / 1 / 2 / 3;
    }

    .itr-date-selector {
        grid-area: 2 / 1 / 3 / 3;
    }

    .itr-from-country {
        grid-area: 3 / 1 / 4 / 3;
    }

    .itr-from-city {
        grid-area: 4 / 1 / 5 / 2;
    }

    .itr-from-postal-code {
        grid-area: 4 / 2 / 5 / 3;
    }

    .itr-to-country {
        grid-area: 5 / 1 / 6 / 3;
    }

    .itr-to-city {
        grid-area: 6 / 1 / 7 / 2;
    }

    .itr-to-postal-code {
        grid-area: 6 / 2 / 7 / 3;
    }

    .itr-package-next {
        grid-area: 7 / 1 / 8 / 3;
        text-align: center;
    }

    .itr-product-next {
        grid-area: 7 / 1 / 8 / 5;
        text-align: center;
    }

    .itr-package-parent {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(6, 1fr);
        grid-column-gap: 20px;
        grid-row-gap: 0px;
    }

    .itr-package-heading {
        grid-area: 1 / 1 / 2 / 5;
    }

    .itr-package-weight {
        grid-area: 2 / 1 / 3 / 2;
    }

    .itr-package-length {
        grid-area: 2 / 2 / 3 / 3;
    }

    .itr-package-width {
        grid-area: 2 / 3 / 3 / 4;
    }

    .itr-package-height {
        grid-area: 2 / 4 / 3 / 5;
    }

    .itr-package-value {
        grid-area: 3 / 1 / 4 / 2;
    }

    .itr-package-value-tooltip {
        grid-area: 3 / 2 / 4 / 5;
        justify-content: center;
        align-content: center;
    }

    .itr-package-description {
        grid-area: 4 / 1 / 5 / 5;
        margin-bottom: 20px;
    }

    .itr-package-description-tooltip {
        grid-area: 6 / 1 / 7 / 5;
        justify-content: center;
        text-align: center;
    }

    .itr-package-documents {
        grid-area: 5 / 1 / 6 / 5;
    }

    .itr-mydhl-floatsvg {
        width: 20px;
        margin-top: 10px;
    }

    .itr-field-wrap input,
    .itr-field-wrap textarea,
    .itr-field-wrap select {
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.05) !important;
    }
}

/* Breakpoint for small screens (max-width: 767px) */
@media (max-width: 767px) {

    .itr-address-parent {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(9, 1fr);
        grid-column-gap: 20px;
        grid-row-gap: 20px;
    }

    .itr-address-heading {
        grid-area: 1 / 1 / 2 / 1;
    }

    .itr-date-selector {
        grid-area: 2 / 1 / 3 / 1;
    }

    .itr-from-country {
        grid-area: 3 / 1 / 4 / 1;
    }

    .itr-from-city {
        grid-area: 4 / 1 / 5 / 1;
    }

    .itr-from-postal-code {
        grid-area: 5 / 1 / 6 / 1;
    }

    .itr-to-country {
        grid-area: 6 / 1 / 7 / 1;
    }

    .itr-to-city {
        grid-area: 7 / 1 / 8 / 1;
    }

    .itr-to-postal-code {
        grid-area: 8 / 1 / 9 / 1;
    }

    .itr-package-next {
        grid-area: 10 / 1 / 11 / 1;
        text-align: center;
    }

    .itr-product-next {
        grid-area: 10 / 1 / 11 / 1;
        text-align: center;
    }

    .itr-package-heading {
        grid-area: 1 / 1 / 2 / 1;
    }

    .itr-package-weight {
        grid-area: 2 / 1 / 3 / 1;
    }

    .itr-package-length {
        grid-area: 3 / 1 / 4 / 1;
    }

    .itr-package-width {
        grid-area: 4 / 1 / 5 / 1;
    }

    .itr-package-height {
        grid-area: 5 / 1 / 6 / 1;
    }

    .itr-package-value {
        grid-area: 6 / 1 / 7 / 1;
    }

    .itr-package-parent {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(11, 1fr);
        grid-column-gap: 20px;
        grid-row-gap: 0px;
    }

    .itr-package-value-tooltip {
        grid-area: 7 / 1 / 8 / 1;
        justify-content: center;
        align-content: center;
    }

    .itr-package-description {
        grid-area: 8 / 1 / 9 / 1;
        margin-bottom: 20px;
    }

    .itr-package-description-tooltip {
        grid-area: 11 / 1 / 12 / 1;
        justify-content: center;
        text-align: center;
    }

    .itr-package-documents {
        grid-area: 9 / 1 / 11 / 1;
    }

    .itr-field-justify {
        margin-top: 20px;
    }

    .select2-container {
        width: 85% !important;
    }


    .itr-mydhl-product {
        flex-direction: column;
    }

    .itr-mydhl-details {
        text-align: center;
    }

    .itr-mydhl-order {
        margin-top: 20px;
        text-align: center;
    }
}