/* PickupOrDeliverly.cshtml — styles previously inline in the view */

.mt-7rem {
    margin-top: 0.7rem;
}

.outline-purple {
    border-color: #7d00e2 !important;
    color: #7d00e2 !important;
}

.outline-purple:hover {
    background-color: #7d00e2 !important;
    color: #FFFFFF !important;
}

.qty {
    display: flex;
    margin-top: 0 !important;
}

.qty .count {
    display: inline-block;
    vertical-align: middle;
    font-weight: 600;
    padding: 0 2px;
    min-width: 35px;
    text-align: center;
}

.qty .plus {
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    color: #3f4354;
    width: 28px;
    height: 28px;
    font-size: 28px;
    line-height: 24px !important;
    text-align: center;
    border-radius: 50%;
}

.qty .minus {
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    color: #3f4354;
    width: 28px;
    height: 28px;
    font-size: 28px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    background-clip: padding-box;
}

/* Prevent text selection */
span {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.typon {
    border: 0;
    width: 2%;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input:disabled {
    background-color: white;
}

.form-check.form-check-solid .form-check-input:checked {
    background-color: var(--og-primary-bg-color, #7D00E2) !important;
    border-color: var(--og-primary-bg-color, #7D00E2) !important;
}

.border-info {
    border-color: #7239ea !important;
}

a {
    color: #7d00e2;
    text-decoration: underline;
}

input#add_contact_Phone_number:focus-visible {
    outline: 0px !important;
}

div.phone-number-textbox div.iti {
    width: 100%;
}

.form-select:focus {
    border-color: transparent;
    outline: 0;
    box-shadow: none;
}

.border-red {
    border: 1px solid red !important;
}

.name-image-container {
    overflow: hidden;
}

.name-image-container span {
    float: left;
}

.name-image-container img {
    float: right;
    width: 50px;
    height: 50px;
}

.get-directions-btn {
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
}

.product-image {
    width: 150px;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.product-image:hover {
    transform: scale(1.2);
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.popup-content {
    position: relative;
    background: white;
    padding: 10px;
    border-radius: 10px;
    max-width: 90%;
    max-height: 90%;
}

.popup-content img {
    width: auto;
    height: auto;
    max-width: 300px;
    max-height: 300px;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
    color: black;
}

#languageSelector {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #1e1e1e;
    color: white;
    padding: 8px 35px 8px 35px;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px 18px;
    border: none;
    border-radius: 50px;
    outline: none;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#languageSelector:hover {
    background-color: #333;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

#languageSelector:focus {
    box-shadow: 0 0 0 3px rgba(30, 30, 30, 0.2);
}

#languageSelector option {
    background-color: #1a1a24;
    color: white;
}

.sticky-footer-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
    margin: 0 auto;
}

.sticky-footer-inner-container {
    background-color: #fff;
    z-index: 999;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem !important;
}

.sticky-footer-inner-container .mt-2 {
    margin-top: 0.5rem !important;
}

.sticky-footer-spacer {
    width: 100%;
    height: 0;
    flex-shrink: 0;
    pointer-events: none;
}

.mx-w-790px {
    max-width: 790px;
}

body {
    padding-bottom: 0;
}

#rtl-container {
    padding-bottom: 0;
}

#AllRightsEn,
#AllRightsAr {
    text-align: center;
}

#AllRightsEn .invoice,
#AllRightsAr .invoice {
    text-align: center;
    justify-content: center;
}
}

/* Custom RTL for form-check */
[dir="rtl"] .form-check {
    padding-left: 0;
    padding-right: 1.5em;
}
[dir="rtl"] .form-check .form-check-input {
    float: right;
    margin-left: 0;
    margin-right: -1.5em;
}
[dir="rtl"] .form-check .form-check-input.me-2 {
    margin-right: -1.5em !important;
    margin-left: 0.5rem !important;
}

.installments-box {
    background: #fff;
    padding: 0;
    border-radius: 10px;
}

.installments-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.installments-scroll {
    counter-reset: installment-counter;
}

.installment-item {
    display: flex;
    align-items: center;
    position: relative;
    padding: 8px 12px;
    gap: 12px;
    min-height: 55px;
    margin-bottom: 8px;
    border: 1px solid #EBEBEB;
    border-radius: 12px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Remove timeline lines */
.timeline-line,
.timeline-radio::after {
    display: none !important;
}

/* Calendar Icon via CSS pseudo-element for normal installments */
.installment-item:not(.downpayment)::before {
    content: "";
    display: block;
    width: 32px;
    height: 32px;
    min-width: 32px;
    background-color: #F5F6FA;
    border-radius: 8px;
    /* Basic calendar icon SVG */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Radio Button Styles */
.timeline-radio {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    border: 2px solid #D9D9D9;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 1;
    position: relative;
    order: -1;
}

.timeline-radio:checked {
    background-color: #fff !important;
    border: 6px solid var(--og-primary-bg-color, #7D00E2) !important;
    box-shadow: none !important;
    background-image: none !important;
}

/* Paid Status Styles */
.paid-installment {
    background-color: #F4FBF6;
    border-color: #E2F2E7;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}
.status-badge.paid {
    background-color: #E2F2E7;
    color: #00A650;
}
.status-badge.due {
    background-color: #F8D7DA;
    color: #DC3545;
}

.paid-installment:not(.downpayment)::before {
    background-color: #E2F2E7;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300A650' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
}

.paid-installment .timeline-radio {
    background-color: #00A650 !important;
    border: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") !important;
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Paid Icon for Downpayment */
.downpayment.paid-installment .timeline-radio {
    width: 24px;
    height: 24px;
    background-size: 16px;
}

.paid-installment .installment-amount {
    color: #00A650;
}

/* Current Status Styles */
.current {
    border-color: var(--og-primary-bg-color, #7D00E2);
}

.current:not(.downpayment)::before {
    background-color: #F3EBFF;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237D00E2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
}

.current .installment-amount {
    color: var(--og-primary-bg-color, #7D00E2);
}

/* Overdue Status Styles */
.overdue {
    border-color: #f44336;
}

.overdue .timeline-radio:checked {
    border-color: #f44336 !important;
}

/* Content Layout */
.installment-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Removed hardcoded CSS Counters for Installment Numbers to support localization */

.installment-date {
    font-weight: 500;
    color: #888;
    font-size: 0.85rem;
    display: block;
}

.installment-date span.date-text, .installment-date span.d-block {
    display: block;
    width: 100%;
}

.installment-status {
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
}

/* Tags */
.status-tag {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
}

.tag-paid {
    background-color: #E2F2E7;
    color: #00A650;
}

.tag-due {
    background-color: #FFF2E5;
    color: #FF8A00;
}

.tag-upcoming {
    background-color: #F0F4FF;
    color: #2F6BFF;
}

.installment-amount {
    font-weight: 700;
    font-size: 1rem;
    text-align: right;
}

.currency-amount {
    display: inline-flex;
    gap: 4px;
}

.disabled-installment {
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 575.98px) {
    .installment-amount {
        font-size: 0.9rem;
    }
}

@media only screen and (max-width: 576px) {
    .sticky-footer-inner-container {
        padding: 1rem 1rem !important;
    }
}
