/* Sample-added confirmation for phones and portrait tablets (Flatsome's medium breakpoint). */
.cork-sample-added {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    padding: 8px 4px 8px 16px;
    border-radius: 10px;
    background: #0b2f4b;
    color: #fff;
    box-shadow: 0 8px 24px rgba(11, 47, 75, 0.28);
    font-size: 15px;
    line-height: 1.35;
}

.cork-sample-added[hidden] {
    display: none;
}

.cork-sample-added__text {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
}

.cork-sample-added__cart,
.cork-sample-added__cart:visited {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    background: #fff;
    color: #0b2f4b;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.cork-sample-added__cart:hover,
.cork-sample-added__cart:focus-visible {
    background: #e8eef3;
    color: #0b2f4b;
}

.cork-sample-added .cork-sample-added__close {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 26px;
    line-height: 44px;
    box-shadow: none;
}

.cork-sample-added__cart:focus-visible,
.cork-sample-added .cork-sample-added__close:focus-visible {
    outline: 2px solid #f2b705;
    outline-offset: 2px;
}

@media (max-width: 849px) {
    /* The plugin's toast covers the header cart link on phones; the bar replaces it. */
    body.cork-sample-flow-ready .ts-success-notification {
        display: none !important;
    }

    /* Keep add failures readable without covering the header either. */
    .ts-error-notification {
        top: auto !important;
        right: 12px !important;
        left: 12px !important;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
        text-align: center;
    }
}
