div#main {
    background: #F4F4F4 !important;
}

.device-details .price_propos {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    padding: 5% 0%;
}

@media (max-width: 768px) {
    .containerd {
        padding: 16px;
    }
    .timeline {
        flex-direction: column;
        gap: 16px;
    }
    .timeline::before {
        display: none;
    }
    .tabs {
        flex-direction: column;
    }
    .offer-summary {
        flex-direction: column;
        text-align: center;
    }
    .payment-amount {
        flex-direction: column;
        text-align: center;
    }
    .action-buttons {
        flex-direction: column;
    }
    .chat-modal {
        right: 16px;
        left: 16px;
        width: auto;
    }
}

.containerd {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px;
    padding-top: 0;
}

.estimation-badge {
    background: #243e90;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}


/* Timeline */

.timeline-container {
    margin: 32px 0;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.headerd {
    background: #ffffff;
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    background: #ffffff;
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    color: #e2e8f0;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
    top: 50%;
    left: 50%;
}

.btn-click {
    color: white !important;
    padding: 4px !important;
    font-size: 11px !important;
    text-transform: none !important;
}

.btn-click:hover {
    border: 1px solid black;
    color: black !important;
}

.chat-header-bar h4 {
    color: white;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 24px;
    right: 24px;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 3px solid white;
    transition: all 0.3s;
}

.timeline-item.active .timeline-dot {
    background: #243e90;
}

.timeline-item.completed .timeline-dot {
    background: #059669;
}

.timeline-content {
    margin-top: 8px;
    text-align: center;
}

.timeline-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.timeline-item.active .timeline-label {
    color: #243e90;
    font-weight: 600;
}


/* Tabs */

.tabs {
    display: flex;
    background: white;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.tab-button {
    flex: 1;
    padding: 16px 12px;
    border: none;
    background: #f8fafc;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.tab-button.active {
    background: white;
    color: #243e90;
    border-bottom-color: #243e90;
}

.tab-button:hover:not(.active) {
    background: #f1f5f9;
    color: #475569;
}


/* Tab Content */

.tab-content {
    display: none;
    background: white;
    padding: 32px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: #1a202c;
    margin-bottom: 24px;
    font-size: 20px;
}


/* Offer Summary */

.offer-summary {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.price-display {
    font-size: 20px;
    margin-left: 5%;
    font-weight: bold;
    color: #243e90;
}

.device-info h4 {
    color: #1a202c;
    margin-bottom: 8px;
}

.device-info p {
    color: #6b7280;
    margin-bottom: 4px;
}


/* Expedition Content */

.expedition-content {
    display: grid;
    gap: 24px;
}

.address-info {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
}

.address-info p {
    margin-bottom: 4px;
    color: #374151;
}

.shipping-label {
    display: flex;
    gap: 16px;
    align-items: center;
}

.qr-placeholder {
    width: 80px;
    height: 80px;
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 12px;
    color: #6b7280;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}


/* Diagnostic Content */

.diagnostic-content {
    display: grid;
    gap: 32px;
}

.diagnostic-status h4 {
    color: #1a202c;
    margin-bottom: 8px;
}

.diagnostic-status p {
    margin-bottom: 20px;
}

.diagnostic-checks {
    display: grid;
    gap: 12px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.check-item.completed {
    background: #f0fdf4;
}

.check-item.pending {
    background: #fffbeb;
}

.check-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
}

.check-item.completed .check-icon {
    background: #059669;
    color: white;
}

.check-item.pending .check-icon {
    background: #f59e0b;
    color: white;
}

.device-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.device-icon {
    font-size: 32px;
}

.device-details h5 {
    color: #1a202c;
    margin-bottom: 4px;
}

.device-details p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 2px;
}


/* Payment Content */

.payment-content {
    display: grid;
    gap: 32px;
}

.payment-amount {
    display: flex;
    gap: 24px;
    align-items: center;
}

.amount-display {
    font-size: 48px;
    font-weight: bold;
    color: black;
    padding: 8% 0;
    margin: 5% 0;
}

.payment-status {
    flex: 1;
}

.status-icon {
    color: #059669;
    font-size: 18px;
    margin-right: 8px;
}

.payment-status span {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin: 5% 0;
    color: black;
    font-weight: 600;
}

.payment-status p {
    color: #6b7280;
    font-size: 14px;
    margin: 5% 0;
}

.offer-recap {
    display: flex;
    gap: 16px;
    align-items: center;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 16px;
}

.rib-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 16px;
}

.payment-features {
    display: grid;
    gap: 8px;
}

.feature {
    font-size: 14px;
}

.product-details p {
    font-size: 11px;
}


/* Chat Support */

.chat-support {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #243e90;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(36, 62, 144, 0.3);
    transition: all 0.3s;
    z-index: 1000;
}

.chat-support:hover {
    transform: scale(1.1);
}

.chat-icon {
    font-size: 24px;
}

.chat-modal {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 25%;
    height: 60%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    z-index: 1001;
}

.chat-modal.active {
    display: flex;
}

.chat-header {
    background: #243e90;
    color: white !important;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h5 {
    color: white;
    margin: 0;
    padding: 0% 8%;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

.message {
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 80%;
}

.message.support {
    background: #f3f4f6;
    color: #374151;
}

.chat-input {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
}

.chat-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.send-btn {
    padding: 8px 16px;
    background: #243e90;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0!important;
}

.offer-main-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.offer-right-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
}

.offer-left-section {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-evenly;
}

.device-details p {
    margin-bottom: 8px;
    color: #374151;
}

.shipping-steps,
.steps-list {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.file-upload {
    background-color: #ffffff;
    width: 600px;
    margin: 5% auto;
    padding: 20px;
}

.file-upload-btn {
    width: 100%;
    margin: 0;
    color: #fff;
    background: #243e90;
    border: none;
    padding: 10px;
    border-radius: 4px;
    border-bottom: 4px solid #243e90;
    transition: all 0.2s ease;
    outline: none;
    text-transform: uppercase;
    font-weight: 700;
}

.file-upload-btn:hover {
    background: #243e90;
    color: #ffffff;
    transition: all 0.2s ease;
    cursor: pointer;
}

.file-upload-btn:active {
    border: 0;
    transition: all 0.2s ease;
}

.file-upload-content {
    display: none;
    text-align: center;
}

.file-upload-input {
    position: absolute;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    outline: none;
    opacity: 0;
    cursor: pointer;
}

.image-upload-wrap {
    margin-top: 20px;
    border: 4px dashed #243e90;
    position: relative;
}

.image-dropping,
.image-upload-wrap:hover {
    background-color: #243e90;
    border: 4px dashed #ffffff;
}

.image-title-wrap {
    padding: 0 15px 15px 15px;
    color: #222;
}

.drag-text {
    text-align: center;
}

.drag-text h3 {
    font-weight: 100;
    text-transform: uppercase;
    color: #243e90;
    padding: 60px 0;
}

.file-upload-image {
    max-height: 200px;
    max-width: 200px;
    margin: auto;
    padding: 20px;
}

.remove-image {
    width: 200px;
    margin: 0;
    color: #fff;
    background: #cd4535;
    border: none;
    padding: 10px;
    border-radius: 4px;
    border-bottom: 4px solid #b02818;
    transition: all 0.2s ease;
    outline: none;
    text-transform: uppercase;
    font-weight: 700;
}

.remove-image:hover {
    background: #c13b2a;
    color: #ffffff;
    transition: all 0.2s ease;
    cursor: pointer;
}

.remove-image:active {
    border: 0;
    transition: all 0.2s ease;
}

.offer-inside {
    background: #f8fafc;
    padding: 44px;
    border-radius: 12px;
}

.step-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #929293;
}

.step-item i {
    width: 1em;
    margin-right: 3%;
    color: #7caedd;
    font-size: 19px;
}

.feature-item {
    display: flex;
    align-items: center;
    color: #7caedd;
    margin: 20px;
}

.feature-item i {
    width: 1em;
    margin-right: 3%;
    color: #7caedd;
    font-size: 19px;
}

.rib-section {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.iban-display {
    margin-top: 16px;
}

.validation-check {
    color: #059669;
    margin: 8px 0;
}

.security-note {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
    margin: 8px 0;
}

.next-steps-section {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
}

.expedition-main-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.sender-info-box {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.transport-label-section {
    margin-bottom: 24px;
}

.parcel-preparation {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
}

.expedition-right-sections {
    background: #F8FAFC;
    padding: 20px;
    border-radius: 10px;
}

.instructions p {
    margin-bottom: 4px;
    color: #374151;
    padding: 10px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
}

.small-note {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

.shipment-details {
    padding: 20px;
}

.shipping-features {
    padding: 20px;
}

.shipment-details p {
    margin-bottom: 8px;
    color: #374151;
}

.title-sections {
    padding: 10px 0;
}

#tracking-details {
    margin-top: 2%;
}

.diagnostic-main-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.diagnostic-left-section,
.diagnostic-right-section {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
}

.loader-icon {
    font-size: 24px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.functionality-tests {
    margin: 24px 0;
}

.test-results {
    margin-top: 12px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: center;
}

.test-results i {
    font-size: 20px;
}

.test-item {
    color: #059669;
    margin-bottom: 4px;
}

.verification-section {
    margin: 24px 0;
}

.action-buttons {
    margin: 24px 0;
    display: flex;
    gap: 12px;
}

.payment-note p {
    margin: 0;
}

.device-summary {
    margin: 15px 10px;
}

.payment-note {
    background: #d8dfe5;
    color: #000000;
    padding: 12px;
    border-radius: 8px;
    margin-top: 16px;
}

.document-links {
    margin: 16px 0;
}

.doc-link {
    display: inline-block;
    margin-right: 16px;
    color: #243e90;
    text-decoration: underline;
}

.status-timeline {
    margin: 24px 0;
}

.status-item {
    margin-bottom: 8px;
}

.support-note {
    font-size: 14px;
    margin-top: 16px;
}

.placeholder-notes {
    margin-top: 24px;
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

.payment-main-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.payment-left-box,
.payment-right-box {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
}

.amount-section {
    margin-bottom: 24px;
}

.payment-notes {
    margin-top: 16px;
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

.apple-logo {
    font-size: 32px;
    margin-bottom: 16px;
}

.product-details p {
    margin-bottom: 4px;
    color: #374151;
}

.security-features {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
}

.fa-check-circle {
    color: #1A9669;
}

.security-notes {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.support-contact {
    color: #6b7280;
    font-size: 14px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: #243e90;
    color: white;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-success {
    background: #059669;
    color: white;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-link {
    background: none;
    color: #243e90;
    text-decoration: underline;
    padding: 4px 8px;
}

@media (max-width: 768px) {
    .offer-main-sections,
    .expedition-main-sections,
    .diagnostic-main-sections,
    .payment-main-sections {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .action-buttons {
        flex-direction: column;
    }
}


/* Modal styles */

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 40%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: #243e90;
    color: white;
    padding: 16px 24px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h4 {
    margin: 0;
    color: white;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #374151;
}

.form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.contre-offre-section {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
}

.contre-offre-section h6 {
    color: #92400e;
    margin-bottom: 8px;
}

.price-comparison {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0;
}

.price-old {
    text-decoration: line-through;
    color: #6b7280;
}

.price-new {
    font-size: 18px;
    font-weight: bold;
    color: #c0770a;
}


/* Modern Chat System Styles */

.modern-chat-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 32px;
    overflow: hidden;
}

.chat-header-bar {
    background: linear-gradient(135deg, #243e90 0%, #1e3a8a 100%);
    color: white;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-bar h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.toggle-chat-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    transition: all 0.3s;
}

.toggle-chat-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.chat-content-area {
    border-top: 1px solid #e5e7eb;
}

.chat-messages-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 24px;
    background: #f9fafb;
}

.chat-message {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.chat-message.client {
    align-items: flex-end;
}

.chat-message.admin {
    align-items: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 12px;
    position: relative;
}

.chat-message.client .message-bubble {
    background: #243e90;
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.admin .message-bubble {
    background: white;
    color: #1a202c;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
}

.message-sender {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #6b7280;
}

.chat-message.client .message-sender {
    color: #243e90;
}

.message-text {
    word-wrap: break-word;
    line-height: 1.5;
}

.message-time {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

.chat-input-area {
    padding: 16px 24px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

#chatMessageInput {
    flex: 1;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    transition: border-color 0.2s;
}

#chatMessageInput:focus {
    outline: none;
    border-color: #243e90;
    box-shadow: 0 0 0 3px rgba(36, 62, 144, 0.1);
}

.send-message-btn {
    background: #243e90;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.send-message-btn:hover {
    background: #1e3a8a;
    transform: translateY(-1px);
}

.send-message-btn:active {
    transform: translateY(0);
}

.empty-chat-state {
    text-align: center;
    padding: 48px 24px;
    color: #6b7280;
}

.empty-chat-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}


/* Remove old chat button styles */

.chat-support {
    display: none !important;
}

.chat-modal {
    display: none !important;
}

@media (max-width: 768px) {
    .message-bubble {
        max-width: 85%;
    }
    .chat-messages-list {
        max-height: 300px;
    }
}