/* ===== Modern Total Price Display ===== */
.total-price {
    position: fixed;
    bottom: 5rem;
    right: 1rem;
    left: auto;
    background: linear-gradient(145deg, rgba(28, 28, 40, 0.95) 0%, rgba(20, 20, 32, 0.98) 100%);
    border: 1px solid rgba(127, 133, 228, 0.3);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.35),
        0 4px 12px rgba(127, 133, 228, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: #e0e4f0;
    font-weight: 600;
    width: 260px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.total-price:hover {
    border-color: rgba(127, 133, 228, 0.5);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.4),
        0 6px 16px rgba(127, 133, 228, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.total-price-line {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.total-price-label {
    white-space: nowrap;
    color: #a0a4b8;
    font-weight: 500;
}

.total-price-value {
    white-space: nowrap;
    background: linear-gradient(135deg, #7f85e4 0%, #a89fef 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    font-size: 1.1em;
}

/* When system-config is collapsed show label on first line and value on second line */
body.system-collapsed #total-price-container .total-price-line,
body.system-collapsed .total-price .total-price-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

/* Ensure full width utilization when expanded (existing rule kept) */

body.system-open .total-price {
    width: 100%;
    max-width: 365px;
    justify-content: center;
}

body.system-open .quote {
    width: 100%;
    max-width: 365px;
    transition: none;
    min-width: 0;
    gap: 1rem;
    justify-content: center;
}

.total-price-mail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    fill: #7f85e4;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(127, 133, 228, 0.3));
}

.total-price-mail.active {
    animation: bob 1.5s ease-in-out infinite;
}

.total-price-mail:hover {
    fill: #ffffff;
    transform: scale(1.1);
    filter: drop-shadow(0 3px 6px rgba(255, 255, 255, 0.2));
}

.total-price-mail svg {
    width: 100%;
    height: 100%;
}

@keyframes bob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}

/* ===== Modern Quote Button ===== */
.quote {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    left: auto;
    background: linear-gradient(145deg, rgba(28, 28, 40, 0.95) 0%, rgba(20, 20, 32, 0.98) 100%);
    border-radius: 16px;
    padding: 0.9rem 1.25rem;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.35),
        0 4px 12px rgba(231, 74, 78, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: #ffffff;
    font-weight: 600;
    width: 260px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-image 0.35s ease;
    border: 1px solid transparent;
    background-image: 
        linear-gradient(145deg, rgba(28, 28, 40, 0.95) 0%, rgba(20, 20, 32, 0.98) 100%),
        linear-gradient(135deg, #e74a4e 0%, #7f85e4 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.quote span {
    background: linear-gradient(135deg, #e74a4e 0%, #9a8ff0 50%, #7f85e4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.quote-mail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    fill: url(#email-gradient);
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(231, 74, 78, 0.25));
}

.quote-mail.active {
    animation: bob 1.5s ease-in-out infinite;
}

.quote-mail:hover {
    fill: #ffffff;
    transform: scale(1.1);
}

.quote-mail svg {
    width: 100%;
    height: 100%;
}

.quote:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.4),
        0 6px 20px rgba(231, 74, 78, 0.15),
        0 4px 12px rgba(127, 133, 228, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    background-image: 
        linear-gradient(145deg, rgba(42, 42, 58, 0.98) 0%, rgba(28, 28, 40, 1) 100%),
        linear-gradient(135deg, #ff6b6f 0%, #9a94f0 100%);
}

.quote:hover .quote-mail {
    fill: #ffffff;
    filter: drop-shadow(0 3px 8px rgba(255, 255, 255, 0.2));
}

.quote:hover span {
    background: linear-gradient(135deg, #ff7a7e 0%, #b0a8f8 50%, #9a94f0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Active/Click state */
.quote:active {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.35),
        0 3px 10px rgba(231, 74, 78, 0.1);
}