@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Inter:wght@400;500;600;700&display=swap');

/* Frontend Sidebar Panel & Toast Styles */

:root {
    --ti-primary: #d61c22; /* Red branding color */
    --ti-primary-hover: #b51217;
    --ti-bg: #ffffff;
    --ti-border: #e2e8f0;
    --ti-text: #2d3748;
    --ti-text-muted: #718096;
    --ti-success: #48bb78;
    --ti-warning: #ecc94b;
    --ti-danger: #f56565;
    --ti-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Sidebar structure */
.ti-quote-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 440px; /* Adjusted to give more spacing - 440px */
    background: var(--ti-bg);
    border-right: 1px solid var(--ti-border);
    box-shadow: var(--ti-shadow);
    z-index: 999999;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ti-text);
}

/* Collapsed state utilizing translateX for high performance GPU transitions */
.ti-quote-sidebar.ti-collapsed {
    transform: translateX(-440px);
}

.ti-quote-sidebar:not(.ti-collapsed) {
    transform: translateX(0);
}

/* Hide handle when sidebar/drawer is open (Desktop & Mobile) */
.ti-quote-sidebar:not(.ti-collapsed) .ti-sidebar-handle {
    display: none !important;
    pointer-events: none;
}

/* Sidebar handle trigger - Custom styled vertical handle */
.ti-sidebar-handle {
    position: absolute;
    top: 50%;
    right: -48px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 48px;
    border-radius: 24px;
    background: rgb(17, 17, 17);
    border: 1px solid rgb(34, 34, 34);
    padding: 14px 0px;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 4px 12px;
}

.ti-sidebar-handle:hover {
    transform: translateY(-50%) translateX(4px);
    background: rgb(26, 26, 26);
    border: 1px solid rgb(51, 51, 51);
    box-shadow: rgba(0, 0, 0, 0.6) 0px 8px 24px;
}

/* Active / Filled State (when list has items) */
.ti-sidebar-handle.ti-has-items {
    background: rgb(204, 0, 0);
    border: 1px solid rgb(204, 0, 0);
    box-shadow: rgba(204, 0, 0, 0.4) 0px 0px 20px;
}

.ti-handle-icon-mobile {
    display: none;
}

.ti-handle-count {
    font-family: "DM Mono", monospace;
    font-size: 13px;
    font-weight: 500;
    color: rgb(229, 229, 229);
    letter-spacing: -0.5px;
    display: block;
    text-align: center;
    background: transparent;
    border-radius: 0;
    min-width: auto;
    height: auto;
    padding: 0;
}

.ti-sidebar-handle.ti-has-items .ti-handle-count {
    color: rgb(255, 255, 255);
}

.ti-handle-divider {
    width: 1px;
    height: 24px;
    background: rgb(42, 42, 42);
    transition: background-color 0.2s ease;
}

.ti-sidebar-handle.ti-has-items .ti-handle-divider {
    background: rgba(255, 255, 255, 0.3);
}

.ti-handle-letter {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 600;
    color: rgb(102, 102, 102);
    letter-spacing: 1px;
    line-height: 1;
    transition: color 0.2s ease;
}

.ti-sidebar-handle:hover .ti-handle-letter {
    color: rgb(187, 187, 187);
}

.ti-sidebar-handle.ti-has-items .ti-handle-letter {
    color: rgb(255, 255, 255);
}

.ti-handle-desktop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ti-handle-mobile {
    display: none;
}

/* Sidebar inner wrapper */
.ti-sidebar-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.ti-step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    background: #fff;
}

.ti-step.ti-active {
    transform: translateX(0);
}

.ti-step-1 {
    transform: translateX(0);
}

.ti-step-1.ti-collapsed-step {
    transform: translateX(-100%);
}

.ti-step-2.ti-active {
    transform: translateX(0);
}

