/* Bid Sticky Bar Component Styles */

.budi-bidstickybar {
    box-shadow: 0px -4px 20.9px 0px rgba(0, 0, 0, 0.11);
}

.budi-bidstickybar__toggle {
    padding: 16px;
    font-size: 18px;
    line-height: 1.2;
    color: var(--neutral-black);
}

.budi-bidstickybar__header {
    padding-left: 16px;
    padding-right: 16px;
}

.budi-bidstickybar__header .budi-bidstickybar__toggle {
    flex: 1 1 auto;
}

.budi-bidstickybar__login--header {
    display: none;
    white-space: nowrap;
}

.budi-bidstickybar__login--body {
    display: block;
}

.budi-bidstickybar__toggle-icon {
    font-size: 16px;
    width: 16px;
    height: 16px;
    transition: all 0.3s;
}

.budi-bidstickybar__toggle[aria-expanded="true"] .budi-bidstickybar__toggle-icon {
    transform: rotate(180deg);
}

.budi-bidstickybar__toggle[aria-expanded="true"] {
    padding-bottom: 8px;
}

.budi-bidstickybar__body .budi-bid-information {
    padding: 10px 22px;
}



/* Hide Bid Sticky Bar when installed as PWA (standalone mode) */
@media (display-mode: standalone) {
    .budi-bidstickybar {
        display: none;
    }
}

/* When collapsed (aria-expanded=false on the toggle), show header login */
.budi-bidstickybar__toggle[aria-expanded="false"] ~ .budi-bidstickybar__login--header {
    display: inline-block;
}

/* When expanded, hide header login */
.budi-bidstickybar__toggle[aria-expanded="true"] ~ .budi-bidstickybar__login--header {
    display: none;
}

/* Body login visibility ties to collapse state */
.budi-bidstickybar__collapse.show .budi-bidstickybar__login--body { display: block; }
.budi-bidstickybar__collapse:not(.show) .budi-bidstickybar__login--body { display: none; }
