.theBidButton {
    display: none;
    background-color: red;
    background: linear-gradient(to right,red 0%,red 100%);
}

.biddingPage {
    display: flex;
    justify-content: center;
    padding-bottom: 12px;
}

.biddingPage .auctionCard {
    padding-bottom: 0px;
}

.biddingPage .auctionDetails {
    flex: 0 0 auto;
    width: auto;
    margin-top: 2px;
}

.biddingPage .auctionLogoContainer {
    width: 130px;
    max-width: 130px;
    text-align: right;
}

.biddingPage .auctionLogoContainer .card-img-top {
    max-height: 70px;
}

.biddingPage .auctionLinks {
    display: none;
}

.video-js-player {
    overflow: hidden;
}

.biddingPage .buyerSection {
    gap: 2px 4px;
}

.biddingPage .bidDiv {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0px;
}

.biddingPage .bidDiv #shotClockRow {
    padding-left: 15px;
}

@media (max-width: 767.98px) {
    .biddingPage .bidDiv #shotClockRow {
        padding-left: 5px;
    }

    .biddingPage .auctionDetails {
        display: none !important;
    }
}

.biddingPage .bidDiv .bidButtonsDiv {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
}
.biddingPage .bidDiv #shotClockRow~#bidButtonsDiv .theBidButtonHolderClass {
    padding: 5px 15px 3px 5px;
}

.biddingPage #hudLot .lotDetailsText:not(.noGallery) {
    padding-right: min(94px, max(85px, 7.83vw));
}

.biddingPage #hudLot .lotDetailsText.noGallery {
    padding-right: 0px;
}

.biddingPage .proxyBiddingButton {
    background-color: #0062cc;
}

/* 2 columns for medium devices 1024 width or less */
@media only screen and (min-width:768px) and (max-width:1024px) {
    .auctionTitleRow {
        padding: 5px;
        text-align: center;
    }

    .grid {
        margin: 0 auto;
        padding: 0;
    }

    .grid-sizer,.grid-item {
        width:49% !important;
        margin-bottom: 1px;
        margin-left: auto;
        margin-right: auto;
    }

    .gutter-sizer {
        width: 2%;
    }

    .card-header {
        font-size: smaller;
    }

    .p-2 {
        font-size: smaller;
    }
}

/* portrait mode? */
@media only screen and (orientation:portrait) and (max-width:767.98px) {
    .auctionDetailsButton {
        margin-left: 10px;
    }

    .auctionTitleRow {
        padding: 5px;
        text-align: center;
        display: none;
    }

    .grid-sizer,.grid-item {
        width: 48% !important;
        margin-bottom: 1px;
        margin-left: 1%;
        margin-right: auto;
    }

    .gutter-sizer {
        width: 0.21%;
    }
}

/* 1 column for small devices */
@media only screen and (min-width:321px) and (max-width:767.98px) {
    .auctionDetailsButton {
        margin-left: 10px;
    }

    .auctionTitleRow {
        padding: 5px;
        text-align: center;
        display: none;
    }

    .biddingPage {
        margin: 0 auto;
        padding: 5px;
        width: 100%;
    }

    .grid {
        margin: 0 auto;
        padding: 0;
    }

    .grid-sizer,.grid-item {
        width: 98% !important;
        margin-bottom: 1px;
        margin-left: 1%;
        margin-right: auto;
    }

    .gutter-sizer {
        width: 1%;
    }

    .card-header {
        background-color: var(--dusty-navy-blue) !important;
        color: white !important;
        font-weight: bold;
        font-size: smaller;
    }

    .biddingPage .custom-switch {
        padding-left: 1.5rem;
    }
}

/* Mobile HUD Header Lot Info Styles */
.hudMobileLotInfo {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'Montserrat', Verdana, sans-serif;
}

.hudMobileLotNumber {
    background-color: var(--hudMobileLotNumberBg, #303036);
    color: var(--hudMobileLotNumberColor, #fff);
    padding: 1px 2px;
    font-size: 17px;
    line-height: 1;
    white-space: nowrap;
    position: relative;
    border: 2px solid var(--hudMobileLotNumberBg, #303036);
    border-radius: 4px;
}

.hudMobileLotName {
    flex: 1 1 0;
    font-family: 'Brother-1816-Medium', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
}

/* Responsive behavior for HUD header */
@media (max-width: 767.98px) {
    .hudHeader .hudHeaderTitle,
    .hudHeader .live-badge {
        display: none !important;
    }
    
    .hudMobileLotInfo {
        display: flex !important;
        width: 100%;
    }
}

@media (min-width: 768px) {
    .hudMobileLotInfo {
        display: none !important;
    }

    .biddingPage .auctionDetails {
        display: flex;
    }
}

.auctionDetails {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    text-align: center;
}

.auctionDetails .detailSeparator {
    font-weight: bold;
    color: #444;
    padding: 0 8px;
}

.auctionDetailsButton {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: fit-content;
}

.currentTime {
    color: black;
    font-weight: bold;
    font-size: 15px;
    height: 40px;
}

.fakeTime {
    color: red;
    font-weight: bold;
    font-size: 15px;
}

.wonModal {
    position: fixed;
    top: 5%;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: none;
    overflow: hidden;
    outline: 0;
}

@media (max-width:576px) {
    .modal-dialog.modal-dialog-slideout {
        width: 80%;
    }
}

.modal-dialog-slideout {
    min-height: 100%;
    margin: 0 0 0 auto;
    background: #fff;
}

.modal.fade .modal-dialog.modal-dialog-slideout {
    -webkit-transform: translate(100%,0);
    transform: translate(100%,0);
}

.modal.fade.show .modal-dialog.modal-dialog-slideout {
    -webkit-transform: translate(0,0);
    transform: translate(0,0);
    flex-flow: column;
}

.modal-dialog-slideout .modal-content {
    border: 0;
}

.grayCol {
    border: 1px solid gray;
}

.redCol {
    border: 1px solid red;
}

.blueCol {
    border: 1px solid blue;
}

.blackCol {
    border: 1px solid black;
}

.card-header {
    background-color: black !important;
    color: #f2cb07 !important;
    font-weight: bold;
}

.card-header .btn {
    text-decoration: none;
    text-transform: capitalize;
    font-family: 'Brother-1816', Arial, sans-serif;
    font-size: 80% !important;
}

/* Bid block styles for button etc. */
.specialInstructions {
    text-align: center;
}

.bidMessages{
    text-align: center;
}

.bidMessages .alert,
.lastCallMessages .alert {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    margin-left: 5px;
    margin-right: 5px;
    padding: 0px 5px !important;
    line-height: 1.15;
}

.inMessage {
    text-align: center;
}

.lastCallMessages {
    text-align: center;
    font-weight:bold;
    width: 100%;
}

.lastCallMessages > * {
    padding: 0 14px !important;
    border-radius: 4px;
    text-align: center;
}

.lastCallMessages .lastCallWarning {
    border: 1px solid #e1ab08;
    background-color: #ffdc74;
    color: #855304;
}

.lastCallMessages .lastCallDanger {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.itSold {
    text-align: center;
    font-weight:bold;
}

.theBidButtonHolderClass {
    width:100%;
    padding:5px 15px 3px;
    margin-left:auto;
    margin-right:auto;
}

.theBidButton {
    display:none;
}

#slideToBid {
    margin:5px 20px;
    padding-top:0px;
    float:none;
    display:none;
}

#shotClockRow~#bidButtonsDiv #slideToBid {
    margin: 5px 5px 5px 5px;
}

#shotClockRow~#bidButtonsDiv #slideToBid #slideToText.squeeze{
    font-size: .9em;
}

@media (max-width: 370px) {
    #shotClockRow~#bidButtonsDiv #slideToBid #slideToText{
        font-size: .8em;
    }
}

