/* Parent sidebar: half-hidden on the right until hovered */
.recent-offers-sidebar.half-hidden {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 120px;
    padding: 0.5rem;
    transition: width 0.3s ease-in-out;
    overflow: hidden;
    z-index: 9000;
}

.recent-offers-sidebar.half-hidden:hover {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Sidebar title styling */
.recent-offers-sidebar .sidebar-title {
    font-size: 1rem;
    margin: 0 0 0.5rem 0.5rem;
    white-space: nowrap;
}

/* The container for offers inside the sidebar */
.recent-offers-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

/* Title for the recent offers sidebar */
.recent-offers-title {
    width: 70%;
    padding: 5px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    /* text-align: center; */
    color: #083300;
    font-weight: bold;
    border-bottom: 1px solid #083300;
    line-height: 1.2;
    overflow: hidden;
}

/* Single item circle */
.recent-offer-item {
    width: 40px;
    height: 40px;
    line-height: 13px;
    padding: 2px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border-radius: 50%;
    text-align: center;
    border: 1px solid #083300;
    color: #083300;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin-left: 0.5rem;
    overflow: visible !important;
    position: relative;
    padding-right: 0;
}

/* On hover, we can visually highlight or enlarge the circle */
.recent-offer-item:hover {
    background-color: transparent;
    color: #083300;
}

/* Optional: nice scrollbar for the expanded sidebar */
.recent-offers-sidebar.half-hidden:hover::-webkit-scrollbar {
    width: 6px;
}

.recent-offers-sidebar.half-hidden:hover::-webkit-scrollbar-thumb {
    background-color: #ccc;
}

.promo {
    width: 55px;  /* Set width and height */
    height: 55px;
    color: #e8a819;
    background-color: #083300;
    border: 1px solid #da052e;
}

.promo_online {
    width: 55px;  /* Set width and height */
    height: 55px;
    color: #e8a819;
    background-color: #083300;
    border: 1px solid #1f93c1;
}

/* The floating preview container */
#recent-offer-preview {
    overflow-y: auto;
    padding: 45px;
  }

.remove-offer-btn {
    position: absolute;
    right: -8px;
    top: -8px;
    transform: none;
    font-size: 12px; /* Slightly smaller for icon */
    cursor: pointer;
    color: #dc3545;
    font-weight: bold;
    background-color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex !important; /* Use flex for better centering */
    align-items: center;
    justify-content: center;
    border: 1px solid #dc3545;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    z-index: 1000;
    pointer-events: auto !important;
}

.remove-offer-btn:hover {
    background-color: #dc3545;
    color: white;
    transform: scale(1.1);
}

.offer-details-container {
    border-left: 5px solid #007bff;
}

/* Add a container style in case the sidebar itself has overflow issues */
.recent-offers-sidebar {
    overflow: visible !important;
}