body.single-product {
    font-family: "Roboto", arial, sans-serif;
    color: black;
    line-height: 1;

    background-color: white;
}

/** it is because it has overflow hidden and therefore stick box does not work **/
body.single-product #qodef-page-wrapper {
    overflow: initial;
}

.ie2-wrapper {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5em;
    padding-right: 1.5em;


    --side-padding: 1em;
}

.ie2-header {
    margin-bottom: 2em;
    padding-bottom: 2em;
    border-bottom: 1px solid #ddd;

    padding-left: var(--side-padding);
}

body.single-product .summary.entry-summary {
    display: none!important;
}


.ie2-title {
    font-size: 2em;
    color: black;
    line-height: 1.3;
    margin: 0;
}




/* General WooCommerce message styling */
.ie2-notices .woocommerce-message {
    background: #e8f8f2; /* pastel mint */
    border: 1px solid #c3e6dc;
    color: #2f4f4f;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Link/button inside the notice */
.ie2-notices .woocommerce-message .button.wc-forward {
    background: #b2dfdb; /* pastel teal */
    color: #004d40;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.ie2-notices  .woocommerce-message .button.wc-forward:hover {
    background: #80cbc4; /* slightly darker pastel */
    color: #00332c;
}






.ie2-page {
    display: flex;
    column-gap: 50px;
}

.ie2-page-product {
    flex: 1;
}


.ie2-page-product-info {
    display: flex;
    flex-direction: column;
    row-gap: .7em;

    padding-left:var(--side-padding);
}

.ie2-page-product-info-row {
    display: flex;
    align-items: center;
    column-gap: .3em;
}

.ie2-page-product-info-row-label {
    color: var(--iw-color-primary);
}

.ie2-page-product-lecturer {
    padding: var(--side-padding);
    border-radius: .7em;
    background-color: rgba(0,0,0,.08);

    margin-top: 2em;
}


.ie2-page-product-info-badges {
    display: flex;
    column-gap: 1em;
    align-items: center;
}

.ie2-page-product-info-badges-badge{
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    column-gap: .3em;
}

.ie2-page-product-info-badges-badge img {
    display: block;
    width: auto;
    height: 1em;
    flex: 0;
}

.ie2-page-product-info-badges-badge[data-color="green"] {
    color: #33ab60;
}

.ie2-page-product-info-badges-badge[data-color="blue"] {
    color: #71a4e5;
}

.ie2-page-product-info-badges-badge[data-color="orange"] {
    color: #ffb720;
}






.ie2-page-product-lecturer-header {

}

.ie2-page-product-lecturer-layout-a {
    width: 100px;
}

.ie2-page-product-lecturer-layout-b {
    flex: 1;
}

.ie2-page-product-lecturer-header {
    margin-bottom: .7em;
}

.ie2-page-product-lecturer-header,
.ie2-page-product-lecturer-body {
    display: flex;
    column-gap: 1.5em;
}

.ie2-page-product-lecturer-title-label {
    font-weight: 600;
    color: var(--iw-color-primary);
    text-align: center;
}

.ie2-page-product-lecturer-title {
    font-weight: 600;
}

.ie2-page-product-lecturer-profile-picture {

}

.ie2-page-product-lecturer-profile-picture img {
    display: block;
    width: 100%;
    aspect-ratio: 1/1;
    background-color: rgba(0,0,0,.2);
    border-radius: 50%;
    object-fit: cover;
    overflow:hidden;
    border: 1px solid rgba(0,0,0,.01);
}

.ie2-page-product-lecturer-description {
    font-size: .9em;
    line-height: 1.4;
    margin: 0;
}

.ie2-page-product-lecturer-description + .ie2-page-product-lecturer-description {
    margin-top: .7em;
}


/** the actual post content **/
.ie2-page-product-content {
    margin-top: 2em;

    padding-left: var(--side-padding);
}

.ie2-page-product-content h2,
.ie2-page-product-content h3,
.ie2-page-product-content h4 {
    margin: 0;
    margin-top: 1.3em;
    margin-bottom: .7em;
    font-family: inherit;
}

.ie2-page-product-content p {
    line-height: 1.4;
    margin: 0;
    margin-bottom: .7em;
}

.ie2-page-product-content ul,
.ie2-page-product-content ol,
.ie2-page-product-content li {
    font-size: inherit;
    margin: 0;
    padding: 0;
    color: inherit;
    line-height: initial;
}

.ie2-page-product-content ul,
.ie2-page-product-content ol {
    list-style-position: inside;
    padding-left: 1em;
}

.ie2-page-product-content li {
    line-height: 1.3;
}

.ie2-page-product-content li + li {
    margin-top: .3em;
}



.ie2-page-sidebar {
    width: 350px;
}



/**  buy box **/
.ie2-page-buy-box {
    position: sticky;
    top: 53px;
}

.ie2-page-buy-box-title {
    color: var(--iw-color-primary);
    margin-bottom: 2em;
    font-weight: 600;
    text-align: center;
    font-size: 1.3em;
}

.ie2-page-buy-box-content {
    background-color: #4B7BBDFF;
    background: linear-gradient(to top right, var(--iw-color-primary-dark), var(--iw-color-primary));
    color: white;
    padding: var(--side-padding);
    padding-top: calc(2 * var(--side-padding));
    padding-bottom: calc(2 * var(--side-padding));
}

.ie2-page-buy-box-content-form {

}

.ie2-page-buy-box-content-form-fields {
    display: flex;
    column-gap: 1em;
}

.ie2-page-buy-box-content-form-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.ie2-page-buy-box-content-form-field-count {

}

.ie2-page-buy-box-content-form-field-price {

}

.ie2-page-buy-box-content-form-field-label {
    font-size: .95em;
    font-weight: 600;
    margin-bottom: .7em;
}

.ie2-page-buy-box-content-form-field-label[data-icon] {
    position: relative;
    margin-left: calc(.9em + .2em);
}

.ie2-page-buy-box-content-form-field-label[data-icon]::before {
    display: block;
    content: "";
    position: absolute;
    right: 100%;
    margin-right: .2em;
    top: 50%;
    transform: translateY(-50%);
    width: .9em;
    height: .9em;
    background: no-repeat center center;
    background-size: 80% auto;
}

.ie2-page-buy-box-content-form-field-label[data-icon="person"]::before {
    background-image: url("../img/icon/new/person.png");
}
.ie2-page-buy-box-content-form-field-label[data-icon="tag"]::before {
    background-image: url("../img/icon/new/tag.png");
}


.ie2-page-buy-box-content-form-field-count-elements {
    display: flex;
    align-items: center;
    border: 1px solid white;
    padding: 4px;
    height: 40px;
    border-radius:20px;
}

.ie2-page-buy-box-content-form-field-count-change-btn {
    height: 32px;
    width: 32px;
    flex-shrink: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    background: none #eee !important;
    border: none!important;
    color: black!important;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: all 199ms ease-out;
}

.ie2-page-buy-box-content-form-field-count-change-btn img {
    display: block;
    width: .7em;
    position: relative;
    backface-visibility: hidden;
    transition: all 123ms ease-out;
}

.ie2-page-buy-box-content-form-field-count-change-btn:hover {
    background-color: white!important;
}

.ie2-page-buy-box-content-form-field-count-change-btn:hover img {
    transform: scale(1.27);
}

.ie2-page-buy-box-content-form-field-count-change-input {
    display: block!important;
    margin: 0!important;
    padding: 0!important;
    border: none!important;
    background: transparent none!important;
    color: white!important;
    text-align: center!important;
    width: 3em!important;

    appearance: textfield!important;
}

.ie2-page-buy-box-content-form-field-count-change-input::-webkit-outer-spin-button,
.ie2-page-buy-box-content-form-field-count-change-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


.ie2-page-buy-box-content-form-field-price-elements {
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ie2-page-buy-box-content-form-field-price-total {
    font-size: 1.1em;
}

.ie2-page-buy-box-content-form-field-price-elements-tax {
    font-size: .75em;
    text-align: center;
}




.ie2-page-buy-box-content-form-submit {
    display: flex;
    justify-content: center;

    margin-top: 4em;
    margin-bottom: 2em;
}

#ie2-page-buy-box-content-form-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 50px;
    border-radius: 25px;
    padding-left: 2.5em;
    padding-right: 2.5em;

    background-color: white;
    color: var(--iw-color-primary);
    border: none!important;

    font-weight: 500;
}

#ie2-page-buy-box-content-form-submit-btn:hover {
    background-color: black;
    color: white;
}