#slideToBid .new-slider {
    border-radius: 8px;
}

.lotQtySelect {
    appearance:auto;
    -webkit-appearance:auto;
}

#optionConfirm,
#doubleUpConfirm {
    display: flex;
    align-items: center;
}

#optionConfirm .btn,
#doubleUpConfirm .btn {
    padding-top: .2em;
    padding-bottom: .2em;
    font-size: .875em;
    line-height: 1;
    font-weight: unset !important;
}

/* Portrait mode for phones */
@media screen and (max-width: 450px) and (orientation: portrait) {
    .theBidButtonHolderClass {
        padding:0;
        margin:0;
        float:left;
    }

    #slideToBid {
        float:none;
        padding-top:0px;
        display: block;
    }

    .theBidButton {
        height:40px;
        display:none !important;
    }
}

#lotTypeText {
    width:50%;
    margin-right: auto;
    margin-left: auto;
}

.lotPrice {
    display: none;
}

/* overall layout */
.auctionContent {
    display: flex;
    flex-direction: column;
    padding-bottom: 12px;
    max-width: 1400px;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 9px 0px #555;
    border-radius: 8px;
    padding: 0px 2px 2px;
    width: 100%;
    margin-top: -24px;
}

.biddingPage #hudLot .lotDetailsText {
    flex: 1 1 0;
    overflow: auto;
}

.biddingPage #hudLot .lotDetailsText::-webkit-scrollbar {
    -webkit-appearance: none;
}

.biddingPage #hudLot .lotDetailsText::-webkit-scrollbar:vertical {
    width: 10px;
}

.biddingPage #hudLot .lotDetailsText::-webkit-scrollbar:horizontal {
    height: 10px;
}

.biddingPage #hudLot .lotDetailsText::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, .4);
    border-radius: 10px;
    border: 2px solid #ffffff;
}

.biddingPage #hudLot .lotDetailsText::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: #ffffff;
    margin-top:4px;
    margin-bottom: 4px;
}

.biddingPage #hudLot .lotDetailsText::-webkit-scrollbar-button:vertical:start:increment,
.biddingPage #hudLot .lotDetailsText::-webkit-scrollbar-button:vertical:end:decrement {
    display: none;
}

/* Style the top caret (decrement button) */
.biddingPage #hudLot .lotDetailsText::-webkit-scrollbar-button:vertical:start:decrement {
    border-width: 0 5px 5px 5px; /* Creates the triangle shape */
    border-color: transparent transparent #808080 transparent;
    border-style: solid;
    border-radius: 3px;
    height: 9px;
}

/* Style the bottom caret (increment button) */
.biddingPage #hudLot .lotDetailsText::-webkit-scrollbar-button:vertical:end:increment {
    border-width: 5px 5px 0 5px; /* Creates the triangle shape */
    border-color: #808080 transparent transparent transparent;
    border-style: solid;
    border-radius: 3px;
    height: 9px;
}

.biddingPage #hudLot .lotHudGallery,
.biddingPage #hudLot .lotListGallery {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    padding: 0px 16px 2px 0px;
    z-index: 2;
}

.biddingPage #hudLot .lotHudGallery .imageGallery,
.biddingPage #hudLot .lotListGallery .imageGallery {
    align-items: center;
    justify-content: flex-end;
    padding: 3px 4px 5px;
    background-color: var(--imageGalleryColor);
    backdrop-filter: blur(5px);
    border: 1px solid #d3d3d3;
    border-radius: 10px;
    gap: 3px;
    flex-direction: column;
    margin-right: 4px;
}

.biddingPage #hudLot .lotHudGallery .imageGallery .imageGalleryText,
.biddingPage #hudLot .lotListGallery .imageGallery .imageGalleryText {
    line-height: 1;
    font-family: 'Brother-1816', Arial, sans-serif;
    font-size: min(14px, max(12px, 1.17vw));
    color: #444;
    white-space: nowrap;
}

.biddingPage #hudLot .lotHudGallery .imageGallery .imageGalleryText .fa,
.biddingPage #hudLot .lotListGallery .imageGallery .imageGalleryText .fa {
    font-size: calc(1em + 1px);
    color: #555;
}

.biddingPage #hudLot .lotHudGallery .imageGallery .imageContainer,
.biddingPage #hudLot .lotListGallery .imageGallery .imageContainer {
    position: relative !important;
    height: 30px !important;
    width: 100% !important;
    display: flex;
    justify-content: center;
    opacity: 100% !important;
}

.biddingPage #hudLot .lotHudGallery .imageGallery .imageContainer img,
.biddingPage #hudLot .lotListGallery .imageGallery .imageContainer img {
    max-height: 30px !important;
    max-width: 54px !important;
}

.biddingPage #hudLot .lotHudGallery .imageGallery .imageContainer a,
.biddingPage #hudLot .lotListGallery .imageGallery .imageContainer a {
    position: absolute;
    box-shadow: 0 1px 2px 1px #777;
}

