/* Global styles */

.tab-pane {
    background-color: #F5F5F5;
    border-radius: 15px;
    padding: 30px;
}

.checkout {
    padding-top: 75px;
    padding-bottom: 75px;
}

/*.woocommerce-notices-wrapper {*/
/*    display: none;*/
/*}*/

.checkout-content-tabs {
    padding-left: 0;
}

/* Tab Nav */
.checkout-nav-tabs {
    padding: 0;
    margin-bottom: 30px !important;
}

.checkout-nav-tabs .nav-item {
    width: 100%;
}

.checkout-nav-tabs .nav-link {
    border: 1px solid #E5E7EB;
}

.checkout-nav-tabs .nav-item:first-child .nav-link {
    border-radius: 6px 0 0 6px;
}

.checkout-nav-tabs .nav-item:last-child .nav-link {
    border-radius: 0 6px 6px 0;
}

.checkout-nav-tabs .nav-link .counter {
    border: 2px solid #D1D5DB;
    color: #6B7280;
    font-weight: 700;
    padding: 5px 9px;
    margin-right: 15px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.checkout-nav-tabs .nav-link.active .counter {
    border: 2px solid #2451e5;
    color: #2451e5;
    font-weight: 700;
}

.checkout-nav-tabs .nav-link {
    border-radius: 0;
    background: #fff;
    color: #6B7280;
    font-weight: 600;
    text-align: left;
    padding: 20px 40px;
}

.checkout-nav-tabs .nav-link.active {
    color: #19181b;
    background: #fff;
    border-bottom: 2px solid #2451e5;
}

.bi-check-circle-fill {
    color: #2451e5;
    margin-right: 15px;
    font-size: 20px;
    display: none;
}

.checkout-nav-tabs .nav-link.active .bi-check-circle-fill {
    color: #2451e5;
}

/* Disabled tab styles */
.checkout-nav-tabs .nav-link:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.checkout-nav-tabs .nav-link:disabled .counter {
    border: 2px solid #d1d5db;
    color: #9ca3af;
    background: #f3f4f6;
}

.checkout-nav-tabs .nav-link:disabled:hover {
    background: #f3f4f6;
    color: #9ca3af;
}

/* Tab Header */

.driver-details-header {
    margin-bottom: 30px;
}

.driver-details-header h2 {
    color: #000;
    font-size: 28px;
    line-height: 36px;
    font-weight: 700;
    margin-bottom: 0;
}

.driver-details-header p {
    color: #000;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    margin-bottom: 0;
}

/* Form Fields */

.form-fields {
    margin-bottom: 30px;
}

.form-fields .form-label {
    color: #000;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
}

.form-fields .form-col {
   margin-bottom: 15px;
}

.form-fields .form-control,
.form-fields .form-select
{
    border-radius: 6px;
    border: 1px solid #D1D5DB;
    font-size: 16px;
    height: 58px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-fields .form-control:focus,
.form-fields .form-select:focus {
    border-color: #2451e5;
    box-shadow: 0 0 0 3px rgba(36, 81, 229, 0.1);
    outline: none;
}

.form-fields .form-control.required:invalid,
.form-fields .form-select.required:invalid {
    border-color: #dc2626;
}

.form-fields .form-control.required:valid,
.form-fields .form-select.required:valid {
    border-color: #059669;
}

/* Validation state styles */
.form-fields .form-control.is-valid,
.form-fields .form-select.is-valid {
    border-color: #059669;
}

.form-fields .form-control.is-invalid,
.form-fields .form-select.is-invalid {
    border-color: #dc2626;
}

.form-fields .btn-group .btn {
    font-size: 16px;
    line-height: 24px;
}

.form-fields .btn-check {
    border-radius: 6px;
}

.form-fields .btn-check+.btn:hover {
    background-color: #FFF;
    border-color: #D1D5DB;
}

/* Checkout Products */

.product-nav-tabs .nav-link {
    background-color: #fff;
    border-radius: 0;
    border: 1px solid #E5E7EB;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.product-nav-tabs .nav-item:first-child .nav-link {
    border-radius: 6px 0 0 6px;
}

.product-nav-tabs .nav-item:last-child .nav-link {
    border-radius: 0 6px 6px 0;
}

.product-nav-tabs .nav-link .product-duration {
    color: #000;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

.product-nav-tabs .nav-link .product-expires {
    color: #6B7280;
    font-size: 14px;
    line-height: 20px;
    font-weight: 100;
}

.product-nav-tabs .nav-link.active,
.product-nav-tabs .nav-link:hover  {
    background-color: #1E4CE8;
}

.product-nav-tabs .nav-link.active span,
.product-nav-tabs .nav-link:hover span {
    color: #fff;
}

.product-tab-content .tab-pane {
    padding: 20px 0;
}

.product-btn-group {
    width: 100%;
    flex-direction: row-reverse;
}

.product-btn-group .product-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 40px;
    position: relative;
    border: 1px solid #E5E7EB;
    background-color: #fff;
    width: 50%;
    height: auto;
}

.product-btn-group .product-btn .product-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.product-options .product-btn-group .product-btn .product-price bdi {
    color: #000;
    font-size: 24px;
    line-height: 32px;
    font-weight: 700 !important;
}

.product-options .product-btn-group .product-btn:checked .product-price bdi {
    color: #fff;
}

.product-options .product-btn-group .product-btn .product-name {
    color: #000;
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    text-transform: uppercase;
}

.product-btn-group .product-btn .recommended {
    color: #065F46;
    background-color:#6EE7B7;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
    padding: 5px 30px;
    border-radius: 6px;
    text-align: center;
    position: absolute;
    top: -8px;
    left: -8px;
}

.product-btn-group .btn-check:checked+.product-btn {
    background-color: #1E4CE8;
}

.product-btn-group .btn-check:checked+.product-btn .product-price bdi,
.product-btn-group .btn-check:checked+.product-btn .product-name{
    color: #fff;
}

.product-btn-group .btn-check:checked+.product-btn .selected {
    display: flex;
}

.product-btn-group .product-btn .selected {
    color: #fff;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    position: absolute;
    background-color: #1a39c3e0;
    padding: 5px 16px;
    border-radius: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-btn-group .product-btn .selected i {
    color: #FFBA4C;
    font-size: 16px;
}

#checkout-payment-button {
    width: 100%;
}

.product-btn-group .product-btn.parent-220 {
    border-radius: 6px 0 0 6px !important;
}
.product-btn-group .product-btn.parent-226 {
    border-radius: 0 6px 6px 0 !important;
}

/* Shipping Method */

.shipping-method .shipping-method-radio {
    border: 1px solid #E5E7EB;
    background-color: #fff;
    padding: 20px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.shipping-method .form-check-input {
    float: none;
    margin-left: 0;
}

.shipping-method .shipping-method-radio:first-child {
  border-radius: 6px 6px 0 0;
  margin-bottom: 0;
}

.shipping-method .shipping-method-radio:last-child {
  border-radius: 0 0 6px 6px;
}

.shipping-method .form-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: auto;
    cursor: pointer;
}

.shipping-method .form-check-label::after {
    content: "";
    width: 100%;
    height: 100%;
    border-radius: 6px 6px 0 0;
    border: 1px solid #254df0;
    background-color: #f6f8ff;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    display: none;
}

.shipping-method .shipping-method-radio:last-child .form-check-label::after {
    border-radius: 0 0 6px 6px;
}

.shipping-method .form-check-input:checked +.form-check-label::after {
    display: block;
}

.shipping-method .shipping-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.shipping-method .shipping-duration {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    margin-bottom: 0;
    width: 100%;
}

.shipping-method .shipping-name {
    font-size: 12px;
    line-height: 16px;
    font-weight: 300;
    margin-bottom: 0;
    width: 100%;
}

.shipping-method .shipping-price {
    flex: auto;
    text-align: right;
    font-size: 14px;
    line-height: 20px;
    font-weight: 300;
    margin-bottom: 0;
}

/* Payment Method */


.payment-method .payment-method-radio {
    border: 1px solid #E5E7EB;
    background-color: #fff;
    padding: 20px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-method .form-check-input {
    float: none;
    margin-left: 0;
}

.payment-method .payment-method-radio:first-child {
  border-radius: 6px 6px 0 0;
  margin-bottom: 0;
}

.payment-method .payment-method-radio:last-child {
  border-radius: 0 0 6px 6px;
}

.payment-method .form-check-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex: auto;
    cursor: pointer;
}

.payment-method .form-check-label::after {
    content: "";
    width: 100%;
    height: 100%;
    border-radius: 6px 6px 0 0;
    border: 1px solid #254df0;
    background-color: #f6f8ff;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    display: none;
}

.payment-method .payment-method-radio:last-child .form-check-label::after {
    border-radius: 0 0 6px 6px;
}

.payment-method .form-check-input:checked +.form-check-label::after {
    display: block;
}

.payment-method .payment-name {
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    margin-bottom: 0;
}

/* Add-ons */

.add-ons .add-on-item {
    border: 1px solid #E5E7EB;
    background-color: #fff;
    padding: 20px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    border-radius: 6px;
}

.add-ons .form-check-input {
    float: none;
    margin-left: 0;
}

.add-ons .add-on-item:last-child {
 margin-bottom: 0;
}

.add-ons .form-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: auto;
    cursor: pointer;
}

.add-ons .form-check-label::after {
    content: "";
    width: 100%;
    height: 100%;
    border-radius: 6px;
    border: 1px solid #254df0;
    background-color: #f6f8ff;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    display: none;
}

.add-ons .form-check-input:checked +.form-check-label::after {
    display: block;
}

.add-ons .add-on-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.add-ons .add-on-duration {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    margin-bottom: 0;
    width: 100%;
}

.add-ons .add-on-name {
    font-size: 12px;
    line-height: 16px;
    font-weight: 300;
    margin-bottom: 0;
    width: 100%;
}

.add-ons .add-on-price {
    flex: auto;
    text-align: right;
    font-size: 14px;
    line-height: 20px;
    font-weight: 300;
    margin-bottom: 0;
}

.pay-button {
    width: 100%;
}

.footer-checkout-button .btn {
    font-weight: 300;
    border-radius: 6px;
    height: 60px;
    font-size: 16px;
    line-height: 24px;
    width: 100%;
    transition: all 0.3s ease;
}

.footer-checkout-button .btn:disabled {
    background-color: #D1D5DB;
    color: #fff;
    border-color: #D1D5DB;
    cursor: not-allowed;
    opacity: 0.6;
}

.footer-checkout-button .btn:not(:disabled) {
    background-color: #2451e5;
    color: #fff;
    border-color: #2451e5;
}

.footer-checkout-button .btn:not(:disabled):hover {
    background-color: #1e40af;
    border-color: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(36, 81, 229, 0.2);
}

/* Validation help text */
.validation-help-text {
    text-align: center;
    padding: 8px 16px;
    border-radius: 6px;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.validation-help-text small {
    color: #6b7280;
    font-size: 13px;
    line-height: 18px;
}

.validation-help-text i {
    margin-right: 4px;
    color: #6b7280;
}

/* Coupon */

.coupon-code .coupon-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.coupon-code .coupon-button .btn {
    color: #6B7280;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;   
    text-decoration: none;
}



/* Coupon Response Alerts */
#coupon-response.alert-warning {
    background-color: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

/* Applied Coupons in Total Amount */
.applied-coupons-section {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.coupon-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.coupon-line:last-child {
    margin-bottom: 0;
}

.coupon-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #059669;
    font-weight: 500;
}

.coupon-title i {
    color: #059669;
    font-size: 16px;
}

.coupon-discount {
    font-size: 14px;
    color: #059669;
    font-weight: 600;
}

.remove-coupon-link {
    color: #dc2626;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    margin-left: 8px;
    cursor: pointer;
    transition: color 0.2s;
}

.remove-coupon-link:hover {
    color: #991b1b;
}

/* Total Amount */
.total-amount {
    margin-bottom: 20px;
}

.total-amount .accordion-item {
    background-color: transparent;
}

.total-amount .accordion-button {
    background-color: transparent;
    padding-left: 0;
}

.total-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    padding-right: 20px;
    width: 100%;
}

.total-amount .accordion-body {
    padding-left: 0;
}

.guaranteed-safety {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.guaranteed-safety p {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    margin-bottom: 0;
}

.guaranteed-safety p b {
    font-weight: 600;
}

/* Popular Item */

.popular-item {
    padding-right: 0;
}

.popular-item .popular-item-image {
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 30px;
}

.popular-item .popular-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-item .popular-item-details {
    background-color: #F9FAFB;
    padding: 10px;
    border-radius: 6px;
}

.popular-item .popular-item-name i {
    border-radius: 50%;
    background-color: #34b984;
    color: #fff;
    padding: 6px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popular-item .popular-item-name {
    font-size: 14px;
    line-height: 20px;
    font-weight: 200;
    margin-bottom: 10px;
    color: #111827;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.popular-item .item-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
    
.item-description {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    margin-bottom: 0;
}

/* Passport style photo */

.passport-container {
    text-align: center;
}

/* Driver License Front and Back containers - same styling as passport */
.driver-license-front-container,
.driver-license-back-container {
    text-align: center;
}

/* E-signature containers - same styling as passport and driver license */
.e-signature-container,
.e-signature-draw-container {
    text-align: center;
}

#passportDropzone {
    background: none;
    border: none;
    padding: 0;
}
#passportDropzone .dz-message {
    margin: 0;
    padding: 0;
}

/* Passport style photo Dropzone custom UI */
.photo-guidelines-link,
.driver-license-front-photo-guidelines-link,
.driver-license-back-photo-guidelines-link {
    font-size: 16px;
    color: #2451e5;
    text-decoration: underline;
    display: block;
    margin-bottom: 15px;
}

.passport-photo-placeholder,
.driver-license-front-photo-placeholder,
.driver-license-back-photo-placeholder {
    border: 3px dashed #d7dae0;
    border-radius: 8px;
    width: 100%;
    height: 250px;
    margin: 0 auto 40px auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fefeff;
}

/* E-signature photo placeholders - same styling as other placeholders */
.e-signature-photo-placeholder,
.e-signature-draw-placeholder {
    border: 3px dashed #d7dae0;
    border-radius: 8px;
    width: 100%;
    height: 200px;
    margin: 0 auto 40px auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fefeff;
}

/* Signature canvas styling */
/* Signature actions container */
.signature-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.e-signature-clear-btn,
.e-signature-save-btn {
    width: auto;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 30px;
    border-radius: 6px;
}

.e-signature-clear-btn:hover {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

.e-signature-save-btn:hover {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

.driver-license-front-photo-placeholder,
.driver-license-back-photo-placeholder {
    width: 100%;
    margin: 0 auto 10px auto;
}

.driver-license-front-container h4,
.driver-license-back-container h4 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 400;
}

/* E-signature container h4 styling */
.e-signature-container h4,
.e-signature-draw-container h4 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 400;
}

.avatar-placeholder-img,
.avatar-back-placeholder-img {
    width: 100%;
    height: 100% !important;
    object-fit: contain !important;
}

.woocommerce-Price-amount bdi {
    font-weight: 600 !important;
}

.add-on-price .woocommerce-Price-amount bdi {
    font-weight: 300 !important;
}

/* E-signature avatar image styling */
.avatar-e-signature-placeholder-img {
    width: 100%;
    height: 100% !important;
    object-fit: contain;
}

.driver-license-front-photo-placeholder .avatar-placeholder-img,
.driver-license-back-photo-placeholder .avatar-back-placeholder-img {
    object-fit: contain;
}

.choose-file-btn,
.driver-license-front-choose-file-btn,
.driver-license-back-choose-file-btn {
    width: auto;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #2e3644;
    border: 1px solid #dcdfe3;
    padding: 10px 60px;
}

/* E-signature button styling - same as other choose file buttons */
.e-signature-choose-file-btn {
    width: auto;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #2e3644;
    border: 1px solid #dcdfe3;
    padding: 10px 60px;
}

.take-photo-link-container {
    text-align: center;
}

.take-photo-link,
.driver-license-front-take-photo-link,
.driver-license-back-take-photo-link {
    font-size: 16px;
    color: #2451e5;
    text-decoration: none;
    font-weight: 600;
}

/* E-signature take photo link styling */
.e-signature-take-photo-link {
    font-size: 16px;
    color: #2451e5;
    text-decoration: none;
    font-weight: 600;
}

/* Dropzone Custom Styles */
.dropzone {
    min-height: auto !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.dropzone:hover {
    background: transparent !important;
}

.dropzone.dz-drag-hover {
    border: 2px dashed #2451e5 !important;
    background-color: rgba(36, 81, 229, 0.05) !important;
    border-radius: 8px;
}

.dropzone.dz-drag-hover .passport-photo-placeholder {
    border-color: #2451e5;
    background-color: rgba(36, 81, 229, 0.05);
}

.dropzone .dz-preview {
    display: none !important;
}

/* Override Dropzone's default behavior of hiding .dz-message when files are added */
.dropzone.dz-started .dz-message {
    display: block !important;
}

.passport-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.passport-preview img {
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.preview-actions {
    margin-top: 10px;
}

.upload-progress {
    width: 100%;
    max-width: 120px;
}

.upload-progress .progress {
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.upload-progress .progress-bar {
    background-color: #2451e5;
    font-size: 10px;
    text-align: center;
    color: white;
    transition: width 0.3s ease;
}

/* Camera Modal Styles */
.camera-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.camera-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.camera-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
}

.camera-modal-header h3 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 600;
}

.camera-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.camera-close-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.camera-modal-body {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: #f9fafb;
}

#camera-video,
#camera-canvas {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #000;
}

.camera-modal-footer {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    gap: 12px;
    background: white;
    flex-wrap: wrap;
}

.camera-modal-footer .btn {
    min-width: 120px;
    font-weight: 600;
    border-radius: 6px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.camera-modal-footer .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* File Upload Button Hover Effects */
.choose-file-btn:hover,
.driver-license-front-choose-file-btn:hover,
.driver-license-back-choose-file-btn:hover {
    background-color: #2451e5;
    color: white;
    border-color: #2451e5;
}

/* E-signature button hover effects */
.e-signature-choose-file-btn:hover {
    background-color: #2451e5;
    color: white;
    border-color: #2451e5;
}

.passport-photo-placeholder:hover,
.driver-license-front-photo-placeholder:hover,
.driver-license-back-photo-placeholder:hover {
    cursor: pointer;
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

/* E-signature placeholder hover effects */
.e-signature-photo-placeholder:hover {
    cursor: pointer;
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

.popular-item-image.hidden-md-down {
    display: none;
}

.dropzone .dz-message {
    margin: 30px 0;
}

.input-group .input-group-text {
    background-color: #fff;
    border-right: none;
}

.input-group .form-select,
.input-group .form-control {
    border-left: none;
}

.footer-checkout-button {
    margin-top: 20px;
}

.hidden {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .camera-modal-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: 10px;
    }
    
    .camera-modal-header,
    .camera-modal-body,
    .camera-modal-footer {
        padding: 15px;
    }
    
    .camera-modal-footer {
        flex-direction: column;
    }
    
    .camera-modal-footer .btn {
        min-width: auto;
        width: 100%;
    }
    
    #camera-video,
    #camera-canvas {
        max-width: 100%;
        max-height: 50vh;
    }
    
    .passport-preview img {
        max-width: 100px;
        max-height: 100px;
    }
    
    /* E-signature responsive adjustments */
    .e-signature-photo-placeholder {
        width: 100%;
        height: 200px;
    }
    
    /* Signature canvas responsive adjustments */
    #signature-canvas {
        max-width: 100%;
        height: 150px;
    }
    
    .signature-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .e-signature-clear-btn,
    .e-signature-save-btn {
        width: 100%;
        min-width: auto;
    }
}

@media (min-width: 800px) {
    .checkout-nav-tabs .nav-item {
        width: 50%;
    }

    .tab-pane {
        padding: 40px;
    }

    .product-btn-group .product-btn .product-image {
        width: 200px;
        height: 200px;
    }

    .product-btn-group .product-btn .product-name {
        font-size: 16px;
        line-height: 24px;
    }

    .popular-item-image.hidden-md-down {
        display: block;
    }

    .passport-photo-placeholder,
    .driver-license-front-photo-placeholder,
    .driver-license-back-photo-placeholder {
        width: 230px;
    }

    .dropzone .dz-message {
        margin: 20px 0;
    }
}


/* Select2 */

.checkout .select2-container--default .select2-selection--single {
    height: 58px;
    border-radius: 6px;
    border: 1px solid #D1D5DB;
    font-size: 16px;
    color: #111827;
    display: flex;
    align-items: center;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    width: 100%;
    padding-right: 40px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] {
    background-color: #1E4CE8;
    color: #fff !important;
}

.select2-container .select2-dropdown, .select2-container .select2-selection {
    border-radius: 6px;
    border: 1px solid #D1D5DB;
    top: auto;
}


.select2-container .select2-dropdown .select2-results__option {
    font-size: 16px;
    color: #111827;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
}

.select2-container .select2-selection--single .select2-selection__arrow b {
    border: none;
    display: block;
    background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXItY2hldnJvbi1kb3duIj48cG9seWxpbmUgcG9pbnRzPSI2IDkgMTIgMTUgMTggOSI+PC9wb2x5bGluZT48L3N2Zz4=) no-repeat;
    background-size: 18px;
    width: 25px;
    height: 18px;
    position: absolute;
    top: 19px;
    left: auto;
    right: 6px;
    margin: 0;
}

.select2-container .select2-selection--single .select2-selection__rendered > span {
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.select2-container--default .select2-selection--single {
    height: calc(2.375rem + 2px); /* Match .form-select height (Bootstrap 5) */
    padding: 0.375rem 0.75rem;
    line-height: 1.5;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

/* Match Bootstrap input group spacing */
.input-group .select2-container {
    flex: 1 1 auto;
    width: 1% !important; /* Prevent stretching */
}

#license-issued-prefix {
    height: 58px;
}

.input-group .select2-container .select2-selection--single {
    border-radius: 0 6px 6px 0;
    border: 1px solid #D1D5DB;
    border-left: none;
}

/* Ensure proper spacing for shipping fields */
.woocommerce-shipping-fields__field-wrapper .form-col {
    margin-bottom: 1rem;
}

/* Let WooCommerce handle state field visibility naturally */
#shipping_state_field.woocommerce-hidden {
    display: none !important;
}

/* Ensure Select2 containers have proper width */
.woocommerce-shipping-fields .select2-container {
    width: 100% !important;
}

/* Hide duplicate Select2 containers */
.woocommerce-shipping-fields .select2-container ~ .select2-container {
    display: none !important;
}

.form-message-info {
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #b71515;
    width: 100%;
    padding: 10px 0;
    display: none;
    margin-top: 5px;
    border-radius: 4px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.form-message-info.is-invalid {
    display: flex;
    color: #dc2626;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
}

.form-message-info.is-valid {
    display: flex;
    color: #059669;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.form-message-info i {
    font-size: 14px;
    margin-right: 4px;
}

.form-message-info.is-invalid i {
    color: #dc2626;
}

.form-message-info.is-valid i {
    color: #059669;
}

/* Animation for validation messages */
.form-message-info.is-invalid,
.form-message-info.is-valid {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure validation messages are visible in accordion items */
.accordion-item .form-message-info {
    margin-top: 10px;
}

.accordion-item .form-message-info {
    text-align: center;
    justify-content: center;
}

/* Upload indicators and progress styles */
.upload-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(5, 150, 105, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.upload-indicator i {
    font-size: 14px;
}

.uploaded-photo {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Button states for upload completion */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn.btn-secondary:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

/* Upload completion animations */
.upload-indicator {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Tab disabled state enhancement */
.nav-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive adjustments for upload indicators */
@media (max-width: 768px) {
    .upload-indicator {
        position: static;
        margin-top: 10px;
        align-self: center;
        width: fit-content;
    }
}

/* Ensure only one visible Select2 container per field */
#shipping_state_field .select2-container:nth-of-type(n+2),
#shipping_country_field .select2-container:nth-of-type(n+2) {
    display: none !important;
}

/* Hide the original select when Select2 is active */
.woocommerce-shipping-fields select.select2-hidden-accessible {
    display: none !important;
}

/* When input field is present, hide Select2 containers */
#shipping_state_field input[name="shipping_state"] ~ .select2-container {
    display: none !important;
}

/* When input field is visible, hide select elements */
#shipping_state_field input[name="shipping_state"]:not([style*="display: none"]) ~ select,
#shipping_state_field input[name="shipping_state"]:not([style*="display: none"]) ~ .select2-container {
    display: none !important;
}

/* Ensure proper positioning */
.woocommerce-shipping-fields .select2-container {
    position: relative;
    z-index: 1;
}

/* Ensure input fields have proper styling when visible */
#shipping_state_field input[name="shipping_state"] {
    width: 100%;
}

.product-content .tab-pane {
    padding: 20px 0 !important;
}


/* Loading Screen */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    flex-direction: column;
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-text {
    margin-top: 1rem;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Existing loading states */
.widget_shopping_cart_content.loading,
.total-amount-wrapper.loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.widget_shopping_cart_content.loading::after,
.total-amount-wrapper.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

/* Shipping method loading state */
.shipping-method.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.shipping-method.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
    border-radius: 6px;
}


/* Cross-sells */

.total-details.cross-sell {
    display: block;
    margin-bottom: 10px; 
}

.total-details .cross-sell-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.total-details .cross-sells-list {
    padding-left: 20px;
}

/* Date of Birth field specific styles */
#date-of-birth-day,
#date-of-birth-year {
    text-align: left;
}

#date-of-birth-day:focus,
#date-of-birth-year:focus {
    text-align: left;
}

#date-of-birth-day::placeholder,
#date-of-birth-year::placeholder {
    display: none;
}

/* Date of Birth helper text */
.form-fields .text-muted {
    font-size: 12px;
    line-height: 16px;
    margin-top: 5px;
}

.form-fields .text-muted i {
    margin-right: 4px;
    color: #6b7280;
}

.woocommerce-error {
    background-color: #f1aeb5;
    padding: 16px 60px;
    border: 0;
    border-radius: 8px;
    margin-left: -15px;
    margin-right: -15px;
}

.woocommerce-error li {
    font-size: 14px;
    font-weight: 500;
    color: #000;
}

.woocommerce-message {
    border-top: 0;
    border-bottom: 0;
    border-radius: 6px;
    padding: 16px 60px;
    background-color: #c2f1ae;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    margin-left: -15px;
    margin-right: -15px;
}

p.form-row.form-control {
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    height: auto;
}