/* Backdrop + container */
#cup-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-page-slider-buttons {
	margin-top: 10px;
}
#cup-popup {
  display: none;
}

.home-page-slider-buttons button {
	transition: background-color 0.3s;
	display: inline-block;
	font-size: 15px;
	font-family: "Fira Sans" !important;
	margin: 0;
	padding: 4px 10px;
	margin-bottom: -7px;
	border-radius: 38px;
	line-height: 16px;
	max-width: 100% !important;
	overflow: unset !important;
	color: #fff !important;
	background: #24649F;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cup-calendar-btn {
	background-color: #007bff;
	color: white;
}

.cup-westpac-btn {
	background-color: #007bff;
	color: white;
}




#cup-popup .cup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
#cup-popup .cup-content {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 10px;
    width: 95%;
    max-width: 900px;
    padding: 16px 16px 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
#cup-popup #cup-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

/* Responsive */
@media (max-width: 768px) {
    #cup-popup .cup-slide {
        min-width: 92% !important;
        margin: 0px 15px 0px 10px !important;
    }
}
#cup-popup .cup-slider-container {
    position: relative;
    width: 100%;
    max-width: 99%;
    margin: auto;
    overflow: hidden;
    padding: 8px 0px 10px 12px;
}
#cup-popup .cup-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
#cup-popup .cup-slide {
    min-width: 48%;
    box-sizing: border-box;
    position: relative;
    margin-right: 2%;
    background-color: #fff;
    box-shadow: 0px 0px 9px rgb(0 0 0 / 29%);
    border-radius: 10px;
    padding: 14px;
}
#cup-popup .cup-slide img {
    width: 100%;
    height: 257px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 0;
    padding: 0;
}
#cup-popup .cup-caption {
    padding: 10px;
    background-color: #fff;
    text-align: center;
    border-radius: 0 0 10px 10px;
}
#cup-popup .cup-caption h3 {
    color: var(--primary-color);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 336px;
    font-size: 16px !important;
    font-weight: 600 !important;
}
#cup-popup .cup-buttons {
    margin-top: 10px;
}
#cup-popup .cup-buttons button {
    transition: background-color 0.3s;
    display: inline-block;
    font-size: 15px;
    font-family: "Fira Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
    margin: 0;
    padding: 4px 10px;
    margin-bottom: -7px;
    border-radius: 38px;
    line-height: 16px;
    max-width: 106px;
    overflow: hidden;
    color: #fff !important;
    background: #24649F;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: none;
}
#cup-popup .cup-calendar-btn { background-color: #007bff; color: #fff; }
#cup-popup .cup-westpac-btn { background-color: #007bff; color: #fff; }

#cup-popup .cup-prev,
#cup-popup .cup-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 10px;
    width: 34px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2;
}
#cup-popup .cup-prev { left: 10px; }
#cup-popup .cup-next { right: 10px; }

#cup-popup .cup-slide:not(:last-child) { margin-right: 2.3%; }

#cup-popup .cup-dots {
    text-align: center;
    margin-top: 10px;
     margin-bottom: -11px;
     width: 98%;
}
#cup-popup .cup-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: gray;
    border-radius: 50%;
    margin: 5px;
    margin-bottom: 0px;
    cursor: pointer;
}
#cup-popup .cup-dots span.active { background-color: black; }

#cup-popup .cup-empty {
    text-align: center;
    padding: 30px 10px;
    color: #444;
}