/* ============================================================
   Tutor LMS – Buy via WhatsApp — Button Styles
   ============================================================ */

/* Base button */
.twb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #25D366;
    color: #ffffff !important;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.30);
    white-space: nowrap;
}

.twb-button::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347z'/%3E%3Cpath d='M12 0C5.373 0 0 5.373 0 12c0 2.124.557 4.117 1.532 5.845L.057 23.272a.75.75 0 0 0 .921.921l5.427-1.475A11.943 11.943 0 0 0 12 24c6.627 0 12-5.373 12-12S18.627 0 12 0zm0 21.75a9.73 9.73 0 0 1-4.95-1.35l-.355-.212-3.676.999 1.017-3.564-.231-.368A9.728 9.728 0 0 1 2.25 12C2.25 6.615 6.615 2.25 12 2.25S21.75 6.615 21.75 12 17.385 21.75 12 21.75z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.twb-button:hover,
.twb-button:focus {
    background-color: #1ebe5d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.40);
    color: #ffffff !important;
    text-decoration: none !important;
}

.twb-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(37, 211, 102, 0.25);
}

/* ---- Single course page ---- */
.twb-single-wrap {
    margin-top: 14px;
    margin-bottom: 6px;
}

.twb-button--single {
    width: 100%;
    font-size: 1rem;
    padding: 14px 24px;
}

/* ---- Course card ---- */
.twb-card-wrap {
    margin-top: 10px;
}

.twb-button--card {
    width: 100%;
    font-size: 0.88rem;
    padding: 10px 16px;
}

/* ---- Dark backgrounds ---- */
@media (prefers-color-scheme: dark) {
    .twb-button {
        box-shadow: 0 2px 8px rgba(37, 211, 102, 0.20);
    }
}