.biddingPage #hudLot .lotHudGallery .imageGallery .imageContainer a:nth-child(1),
.biddingPage #hudLot .lotListGallery .imageGallery .imageContainer a:nth-child(1) {
    z-index: 2;
}

.biddingPage #hudLot .lotHudGallery .imageGallery .imageContainer a:nth-child(2),
.biddingPage #hudLot .lotListGallery .imageGallery .imageContainer a:nth-child(2) {
    transform: translate(-3px, 2px);
}

.biddingPage #hudLot .lotHudGallery .imageGallery .imageContainer a:nth-child(n+2),
.biddingPage #hudLot .lotListGallery .imageGallery .imageContainer a:nth-child(n+2) {
    display: none;
}

@media (min-width: 768px) {
    .auctionContent {
        padding: 0px 10px 12px;
        margin-top: -15px;
        margin-bottom: 5px;
    }
    .auctionContent > *:first-child { /* auction name & info row */
        flex: 0 0 auto;
    }
    .auctionContent > *:last-child { /* catalog and tools row */
        min-height: 30vh;
        margin-top: 4px;
    }
}

/* auction card style changes for bidding page */
.biddingPage .auctionCard {
    border-radius: 0px;
    border: 0px;
    background-image: none;
}

/* Bidding HUD Styles */
.biddingHud {
    font-size: min(16px, max(14px, 1.333vw));
    margin: 2px 0 5px 0;
    border-radius: 10px;
    padding: 0 6px 6px;
    background-color: var(--biddingPrimaryColorLighter);
}

.biddingHud .lotCard {
    border-top-right-radius: 0px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

.hudContent {
    display: flex;
    flex-wrap: wrap;
}

#hudLoadingContent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(3px);
    z-index: 10;
    gap: 10px;
    font-size: min(30px,max(2vw, 20px));
    font-family: 'Brother-1816', Tahoma, sans-serif;
    border-radius: 10px 0 0 10px;
}

#hudLoadingContent .lotLoadingIndicator {
    min-height: unset;
    color: #333;
}

@media (max-width: 767.98px) {
    #hudLoadingContent {
        display: flex;
        flex-direction: row-reverse;
    }
    #hudLoadingContent .lotLoadingIndicator .spinner-border {
        width: 1.5rem;
        height: 1.5rem;
    }
}

#hudBidding .dataDetails {
    display: flex !important;
}

.lotCardMinified .dataDetails {
    max-height: 20px;
}

.lotCardMinified .lotDetailsText {
    padding-bottom: 0 !important;
}

.lotCardMinified .after-slash {
    background-color: var(--lotCardMinifiedSlashColor);
}

.lotCardExpanded .dataDetails,
.lotDetails.show-details .dataDetails {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 15px;
    overflow: hidden;
}

#hudBidding {
    flex: 1 1 0;
    min-width: 50%;
    display: flex;
    flex-direction: column;
    position: relative;
}

#requestBuyerNumberLink {
    flex: 0 0 100%;
}

.hudHeader,
.biddingPage .card-header {
    position: relative;
    margin: 0px 2px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 5px;
    color: #fff;
    gap: 10px;
}

.hudHeader > .hudHeaderTitle,
.biddingPage .card-header {
    padding-left: 5px;
    font-family: 'Montserrat', Verdana, sans-serif;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 0;
}

.hudHeader > .live-badge {
    position: relative;
    font-size: 15px;
}

.hudHeader > .live-badge.notLive {
    display: none;
}

.hudBlockTitle {
    font-family: 'Brother-1816-Medium', Tahoma, sans-serif;
    color: #333;
    text-align: left;
    padding: 2px 10px;
    align-items: center;
}

.hudContent {
    display: flex;
    flex-wrap: wrap;
    border-radius: 10px 0px 10px 10px;
    background-color: #f5f5f5;
    border: 0;
}

.hudContent > * {
    flex: 1 1 0;
    width: 100%;
}

.hudBlockContent {
    padding: 5px;
}

#hudBidBlock {
    display: flex;
    flex-direction: row;
    border-top: 1px solid #808080;
}

.myInfo {
    border-radius: 5px 5px 0px 0px;
    margin: 0px 5px 0px 5px;
    background-color: #d8dbe0;
    font-family: 'Brother-1816-Medium', Verdana, sans-serif;
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 2px 16px;
    gap: 16px;
}

.hudBlockTitle, .myInfo {
    font-size: min(16px, max(13px, 1.28vw));
}

.myInfo .fa-gavel {
    font-size: 1.5em;
}
#hudLot {
    flex: 1 1 0;
    display: flex;
    position: relative;
} 
#hudLot #hudLotData {
    flex: 1 1 0;
    width: 100%;
}

#hudLot .lotCard {
    box-shadow: none !important;
    height: 100%;
    border: 0px;
    display: flex;
}

#hudBiddingOn {
    flex: 0 0 50%;
    min-width: 240px;
    position: relative;
}

#hudBidActions {
    flex: 1 1 0;
    border-left: 1px solid #808080;
    border-right: 1px solid #808080;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#hudBidActions #bidDiv .card {
    border-top: 0px;
    border-radius: 0px;
}

#hudBidActions .theBidButton {
    padding-top: 4px;
    padding-bottom: 4px;
    font-family: "Brother-1816-Medium", Arial, sans-serif;
    background: linear-gradient(180deg, #fa3333 0%, #fa0000 30%, #d91111 90%);
    border: 1px outset #ac4444;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#hudBidActions .theBidButton.lotSold {
    background: #405173 !important;
    border: 0px solid rgb(226, 232, 240) !important;
}

#hudMedia {
    flex: 1 1 0;
    position: relative;
}

.biddingPage .card {
    padding: 4px;
    border: 2px solid var(--biddingPrimaryColorLighter);
    border-radius: 10px;
}

.biddingPage .card-header {
    background-color: transparent !important;
    color: var(--dusty-navy-blue) !important;
    border-bottom: 0px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--biddingPrimaryColorLighter);
    min-height: 32px;
}

.on-the-block-message {
    background-color: #f5f5f5;
    padding: 20px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 150px;
}

.liveVideoContainer, .reelVideoContainer, .noVideoMessage {
    width: 100%;
    transition: all 0.3s ease;
}

.noVideoMessage {
    background-color: #000;
    color: #fff;
    height: 100%;
    position: relative;
}

.noVideoMessage .ratioPadding {
    padding-bottom: 56.25%; /* Maintain 16:9 aspect ratio */
}

