/* Cart Products */

.com-stionlinestore .cart .product {
    display: flex;
    align-items: center;
    gap: 20px;
}

.com-stionlinestore .cart .product img {
    width: 80px;
    height: 80px;
}

.com-stionlinestore .cart .product.unavailable .price {
    color: #909090;
    text-decoration: line-through;
}

.com-stionlinestore .cart .product .description {
    flex: 1;
}

.com-stionlinestore .cart .product .description a {
    font-size: 22px;
    font-weight: 600;
    color: #3e3e3e;
}

.com-stionlinestore .cart .product .description span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
    margin-left: 4px;
    margin-bottom: 2px;
    cursor: default;
}

.com-stionlinestore .cart .product .parameters {
    align-self: flex-start;
    display: flex;
    gap: 16px;
}

.com-stionlinestore .cart .product .price {
    font-size: 22px;
    font-weight: 600;
    min-width: 125px;
    text-align: right;
}

.com-stionlinestore .cart .product .price span {
    display: block;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    color: #909090;
    text-decoration: line-through;
}

.com-stionlinestore .cart .product .actions {
    min-width: 57px;
    text-align: left;
}

.com-stionlinestore .cart .product .actions .remove {
    cursor: pointer;
    font-size: 14px;
    color: #338adb;
}

.com-stionlinestore .cart .product .actions .remove:hover {
    text-decoration: underline;
}

.com-stionlinestore .cart hr {
    margin-top: 40px;
    margin-bottom: 40px;
}

.com-stionlinestore .cart .summary {
    display: flex;
    gap: 15px;
    align-items: center;
}

.com-stionlinestore .cart .summary .subtotal {
    flex: 1;
    text-align: right;
    font-size: 22px;
}

/* The prices are not loaded */
.com-stionlinestore .cart .summary .subtotal .prices-error {
    font-size: 16px;
    color: #e74c3c;
}

.com-stionlinestore .cart .summary .tile {
    width: 70px;
    height: 32px;
    text-align: center;
    font-weight: bold;
}

.com-stionlinestore .cart .summary .tile.active,
.com-stionlinestore .cart .summary .tile:hover {
    box-shadow: 0 0 0 3px #348adb;
}


/* Dropdown */

.com-stionlinestore .dropdown {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    user-select: none;
}

.com-stionlinestore .dropdown .label {
    font-size: 14px;
    color: #3e3e3e;
}

.com-stionlinestore .dropdown .selected {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    padding: 2px 8px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    min-width: 62px;
    justify-content: space-between;
    cursor: pointer;
    transition: border-color 0.15s;
    text-transform: uppercase;
}

.com-stionlinestore .dropdown .selected:hover {
    border-color: #348adb;
}

.com-stionlinestore .dropdown .arrow {
    font-size: 8px;
    color: #909090;
    transition: transform 0.15s;
}

.com-stionlinestore .dropdown.open .arrow {
    transform: rotate(180deg);
}

.com-stionlinestore .dropdown.disabled .selected {
    cursor: default;
    color: #909090;
    border-color: #e8e8e8;
}

.com-stionlinestore .dropdown>.options {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    z-index: 100;
    min-width: 100%;
    overflow: hidden;
    text-transform: uppercase;
}

.com-stionlinestore .dropdown.open>.options {
    display: block;
}

.com-stionlinestore .dropdown .option {
    padding: 4px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.1s;
    white-space: nowrap;
}

.com-stionlinestore .dropdown .option:hover {
    background: #f0f5ff;
}

.com-stionlinestore .dropdown .option.active {
    background: #e8f0fd;
    font-weight: 600;
}

.com-stionlinestore .dropdown .option .save {
    margin-left: 16px;
    font-size: 12px;
    font-weight: 400;
    color: #27ae60;
    text-transform: none;
}

.com-stionlinestore .dropdown[data-type="quantity"]>.options {
    max-height: 170px;
    overflow-y: auto;
    overflow-x: hidden;
}


/* Payments */

.com-stionlinestore .payments .tiles {
    flex-wrap: wrap;
    justify-content: normal;
    margin: 0 0 30px -5px;
    padding: 0 0 0 5px;
}

.com-stionlinestore .payments .tiles:last-child {
    margin-bottom: 0;
}

.com-stionlinestore .payments .tiles h3 {
    flex-basis: 100%;
    margin: 0 0 5px 0;
}

.com-stionlinestore .payments .tiles .tile {
    width: 120px;
    height: 70px;
    padding: 0;
    overflow: hidden;
}

.com-stionlinestore .payments .tiles .tile img {
    padding: 0;
}

.com-stionlinestore .payments .tiles .tile:not(.disabled):hover {
    box-shadow: 0 0 0 3px #348adb;
}