/* Header & Body styling */
.ti-sidebar-header {
    padding: 24px 20px !important;
    background: linear-gradient(90deg, #1E1B4B 0%, #0F0B30 100%) !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.125) !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    isolation: isolate !important;
    box-sizing: border-box !important;
    flex-shrink: 0;
}

.ti-glow-blob-1 {
    position: absolute !important;
    width: 180px !important;
    height: 180px !important;
    left: -30px !important;
    top: -40px !important;
    background: #4F46E5 !important;
    opacity: 0.35 !important;
    filter: blur(20px) !important;
    z-index: 0 !important;
    pointer-events: none !important;
}

.ti-glow-blob-2 {
    position: absolute !important;
    width: 150px !important;
    height: 150px !important;
    right: 40px !important;
    bottom: -60px !important;
    background: #06B6D4 !important;
    opacity: 0.25 !important;
    filter: blur(15px) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

.ti-header-left-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    z-index: 2 !important;
}

.ti-header-icon-glow-wrapper {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.125) !important;
    box-shadow: 0px 8px 16px rgba(79, 70, 229, 0.25) !important;
    border-radius: 12px !important;
    flex-shrink: 0;
}

.ti-header-title-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
}

.ti-header-title {
    font-family: 'Geist', 'Inter', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.3px !important;
    text-align: left;
}

.ti-header-subtitle {
    font-family: 'Geist', 'Inter', sans-serif !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #94A3B8 !important;
    margin: 0 !important;
    text-align: left;
}

.ti-header-right-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    z-index: 3 !important;
}

.ti-header-badges-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
}

.ti-count-pill {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 4px 10px !important;
    gap: 4px !important;
    border-radius: 100px !important;
}

.ti-count-pill-product {
    background: rgba(79, 70, 229, 0.25) !important;
    border: 1px solid rgba(79, 70, 229, 0.25) !important;
}

.ti-count-pill-product span:first-child {
    font-family: 'Geist', 'Inter', sans-serif !important;
    font-weight: 800 !important;
    font-size: 11px !important;
    color: #FFFFFF !important;
}

.ti-count-pill-product .ti-pill-label {
    font-family: 'Geist', 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 10px !important;
    color: #FFFFFF !important;
    opacity: 0.8 !important;
}

.ti-count-pill-qty {
    background: rgba(6, 182, 212, 0.188) !important;
    border: 1px solid rgba(6, 182, 212, 0.188) !important;
}

.ti-count-pill-qty span:first-child {
    font-family: 'Geist', 'Inter', sans-serif !important;
    font-weight: 800 !important;
    font-size: 11px !important;
    color: #22D3EE !important;
}

.ti-count-pill-qty .ti-pill-label {
    font-family: 'Geist', 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 10px !important;
    color: #22D3EE !important;
    opacity: 0.8 !important;
}

.ti-close-btn {
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 32px !important;
    height: 32px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.125) !important;
    border-radius: 50% !important;
    color: #FFFFFF !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    cursor: pointer !important;
}

.ti-close-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #FFFFFF !important;
}

.ti-back-btn {
    background: transparent;
    border: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    color: var(--ti-primary);
    padding: 0;
    text-transform: uppercase;
}

/* Step 2 Header Style Reset (White layout to match the form) */
.ti-step-2 .ti-sidebar-header {
    background: #ffffff !important;
    border: none !important;
    border-bottom: 1px solid rgb(240, 240, 240) !important;
    border-radius: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    padding: 22px 24px 18px !important;
}

.ti-step-2 .ti-glow-blob-1,
.ti-step-2 .ti-glow-blob-2 {
    display: none !important;
}

