/* Review Order Page Styles */

.review-order-section {
    padding-bottom: 50px;
}

.card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-5px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), #6b071a);
    padding: 15px 20px;
    border-bottom: none;
}

.card-header h4 {
    color: white;
    font-weight: 600;
    margin: 0;
}

.card-title {
    font-weight: 600;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

/* Address Styles */
.address-info {
    padding: 10px 0;
}

.address-item {
    margin-bottom: 15px;
}

.address-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background-color: rgba(140, 9, 31, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1rem;
    margin-right: 15px;
}

.address-text {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}

/* Product Review Styles */
.product-image {
    width: 120px;
    height: 120px;
    min-width: 120px;
    overflow: hidden;
    border-radius: 10px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.product-price {
    display: flex;
    align-items: center;
}

.price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.discount-badge {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    position: relative;
    top: 2px;
    margin-left: 30px;
}

.product-tenure {
    margin-top: 10px;
}
.bill-details {
    background: transparent;
}
.tenure-text {
    color: #666;
    font-size: 0.9rem;
}

.tenure-select-container {
    position: relative;
    width: 100%;
}

.tenure-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 8px 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:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(140, 9, 31, 0.1);
}

.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;
}

.product-actions {
    display: flex;
    align-items: flex-start;
}

/* ID Proof Styles */
.id-proof-preview {
    text-align: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
    border: 1px dashed #ddd;
}

.id-proof-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Bill Details Styles */
.bill-details-card {
    position: sticky;
    top: 100px;
    margin-top: 0;
    transition: all 0.3s ease;
}

.bill-details-card:hover {
    transform: translateY(-5px);
}

.bill-details {
    padding: 10px 0;
}

.bill-row {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.bill-row:last-child {
    border-bottom: none;
}

.bill-label {
    color: #555;
    font-size: 1rem;
}

.bill-value {
    font-weight: 500;
    color: #333;
    font-size: 1rem;
}

.total-row {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #eee;
    font-size: 1.2rem;
}

.total-row .bill-value {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.bill-details-card .card-header {
    background: linear-gradient(135deg, var(--primary-color), #6b071a);
    padding: 15px 20px;
    border-bottom: none;
}

/* Action Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #6b071a);
    border: none;
    border-radius: 10px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(140, 9, 31, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6b071a, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(140, 9, 31, 0.3);
}

.btn-outline-secondary {
    border-radius: 10px;
    padding: 12px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    color: #88091e;
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
    transition: all 0.3s ease;
}

.btn-outline-danger:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    transform: translateY(-2px);
}

/* Total Amount Display */
.total-amount-display {
    line-height: 1.2;
}

.total-amount-display .text-muted {
    font-size: 0.85rem;
    font-weight: 500;
}

.total-amount-display .text-primary {
    color: var(--primary-color) !important;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .bill-details-card {
        position: static;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem !important;
    }

    .product-review {
        flex-direction: column;
    }

    .product-image {
        width: 100%;
        height: 200px;
        margin-bottom: 15px;
    }

    .product-actions {
        position: absolute;
        top: 20px;
        right: 20px;
    }
    .product-details .product-actions {
        position: relative;
        top: 0;
        right: 0;
    }

    .product-details {
        margin-bottom: 15px;
    }

    /* Adjust the action buttons area for mobile */
    .d-flex.justify-content-between.align-items-center.mt-4 {
        flex-direction: row;
        align-items: center !important;
        gap: 10px;
    }

    .d-flex.justify-content-between.align-items-center.mt-4 > a {
        width: auto;
        text-align: center;
    }

    .total-amount-display {
        text-align: center !important;
        margin-right: 0 !important;
        margin-bottom: 10px;
    }

    .total-amount-display .fs-4 {
        font-size: 1.5rem !important;
    }

    a.btn-primary.btn-lg {
        text-align: center;
        width: 100% !important;
        min-width: 100%;
    }

    /* Make bill details card more prominent on mobile */
    .bill-details-card {
        border: 2px solid var(--primary-color);
        margin-bottom: 30px;
    }

    .bill-details-card .card-header {
        padding: 12px 15px;
    }

    .bill-details-card .card-body {
        padding: 15px !important;
    }
}

.id-proof-view {
    display: block;
}