/* Modern Booking Plan Detail Design (Tailwind Integration) */


/* Affiliate Link */
.affiliate-link-container {
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #f3f4f6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    padding-bottom: 40px;
}

/* Top accent border */
.affiliate-link-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff5252, #ff9e80);
}

.affiliate-note {
    position: absolute;
    bottom: 8px;
    right: 12px;
    margin: 0;
    color: #cbd5e1;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.8;
}

.affiliate-pr {
    display: inline-block;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 0.7rem;
    font-weight: 400;
    margin: 0;
    transform: none;
}

.affiliate-text {
    margin-bottom: 20px;
    font-weight: 700;
    color: #374151; /* Dark gray */
    font-size: 1.1rem;
    line-height: 1.5;
}

.affiliate-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.affiliate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #6b7280; /* Default fallback */
    color: white !important;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-width: 240px;
    position: relative;
    overflow: hidden;
}

.affiliate-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    animation: affiliate-shimmer 3s infinite;
}

@keyframes affiliate-shimmer {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.affiliate-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
    text-decoration: none;
}

.affiliate-btn i {
    margin-right: 8px;
}

.affiliate-animated-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    animation: affiliate-bounce-x 1.5s infinite ease-in-out;
}

@keyframes affiliate-bounce-x {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Base secondary style (fallback) */
.affiliate-btn-secondary {
    background-color: #ff7f50;
}

/* Jalan Brand Color */
.affiliate-btn[data-affiliate-partner*="jalan"] {
    background-color: #FF5252;
    box-shadow: 0 4px 15px rgba(255, 82, 82, 0.25);
}
.affiliate-btn[data-affiliate-partner*="jalan"]:hover {
    background-color: #ff6b6b;
    box-shadow: 0 6px 20px rgba(255, 82, 82, 0.35);
}

/* Asoview Brand Color */
.affiliate-btn[data-affiliate-partner*="asoview"] {
    background-color: #00C2CB;
    box-shadow: 0 4px 15px rgba(0, 194, 203, 0.25);
}
.affiliate-btn[data-affiliate-partner*="asoview"]:hover {
    background-color: #2ed1d9;
    box-shadow: 0 6px 20px rgba(0, 194, 203, 0.35);
}

/* Sold Out / Alternative Container */
.soldout-affiliate-container {
    margin-top: 30px;
    margin-bottom: 20px;
    padding: 30px;
    border: 1px solid #fed7d7; /* Light red border */
    border-radius: 12px;
    background: #fffafa; /* Very light tint */
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding-bottom: 40px;
}

.soldout-affiliate-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #fb923c); /* Orange top strip */
}

.soldout-affiliate-note {
    position: absolute;
    bottom: 8px;
    right: 12px;
    margin: 0;
    color: #cbd5e1;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.8;
}

.soldout-affiliate-text {
    margin-bottom: 16px;
    font-weight: 700;
    color: #c2410c; /* Orange */
    font-size: 1.1rem;
    line-height: 1.5;
}
