/*!
 * Bootoast CSS
 * @author odahcam
 */
.bootoast {
    opacity: 0;
    filter: alpha(opacity=0)
}

.bootoast>.glyphicon {
    display: inline-block;
    float: left;
    font-size: 20px;
    margin-right: 14px
}

.bootoast>.bootoast-alert-container {
    display: block;
    max-width: 100%;
    overflow: auto
}

.bootoast>.bootoast-alert-container>.bootoast-alert-content {
    display: table;
    width: 100%;
    height: 100%
}

.bootoast.alert-default {
    background: #eee
}

.bootoast>.progress.progress-bottom {
    width: auto;
    margin-left: -1.25rem;
    margin-right: -1.25rem
}

.bootoast>.progress.progress-bottom {
    margin-bottom: -.75rem
}

.bootoast>.progress.progress-top {
    margin-top: -.75rem
}

.bootoast>.progress.progress-background {
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: .35
}

.bootoast-container {
    position: fixed;
    left: 20px;
    right: 20px;
    top: initial;
    bottom: initial;
    width: 390px;
    max-width: 95%;
    z-index: 999999
}

.bootoast-container.top {
    top: 20px
}

.bootoast-container.bottom {
    bottom: 20px
}

.bootoast-container.right {
    left: initial
}

.bootoast-container.left {
    right: initial
}

.bootoast-container.center {
    left: 50%;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translate(-50%)
}



/* Left accent bar */
.bootoast::before {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 5px;
    align-self: stretch;
    border-radius: 0;
}

/* Hide the old glyphicon */
.bootoast>.glyphicon {
    display: none !important;
}

/* Content wrapper */
.bootoast>.bootoast-alert-container {
    flex: 1;
    padding: 14px 16px 14px 0;
    overflow: visible;
}

/* Icon + text row */
.bootoast>.bootoast-alert-container>.bootoast-alert-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.45;
    color: #1a1a2e;
    width: auto;
    height: auto;
}

/* Inline icon via ::before on the content span */
.bootoast>.bootoast-alert-container>.bootoast-alert-content::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 14px;
}

/* Close button */
.bootoast .close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .06);
    border: none;
    color: #888;
    font-size: .75rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background .18s, color .18s;
    z-index: 1;
    opacity: 1;
}

.bootoast .close:hover {
    background: rgba(0, 0, 0, .14);
    color: #333;
}

.bootoast .close span {
    font-size: 1rem;
    line-height: 1;
}

/* ── Variant: SUCCESS ── */
.bootoast.alert-success {
    background: #fff !important;
}

.bootoast.alert-success::before {
    background: #22c55e;
}

.bootoast.alert-success>.bootoast-alert-container>.bootoast-alert-content::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2322c55e'%3E%3Cpath d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm3.78-9.72a.75.75 0 0 0-1.06-1.06L6.75 9.19 5.28 7.72a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.06 0l4.5-4.5z'/%3E%3C/svg%3E");
}

/* ── Variant: DANGER ── */
.bootoast.alert-danger {
    background: #fff !important;
}

.bootoast.alert-danger::before {
    background: #ef4444;
}

.bootoast.alert-danger>.bootoast-alert-container>.bootoast-alert-content::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ef4444'%3E%3Cpath d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zM7.25 4.75a.75.75 0 0 1 1.5 0v3.5a.75.75 0 0 1-1.5 0v-3.5zm.75 7a1 1 0 1 1 0-2 1 1 0 0 1 0 2z'/%3E%3C/svg%3E");
}

/* ── Variant: WARNING ── */
.bootoast.alert-warning {
    background: #fff !important;
}

.bootoast.alert-warning::before {
    background: #f59e0b;
}

.bootoast.alert-warning>.bootoast-alert-container>.bootoast-alert-content::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f59e0b'%3E%3Cpath d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zM7.25 4.75a.75.75 0 0 1 1.5 0v3.5a.75.75 0 0 1-1.5 0v-3.5zm.75 7a1 1 0 1 1 0-2 1 1 0 0 1 0 2z'/%3E%3C/svg%3E");
}

/* ── Variant: INFO ── */
.bootoast.alert-info {
    background: #fff !important;
}

.bootoast.alert-info::before {
    background: #3b82f6;
}

.bootoast.alert-info>.bootoast-alert-container>.bootoast-alert-content::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233b82f6'%3E%3Cpath d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.75-10.25v-.5a.75.75 0 0 0-1.5 0v.5a.75.75 0 0 0 1.5 0zm0 3.5v3.5a.75.75 0 0 0-1.5 0V9.25a.75.75 0 0 0 1.5 0z'/%3E%3C/svg%3E");
}

/* ── Variant: PRIMARY ── */
.bootoast.alert-primary {
    background: #fff !important;
}

.bootoast.alert-primary::before {
    background: #1a1a2e;
}

.bootoast.alert-primary>.bootoast-alert-container>.bootoast-alert-content::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231a1a2e'%3E%3Cpath d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.75-10.25v-.5a.75.75 0 0 0-1.5 0v.5a.75.75 0 0 0 1.5 0zm0 3.5v3.5a.75.75 0 0 0-1.5 0V9.25a.75.75 0 0 0 1.5 0z'/%3E%3C/svg%3E");
}

/* Mobile */
@media (max-width: 480px) {
    .bootoast-container {
        width: calc(100vw - 24px);
        right: 12px !important;
        left: 12px !important;
    }

    .bootoast-container.top.right,
    .bootoast-container.top.center,
    .bootoast-container.top.left {
        top: 70px;
    }
}