/**
 * Elementor Toolkit - Alert / Callout Widget Styles
 */

.etk-alert {
    position: relative;
    padding: 16px 20px;
    border-left-style: solid;
    border-left-width: 4px;
    border-radius: 4px;
    margin: 0;
    line-height: 1.6;
}

/* Header */
.etk-alert-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.etk-alert-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.etk-alert-icon svg {
    display: block;
}

.etk-alert-title {
    font-weight: 600;
    font-size: 15px;
}

/* Content */
.etk-alert-content {
    font-size: 14px;
}

.etk-alert-content p:first-child {
    margin-top: 0;
}

.etk-alert-content p:last-child {
    margin-bottom: 0;
}

.etk-alert-content a {
    text-decoration: underline;
}

.etk-alert-content code {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.etk-alert-content strong {
    font-weight: 700;
}

/* Dismiss */
.etk-alert-dismiss {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.5;
    transition: opacity 0.2s;
    margin-left: auto;
}

.etk-alert-dismiss:hover {
    opacity: 1;
}

.etk-alert-dismiss-float {
    position: absolute;
    top: 12px;
    right: 12px;
}

/* ---- Type: Quote ---- */
.etk-alert-quote {
    background-color: #f8f9fa;
    border-left-color: #868e96;
    color: #495057;
}

.etk-alert-quote .etk-alert-icon { color: #868e96; }
.etk-alert-quote .etk-alert-title { color: #495057; }
.etk-alert-quote .etk-alert-content code { background: #e9ecef; color: #495057; }
.etk-alert-quote .etk-alert-dismiss { color: #495057; }

/* ---- Type: Info ---- */
.etk-alert-info {
    background-color: #e7f5ff;
    border-left-color: #339af0;
    color: #1c7ed6;
}

.etk-alert-info .etk-alert-icon { color: #339af0; }
.etk-alert-info .etk-alert-title { color: #1971c2; }
.etk-alert-info .etk-alert-content { color: #1c7ed6; }
.etk-alert-info .etk-alert-content a { color: #1864ab; }
.etk-alert-info .etk-alert-content code { background: #d0ebff; color: #1864ab; }
.etk-alert-info .etk-alert-dismiss { color: #1c7ed6; }

/* ---- Type: Warning ---- */
.etk-alert-warning {
    background-color: #fff9db;
    border-left-color: #fcc419;
    color: #e67700;
}

.etk-alert-warning .etk-alert-icon { color: #f59f00; }
.etk-alert-warning .etk-alert-title { color: #e67700; }
.etk-alert-warning .etk-alert-content { color: #e67700; }
.etk-alert-warning .etk-alert-content a { color: #d9480f; }
.etk-alert-warning .etk-alert-content code { background: #fff3bf; color: #e67700; }
.etk-alert-warning .etk-alert-dismiss { color: #e67700; }

/* ---- Type: Success ---- */
.etk-alert-success {
    background-color: #ebfbee;
    border-left-color: #51cf66;
    color: #2b8a3e;
}

.etk-alert-success .etk-alert-icon { color: #40c057; }
.etk-alert-success .etk-alert-title { color: #2b8a3e; }
.etk-alert-success .etk-alert-content { color: #2b8a3e; }
.etk-alert-success .etk-alert-content a { color: #1b5e20; }
.etk-alert-success .etk-alert-content code { background: #d3f9d8; color: #2b8a3e; }
.etk-alert-success .etk-alert-dismiss { color: #2b8a3e; }

/* ---- Type: Danger ---- */
.etk-alert-danger {
    background-color: #fff5f5;
    border-left-color: #ff6b6b;
    color: #e03131;
}

.etk-alert-danger .etk-alert-icon { color: #ff6b6b; }
.etk-alert-danger .etk-alert-title { color: #c92a2a; }
.etk-alert-danger .etk-alert-content { color: #e03131; }
.etk-alert-danger .etk-alert-content a { color: #c92a2a; }
.etk-alert-danger .etk-alert-content code { background: #ffe3e3; color: #e03131; }
.etk-alert-danger .etk-alert-dismiss { color: #e03131; }

/* ---- Type: Note ---- */
.etk-alert-note {
    background-color: #f3f0ff;
    border-left-color: #845ef7;
    color: #6741d9;
}

.etk-alert-note .etk-alert-icon { color: #845ef7; }
.etk-alert-note .etk-alert-title { color: #5f3dc4; }
.etk-alert-note .etk-alert-content { color: #6741d9; }
.etk-alert-note .etk-alert-content a { color: #5f3dc4; }
.etk-alert-note .etk-alert-content code { background: #e5dbff; color: #6741d9; }
.etk-alert-note .etk-alert-dismiss { color: #6741d9; }

/* ---- Type: Tip ---- */
.etk-alert-tip {
    background-color: #e6fcf5;
    border-left-color: #20c997;
    color: #099268;
}

.etk-alert-tip .etk-alert-icon { color: #20c997; }
.etk-alert-tip .etk-alert-title { color: #087f5b; }
.etk-alert-tip .etk-alert-content { color: #099268; }
.etk-alert-tip .etk-alert-content a { color: #087f5b; }
.etk-alert-tip .etk-alert-content code { background: #c3fae8; color: #099268; }
.etk-alert-tip .etk-alert-dismiss { color: #099268; }

/* ---- Type: Custom (fallback) ---- */
.etk-alert-custom {
    background-color: #f8f9fa;
    border-left-color: #495057;
    color: #343a40;
}