.noVideoMessage .noVideoText {
    position: absolute;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    width: 100%;
    height: 100%;
    top: 0;
    justify-content: center;
    align-items: center;
}

/* Ensure the videos fit their containers */
.liveVideoContainer video, .reelVideoContainer video,
.liveVideoContainer iframe, .reelVideoContainer iframe {
    max-width: 100%;
    height: auto;
}

.theLotVideoHolder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.videoPlaceholderHud {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.videoPlaceholderHud img {
    width: 100%;
    height: auto;
}

.videoControlsHud {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.5);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.videoButtonsContainer {
    background-color: transparent;
    position: absolute;
    top: -15px;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center; /* Center the holder horizontally */
}

.videoButtonHolder {
    background-color: rgb(240, 240, 240, 0.8);
    border-radius: 8px;
    box-shadow: 0 0 5px 0px #555;
    width: auto;
    padding: 2px 8px;
    backdrop-filter: blur(3px);
    display: inline-flex; /* Use inline-flex to shrink to content width */
    align-items: center;
}

.biddingExtraCard {
    height: 100% !important;
}

.biddingExtraCardBody {
    margin-top: 2px;
    padding: 4px 2px;
    overflow-y: auto;
}

@media only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 800px) and (max-width: 844px) {
    #hudBidActions {
        border-left: 0px;
    }
}

.videoButtons {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.videoButton {
    padding: 1px 15px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.18s ease;
    background-color: var(--light-gray);
}

.videoButton:focus {
    outline: 0;
}

.videoButton.active {
    background-color: var(--blue);
    color: white;
    font-weight: bold;
}

.greyBackground {
    background-color: #e0e0e0;
    width: 100%;
    height: 30px;
}

.videoText {
    font-weight: bold;
}

.smallVideo {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
}

#reelVideoSection {
    width: 100%;
}

.videoButton[data-type="both"].active ~ .mediaContainer .row.no-gutters,
.videoButton[data-type="both"].active ~ .mediaContainer #hudMedia {
    display: block;
    max-height: 50%;
}

.videoButton[data-type="both"].active ~ .mediaContainer #hudMedia > div {
    max-height: 50%;
}

.videoButton[data-type="both"].active ~ .mediaContainer #hudMedia > div:nth-child(2) {
    margin-top: 15px;
}

.side-by-side-container {
    margin: 0 auto;
    display: flex;
    flex: 0 0 22.5%;
    height: 100%;
}

.side-by-side-container.both-active {
    flex-direction: column;
}

.mobileBidInstructionsContainer,.bidInstructionsContainer {
    font-size: 14px;
    text-align: center;
}

.bidInstructionsContainer {
    position: relative;
    width: 100%;
    font-family: 'Brother-1816-Medium', Tahoma, sans-serif;
    margin-top: 2px;
}

.mobileBidInstructionsContainer {
    display: none;
    margin-left: auto;
    font-family: 'Brother-1816', Tahoma, sans-serif;
    color: var(--placeholder-color);
}

.bidInstructHighlight {
    color: #333 !important;
}

.bidInstructionsContainer.bidInstructHighlight .bidInstructions {
    padding: 0px 5px;
    background-color: var(--bidInstructionsHighlight);
    border-radius: 4px;
    border: 1px solid #c7c762;
}

.mobileBidInstructionsContainer.bidInstructHighlight {
    padding: 0px 5px;
    border-radius: 4px;
    background-color: var(--bidInstructionsHighlight);
}

@media (min-width: 768px) {
    .biddingPage .auctionDetailsButtonContainer {
        align-self: center;
        width: 130px;
        order: 1;
    }
}