.ti-step-2 .ti-sidebar-header h3 {
    color: rgb(17, 17, 17) !important;
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

.ti-step-2 .ti-close-btn {
    background: rgb(250, 250, 250) !important;
    border: 1px solid rgb(232, 232, 232) !important;
    color: rgb(170, 170, 170) !important;
}

.ti-step-2 .ti-close-btn svg path {
    stroke: rgb(170, 170, 170) !important;
}

.ti-step-2 .ti-close-btn:hover {
    background: rgb(240, 240, 240) !important;
    color: rgb(100, 100, 100) !important;
}

.ti-header-step2-title {
    margin: 0 !important;
    text-align: center !important;
    flex-grow: 1 !important;
}

.ti-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 0px 24px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

.ti-sidebar-body::-webkit-scrollbar {
    width: 6px;
}

.ti-sidebar-body::-webkit-scrollbar-track {
    background: #f8fafc;
}

.ti-sidebar-body::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 3px;
}

/* Empty State */
.ti-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 40px 10px;
}

.ti-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--ti-text-muted);
    opacity: 0.5;
}

.ti-empty-text {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--ti-text);
}

.ti-empty-subtext {
    font-size: 13px;
    color: var(--ti-text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.ti-btn-shop {
    width: auto !important;
    padding: 10px 24px !important;
    border-radius: 4px !important;
}

/* Products listing UI */
.ti-products-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0px;
}

.ti-product-item {
    padding: 16px !important;
    border: 1px solid rgb(235, 240, 245) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0px 4px 12px rgba(15, 23, 42, 0.025), 0px 1px 2px rgba(15, 23, 42, 0.015) !important;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    opacity: 1;
    transform: translateX(0px);
    transition: all 0.2s ease !important;
}

.ti-product-item:hover {
    border-color: rgb(215, 222, 230) !important;
    box-shadow: 0px 6px 16px rgba(15, 23, 42, 0.05), 0px 2px 4px rgba(15, 23, 42, 0.02) !important;
    transform: translateY(-1px);
}

.ti-product-img-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    background: rgb(248, 248, 248);
    border: 1px solid rgb(239, 239, 239);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ti-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ti-product-details {
    flex: 1 1 0%;
    min-width: 0px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ti-product-title {
    font-size: 11px;
    font-weight: 600;
    color: rgb(17, 17, 17);
    line-height: 1.4;
    margin: 0 0 3px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

.ti-product-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.ti-product-title-link:hover {
    color: rgb(204, 0, 0);
}

.ti-product-sku {
    font-size: 9px;
    color: rgb(187, 187, 187);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-family: "DM Mono", monospace;
    text-align: left;
}

/* Quantity selector */
.ti-qty-selector {
    display: inline-flex;
    align-items: center;
    background: rgb(245, 245, 245);
    border-radius: 4px;
    overflow: hidden;
    height: 30px;
}

.ti-qty-btn {
    width: 30px !important;
    height: 30px !important;
    border: none !important;
    background: transparent !important;
    color: rgb(85, 85, 85) !important;
    font-size: 16px !important;
    font-weight: 300 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.12s !important;
    font-family: Inter, sans-serif !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.ti-qty-btn:hover {
    color: rgb(17, 17, 17) !important;
    background: transparent !important;
}

.ti-qty-btn.disabled,
.ti-qty-btn:disabled {
    color: rgb(204, 204, 204) !important;
    cursor: not-allowed !important;
    background: transparent !important;
}

.ti-qty-val {
    width: 28px;
    text-align: center;
    font-family: Inter, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: rgb(17, 17, 17);
    display: inline-block;
    user-select: none;
}

.ti-remove-item-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: rgb(208, 208, 208);
    padding: 0px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: 0.15s;
    margin-top: 2px;
    order: 3; /* Desktop layout: displays on the right side */
}

.ti-close-svg-mobile,
.ti-remove-svg-mobile {
    display: none !important;
}

.ti-close-svg-desktop,
.ti-remove-svg-desktop {
    display: block !important;
}

.ti-remove-item-btn:hover {
    color: rgb(204, 0, 0);
    background: rgb(245, 245, 245);
}

/* Sidebar Footer & Buttons */
.ti-sidebar-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid rgb(240, 240, 240);
    background: rgb(255, 255, 255);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.ti-footer-info-box {
    background: rgb(250, 250, 250);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 14px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.ti-footer-info-box svg {
    margin-top: 1px;
    flex-shrink: 0;
}

.ti-footer-info-text {
    font-size: 10px;
    color: rgb(170, 170, 170);
    line-height: 1.6;
    text-align: left;
    display: inline;
}

.ti-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgb(204, 0, 0) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 14px 20px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
    width: 100% !important;
    text-align: center !important;
    box-shadow: none !important;
}

.ti-button:hover {
    background: rgb(170, 0, 0) !important;
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3) !important;
}

.ti-btn-checkout {
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
}

.ti-button:disabled {
    background: rgb(240, 240, 240) !important;
    color: rgb(204, 204, 204) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.ti-button:disabled svg path {
    stroke: rgb(204, 204, 204) !important;
}

.ti-btn-clear {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 8px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 10px !important;
    color: rgb(204, 204, 204) !important;
    font-family: Inter, sans-serif !important;
    letter-spacing: 0.5px !important;
    text-transform: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
    line-height: normal !important;
}

.ti-btn-clear:hover {
    color: rgb(136, 136, 136) !important;
    background: transparent !important;
}

.ti-btn-submit {
    position: relative !important;
    gap: 8px !important;
    text-transform: uppercase !important;
}

/* Form Styles */
.ti-form-group {
    margin-bottom: 16px;
}

.ti-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ti-text);
}

.ti-input-field {
    width: 100%;
    border: 1px solid var(--ti-border);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.2s;
    background: #f8fafc;
}

.ti-input-field:focus {
    outline: none;
    border-color: var(--ti-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(214, 28, 34, 0.15);
}

.ti-textarea {
    resize: vertical;
}

/* Radios and checkbox */
.ti-radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    background: #f1f5f9;
    padding: 8px;
    border-radius: 8px;
}

.ti-radio-label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    background: #fff;
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border: 1px solid transparent;
    transition: all 0.2s;
}

