/* Banner and Modal Structure */
.promo-banner {
	position: relative;
	background: linear-gradient(to right, #2c7a7b, #285e61);
	color: white;
	padding: 0.65rem 1rem;
	margin-top: 1rem;
	border-radius: 0.5rem;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	width: 80%;
	margin-left: auto;
	margin-right: auto;
}

.promo-banner-content {
	display: flex;
	flex-direction: column;
	gap: 0;
	position: relative;
}


/* Text and Content Styles */
.promo-text {
	flex: 1;
}

.promo-title {
	font-size: 0.99rem;
	font-weight: 600;
	text-align: center;
	letter-spacing: 0.07em; 
}

.promo-description {
	flex: 1;
	font-size: 0.875rem;
	opacity: 0.9;
	text-align: center;
}

.promo-description p {
	margin: 0.15rem 0;
}

.promo-body {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
}

/* Button Styles */
.order-now-btn {
	padding: 0.40rem 0.65rem;
	border-radius: 0.5rem;
	border: none;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
	margin: 0 0 0 1rem;
	text-decoration: none;
	background-color: #ffcc00;
    color: #000;
}

.order-now-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Specific tooltip for order-now-btn */
.order-now-btn[data-nav-tooltip] {
    position: relative;
}

.order-now-btn[data-nav-tooltip]:before {
    content: attr(data-nav-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background-color: rgb(236, 246, 246); 
    color: black;                             /* rgb(42, 122, 123); */            
    border-radius: 4px;
    font-size: 0.675rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 10;
    pointer-events: none;
}

.order-now-btn[data-nav-tooltip]:hover:before {
    opacity: 1;
    visibility: visible;
}

/* Add the triangular pointer */
.order-now-btn[data-nav-tooltip]:after {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background-color: rgb(236, 246, 246);  /* pale teal */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 9;
}

.order-now-btn[data-nav-tooltip]:hover:after {
    opacity: 1;
    visibility: visible;
}

.close-button {
	position: absolute;
	top: 0.15rem;
	right: 0.15rem;
	background: none;
	border: none;
	color: white;
	font-size: 0.8rem;
	cursor: pointer;
	opacity: 0.8;
	transition: opacity 0.2s;
}

.close-button:hover {
	opacity: 1;
	transform: scale(1.1);
    cursor: pointer;
}

/* Animation Keyframes */
@keyframes sparkle {
	0%, 100% { opacity: 0; }
	50% { opacity: 1; }
}


/* Sparkle Effect */
.sparkle {
	position: absolute;
	width: 4px;
	height: 4px;
	background: white;
	border-radius: 50%;
	opacity: 0;
}


/* Responsive Styles */
@media (max-width: 768px) {
	.promo-banner {
		padding: 1rem;
	}
	
	.promo-banner-content {
		flex-direction: column;
		text-align: center;
	}

	.promo-body {
		flex-direction: column;
		align-items: stretch;
		margin-bottom: 0;
	}

    .promo-footer {
        display: flex;
        flex-direction: row; /* Forces a horizontal layout */
        justify-content: space-between; /* Ensures buttons are spaced out */
        align-items: center; /* Keeps them vertically aligned */
        gap: 1rem; /* Adds spacing between buttons */
        padding: 0.3rem 0; /* Narrows footer vertically */
    }

    .order-now-btn {
        flex-grow: 1; /* Ensures it remains centered */
        text-align: center;
        max-width: 120px; /* Prevents excessive stretching */
    }

    .close-button {
        flex-shrink: 0; /* Prevents it from shrinking */
        margin-left: auto; /* Pushes it to the right */
        align-self: center; /* Ensures vertical alignment */
    }
}