@media (max-width: 768px) {
    .biddingPage .lotCheckbox {
        border: 1px solid blue !important;
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 767.98px) {
    .hudContent {
        flex-direction: column;
    }

    .biddingPage .auctionDetailsButtonContainer {
        order: 3;
    }

    .biddingPage #hudLot .lotDetailsText {
        height: 43px !important;
        padding-right: 104px;
        overflow: hidden;
    }

    .biddingPage  #hudLot .lotHudGallery,
    .biddingPage  #hudLot .lotListGallery {
        padding-right: 2px;
    }

    .biddingPage #hudLot .lotHudGallery .imageGallery,
    .biddingPage #hudLot .lotListGallery .imageGallery {
        padding: 3px;
        flex-direction: row;
        left: 42px;
        bottom: -17px;
    }

    .biddingPage #hudLot .lotHudGallery .imageGallery .imageGalleryText,
    .biddingPage #hudLot .lotListGallery .imageGallery .imageGalleryText {
        font-size: 11px;
    }

    .biddingPage #hudLot .lotHudGallery .imageGallery .imageContainer,
    .biddingPage #hudLot .lotListGallery .imageGallery .imageContainer {
        width: 54px;
    }
    
    .biddingPage .bidDiv {
        order: 2;
    }

    #hudBidBlock {
        flex-direction: column;
        min-height: unset
    }

    #hudBidding, #hudMedia {
        flex: 1 1 100%;
        max-width: 100%;
    }

    #hudBidding {
        order: 2;
    }

    #hudMedia {
        order: 1;
    }

    #hudBidActions {
        order: 1;
        border-left: 0;
        border-right: 0;
    }

    #hudBiddingOn {
        order: 2;
    }

    .bidInstructionsContainer {
        display: none;
    }

    .mobileBidInstructionsContainer {
        display: block;
        width: 105px;
        padding: 0 5px;
    }

    .biddingPage .bidMessages .alert {
        margin-left: 0;
    }

    .hudBlockTitle, .myInfo {
        font-size: 14px;
    }
    .biddingPage .myInfo {
        flex-direction: row !important;
        align-items: center;
        padding: 1px 0px 1px 0px;
        gap: 6px;
        border-radius: 0;
        margin: 0;
        font-size: 14px;
        order: 1;
        justify-content: start;
        border-bottom: 1px solid var(--biddingPrimaryColorLighter);
        background-color: var(--biddingPrimaryColorLighter);
        color: white;
    }
    
    .biddingPage .fa-gavel {
        font-size: 14px !important;
    }

    .biddingPage .biddingUserName {
        justify-content: space-between;
    }

    .biddingPage .buyerSection {
        width: 100%;
    }

    .biddingPage .breedButton {
        margin-left: auto;
    }

    .biddingPage .auctionDetailsButtonContainer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0;
        margin: 5px 0 0;
    }

    .biddingPage .auctionDetailsButtonContainer .auction-details-btn {
        flex: 0 0 auto;
        margin: auto;
        line-height: 1;
        padding: 4px 2px;
        border-radius: 6px;
        order: 3;
    }

    .biddingPage .auctionDetailsButtonContainer .live-badge {
        flex: 0 0 auto;
        margin-left: auto;
        font-size: 15px;
    }

    .biddingPage #hudMedia .videoButtonsContainer {
        display: none !important;
    }

    .biddingPage .auctionDetailsButtonContainer .videoButtonsContainer {
        position: static;
        background-color: transparent;
        box-shadow: none;
        backdrop-filter: none;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        flex: 1 1 auto;
        top: auto;
        width: auto;
        margin: 0 10px;
    }

    .biddingPage .auctionDetailsButtonContainer .videoButtonHolder {
        padding: 2px 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: auto;
    }

    .biddingPage .auctionDetailsButtonContainer .videoButtonHolder i {
        font-size: 14px;
        margin-right: 4px;
    }

    .biddingPage .auctionDetailsButtonContainer .videoButton {
        padding: 1px 8px;
        font-size: 13px;
        border-radius: 15px;
    }
 
    .biddingPage .auctionDetailsButtonContainer #mobileVideoButtonsPlaceholder {
        flex: 1 1 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        order: 2;
    }

    .biddingPage .auctionDetailsButtonContainer #mobileVideoButtonsPlaceholder:empty {
        flex: 0 0 auto;
        width: 0;
    }

    .biddingPage .auctionDetailsButtonContainer #mobileVideoButtonsPlaceholder .videoButtonsContainer .videoButtonHolder {
        background-color: white;
        box-shadow: none;
        border: 1px solid var(--buttonPlaceholderBorder);
        border-radius: 15px;
    }

    .biddingPage #bothButton {
        display: none !important;
    }

    .biddingPage #hudLot .lotCard {
        background-color: rgb(222,222,222);
        border-top-left-radius: 0;
    }

    .side-by-side-container {
        flex-direction: column;
        gap: 5px;
    }

    .side-by-side-container > div {
        width: 100%;
    }
  
    .side-by-side-container.both-active {
        max-height: 350px; 
    }

    .biddingPage .card.toolCard {
        height: 475px !important;
        width: 75% !important;
        margin-left: auto;
        margin-right: auto;
    }

    .biddingPage #lotCatalogContainer .lotCard {
        padding-bottom: 0px;
        min-height: 50px;
    }

    .biddingPage .lotCardMinified .lotHeader > .lotName,
    .biddingPage #lotCatalogContainer .lotCardExpanded .lotHeader > .lotName {
        text-align: center;
    }

    #auctionMessages {
        position: absolute;
        width: calc(100% - 110px);
        left: 0;
        padding: 0;
    }

    .lastCallMessages {
        padding: 0;
    }

    .bidMessages, .lastCallMessages {
        margin-top: 0px;
    }

    .lastCallMessages > * {
        white-space: nowrap;
        padding: 0 5px !important;
    }
}

@media (max-width: 375px) {
    .biddingPage .bidMessages .alert {
        line-height: 0.85;
    }
}

@media (max-width: 320px) {
    .biddingPage .bidMessages .alert {
        font-size: 13px;
    }
}

.card-header-tabs {
    margin-right: -5px;
    margin-bottom: -5px;
    margin-left: -5px;
    border-bottom: 0;
}

.card-header-tabs.nav-tabs .nav-item {
    margin-top: 5px;
    margin-left: 2px;
    font-size: min(15px, max(12px, 1.25vw));
}

.card-header-tabs.nav-tabs .nav-item:first-child {
    margin-left: 0;
}

.card-header-tabs.nav-tabs .nav-link {
    background-color: #d0d0d0;
    padding: .067em .5em 0px;
    text-transform: uppercase;
    color: #444;
    display: flex;
    gap: .5em;
    align-items: center;
    margin-top: .339em;
}

.card-header-tabs.nav-tabs #chat-tab.nav-link {
    gap: 0;
}

.card-header-tabs.nav-tabs .nav-link:focus {
    outline: 0 !important;
}

.card-header-tabs.nav-tabs .nav-link.active {
    margin-top: 0px;
    font-size: calc(1em + 1px);
    padding: .3em .5em 0.12em;
    color: var(--cardTitleColor) !important;
    background-color: #fff;
    border-color: var(--biddingPrimaryColorLighter);
    border-bottom: 0px;
}

.biddingPage .nav-tabs .badge.badge-danger.rounded-circle {
    position: relative;
    top: 0;
    right: -4px;
    margin-left: 2px;
    display: inline-block;
    min-width: 10px;
    min-height: 10px;
    border-radius: 50% !important;
}

.on-the-block-message {
    background-color: #f5f5f5;
    padding: 20px;
    text-align: center;
    width: 100%;
}

.lot-number-display {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.on-block-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--biddingPrimaryColorLighter);
    text-transform: uppercase;
}

.black-background-placeholder {
    background-color: black;
    width: 100%;
    height: 200px;
    min-height: 200px;
}

#lotTypeDesc {
    padding-right: 5px;
}

#lotTypeInstructions {
    font-size: 0.875em;
    font-weight: normal;
    color: var(--back-to-button);
    display: inline-block;
}

.biddingOnLotNumber {
    line-height: 1;
    font-weight:bold;
    font-size: calc(1rem - 1px) !important;
    text-transform: uppercase;
    font-family: 'Montserrat', Verdana, Geneva, Tahoma, sans-serif;
    white-space: nowrap;
    text-wrap: nowrap;
}

#hudLot .lotDetails {
    flex-wrap: nowrap;
}

.currentLotItem {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 1px;
    height: calc(1.625em - 1px);
}

.qtyAvailable {
    margin-left: 2%;
    line-height: 1;
}

.qtyAvailable, .minQtyText {
    flex: 0 1 auto;
    font-size: .8em;
}

input.qtyTemplate {
    padding: 0px 2px;
    margin-bottom: 0;
    height: 25px;
    font-size: 14px;
    line-height: 1;
    text-align: right;
    width: 50px;
}

.lotQtySelect {
    min-width: 50px;
    padding: 0px;
}

.biddingPage .loginText {
    color: var(--dusty-navy-blue) !important;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Montserrat', Verdana, sans-serif;
}

