/* New Checkout Page Styles */

/* General Styles */
.checkout-section {
    padding: 60px 0;
}

/* Block Styles */
.checkout-block, .block {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    margin-bottom: 20px;
    padding: 20px;
}

.checkout-block .title, .block-content .title {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Form Styles */
.checkout-form .form-label {
    font-weight: 500;
    margin-bottom: 5px;
}

.checkout-form .form-control {
    border: 1px dashed #ffa500;
    border-radius: 0;
    height: 40px;
    padding: 8px 15px;
}

.checkout-form textarea.form-control {
    height: auto;
}

.checkout-form .form-group {
    margin-bottom: 15px;
}

/* Custom Checkbox & Radio */
.checkout-form .customCheckbox {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.checkout-form .customRadio {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
}

.checkout-form .customRadio:last-child {
    margin-bottom: 0;
}

/* Delivery Methods */
.delivery-methods {
    margin-bottom: 20px;
}

.delivery-methods-content {
    padding: 10px 0;
}

.delivery-methods .customRadio {
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.delivery-methods .customRadio:hover {
    border-color: #006633;
    background-color: #f9f9f9;
}

.delivery-methods .customRadio input[type="radio"]:checked + label {
    color: #006633;
    font-weight: 600;
}

.delivery-methods .customRadio:last-child {
    margin-bottom: 0;
}

/* Payment Methods */
.payment-methods .accordion {
    margin-top: 15px;
}

.payment-methods .accordion-item,
.checkout-radio {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.payment-methods .accordion-item:hover,
.checkout-radio:hover {
    border-color: #006633;
}

.payment-methods .card-header {
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
}

.payment-methods .card-header button {
    width: 100%;
    text-align: left;
    font-weight: 600;
    color: #333;
    background: none;
    border: none;
    padding: 8px 0;
    position: relative;
}

.payment-methods .card-header button:after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.payment-methods .card-header button[aria-expanded="true"]:after {
    content: '\f106';
}

.payment-methods .card-body {
    padding: 15px;
}

.payment-methods .credit-card-form label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.payment-methods .credit-card-form .form-control,
.payment-methods .credit-card-form .form-select {
    height: 45px;
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 8px 12px;
    background-color: #fff;
    font-size: 14px;
}

.payment-methods .credit-card-form .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    appearance: none;
}

.payment-methods .credit-card-form .btn-success,
#paypal_pay_btn {
    background-color: #006633;
    border-color: #006633;
    padding: 10px 20px;
    font-weight: 600;
    margin-top: 0;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

/* Submit button specific styles */
#submit_card {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

/* Specific styling for Payment Information section */
#collapseCreditCard .card-body {
    padding: 20px;
    background-color: #f9fafb;
    border-radius: 8px;
}

#collapseCreditCard .form-label {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Credit card form styling */
.card-number-wrapper {
    position: relative;
}

.card-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

#card_number {
    padding-left: 40px;
    letter-spacing: 1px;
    background-color: #fff;
    border: 1px solid #c0c7e0;
    border-radius: 8px;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
    height: 50px;
    font-size: 16px;
    color: #333;
}

/* Style for the credit card number placeholder */
#card_number::placeholder {
    color: #a0aec0;
    letter-spacing: 2px;
}

.cvv-wrapper {
    position: relative;
}

.info-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    cursor: pointer;
}

#cvv, #expiry_date {
    background-color: #fff;
    border: 1px solid #c0c7e0;
    border-radius: 8px;
    height: 50px;
    font-size: 16px;
    color: #333;
}

#cvv::placeholder, #expiry_date::placeholder {
    color: #a0aec0;
}

#card_name {
    background-color: #fff;
    border: 1px solid #c0c7e0;
    border-radius: 8px;
    height: 50px;
    font-size: 16px;
    color: #333;
}

#card_name::placeholder {
    color: #a0aec0;
    opacity: 0.7;
}

/* PayPal specific styles */
#paypal_email {
    height: 45px;
    border-radius: 4px;
}

