/* 
   Match styling used in cos_compare toasts.
*/
#cos-saved-search-toasts {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.cmp-toast {
    background: #fff;
    color: #1e293b;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #1a3c6e;
    font-size: 13px;
    font-weight: 600;
    min-width: 260px;
    max-width: 380px;
    pointer-events: auto;
    animation: cmp-toast-in 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cmp-toast.status { border-left-color: #22c55e; }
.cmp-toast.warning { border-left-color: #e8a020; }
.cmp-toast.error { border-left-color: #ef4444; }

@keyframes cmp-toast-in {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.cmp-toast.fade-out {
    animation: cmp-toast-out 0.3s ease forwards;
}

@keyframes cmp-toast-out {
    to { transform: scale(0.95); opacity: 0; }
}

/* Loading state for buttons */
.btn-save-search.loading,
.js-del-saved-search.loading,
.js-tour-cancel.loading {
  opacity: 0.6;
  pointer-events: none;
  cursor: wait;
}

/* Custom Confirmation Modal */
.cos-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: cos-modal-fade 0.2s ease-out;
}

.cos-modal-content {
    background: #fff;
    width: 100%;
    max-width: 440px;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: cos-modal-slide 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cos-modal-icon {
    width: 60px;
    height: 60px;
    background: #dcecf3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.cos-modal-icon img {
    width: 30px;
    height: 30px;
    opacity: 0.85;
}

.cos-modal-content h3 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.cos-modal-content p {
    margin: 0 0 24px;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

.cos-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.cos-modal-actions .btn {
    min-width: 120px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    border: solid 1px #fff;
}

.cos-modal-actions .btn-cancel {
    background: #f3f4f6;
    color: #4b5563;
}

.cos-modal-backdrop i.fa.fa-trash{color: #0a9adf;}

.cos-modal-actions .btn-cancel:hover {
    background: #e5e7eb;
}

.cos-modal-actions .btn-delete {
    background: #0a9adf;
    color: #fff;
}

.cos-modal-actions .btn-delete:hover {
transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(2, 159, 227, 0.25);
}

@keyframes cos-modal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes cos-modal-slide {
    from { transform: translateY(20px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