.biddingPage input[type="text"]:focus,
.biddingPage input[type="email"]:focus,
.biddingPage input[type="tel"]:focus,
.biddingPage input[type="password"]:focus,
.biddingPage input[type="number"]:focus,
.biddingPage input[type="search"]:focus,
.biddingPage input[type="url"]:focus,
.biddingPage textarea:focus, select:focus {
    border-color: var(--el-gradient1);
}

.currentLotItem .minQtyText {
    margin-left: auto;
    line-height: 1;
}

#wonLots {
    padding: 4px;
    background-color: var(--tertiary-bg-color);
    border-radius: 6px;
    flex: 1;
}

#listCurrentLots {
    height: calc((1.625em * 3) + 14px);
    overflow: auto;
}

#listCurrentLots .list-group-item,
#wonLots .list-group-item {
    padding: 1px 4px;
    border-top: 1px solid #e1e1e1;
    border-left: 1px solid #e1e1e1;
    border-right: 1px solid #e1e1e1;
    margin-bottom: 2px;
    border-radius: 8px;
}

#listCurrentLots .list-group-item:last-child,
#wonLots .list-group-item:last-child {
    margin-bottom: 0;
    border-bottom: 1px solid #e1e1e1;
}

#listCurrentLots .list-group-item {
    margin-left: 8px;
    margin-right: 8px;
}

.biddingPage .lotCardExpanded .imageGallery {
    justify-content: flex-start !important;
    right: 274px !important;
}


.biddingExtraCardBody .lotCardExpanded .imageGallery .imageContainer {
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important; 
    opacity: 0 !important; 
    pointer-events: auto !important; 
}


@media (max-width: 1400px) {
    .biddingPage #hudLot .imageGallery .imageContainer {
        position: relative !important;
        height: 20px !important;
        width: 100% !important;
        overflow: auto !important;
        opacity: 100% !important;
    }
}

@media (max-width: 1200px) {
    .biddingPage #hudLot .lotHudGallery,
    .biddingPage #hudLot .lotListGallery {
        bottom: 0;
        right: 10px;
    }

    .biddingPage #hudLot .lotHudGallery .imageGallery .imageContainer,
    .biddingPage #hudLot .lotListGallery .imageGallery .imageContainer {
        display: none;
    }

    .biddingExtraCardBody .lotCardExpanded .imageGallery {
        position: absolute;
        bottom: 2px;
        left: 4px;
        right: auto !important;
        cursor: pointer;
    }
    
    .biddingExtraCardBody .lotCardExpanded .imageGallery .imageContainer a {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 1 !important;
    }
}
@media (max-width: 991px) {
    .biddingPage #hudLot .lotHudGallery,
    .biddingPage #hudLot .lotListGallery {
        bottom: 22px;
        right: 42px;
    }
    
    /* Make lotListGallery in catalog cards clickable on mobile */
    .biddingExtraCardBody .lotCardExpanded .lotListGallery {
        cursor: pointer;
        pointer-events: auto !important;
    }
    
    .biddingExtraCardBody .lotCardExpanded .lotListGallery .imageGallery {
        cursor: pointer;
        pointer-events: auto !important;
    }
    
    .biddingExtraCardBody .lotCardExpanded .lotListGallery .imageGalleryText {
        cursor: pointer;
        pointer-events: auto !important;
    }
}

@media (max-width: 767px) {
    .biddingExtraCardBody .lotCardExpanded .imageGallery {
        bottom: 2px !important;
    }

    .biddingPage #hudLot .lotHudGallery,
    .biddingPage #hudLot .lotListGallery {
        right: 80px;
    }
}

@media (max-width: 1100px) and (min-width: 992px) {
    .biddingOnLotNumber {
        font-size: 13px !important;
    }

    .qtyAvailable {
        margin-left: 0px;
    }
}

@media (min-width: 992px) {
    #listCurrentLots .list-group-item {
        margin-left: 0px;
        padding: 1px 0px 1px 4px;
    }

    .hudBlockTitle {
        padding: 2px 10px 2px 5px;
    }

    #hudMedia {
        max-width: 48%;
    }

    .biddingPage .lotCard {
        --lotMediaHeight: 150px;
    }

    .biddingPage .lotCard.withLotMedia .lotDetails {
        justify-content: space-between;
        flex-wrap: nowrap;
        height: 100%;
    }

    .biddingPage .imageGallery > a > img {
        max-width: 200px;
        max-height: 65px !important;
    }
}

.biddingPage .card.catalogList {
    height: 580px !important;
}

.biddingPage .catalogList .detailsContent {
    gap: 0px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.biddingPage .catalogList .detailsContent .soldPriceLots {
    padding-bottom: 0px !important;
}

.biddingPage .catalogList .detailsContent .soldPriceLots.hasPrice,
.biddingPage .catalogList .detailsContent .soldPriceLots:empty {
    white-space: unset;
    line-height:1.15;
    padding-bottom: 4px;
    margin-top: 0.2rem;
}

.biddingPage .card.toolCard {
    height: 292px !important;
}

#won-lots-tab-content,
#chat-tab-content{
    flex: 1;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.chat-status-indicator {
    position: sticky;
    top: -10px;
    z-index: 5;
    margin-bottom: 0 !important;
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
}

.tab-content>#won-lots-tab-content.active {
    display: flex;
}

#current-lot-video-tab-content {
    padding-bottom: 56.25%;
    position: relative;
    width: 100%;
}