@media (max-width: 480px) {
    .com-stionlinestore .payments h2:where(.xh2) {
        text-align: center;
    }

    .com-stionlinestore .payments .tiles {
        justify-content: center;
    }
}


/* Mobile */

@media (max-width: 680px) {
    /* Cart */
    .com-stionlinestore .cart .product {
        flex-wrap: wrap;
        gap: 20px;
    }

    .com-stionlinestore .cart .product .description {
        flex-basis: calc(100% - 100px);
    }

    .com-stionlinestore .cart .product .price {
        flex: 1;
        min-width: 0;
        padding-top: 6px;
    }

    .com-stionlinestore .cart .product .actions {
        flex-basis: 100%;
        text-align: center;
    }

    .com-stionlinestore .cart .summary {
        flex-wrap: wrap;
    }

    .com-stionlinestore .cart .summary .subtotal {
        order: -1;
        flex: 1;
        text-align: left;
    }

    .com-stionlinestore .cart .summary .buttons {
        order: 1;
        flex: 0 0 calc(100% + 10px);
        margin-top: 10px;
    }

    /* Form */
    .com-stionlinestore form {
        padding: 20px;
    }

    .com-stionlinestore form input[type="text"],
    .com-stionlinestore form select {
        min-width: 0;
        width: 100%;
    }
}


/* Form */

.com-stionlinestore .quote {
    padding-left: 0;
    padding-right: 0;
}

.com-stionlinestore form {
    position: relative;
    width: 100%;
    padding: 40px;
    border: 8px solid #3498db;
    border-radius: 13px;
    background: #fff;
}

.com-stionlinestore form h2:where(.xh2):not(:first-of-type) {
    margin-top: 25px;
}

.com-stionlinestore form label {
    display: block;
    font-size: 14px;
    padding: 0 0 0 4px;
    margin: 0 0 5px 0;
    line-height: normal;
}

.com-stionlinestore form strong {
    color: red;
}

.com-stionlinestore form input[type="text"],
.com-stionlinestore form select {
    padding: 5px;
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    outline: none;
    font-size: 16px;
    height: 34px;
    color: #3e3e3e;
    background: transparent;
    margin-bottom: 15px;
    min-width: 250px;
}

.com-stionlinestore form input:focus {
    border-color: #3498db;
}

.com-stionlinestore form input.valid,
.com-stionlinestore form select.valid,
.com-stionlinestore form input.valid:focus,
.com-stionlinestore form select.valid:focus {
    border-color: #4bc985;
    background-color: #f1fcf6;
}

.com-stionlinestore form input.error,
.com-stionlinestore form select.error,
.com-stionlinestore form input.error:focus,
.com-stionlinestore form select.error:focus {
    border-color: #ff7070;
    background-color: #fff3f3;
}

/* Unverified VAT ID */
.com-stionlinestore form input.unverified,
.com-stionlinestore form input.unverified:focus {
    border-color: #f0ad4e;
    background-color: #fffaf2;
}

.com-stionlinestore form input:disabled,
.com-stionlinestore form select:disabled,
.com-stionlinestore form input.disabled,
.com-stionlinestore form select.disabled {
    background-color: #f8f8f8;
    color: #8b8b8b;
}

.com-stionlinestore form input.button {
    margin: 0 auto;
}

.com-stionlinestore form label.checkbox {
    display: block;
    position: relative;
    padding: 9px 0 0 30px;
    margin: -5px 0 15px 0;
    cursor: pointer;
    user-select: none;
    font-size: 16px;
    max-width: 300px;
}

/* The zloty option shows the subtotal or the unavailable rate note under the caption, which is longer than other options */
.com-stionlinestore form label.checkbox.zloty {
    max-width: none;
}

.com-stionlinestore form label.checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.com-stionlinestore form label.checkbox span.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 21px;
    width: 21px;
    border: 1px solid #c8c8c8;
}

.com-stionlinestore form label.checkbox input:checked ~ .checkmark {
    background-color: #338adb;
    border: none;
}

.com-stionlinestore form label.checkbox span.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.com-stionlinestore form label.checkbox input:checked ~ .checkmark:after {
    display: block;
}

.com-stionlinestore form label.checkbox .checkmark:after {
    left: 7px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(43deg);
}

.com-stionlinestore form span {
    display: block;
    margin: 10px 0 30px 0;
}

.com-stionlinestore form > span:not(.checkmark) {
    margin-top: 20px;
}

.com-stionlinestore form span.city-error {
    display: inline;
}

/* Note under an unverified VAT ID */
.com-stionlinestore form > span.vat-unverified {
    margin: -8px 0 15px 4px;
    max-width: 600px;
    font-size: 13px;
    line-height: 1.4;
    color: #b26a00;
}