#items-list { margin: 20px 0; }
.main-content { overflow-x: hidden; }

.item-title { max-height: 45px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; margin: 15px 0px 5px 0; font-weight: bold; font-size: 14px; text-align: left; }
.item-descr { max-height: 100px; overflow: hidden; font-size: 12px; text-align: left; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; }
.item-price { font-size: 22px; color: #ff4242; }

.item-show-detail:hover {  cursor: pointer; text-decoration: underline; }
.item-detail-image { margin: 10px 0; flex: 1 1 50%; position: relative; }
.item-detail-image img { border-radius: var(--border-radius); width: 100%;}
.item-detail-text { font-size: 18px; width: 100%; min-width: 300px; flex: 2 1 100%; color: #222; padding: 30px; border-radius: var(--border-radius); background-color: #ffffffbb; margin-top: 10px;}
.item-detail img, .item-detail .ribbon { cursor: pointer; }
.item-detail-text .title { line-height: 40px; margin: 0 0 5px 0; }
.item-detail-text .description { margin: 20px 0; }
.item-detail-text .description div { margin-bottom: 10px; }
.item-detail-text .description p { margin-bottom: 10px; }
.item-detail-text .description table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.item-detail-text .description table th, .item-detail-text .description table td { padding: 8px; border: 1px solid #ccc; text-align: left; }
.item-detail-text .description table th { background-color: #f4f4f4; font-weight: bold; }
.dii-small { cursor: pointer; }
.item-rating-box { background-color: #ffffffbb; border-radius: var(--border-radius); padding: 20px; }
.ratingprogress { border-radius: calc(var(--border-radius) / 2); height: 14px; background-color: #e0e0e0; overflow: hidden; }
.progressleft { border-radius: calc(var(--border-radius) / 2); height: 14px; background-color: #fe933e; }

div.availabilityin { color: #19a519; }
div.availabilitya3 { color: #3e89df; }
div.availabilitya7 { color: #3e89df; }
div.availabilitynot { color: #ff3535; }
.btn.availabilitynot { text-decoration: line-through; }


.cart-progress-container { border-radius: var(--border-radius); overflow: hidden; display: inline-block; margin: 20px 0 13px 0; } 
.cart-progress-container .steps{ display:flex; gap:0px; margin:0; padding:0; font-size: min(3vw, 22px); position: relative; }
.cart-progress-container .steps li{ cursor: pointer; flex-grow: 1; list-style:none; display:flex; align-items:center; justify-content:center; height: min(7vw, 60px); }
.cart-progress-container .steps li i { margin-right: min(1.5vw, 12px); font-size: min(2.5vw, 22px); }

.cart-progress-container .steps li{ clip-path:polygon(0 0,calc(100% - min(2vw,12px)) 0,100% 50%,calc(100% - min(2vw,12px)) 100%,0 100%,min(2vw,12px) 50%); }
.cart-progress-container .steps li:first-child{ clip-path:polygon(0 0,calc(100% - min(2vw,12px)) 0,100% 50%,calc(100% - min(2vw,12px)) 100%,0 100%); }
.cart-progress-container .steps li:last-child{ clip-path:polygon(0 0,100% 0,100% 100%,0 100%,min(2vw,12px) 50%); }


.cart-progress-container .steps li { background:#f7f7f7; color:#888888; }

.cart-progress-container[data-step="0"] .steps li:nth-child(-n+1),
.cart-progress-container[data-step="1"] .steps li:nth-child(-n+1),
.cart-progress-container[data-step="2"] .steps li:nth-child(-n+2),
.cart-progress-container[data-step="3"] .steps li:nth-child(-n+3),
.cart-progress-container[data-step="4"] .steps li:nth-child(-n+4) {background: #fe933e; color:#ffffff;}


.welcometext { font-size: 18px; width: 100%; min-width: 300px; }
.welcometext div { margin-bottom: 10px; }
.welcometext p { margin-bottom: 10px; }
.welcometext table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.welcometext table th, .welcometext .description table td { padding: 8px; border: 1px solid #ccc; text-align: left; }
.welcometext table th { background-color: #f4f4f4; font-weight: bold; }

.item-image { transform: scale(1.02); display: flex; overflow: hidden; border: 1px solid #dddddd; box-shadow: 0 0 8px 0 #00000011; border-radius: var(--border-radius); }
.item-image:hover img { transform: scale(1.04); }

.background-image { transition: all .3s;opacity: .2; position: absolute; width: calc(100vw - 250px); height: 500px; left: 0; top: 0; pointer-events: none; overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, rgba(255,255,255, 1) 0%, rgba(255,255,255, 1) 20%, rgba(255,255,255, 0.8) 30%, rgba(255,255,255, 0.6) 40%, rgba(255,255,255, 0.5) 50%, rgba(255,255,255, 0.2) 80%, rgba(255,255,255, 0) 100%); 
    mask-image: linear-gradient(to bottom, rgba(255,255,255, 1) 0%, rgba(255,255,255, 1) 20%, rgba(255,255,255, 0.8) 30%, rgba(255,255,255, 0.6) 40%, rgba(255,255,255, 0.5) 50%, rgba(255,255,255, 0.2) 80%, rgba(255,255,255, 0) 100%); 
}
.background-image .hero-image { width: 100%; height: 100%; }
.background-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: unset; }

.sidebar.collapsed ~ .main-content .background-image { width: 100vw; }
.sidebar.hidden ~ .main-content .background-image { width: 100vw; }

.store-details { height: 300px; border-radius: var(--border-radius); margin: 0; padding: 40px; overflow: hidden; background-color: #ffffffaa; }
#text-store-name { overflow: hidden; max-height: 36px; text-overflow: ellipsis; white-space: nowrap; font-size: 32px; line-height: 36px; }
#text-store-description { max-height: 72px; overflow: hidden; margin-top: 5px; }

.welcometext { word-wrap: break-word; height: unset; }

.items-in-cart, .unpaid-orders { background-color: #fe933e; border-radius: 14px; padding: 3px 10px; margin: -6px 0 -5px 8px; font-size: 12px; color: #ffffff; }
.items-in-cart:empty, .unpaid-orders:empty { display: none; }
.unpaid-orders { background-color: #ff7d73; }

.cart-item { display: grid; grid-template-columns: auto 2fr 1fr 1fr; background-color: #fefefe; border: 1px solid #dddddd; border-radius: var(--border-radius); margin-bottom: 10px; padding: 5px 10px 5px 5px;}

.header-cart.active::after { overflow: hidden; content: attr(data-after); position: absolute; width: 14px; height: 13px; font-size: 10px; display: flex; justify-content: space-around; align-items: center; background-color: #444444; border-radius: 0 0 25% 25%; top: 1px; right: 7px; border: 2px solid #444444; border-top: 3px solid #444444; color: #ffffff; }
.header-cart.active[data-after="99+"]::after { content: "99"; border-top: 3px solid #fe933e; }

.cart-section-title { font-size: 24px; line-height: 28px; }
.cart-item-minus, .cart-item-plus { cursor: pointer; font-size: 32px; color: #fe933e; user-select: none; background: linear-gradient(#ffffff, #ffffff) no-repeat center / 20px 20px; }
.cartitemprice { text-align: right; margin-right: 10px; }
.cart-item .quantity { min-width: 30px; text-align: center; }

.ribbon { position: absolute; right: -6px; top: -6px; z-index: 4; overflow: hidden; width: 130px; height: 130px; text-align: right; pointer-events: none; }
.ribbon span { font-size: 15px; font-weight: bold; color: #FFF; text-align: center; line-height: 40px; transform: rotate(45deg); width: 170px; display: block; background: #79A70A; background: linear-gradient(#9BC90D 0%, #79A70A 100%); position: absolute; top: 25px; right: -39px; box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1); }
.ribbon span::before { content: ""; position: absolute; left: 0px; top: 100%; z-index: -1; border-left: 4px solid #79A70A; border-right: 4px solid transparent; border-bottom: 4px solid transparent; border-top: 4px solid #79A70A; }
.ribbon span::after { content: ""; position: absolute; right: 0px; top: 100%; z-index: -1; border-left: 4px solid transparent; border-right: 4px solid #79A70A; border-bottom: 4px solid transparent; border-top: 4px solid #79A70A; }
.item-detail-image .ribbon { width: 170px; height: 170px; }
.item-detail-image .ribbon span { font-size: 22px; line-height: 50px; width: 220px; top: 35px; right: -50px;   }

.backupoptions,
.emptycartmessage,
.orders-container,
.order-details,
.orders-list,
.cart-subtotal-container,
.cart-total-container,
.cart-shipping-container,
.cart-overview-container,
.cart-address-container { background-color: #f7f7f7cc; border-radius: var(--border-radius); padding: 20px; z-index: 3; }
.infobox { border: 1px solid #ddd; border-radius: var(--border-radius); }
.emptycartmessage { padding: 40px 20px; }

.carrier-checkbox { width: 20px; flex: 0 0 auto; }
.carrier-name { flex: 1 1 auto; }
.carrier-cost { flex: 1 1 auto; text-align: right; }
.cart-carrier-option { cursor: pointer; box-shadow: 0 0 2px 1px #4848481c; padding: 11px 13px !important; font-size: 16px; border: 1px solid #ccc; border-radius: var(--border-radius); outline: none; background-color: #fff; margin-bottom: 5px; }
.cart-carrier-option.disabled { opacity: 0.5; }
.cart-carrier-option.notavailable { cursor: default; }
.cart-carrier-option.disabled .carrier-name { text-decoration: line-through; }
.cart-carrier-option:hover { box-shadow: 0 0 0px 1px #52a3ff;  }

.charleft { position: absolute; right: 30px; top: 30px; color: #61a661; cursor: pointer; }
.charleft::before { content: "~"; }
.charleft:after { content: " left"; }
.charleft.danger:after { content: " over"; }
.charleft.danger { color: #f44336; }
.charleft.danger::before { content: "!"; margin-right: 1px; font-weight: bold; }
.charleft:has(.fas)::before { content: "" !important; }


.checkout-items hr { width: 100%; display: block; height: 1px; border: none; background-color: #e0e0e0; margin: 8px 0; }
.checkout-items > * { padding: 0 15px; }
.checkout-items > *:nth-child(3n+1) { padding: 0; }
.checkout-items > *:nth-child(3n+3) { padding: 0; }
#delivery-info-preview, .order-delivery { word-break: break-word;}

.stepdot { margin-left: 10px; width: 30px; height: 30px; border-radius: 50%; background: #efefef; display: inline-flex; align-items: center; justify-content: center; position: relative;  }
.stepdot .fas, .stepdot .far { font-size: 16px; color: #888888; }
.stepdot.line { margin-bottom: 10px; }
.stepdot.line::after { content: ""; position: absolute; left: calc(50% - 1px); top: 100%; width: 2px; height: 10px; background: #efefef; z-index: 5; }
.stepdot::before { content: ""; position: absolute; left: -10px; top: calc(50% - 1px); width: 10px; height: 2px; background: #efefef; z-index: 5; }

.order-history-item:not(:last-child) .order-status-history-row:before { content: ""; display: block; width: 100%; height: 1px; border-top: 1px dashed #999; position: absolute; left: 0px; bottom: -15px; }
.order-history-item:not(:last-child) .order-status-history-row:after { content: ""; display: block; width: 1px; height: 100%; border-left: 1px dashed #999; position: absolute; left: -24px; top: 28px; }
.order-history-bullet { color: #999; margin-top: 5px; }
.order-history-item:last-child .order-history-bullet { padding: 2px; margin: -2px; border: 1px solid #555; border-radius: 50%; color: #555; }
.rate-order-stars { cursor: pointer; user-select: none;}
.rate-order-stars i { margin: 0 5px; }

.menu-item[data-toggle="admin"] { opacity: 0.3; }
.menu-item[data-toggle="admin"]:hover { opacity: 1; }


@keyframes spin-180-pause { 0% { transform: rotate(0deg); } 20% { transform: rotate(180deg); } 50% { transform: rotate(180deg); } 70% { transform: rotate(360deg); } 100% { transform: rotate(360deg); } }
.fa-spin-180 { display: inline-block; animation: spin-180-pause 3s linear infinite; }


@keyframes gradientSlide { 0%   { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.inProgress { background: linear-gradient(90deg, currentColor 0%, #FFFFFF 50%, currentColor 100%); background-size: 200% 100%; background-clip: text; color: transparent; animation: gradientSlide 2s linear infinite; }

@media(max-width: 992px) {
#text-store-header.nowrap { white-space: normal; }
.main-content .background-image { width: 100vw; }
}

@media (min-width: 1200px) {
.item-detail-text font[size="1"] { font-size: 14px; }
.item-detail-text font[size="2"] { font-size: 18px; }
.item-detail-text font[size="3"] { font-size: calc(18px * 1.25); }
.item-detail-text font[size="4"] { font-size: calc(18px * 1.25 * 1.25); }
.item-detail-text font[size="5"] { font-size: calc(18px * 1.25 * 1.25 * 1.25); }
.item-detail-text font[size="6"] { font-size: calc(18px * 1.25 * 1.25 * 1.25 * 1.25); }
.item-detail-text font[size="7"] { font-size: calc(18px * 1.25 * 1.25 * 1.25 * 1.25 * 1.25); }

.item-detail-text li::marker { font-size: inherit; padding: 40px; }
.item-detail-text li:has(> font[size="1"]) { font-size: 14px; }
.item-detail-text li:has(> font[size="2"]) { font-size: 18px; }
.item-detail-text li:has(> font[size="3"]) { font-size: calc(18px * 1.25); }
.item-detail-text li:has(> font[size="4"]) { font-size: calc(18px * 1.25 * 1.25); }
.item-detail-text li:has(> font[size="5"]) { font-size: calc(18px * 1.25 * 1.25 * 1.25); }
.item-detail-text li:has(> font[size="6"]) { font-size: calc(18px * 1.25 * 1.25 * 1.25 * 1.25); }
.item-detail-text li:has(> font[size="7"]) { font-size: calc(18px * 1.25 * 1.25 * 1.25 * 1.25 * 1.25); }
}

@media (max-width: 1200px) {
    .item-detail-text { font-size: 16px; }
}

@media (max-width: 768px) {
    #items-table { column-gap: 4% !important; }
    .item-detail { flex-wrap: wrap; }
    .item-detail-text { margin-top: 0; min-width: unset; }
    .item-detail-text .title { font-size: 25px; line-height: 30px; }
    .item-detail-text .description { margin: 13px 0; }
    .store-details-container { flex-wrap: wrap; }
    .logo-image.miw-300 { min-width: unset; max-width: unset; }
    .cart-item { grid-template-columns: auto 2fr; }
    .cart-item > :nth-child(1) { grid-area: 1 / 1; }
    .cart-item > :nth-child(2) { grid-area: 1 / 2; }
    .cart-item > :nth-child(3) { grid-area: 2 / 1; }
    .cart-item > :nth-child(4) { grid-area: 2 / 2; }
    .cart-item-image { width: 100px; }
    .cart-item-image img { max-width: unset; }
    .cart-item-quantity { gap: 8px; padding: 0 10px 10px 10px; }
    .cartitemprice { margin-bottom: 10px; }
    .cart-item { margin-bottom: 20px; }
    .order-row-images { display: block; }

    .cart-progress-container .steps li span { display: none; }
    .cart-progress-container[data-step="0"] .steps li:nth-child(1) span { display: block;}
    .cart-progress-container[data-step="1"] .steps li:nth-child(1) span { display: block;}
    .cart-progress-container[data-step="2"] .steps li:nth-child(2) span { display: block;}
    .cart-progress-container[data-step="3"] .steps li:nth-child(3) span { display: block;}
    .cart-progress-container[data-step="4"] .steps li:nth-child(4) span { display: block;}
    .cart-progress-container .steps li { height: 50px; }
    .cart-progress-container .steps { font-size: min(4vw, 20px); }
    .cart-progress-container .steps li i { margin: 1.5vw; font-size: min(4vw, 20px); }
    .cart-section-title { font-size: 22px; line-height: 26px; }

}