@media (max-width: 991.98px) and (min-width: 768px) {
    .biddingPage .toolCard .card-header {
        padding-left: 5px !important;
    }
}
@media (max-width: 991.98px) {
    .biddingPage .lotMedia {
        order: 1;
    }

    .biddingPage .btn-primary {
        background-color: #0062cc;
    }

    #auctionNotStarted {
        border-radius: 0;
    }

    .biddingPage .mobile-tools-modal .modal-dialog-bottom {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        max-width: 100%;
        height: 40vh;
        max-height: 500px;
        min-height: 400px;
        transform: translateY(100%);
        transition: transform 0.3s ease-out;
    }

    .biddingPage .mobile-tools-modal.show .modal-dialog-bottom {
        transform: translateY(0);
    }

    .biddingPage .mobile-tools-modal .modal-dialog-bottom .modal-content {
        height: 100%;
        border-radius: 15px 15px 0 0;
        border: none;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
        display: flex;
        flex-direction: column;
    }

    .biddingPage .mobile-tools-modal .modal-body {
        padding: 0;
        overflow: auto;
        flex: 1 1 100%;
        display: flex;
    }
    
    /* Make the mobile toolCard fill the modal properly */
    .biddingPage .mobile-tools-modal .mobile-tool-card {
        height: 100% !important;
        border-radius: 15px 15px 0 0;
        border: none;
        display: flex;
        flex-direction: column;
        flex: 1 1 100%;
    }

    /* Ensure mobile card-header matches desktop exactly */
    .biddingPage .mobile-tools-modal .card-header {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .biddingPage .mobile-tools-modal .nav-tabs {
        margin-right: auto;
        flex-grow: 1;
        /* Inherit desktop nav-tabs styles */
    }
    
    .biddingPage .mobile-tools-modal .card-header-tabs.nav-tabs .nav-item {
        font-size: 15px;
    }

    /* Don't override nav-link styles - let desktop styles apply */
    .biddingPage .mobile-tools-modal .close {
        font-size: 1.5rem;
        opacity: 0.8;
        padding: 0;
        margin: 0;
        border: none;
        background: transparent;
        /* Color will inherit from card-header */
    }

    .biddingPage .mobile-tools-modal .close:hover {
        opacity: 1;
    }

    .biddingPage .mobile-tools-modal .biddingExtraCardBody {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 0;
    }

    .biddingPage .mobile-tools-modal .tab-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .biddingPage .mobile-tools-modal .tab-pane {
        flex: 1;
        padding: 15px;
        margin: 0;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .biddingPage .lotCardMinified {
        padding-bottom: 0px;
    }

    .biddingPage .lotCardMinified .lotNumber {
        font-size: 14px;
        padding: 5px 31px 5px 5px;
    }

    .biddingPage .lotCardMinified .lotHeader > .lotName {
        font-size: 14px;
        align-self: center;
    }

    .biddingPage .lotHeader .btn {
        font-size: 14px;
    }
}

/* Hide mobile elements on larger screens */
@media (min-width: 992px) {
    .biddingPage .mobile-bottom-bar,
    .biddingPage .mobile-tools-modal {
        display: none !important;
    }
}

@media (max-width: 991.98px) and (min-width: 768px) {
    .hudContent {
        background-color: transparent;
    }

    #hudBidding {
        border-radius: 10px;
        overflow: hidden;
        background-color: #f5f5f5;
    }

    #hudMedia {
        display: flex;
        justify-content: center;
        background-color: var(--biddingPrimaryColorLighter);
        padding-bottom: 5px;
    }

    .liveVideoContainer, .reelVideoContainer, .noVideoMessage {
        width: 70%;
    }
}

.emphasizeElement {
    animation: emphasize 2.5s 0.1s;
}

.emphasizeElementText {
    animation: emphasizeText 2.5s 0.1s;
}

@keyframes emphasize {
    30% {
        background-color: rgba(221, 122, 2, .5);
        box-shadow: 0 0 8px 2px rgba(221, 122, 2, 0.8);
    }
    70% {
        background-color: rgba(221, 122, 2, .1);
        box-shadow: 0 0 8px 2px rgba(221, 122, 2, 0.3);
    }
}

@keyframes emphasizeText {
    30% {
        color: #dd7a02;
        text-shadow: 0 0 1px #dd7a02;
    }
    70% {
        color: #dd7a02;
        text-shadow: 0 0 1px #dd7a02;
    }
}

.biddingPage .lotNumber {
    font-size: min(1.25rem,max(16px,1.667vw));
}

.biddingPage .lotHeader > .lotName {
    font-size: min(16px,max(14px,1.3333vw));
}

@media (max-width: 991.98px) {
    .biddingHud {
        margin: 0 0 5px;
        padding: 0 10px 10px;
    }

    .hudBlockTitle {
        margin-left: 5px;
        margin-right: 5px;
    }

    .biddingPage .lotHeader > .lotName {
        margin-top: 0;
        line-height: 1.15;
        align-self: center;
    }
    
    .hudContent {
        flex-direction: column;
    }

    #hudBidActions {
        border-right: 0px;
    }

    #hudLoadingContent {
        border-radius: 0px 0px 10px 10px;
    }

    #hudBidding {
        order: 2;
    }

    #hudMedia {
        order: 1;
    }

    #hudBidding, #hudMedia {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .biddingPage #hudLot .lotCard {
        min-height: 0;
        padding-bottom: 2px !important;
    }

    .biddingPage #hudLot .detailsContent {
        padding: 0px 4px 2px;
    }

    .biddingPage #hudLot .lotDetailsText {
        height: 63px;
        flex: unset;
    }

    .biddingPage .bidDiv {
        height: 100%;
    }

    .biddingPage .myInfo .biddingUsername {
        padding: 3px 0;
    }

    .hudHeader,
    .biddingPage .card-header {
        margin: 0px 0px !important;  
        padding: 5px 0px !important;  
    }

    .biddingPage .biddingUserName {
        justify-content: space-between;
    }

    .biddingPage .buyerSection {
        width: 100%;
    }

    .biddingPage .breedButton {
        margin-left: auto;
    }

    .biddingPage .hudBlockTitle {
        padding-left: 0px !important;
        padding-right: 0px !important;
        margin-left: 15px;
        margin-right: 15px;
    }

    #listCurrentLots {
        height: 100%;
        max-height: calc((1.625em * 3) + 25px);
    }

    .biddingPage .auctionTitle {
        font-size: max(16px,min(24px,5.55vw));
    }

    .biddingPage .auctionSubtitle {
        font-size: max(12px,min(16px,4.1625vw));
    }
}

 @media screen and (min-width: 767px) and (max-width: 1065px) {
    .biddingPage .loginSection {
        flex-direction: column !important;
    }

    .biddingPage .basicLoginBtn,.biddingPage .basicForgotPasswordBtn {
        margin-bottom: 0.5rem !important;
    }
}

@media screen and (max-width: 767px) {
    .basicLoginBtn {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 767.98px) {
    .biddingPage .lotCardMinified {
        min-height: 120px;
    }
        
    .biddingPage .lotCardMinified .lotHeader {
        display: flex;
        flex-direction: row;
        align-items: center;
    }
        
    .biddingPage .lotCardMinified .lotActions {
        flex: 0 0 auto;
    }
}

#confirmSelectedLots:not(.btn-success){
    background-color: rgb(214, 10, 10) !important;
    color: #fff;
    font-weight: bold !important;
}

