/* Tire Top-up Popup Styles */
.tire-topup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in;
}

.tire-topup-popup {
    background: white;
    border-radius: 15px;
    max-width: 900px;
    width: 85%;
    max-height: auto;
    overflow: visible;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideDown 0.4s ease-out;
}

.tire-topup-header {
    background: linear-gradient(135deg, var(--dark-red-color) 0%, var(--dark-rose-color) 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 15px 15px 0 0;
    position: relative;
}

.tire-topup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.tire-topup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.tire-topup-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: bold;
}

.tire-topup-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.95;
}

.tire-topup-content {
    padding: 25px 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tire-offer-item {
    background: linear-gradient(135deg, var(--cream-color) 0%, #fff 100%);
    border-left: 4px solid var(--dark-rose-color);
    padding: 15px;
    margin-bottom: 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tire-offer-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(181, 60, 91, 0.2);
}

.tire-offer-item h3 {
    color: var(--dark-red-color);
    margin: 0 0 8px 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tire-offer-item h3 i {
    color: var(--dark-rose-color);
}

.tire-offer-item p {
    margin: 0 0 12px 0;
    color: #333;
    line-height: 1.5;
    font-size: 14px;
}

.tire-offer-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

.tire-offer-price {
    display: inline-block;
    background: var(--dark-red-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    cursor: default;
}

.tire-book-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    color: var(--dark-red-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--dark-red-color);
    box-shadow: 0 2px 8px rgba(181, 60, 91, 0.2);
}

.tire-book-btn:hover {
    background: var(--dark-red-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(181, 60, 91, 0.4);
    color: white;
    text-decoration: none;
    border-color: var(--dark-red-color);
}

.tire-book-btn i {
    font-size: 12px;
}

.tire-topup-cta {
    text-align: center;
    padding: 15px 25px 20px;
    background: var(--cream-color);
    border-radius: 0 0 15px 15px;
}

.tire-topup-cta a {
    display: inline-block;
    background: linear-gradient(135deg, var(--dark-red-color) 0%, var(--dark-rose-color) 100%);
    color: white;
    padding: 12px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(130, 21, 24, 0.3);
}

.tire-topup-cta a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(130, 21, 24, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .tire-topup-overlay {
        align-items: flex-start;
        overflow-y: auto;
        padding: 20px 0;
    }

    .tire-topup-popup {
        width: 95%;
        max-height: none;
        margin: auto;
    }

    .tire-topup-header h2 {
        font-size: 20px;
        padding-right: 40px;
    }

    .tire-topup-content {
        padding: 15px 10px;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tire-offer-item {
        padding: 12px;
    }

    .tire-offer-item h3 {
        font-size: 16px;
    }

    .tire-offer-item p {
        font-size: 13px;
    }

    .tire-offer-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .tire-offer-price,
    .tire-book-btn {
        text-align: center;
        justify-content: center;
        width: 100%;
    }

    .tire-topup-header {
        padding: 15px 20px;
    }

    .tire-topup-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 24px;
        background: rgba(255, 255, 255, 0.3);
    }

    .tire-topup-header h2 {
        font-size: 18px;
    }

    .tire-topup-header p {
        font-size: 14px;
    }

    .tire-topup-cta a {
        padding: 10px 25px;
        font-size: 14px;
    }
}