.ti-radio-label input[type="radio"]:checked + span {
    color: var(--ti-primary);
}

.ti-checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px !important;
    font-weight: normal !important;
    cursor: pointer;
    line-height: 1.4;
}

.ti-checkbox-label input {
    margin-top: 3px;
}

/* Flying Product Image Style */
.ti-flying-image {
    position: fixed;
    z-index: 9999999;
    width: 76px;
    height: 76px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid var(--ti-primary);
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    pointer-events: none;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease-in-out;
}

/* Handle badge pulse effect */
@keyframes tiPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
.ti-pulse {
    animation: tiPulse 0.4s ease-out;
}

/* Item highlight pop animation */
@keyframes tiHighlight {
    0% { background: rgba(214, 28, 34, 0.15); border-color: var(--ti-primary); }
    100% { background: #ffffff; border-color: var(--ti-border); }
}
.ti-highlight {
    animation: tiHighlight 1.5s ease-out;
}

/* Loading spinner */
.ti-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: tiRotation 1s linear infinite;
}

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

/* Toast System (🟢 Success, 🟡 Warning/Info, 🔴 Error) */
.ti-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ti-toast {
    padding: 14px 20px;
    border-radius: 8px;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 280px;
    max-width: 380px;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.ti-toast-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
}

.ti-toast-body {
    font-size: 12px;
    opacity: 0.9;
    padding-left: 20px;
    text-align: left;
}

.ti-toast.ti-show {
    transform: translateY(0);
    opacity: 1;
}

