/* Cart Page Styles */

/* Custom styles for cart pages */
.cart-container {
    margin-bottom: 60px;
}

/* Product image in cart */
.card img {
    max-height: 150px;
    object-fit: cover;
    width: 100%;
}

/* Coupon badge */
.bg-primary.rounded-circle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gift icon */
.text-warning .fa-gift {
    color: #f9a825;
}

/* Upload ID Proof Section */
.upload-id-section {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.upload-icon-circle {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background-color: #4caf50;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-right: 0;
}

.upload-id-section:hover .upload-icon-circle {
    transform: scale(1.05);
}

.id-proof-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.id-proof-preview {
    display: none;
    margin-top: 15px;
    position: relative;
    z-index: 99;
    width: fit-content;
    /* border: 2px dashed #4caf50; */
    /* padding: 10px; */
    border-radius: 10px;
    background-color: rgba(76, 175, 80, 0.05);
}

.id-proof-preview img {
    width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    object-fit: contain;
}

.id-proof-preview .remove-preview {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc3545;
    cursor: pointer;
    transition: all 0.3s ease;
}

.id-proof-preview .remove-preview:hover {
    background-color: #fff;
    transform: scale(1.1);
}

/* ID Proof Type Dropdown */
.id-proof-type {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 15px;
    width: 100%;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.id-proof-type:focus {
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    outline: none;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 5px;
}

/* Trendy Bill Details */
.bill-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.bill-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.bill-card .card-header {
    background: linear-gradient(135deg, var(--primary-color), #6b071a);
    color: white;
    border-bottom: none;
    padding: 15px 20px;
}

.bill-card .card-body {
    padding: 20px;
}

.bill-row {
    padding: 12px 0;
    /* border-bottom: 1px dashed rgba(0, 0, 0, 0.1); */
    transition: all 0.3s ease;
}
.br-btm {
    border-bottom: 1px dashed rgba(0, 0, 0, 1);
}

.bill-row:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.bill-row:last-child {
    border-bottom: none;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.bill-label {
    font-weight: 500;
    color: #555;
}

.bill-value {
    font-weight: 600;
    color: #333;
}

.discount-value {
    color: #850000;
}

/* Custom Tenure Select */
.tenure-select-container {
    position: relative;
    max-width: 200px;
}

.tenure-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f8f9fa;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tenure-select:hover, .tenure-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(140, 9, 31, 0.1);
    outline: none;
}

.tenure-select-container::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

/* Quantity Controls */
.input-group .btn {
    transition: all 0.2s ease;
}

.input-group .btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.input-group .btn:active {
    transform: scale(0.95);
}

.quantity-input {
    font-weight: 600;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .col-md-3.text-end {
        text-align: left !important;
        margin-top: 15px;
    }

    .input-group {
        margin-bottom: 15px;
    }

    .d-flex.flex-wrap.align-items-center.gap-3 {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .d-flex.flex-wrap.align-items-center.gap-3 > div {
        margin-bottom: 10px;
    }

    .d-flex.flex-wrap.align-items-center.gap-3 > div.flex-grow-1 {
        width: 100%;
        max-width: 100% !important;
    }

    .upload-btn {
        width: 100%;
    }
}

.select-id-type {
    position: relative;
    z-index: 99;
}
.upload-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
}
@media screen and (max-width: 768px) {
    .card img {
        max-height: 250px;
        object-fit: cover;
        width: 100%;
        margin-bottom: 10px;
    }
}