.ie2-page-buy-box-content-help {
    display: flex;
    justify-content: center;
}

.ie2-page-buy-box-content-help-btn {
    color: white!important;
    text-decoration: underline;
    display: block;
    padding: 0;
    margin: 0;
    background: none;
    line-height: 1;
    vertical-align: baseline;
    border: none;
    font-size: .8em;
    cursor: pointer;
}

.ie2-page-buy-box-content-help-btn:hover {
    text-decoration: none;
}






.ie2-page-tabs {
    margin-top: 2em;
}

.ie2-page-tabs-list {
    position: relative;
    border-bottom: 1px solid #ccc;
    display: flex;

    padding-left: 1em;
}

.ie2-page-tabs-list-item {
    padding: 1em 2em;
    position: relative;
    top: 1px;
    border-bottom: 2px solid transparent;
}

.ie2-page-tabs-list-item-active {
    border-bottom-color: white;
    border-top: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.ie2-page-tabs-panel {
    padding: 1em;
    margin-top: 1em;
    font-size: .9em;
}

.ie2-page-tabs-panel * {
    font-size: initial;
    font-size: inherit;
}

.ie2-page-tabs-panel p {
    line-height: 1.4;
    margin-top: .3em;
    margin-bottom: .7em;
}

.ie2-page-tabs-panel li + li {
    margin-top: 1.7em;
}



/** popup **/
.ie2-contact-popup {
    opacity: 0;
    transition: opacity 199ms ease-out, transform 199ms ease-out;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    position: fixed;
    left: 0;
    top: 0;
    background-color: rgba(0,0,0,0.3);
    backdrop-filter: blur(1px);

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ie2-contact-popup[data-shown="true"] {
    opacity: 1;
    transform: translateY(0);

    width: 100%;
    height: 100%;
    z-index: 100000;
}

.ie2-contact-popup[data-shown="false"] {
    width: 0;
    height: 0;
    overflow: hidden;
    z-index: 0;
}

.ie2-contact-popup-dialog {
    margin-top: 10vh;
    background-color: white;
    border-radius: 5px;
    padding: 2.3em 2em 3em;
    width: 100%;
    max-width: 600px;

    position: relative;
}


.ie2-contact-popup-dialog-main-close {
    display: block;
    width: 26px;
    height: 26px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent url("../img/icon/close.png") no-repeat center center;
    background-size: 85% auto;

    opacity: .6;

    position: absolute;
    top: 10px;
    right: 10px;

    cursor: pointer;
    user-select: none;

    transition: opacity 199ms ease-out;
}

.ie2-contact-popup-dialog-main-close:hover {
    opacity: 1;
}

.ie2-contact-popup-dialog-title {
    font-size: 2em;
    margin-bottom: .7em;
}

.ie2-contact-popup-dialog-text {
    line-height: 1.5;
}

.ie2-contact-popup-dialog-contacts {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 3em;
    margin-top: 2em;
}

.ie2-contact-popup-dialog-contact {

}

.ie2-contact-popup-dialog-contact[data-icon] {
    --icon-size: 1.5em;

    position: relative;
    margin-left: var(--icon-size);
}

.ie2-contact-popup-dialog-contact[data-icon]::before {
    content: "";
    display: block;
    position: absolute;
    width: var(--icon-size);
    height: var(--icon-size);
    background: no-repeat center center;
    background-size: 70% auto;
    top: 50%;
    right: 100%;
    margin-right: .2em;
    transform: translateY(-50%);
}

.ie2-contact-popup-dialog-contact[data-icon="email"]::before {
    background-image: url("../img/icon/email.png");
}

.ie2-contact-popup-dialog-contact[data-icon="phone"]::before {
    background-image: url("../img/icon/phone.png");
}

.ie2-contact-popup-dialog-contact-item {
    font-weight: 600;
    font-size: 1.2em;
    color: var(--iw-color-primary) !important;
    text-decoration: none;
}

.ie2-contact-popup-dialog-contact-item:hover {
    text-decoration: underline;
}

@media (max-width: 1100px) {
    .ie2-page {
        flex-direction: column;
        row-gap: 50px;
        column-gap: initial;
    }

    .ie2-page-sidebar {
        width: initial;
    }

    .ie2-page-buy-box-content-form-fields {
        justify-content: center;
    }

    .ie2-page-buy-box-content-form-field {
        max-width: 200px;
    }

    /** disabling the sticky position **/
    .ie2-page-buy-box {
        position: initial;
        top: initial;
    }

}

@media (max-width: 960px) {

    .ie2-contact-popup {
        flex-direction: column;
        align-items: center;
        justify-content: initial;
        padding-left: 1.5em;
        padding-right: 1.5em;
    }

    .ie2-contact-popup-dialog-content {
        text-align: center;
    }

    .ie2-contact-popup-dialog {
        padding: 1.5em;
    }

    .ie2-contact-popup-dialog-title {
        font-size: 1.6em;
    }

    .ie2-contact-popup-dialog-contacts {
        flex-direction: column;
        column-gap: initial;
        row-gap: 1.5em;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body.single-product .ie2-wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    body.single-product .ie2-page-product-content {
        padding-left: 0;
    }

    body.single-product .ie2-header {
        padding-left: 0;
    }

    body.single-product .ie2-page-product-info {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .ie2-page-buy-box-content-form-field-count-change-input {
        font-size: 17px!important;
    }
}