.ti-toast-success { background: #10b981; }
.ti-toast-warning { background: #f59e0b; color: #fff; }
.ti-toast-error { background: #ef4444; }


/* Custom Confirmation Modal */
.ti-confirm-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.ti-confirm-modal.ti-hidden {
    opacity: 0;
    pointer-events: none;
    display: none !important;
}

.ti-confirm-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    width: 85%;
    max-width: 310px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.95);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ti-confirm-modal:not(.ti-hidden) .ti-confirm-box {
    transform: scale(1);
}

.ti-confirm-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.ti-confirm-title {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.ti-confirm-text {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: rgb(102, 102, 102);
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.ti-confirm-actions {
    display: flex;
    gap: 10px;
}

.ti-confirm-btn {
    flex: 1;
    padding: 10px 14px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    text-align: center;
    line-height: 1.4;
}

.ti-confirm-btn-cancel {
    background: rgb(240, 240, 240);
    color: rgb(102, 102, 102);
}

.ti-confirm-btn-cancel:hover {
    background: rgb(230, 230, 230);
    color: rgb(50, 50, 50);
}

.ti-confirm-btn-approve {
    background: rgb(204, 0, 0);
    color: #ffffff;
}

.ti-confirm-btn-approve:hover {
    background: rgb(170, 0, 0);
}

/* Step 2 Global Styles (Desktop & Mobile) */
.ti-back-text {
    display: none !important;
}

.ti-back-svg-mobile {
    display: block !important;
}

.ti-back-btn {
    width: 30px !important;
    height: 30px !important;
    border: 1px solid rgb(232, 232, 232) !important;
    background: rgb(250, 250, 250) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    color: rgb(170, 170, 170) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: 0.15s !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.ti-back-btn:hover {
    background: rgb(240, 240, 240) !important;
    color: rgb(100, 100, 100) !important;
}

.ti-mobile-step2-products-card {
    display: block !important;
    background: #ffffff !important;
    border: 1px solid rgb(235, 240, 245) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02) !important;
}

.ti-mobile-step2-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid rgb(243, 244, 246) !important;
    padding-bottom: 12px !important;
    margin-bottom: 12px !important;
}

.ti-mobile-step2-label {
    font-family: 'Inter', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: rgb(79, 70, 229) !important;
    letter-spacing: 0.5px !important;
}

.ti-mobile-step2-badge {
    background: rgb(243, 244, 246) !important;
    border-radius: 9999px !important;
    padding: 4px 10px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    color: rgb(55, 65, 81) !important;
}

.ti-mobile-step2-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.ti-mobile-step2-item {
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
}

.ti-mobile-step2-img-wrapper {
    width: 44px !important;
    height: 44px !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    background: rgb(248, 248, 248) !important;
    border: 1px solid rgb(239, 239, 239) !important;
    flex-shrink: 0 !important;
}

.ti-mobile-step2-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.ti-mobile-step2-details {
    flex: 1 1 0% !important;
    min-width: 0px !important;
}

.ti-mobile-step2-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: rgb(17, 24, 39) !important;
    margin: 0 0 2px 0 !important;
    line-height: 1.3 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-align: left !important;
}

.ti-mobile-step2-sku {
    display: block !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 10px !important;
    color: rgb(107, 114, 128) !important;
    text-align: left !important;
}

.ti-mobile-step2-more-badge {
    background: rgb(243, 244, 246) !important;
    border: 1px dashed rgb(209, 213, 219) !important;
    color: rgb(79, 70, 229) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

.ti-radio-group {
    display: flex !important;
    background: #ffffff !important;
    border-radius: 9999px !important;
    padding: 0 !important;
    gap: 0 !important;
    margin-bottom: 20px !important;
    border: 1px solid rgb(226, 232, 240) !important;
    box-shadow: none !important;
    height: 44px !important;
    align-items: stretch !important;
    overflow: visible !important;
}

.ti-radio-label {
    flex: 1 !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    display: flex !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    align-items: stretch !important;
}

.ti-radio-label input[type="radio"] {
    display: none !important;
}

.ti-radio-label span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    height: 100% !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: rgb(100, 116, 139) !important;
    transition: all 0.15s ease !important;
    border: 1px solid transparent !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
}

/* Default middle separator line */
.ti-radio-label:first-child span {
    border-right: 1px solid rgb(226, 232, 240) !important;
}

.ti-radio-icon {
    flex-shrink: 0 !important;
}

/* Precise outline active state styling */
.ti-radio-label input[value="bireysel"]:checked + span {
    background: #ffffff !important;
    color: #4F46E5 !important;
    border: 1px solid #4F46E5 !important;
    border-radius: 9999px 0 0 9999px !important;
    height: 44px !important;
    margin: -1px 0 -1px -1px !important;
    box-shadow: 0px 2px 4px rgba(79, 70, 229, 0.04) !important;
    z-index: 2 !important;
}

.ti-radio-label input[value="kurumsal"]:checked + span {
    background: #ffffff !important;
    color: #4F46E5 !important;
    border: 1px solid #4F46E5 !important;
    border-radius: 0 9999px 9999px 0 !important;
    height: 44px !important;
    margin: -1px -1px -1px 0 !important;
    box-shadow: 0px 2px 4px rgba(79, 70, 229, 0.04) !important;
    z-index: 2 !important;
}

.ti-form-group label {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: rgb(17, 24, 39) !important;
    margin-bottom: 6px !important;
    text-align: left !important;
}

.ti-input-field {
    background: #ffffff !important;
    border: 1px solid rgb(229, 231, 235) !important;
    border-radius: 8px !important;
    padding: 12px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    color: rgb(17, 24, 39) !important;
}

.ti-input-field::placeholder {
    color: rgb(156, 163, 175) !important;
}

.ti-input-field:focus {
    border-color: rgb(30, 27, 75) !important;
    box-shadow: 0 0 0 2px rgba(30, 27, 75, 0.1) !important;
}

.ti-checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 11px !important;
    color: rgb(75, 85, 99) !important;
    line-height: 1.5 !important;
    cursor: pointer !important;
    text-align: left !important;
}

.ti-checkbox-label input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    border: 2px solid rgb(209, 213, 219) !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 2px !important;
}