.payment-methods .card-header {
    background-color: #f8f9fa;
    padding: 0;
}

.payment-methods .card-link {
    display: block;
    width: 100%;
    padding: 12px 15px;
    text-align: left;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    background-color: transparent;
    border: none;
}

.payment-methods .card-body {
    padding: 15px;
}

/* Custom Radio for Payment Methods */
.theme-radio {
    position: relative;
    display: inline-block;
}

.theme-radio input[type="radio"] {
    opacity: 0;
    position: absolute;
}

.theme-radio .custom-radio {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    vertical-align: middle;
}

.theme-radio input[type="radio"]:checked + .custom-radio:after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    background-color: #006633;
    border-radius: 50%;
}

/* Order Summary */
.order-summary {
    margin-bottom: 20px;
}

.order-summary table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.order-summary th {
    background-color: #f8f9fa;
    padding: 8px 5px;
    font-weight: 600;
    text-align: left;
}

.order-summary td {
    padding: 8px 5px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

/* Full-width Order Summary with Subtotal */
.subtotal-wrapper {
    display: flex;
    align-items: center;
}

.order-details-summary {
    background-color: #f9f9f9;
    margin-top: 15px;
}

.order-details-summary .border-bottom {
    border-bottom: 1px dashed #ddd !important;
}

.order-summary .cart-delete {
    width: 30px;
    text-align: center;
}

.order-summary .thumb img {
    max-width: 50px;
    height: auto;
}

.order-summary .proName {
    width: 35%;
}

.order-summary .list-view-item-title {
    font-weight: 500;
    margin-bottom: 3px;
    font-size: 0.85rem;
}

.order-summary .list-view-item-title a {
    color: #333;
    text-decoration: none;
}

.order-summary .list-view-item-title a:hover {
    color: #006633;
}

.order-summary .cart-meta-text {
    font-size: 0.75rem;
    color: #666;
}

/* Cart Info */
.cart-info {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 20px;
}

.checkout-sidebar {
    position: relative;
}

.cart-order-detail {
    padding: 0;
}

.cart-subtotal-title {
    padding: 8px 0;
    font-size: 14px;
}

.money {
    font-weight: 600;
}

.text-primary {
    color: #006633 !important;
}

.border-bottom {
    border-bottom: 1px solid #eee !important;
}

.py-2 {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.pb-2 {
    padding-bottom: 8px !important;
}

.pt-2 {
    padding-top: 8px !important;
}

.fs-5 {
    font-size: 1.25rem !important;
}

.fs-6 {
    font-size: 1rem !important;
}

/* Buttons */
.btn-primary {
    background-color: #006633;
    border-color: #006633;
}

.btn-primary:hover {
    background-color: #005528;
    border-color: #005528;
}

.coupon-btn {
    height: 40px;
}

.checkout-btn,
.btn-lg {
    font-size: 16px;
    font-weight: 600;
    padding: 12px 25px;
    background-color: #006633;
    border-color: #006633;
    color: white;
    width: 100%;
}

.checkout-btn:hover,
.btn-lg:hover {
    background-color: #005528;
    border-color: #005528;
}

.my-4 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.w-100 {
    width: 100% !important;
}

/* Apply Promocode */
.apply-code {
    margin-bottom: 20px;
}

.apply-code p {
    margin-bottom: 10px;
}

.apply-code .input-group {
    display: flex;
}

.apply-code .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.apply-code .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Order Comment */
.order-comments textarea {
    resize: vertical;
    min-height: 80px;
}

/* FonePay QR Code Section Styles */
.fonepay-qr-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #006633;
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
}

.fonepay-qr-section h6 {
    color: #006633;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.fonepay-qr-code {
    text-align: center;
    margin-bottom: 20px;
}

.fonepay-qr-code img {
    border: 3px solid #006633;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 102, 51, 0.2);
    max-width: 200px;
    max-height: 200px;
}

.fonepay-instructions {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.fonepay-instructions h6 {
    color: #0c5460;
    margin-bottom: 10px;
}

.fonepay-instructions ol {
    margin-bottom: 0;
    padding-left: 20px;
}

.fonepay-instructions li {
    color: #0c5460;
    margin-bottom: 5px;
}

.fonepay-receipt-upload {
    margin-bottom: 15px;
}

.fonepay-receipt-upload label {
    color: #006633;
    font-weight: 600;
    margin-bottom: 8px;
}

.fonepay-receipt-upload input[type="file"] {
    border: 2px dashed #006633;
    border-radius: 8px;
    padding: 10px;
    background-color: #f8f9fa;
}

.fonepay-receipt-upload input[type="file"]:focus {
    border-color: #004d26;
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 51, 0.25);
}

.fonepay-receipt-preview {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 10px;
}

.fonepay-receipt-preview .alert {
    margin-bottom: 0;
}

/* Checkout Layout Adjustments */
.checkout-page {
    padding-bottom: 60px; /* Add space at the bottom of the checkout page */
}

.checkout-page .block {
    margin-bottom: 15px;
    border: 1px dashed #ffa500;
    border-radius: 0;
    padding: 15px;
}

.checkout-page .block .title {
    font-size: 14px;
    padding-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
}

.checkout-page .block .block-content {
    padding: 0;
}

.tt-address-info {
    border: 1px dashed #ffa500;
    padding: 10px !important;
    border-radius: 0 !important;
}

.delivery-methods .customRadio {
    padding: 8px;
    margin-bottom: 8px;
    border: 1px dashed #ffa500;
    border-radius: 0;
}

.delivery-methods .customRadio label {
    margin-bottom: 0;
    font-size: 14px;
}

.order-summary {
    border: 1px dashed #ffa500;
    border-radius: 0;
    padding: 15px;
}

.order-summary .table-bottom-brd {
    border: 1px dashed #ffa500;
    border-radius: 0;
}

.order-summary table {
    font-size: 0.85rem;
}

.order-summary th,
.order-summary td {
    padding: 6px 4px;
}

.order-summary .thumb img {
    max-width: 40px;
    height: auto;
}

.order-summary .list-view-item-title {
    font-size: 0.8rem;
}

.order-summary .cart-meta-text {
    font-size: 0.7rem;
}

.order-summary .subtotal-wrapper {
    background-color: #f9f9f9;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px dashed #ddd;
}

/* Order summary styling */
.order-summary {
    margin-bottom: 0;
}

.order-summary .block-content {
    padding: 0;
}

.order-summary .table {
    margin-bottom: 0;
}

.order-summary .order-table {
    border: 1px dashed #ffa500 !important;
    padding: 10px;
}

.order-totals {
    border: 1px dashed #ffa500 !important;
    padding: 15px !important;
    height: 100%;
}

.order-summary .btn-primary {
    background-color: #006400 !important;
    border-color: #006400 !important;
    color: white !important;
    font-weight: bold;
    text-transform: uppercase;
    padding: 12px;
    margin-top: 10px;
}

.order-summary .text-success {
    color: #006400 !important;
}

.order-summary .cart-subtotal-title.fs-5 {
    font-size: 1.1rem !important;
}

.order-summary .cart-subtotal-title.fs-4 {
    font-size: 1.3rem !important;
}

.cart-subtotal-title {
    font-size: 0.9rem;
}

.payment-methods .accordion-item {
    border: 1px dashed #ffa500;
    border-radius: 0;
    margin-bottom: 8px;
}

.apply-code .input-group {
    border: 1px dashed #ffa500;
    border-radius: 0;
    padding: 5px;
}

.order-comments textarea {
    border: 1px dashed #ffa500;
    border-radius: 0;
}

.checkout-btn {
    background-color: #006400;
    border-color: #006400;
    border-radius: 0;
}

.checkout-btn:hover {
    background-color: #005500;
    border-color: #005500;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .checkout-block {
        padding: 15px;
    }

    .order-summary th,
    .order-summary td {
        padding: 6px 3px;
    }
}
