/*
 * The checkout page's own styles, lifted verbatim from the source project's
 * topup/checkout.blade.php @push('style') block.
 *
 * Loaded as a static stylesheet between layout.css and tailwindcss.css because
 * that is exactly where the source's @stack('style') sat - before tailwind - so
 * single-class rules here lose to tailwind utilities of equal specificity the
 * same way they did in Blade. A Nuxt page <style> block would be appended after
 * tailwind and would invert that cascade.
 */

.checkout_page {
    position: relative;
    z-index: 1;
}

.recharge-item-style {
    transition: all 0.15s ease;
    border-radius: 6px;
    min-height: 34px;
    padding: 4px 8px;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    line-height: 1.2;
}
.recharge-item-style:hover:not(:disabled) {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-color: var(--theme-color);
    transform: translateY(-1px);
}
.recharge-item-style.selected {
    border-color: var(--theme-color);
    background-color: rgba(var(--theme-color-rgb), 0.05);
    box-shadow: 0 0 0 1.5px var(--theme-color), 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}
.recharge-item-style.stockout {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.3);
}
.recharge-item-style.stockout .absolute {
    background: rgba(0, 0, 0, 0.5);
}
.recharge-item-style.stockout:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: #e5e7eb !important;
}
.recharge-item-style:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    filter: grayscale(0.3);
}
.recharge-item-style:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: #e5e7eb !important;
}
.recharge-item-style .variation-title {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    color: #374151;
}
.recharge-item-style .price-text {
    font-size: 11px;
    font-weight: 700;
    color: var(--theme-color);
    flex-shrink: 0;
}

/* Long title variations */
.recharge-item-style.long-title {
    min-height: 40px;
    padding: 6px 10px;
}
.recharge-item-style.long-title .variation-title {
    font-size: 10px;
    line-height: 1.15;
    white-space: normal;
}

/* Mobile styles */
@media (max-width: 640px) {
    .recharge-item-style {
        min-height: 30px;
        padding: 3px 6px;
        border-radius: 4px;
    }
    .recharge-item-style .variation-title {
        font-size: 10px;
    }
    .recharge-item-style .price-text {
        font-size: 10px;
    }
    .recharge-item-style.long-title {
        min-height: 36px;
        padding: 4px 8px;
    }
    .recharge-item-style.long-title .variation-title {
        font-size: 9.5px;
    }
    .package-item-outer {
        gap: 0.25rem;
    }
    .recharge-item-style .absolute span {
        font-size: 8px !important;
    }
}

/* Tablet styles */
@media (min-width: 641px) and (max-width: 767px) {
    .recharge-item-style {
        min-height: 32px;
        padding: 4px 8px;
    }
    .recharge-item-style .variation-title {
        font-size: 10px;
    }
    .recharge-item-style .price-text {
        font-size: 10px;
    }
}

/* Grid layout */
.package-item-outer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}
@media (min-width: 768px) {
    .package-item-outer {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
}

/* Long titles - 1 column on mobile */
@media (max-width: 640px) {
    .package-item-outer.long-titles {
        grid-template-columns: 1fr !important;
    }
}

.payment-card .card-content {
    transition: all 0.3s ease;
    border-width: 2px;
    height: 130px;
}
.payment-card .card-content.selected {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 2px var(--theme-color), 0 4px 12px rgba(0, 0, 0, 0.08);
}
.payment-card .status-dot {
    transition: all 0.3s ease;
    width: 8px;
    height: 8px;
}
.payment-card .payment-footer {
    transition: all 0.3s ease;
    padding-top: 6px;
    padding-bottom: 6px;
}
.payment-card .card-content img {
    max-height: 65px;
    width: auto;
    object-fit: contain;
}

.product-card {
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 0 0 #2563eb;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.product-card:hover {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    border-color: #2563eb;
    z-index: 2;
}
.product-card .aspect-square {
    background: white;
    border-bottom: 1px solid #f3f4f6;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.product-card .aspect-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 6px 6px 0 0;
    position: relative;
    z-index: 1;
}
.product-card:hover .aspect-square img {
    transform: translateY(8px);
}

.product-title-wrapper {
    padding: 8px 4px !important;
    min-height: 36px !important;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 0 0 6px 6px;
    position: relative;
    z-index: 1;
}
@media (min-width: 768px) {
    .product-title-wrapper {
        padding: 10px 4px !important;
        min-height: 40px !important;
    }
}
@media (max-width: 640px) {
    .product-title-wrapper {
        padding: 6px 2px !important;
        min-height: 30px !important;
    }
}

.product-title {
    font-weight: 700;
    color: #1f2937;
    font-size: 11px !important;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 24px;
    transition: color 0.2s ease;
    position: relative;
    z-index: 1;
    word-break: normal !important;
    word-wrap: normal !important;
}
.product-card:hover .product-title {
    color: #2563eb;
}
@media (min-width: 768px) {
    .product-title {
        font-size: 13px !important;
        min-height: 28px;
    }
}
@media (max-width: 640px) {
    .product-title {
        font-size: 9px !important;
        min-height: 20px;
    }
}
.latest-orders-container {
    text-align: center;
    margin: 5px 0;
}
.latest-orders-container h3 {
    position: relative;
    display: inline-block;
    padding: 0 5px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1f2937;
    margin: 0;
}
.latest-orders-container h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 3px;
    background: var(--theme-color);
    transform: translateY(-50%);
}
.latest-orders-container h3::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 30px;
    height: 3px;
    background: var(--theme-color);
    transform: translateY(-50%);
}
.latest-orders-container h3 span {
    background: linear-gradient(135deg, var(--theme-color), #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.checkout_page {
    max-width: 1024px;
    width: 100%;
    padding: 0.5rem !important;
}

.variation-container {
    position: relative;
}
.blink_me {
    animation: blinker 1.5s ease-in-out infinite;
}
@keyframes blinker {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.buy_now_btn {
    transition: all 0.3s ease;
    background: var(--theme-color) !important;
}
.buy_now_btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--theme-color-rgb), 0.4);
    opacity: 0.9;
}
.buy_now_btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}
.checkout_login {
    background: var(--theme-color) !important;
    transition: all 0.3s ease;
}
.checkout_login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--theme-color-rgb), 0.4);
    opacity: 0.9;
}