#auctionNotStarted {
    position: absolute;
    z-index: 20;
    width: 100%;
    height: 100%;
    left: 0;
    background: var(--auctionNotStartedBg);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 2.5rem;
    border-radius: 0;
    font-family: 'Montserrat', Verdana, sans-serif;
    text-align: center;
    padding: 10px;
}

@media (max-width: 767.98px) {
    #auctionNotStarted {
        font-size: 1.5rem;
    }
    
}

.loginBtn {
    border-color: var(--myInfoLoginBorder) !important;
    font-family: 'Brother-1816-Medium';
}

.login-prompt {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 4px;
}

.login-prompt p {
    font-family: 'Montserrat', Verdana, sans-serif;
    font-size: 18px;
}

.login-prompt .loginBtn {
    font-size: 18px;
}

.audioPlayerSwitch {
    position: absolute;
    bottom: 4px;
    width: 100%;
    z-index: 3;
}

@media (min-aspect-ratio: 8.5/5) and (not ((min-width: 1430px) and (min-height: 817px))) {
    .auctionContent {
        max-width: 1000px;
    }
    .hudBlockTitle, .myInfo {
        font-size: min(16px, max(12.5px, (.011 * min(1000px, 100vw))));
    }
}

/* modal popup */
.modal-header {
    border-bottom: 1px solid var(--biddingPrimaryColorLighter);
}

.modal-title {
    color: var(--cardTitleColor) !important;
    font-family: 'Montserrat', Verdana, sans-serif;
    font-size: 16px;
    font-weight: 500;
}

.modal-body .card {
    padding-top: 5px;
    border-bottom: 1px solid var(--biddingPrimaryColorLighter);
}

.modal-body .card-img-top {
    max-height: 90px;
}

#detailsModal .modal-body .card-title {
    white-space: normal; 
    overflow-wrap: break-word; 
    word-wrap: break-word; 
    line-height: 1.2; 
    text-align: center;
}

.modal-body .card-title {
    font-family:'Montserrat', sans-serif;
    font-size: 22px;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 100%;
    line-height: 1;
    display: flex;
    justify-content: center;
}

.modal-body .card-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 100%;
    font-weight: bold;
    line-height: 1;
}

.modal-body .sale-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    width: 100%;
    max-width: 100%;
}

.modal-body .card-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 100%;
    font-weight: bold;
    margin: 0;
    font-style: italic;
    text-align: center; 
    display: flex; 
    justify-content: center;
}

.modal-body .date-time {
    font-family: 'Montserrat', sans-serif;
    font-size: 11.9px !important;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-wrap: nowrap;
    padding: 2px 8px;
    margin-top: 4px;
    border-top: 1px solid #b1b1b1;
    border-bottom: 1px solid #b1b1b1;
    white-space: nowrap;
    overflow: hidden;
}

.modal-body .date-time > * {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    white-space: nowrap;
    line-height: 1.2;
}

.modal-body .date-time > *:last-child {
    flex-shrink: 1;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.modal-body .location {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.modal-body .list-group-item {
    text-align: center;
    font-family: 'Montserrat', Verdana, sans-serif;
    font-size: 16px;
    font-weight: 500;
}

.modal-body .auctionDescription {
    font-size: 14px !important;
    margin-bottom: 0;
}

@media (max-width: 576px) {
    .modal-body .card-title {
        font-size: 18px;
    }
}

/* Double Up Confirmation Styles */
#doubleUpConfirm {
    display: flex;
    align-items: center;
    gap: 4px;
}

#doubleUpConfirmMessage {
    font-weight: 500;
    font-size: .875em;
    color: #333;
    font-style: italic;
    font-family: 'Brother-1816-Medium', sans-serif;
}

.doubleUpConfirmButton {
    padding: 2px 8px !important;
    border-radius: 4px;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease-in-out;
    min-width: 42px;
}

.doubleConfirmed, .doubleCancelled {
    font-style: normal !important;
    text-transform: uppercase !important;
}

.doubleConfirmed {
    color: var(--green) !important;
}

.doubleCancelled {
    color: var(--red) !important;
}

.doubleConfirmed:after {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
    content: "\f00c"; /* Font Awesome check icon */
    color: var(--green) !important;
}

.doubleCancelled:after {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
    content: "\f00d"; /* Font Awesome times icon */
    color: var(--red) !important;
}

/* Yes button */
.biddingPage #confirmDoubleUp {
    background-color: #28a745 !important;
    color: white;
    border-color: #28a745;
}

#confirmDoubleUp:hover, #confirmDoubleUp:focus {
    background-color: #218838;
    border-color: #1e7e34;
}

/* No button */
.biddingPage #cancelDoubleUp {
    background-color: #dc3545 !important;
    color: white;
    border-color: #dc3545;
}

#cancelDoubleUp:hover, #cancelDoubleUp:focus {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Confirmed state - green text */
#doubleUpConfirm.confirmed #doubleUpConfirmMessage {
    color: #28a745;
    font-weight: bold;
}

/* Denied state - red text */
#doubleUpConfirm.denied #doubleUpConfirmMessage {
    color: #dc3545;
    font-weight: bold;
}

/* Hide buttons when confirmed or denied */
#doubleUpConfirm.confirmed .doubleUpConfirmButton,
#doubleUpConfirm.denied .doubleUpConfirmButton {
    display: none;
}

#chat-tab.newChatMessage {
    animation: newMessage infinite 2s;
}

@keyframes newMessage {
    0% {
        background-color: #f3001c;
        color: white;
    }

    50% {
        background-color: #710e1a;
        color: white;
    }

    100% {
        background-color: #f3001c;
        color: white;
    }
}

#biddingAlerts {
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 10px;
    margin-bottom: 0px;
    font-weight: bold;
    font-family: 'Brother-1816', Tahoma, sans-serif;
}

@media (max-width: 767.98px) {
    #biddingAlerts {
        border-bottom-right-radius: 10px;
    }
}

#bidAlertHolder {
    left: 0;
    position: absolute;
    bottom: 0;
    width: 100%;
}

/* Add this near the existing animation definitions */
@keyframes confirm-pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    10% { box-shadow: 0 0 5px 5px rgba(220, 53, 69, 0.7); }
    20% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.confirm-pulse {
    animation: confirm-pulse 5s infinite;
}

@keyframes confirm-glow {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    50% { box-shadow: 0 0 5px 5px rgba(220, 53, 69, 0.7); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.confirm-glow {
    animation: confirm-glow 2s ease-in-out;
}