.ti-checkbox-label input[type="checkbox"]:checked {
    background: rgb(30, 27, 75) !important;
    border-color: rgb(30, 27, 75) !important;
}

.ti-checkbox-label input[type="checkbox"]:checked::after {
    content: "" !important;
    width: 4px !important;
    height: 8px !important;
    border: solid #ffffff !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
    position: absolute !important;
    top: 2px !important;
    left: 5px !important;
}

.ti-btn-submit {
    background: rgb(30, 27, 75) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
}

.ti-btn-submit:hover {
    background: rgb(20, 18, 55) !important;
    box-shadow: 0 4px 12px rgba(30, 27, 75, 0.3) !important;
}

/* Responsive / Mobile Drawer Style (Under 768px) */
@media (max-width: 767px) {
    .ti-quote-sidebar {
        width: 100%;
        height: 100vh !important; /* Full page cover on mobile */
        top: 0 !important;
        bottom: 0;
        left: 0;
        right: 0;
        border-right: none;
        border-top: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
        transform: translateY(100%) translateX(0) !important;
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .ti-quote-sidebar.ti-collapsed {
        transform: translateY(100%) translateX(0) !important;
    }

    .ti-quote-sidebar:not(.ti-collapsed) {
        transform: translateY(0) translateX(0) !important;
    }



    .ti-sidebar-handle {
        position: absolute;
        top: -72px;
        left: 0;
        right: auto;
        transform: none !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        width: auto !important;
        height: auto !important;
        border-radius: 0 !important;
        clip-path: none !important;
        transition: none !important;
    }

    .ti-sidebar-handle:hover {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .ti-handle-desktop {
        display: none !important;
    }

    .ti-handle-mobile {
        display: flex !important;
        align-items: stretch;
        height: 52px;
        cursor: pointer;
        transform: scale(1);
        transition: all 0.15s ease;
        gap: 0px;
        box-shadow: 5px 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05); /* Strong shadow to separate from background */
        border-radius: 0 4px 4px 0;
    }

    /* Micro-animation when product is added to list */
    @keyframes tiMobileBounce {
        0% { transform: scale(1); }
        50% { transform: scale(1.12) translateY(-8px); }
        100% { transform: scale(1); }
    }
    .ti-pulse .ti-handle-mobile {
        animation: tiMobileBounce 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    /* Left Text Column */
    .ti-handle-mobile-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0px 16px;
        background: rgb(20, 20, 20);
        border-width: 1px 0px 1px 0px; /* Snapped to left edge, no left border needed */
        border-style: solid none solid none;
        border-color: rgb(37, 37, 37);
        transition: all 0.15s ease;
        border-radius: 0px; /* Snapped to left edge */
    }

    .ti-handle-mobile-title {
        font-family: 'Inter', sans-serif;
        font-size: 11px;
        font-weight: 700;
        color: rgb(255, 255, 255);
        letter-spacing: 0.5px;
        line-height: 1.2;
    }

    .ti-handle-mobile-subtitle {
        font-family: 'Inter', sans-serif;
        font-size: 9px;
        font-weight: 400;
        color: rgb(68, 68, 68);
        letter-spacing: 0.5px;
        line-height: 1.2;
    }

    /* Right Badge Column with clip-path angle */
    .ti-handle-mobile-badge {
        width: 36px;
        background: rgb(238, 0, 0);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        clip-path: polygon(8px 0px, 100% 0px, 100% 100%, 0px 100%);
        transition: background 0.15s ease;
        border-radius: 0px 4px 4px 0px;
    }

    .ti-handle-mobile-badge .ti-handle-count {
        font-family: 'Inter', sans-serif;
        font-size: 15px;
        font-weight: 800;
        color: rgb(255, 255, 255) !important;
        text-align: center;
        background: transparent !important;
        border-radius: 0 !important;
        min-width: auto !important;
        height: auto !important;
        padding: 0 0 0 4px !important;
        display: inline-block !important;
    }

    /* Hover State for Mobile Handle */
    .ti-handle-mobile:hover .ti-handle-mobile-text {
        background: rgb(26, 26, 26);
    }

    /* Active State for Mobile Handle */
    .ti-handle-mobile:active {
        transform: scale(0.97);
    }

    .ti-handle-mobile:active .ti-handle-mobile-text {
        background: rgb(20, 20, 20);
        border-color: rgb(204, 0, 0);
    }

    .ti-handle-mobile:active .ti-handle-mobile-title {
        color: rgb(255, 68, 68);
    }

    .ti-handle-mobile:active .ti-handle-mobile-badge {
        background: rgb(204, 0, 0);
    }

    .ti-sidebar-wrapper {
        width: 100%;
        border-radius: 0 !important;
        overflow: hidden;
    }

    .ti-mobile-drag-handle {
        display: none !important;
    }

    /* Keep standard header alignments on mobile (back on left, close on right) */
    .ti-header-top {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .ti-close-btn {
        border-radius: 50% !important; /* Make it circular as requested */
    }

    /* Show Mobile Close SVG and Hide Desktop Close SVG on Mobile */
    .ti-close-svg-mobile {
        display: block !important;
    }

    .ti-close-svg-desktop {
        display: none !important;
    }
    
    .ti-product-img {
        width: 64px;
        height: 64px;
    }
    
    .ti-qty-btn {
        width: 36px;
        height: 36px;
    }
    
    .ti-qty-selector {
        height: 36px;
    }
    
    .ti-qty-input {
        height: 36px !important;
    }

}

.ti-form-error-msg {
    background: rgb(254, 242, 242) !important;
    border: 1px solid rgb(252, 165, 165) !important;
    color: rgb(185, 28, 28) !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
    text-align: left !important;
    line-height: 1.4 !important;
}
