/* Quote Engine Header Styles */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #000;
    border-bottom: 1px solid #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.8);
}

.header-bar {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    max-width: 100%;
    box-sizing: border-box;
}

.header-left {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-left h2 {
    font-size: 1rem;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    text-align: left;
    font-weight: 400;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    height: 42px;
    /* 50px header - 4px top - 4px bottom = 42px */
}

.logo-wrapper img {
    height: 60%;
    width: auto;
    padding: 10px 0;
    /* 4px top and bottom padding */
    margin-right: 20px;
    object-fit: contain;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.header-right .btn,
.deadline-btn {
    background: var(--jd3-purple);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
    line-height: 1.2;
}

.header-right .save-btn:hover {
    background: #e600e6;
    transform: translateY(-1px);
}

/* Accepted mode: show small white accepted text in header middle and hide action buttons */
body.accepted .header-right .deadline-btn,
body.accepted .header-right .accept-quote-btn {
    display: none !important;
}

.accepted-header-note {
    color: #fff;
    font-size: 12px;
    opacity: 0.9;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .accepted-header-note {
        font-size: 11px;
        max-width: 55vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .header-bar {
        padding: 0 15px;
    }

    .header-left h2 {
        font-size: 1rem;
    }

    .header-right {
        gap: 8px;
    }


}

@media (max-width: 480px) {
    .header-bar {
        padding: 0 10px;
    }

    .header-left h2 {
        font-size: 0.9rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 120px;
    }

    .logo-wrapper {
        height: 36px;
    }

    .header-right {
        gap: 6px;
    }


}