/*
  Styles inspired by user feedback for a modern, "frosted glass" look.
*/

/* --- General System Fonts --- */
:root {
    --kt-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --kt-primary-color: #0058aa;
    --kt-primary-color-light: #00aaff;
    --kt-container-bg: rgba(255, 255, 255, 0.7);
    --kt-container-radius: 10px;
    --kt-text-color: #333;
}

/* --- General Animations --- */
@keyframes kt-fade-in-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes kt-number-pop { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* --- Cart Discount Widget --- */
.kt-cart-discount-display-wrapper {
    position: relative;
    font-family: var(--kt-font-family);
}

.kt-cart-discount-display-wrapper .cdd-container { 
    display: flex; 
    flex-direction: column; 
    gap: 12px;
    padding: 20px;
    background: var(--kt-cd-main-bg, var(--kt-container-bg));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--kt-cd-border-radius, var(--kt-container-radius)); 
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: left;
    color: var(--kt-text-color);
}

/* Unlocked tier message */
.cdd-active { 
    display: flex; 
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--kt-cd-badge-bg, var(--kt-primary-color));
}

.cdd-qty { 
    font-size: 14px;
    font-weight: 400;
    color: var(--kt-cd-qty-color, #555); 
}

/* Next tier message */
.cdd-next {
    font-size: 15px;
}

.cdd-progress-wrapper { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }

.cdd-progress-bar { 
    width: 100%; 
    height: 9px;
    background: rgba(0, 0, 0, 0.08); 
    border-radius: 3px; 
    overflow: hidden; 
}

.cdd-progress-fill { 
    height: 100%; 
    background: var(--kt-cd-progress-fill, linear-gradient(90deg, var(--kt-primary-color-light) 0%, var(--kt-primary-color) 100%));
    border-radius: 3px; 
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1); 
}

.cdd-progress-text { 
    color: var(--kt-cd-progress-text-color, var(--kt-text-color)); 
    font-size: 16px;
    line-height: 1.5;
    margin-top: 3px;
    text-align: center;
}

.cdd-progress-text strong { 
    font-weight: 700;
    color: var(--kt-cd-badge-bg, var(--kt-primary-color));
}

/* Max discount reached message */
.cdd-max { 
    font-size: 15px;
    text-align: center; 
    font-weight: 600; 
    color: var(--kt-cd-badge-bg, var(--kt-primary-color));
}

/* Empty cart state */
.cdd-empty {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
}
.cdd-tiers-title { 
    font-weight: 700; 
    font-size: 16px;
    color: var(--kt-text-color);
}
.cdd-tiers {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}
.cdd-tier-separator {
    color: #ccc;
    margin: 0 5px;
}

/* --- Animation Presets --- */
/* A single, simple animation */
.kt-anim-preset-subtle-fade .cdd-container,
.kt-anim-preset-slide-in-up .cdd-container,
.kt-anim-preset-scale-in .cdd-container,
.kt-anim-preset-fade-in-right .cdd-container,
.kt-anim-preset-bounce-in .cdd-container { 
    animation: kt-fade-in-up 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Animation Triggers --- */
.is-newly-updated .kt-animated-number { 
    display: inline-block; 
    animation: kt-number-pop 0.7s ease-in-out; 
}

/* Mobile */
@media (max-width: 768px) {
    .kt-cart-discount-display-wrapper .cdd-container {
		padding: 15px;
        gap: 10px;
	}
    .cdd-active { font-size: 16px; }
    .cdd-qty { font-size: 13px; }
    .cdd-progress-text, .cdd-next { font-size: 14px; }
}