/* cup-style.css */
.cup-form {
    margin: 2em auto;
    padding: 1em;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.cup-form h2 {
    margin-bottom: .5em;
}

.cup-form p {
    margin-bottom: 1em;
    display: flex;
    flex-direction: column;
}

.cup-form input[type="text"],
.cup-form input[type="email"],
.cup-form input[type="password"],
.cup-form textarea {
    width: 100%;
    padding: .5em;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 1em;
}

.cup-form input[type="submit"] {
    padding: .6em 1.2em;
    border: none;
    border-radius: 4px;
    background: #ed7c22;
    color: #fff;
    cursor: pointer;
}

.cup-form .cup-categories {
    display: flex;
    flex-wrap: wrap;
    gap: .5em;
}

.cup-form p label {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    margin: 0.3em;
}

.cup-form .cup-categories label {
    flex: 1 0 45%;
}

.cup-profile {
    max-width: 600px;
    margin: 2em auto;
}

.cup-profile img {
    border-radius: 50%;
    margin-bottom: 1em;
}

/* cup-style.css */
.cup-btn {
    display: inline-block;
    margin-right: .5em;
    padding: .5em .8em;
    background: #ed7c22;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.cup-btn:hover {
    background: #d66a1c;
    color: #fff;
}

/* cup-style.css */
/* Mevcut .cup-form, .cup-btn vb. stillerinizin üzerine aşağıyı ekleyin: */

.cup-user-widget {
    display: inline-flex;
    gap: .5em;
}



.cup-user-widget .cup-btn {
    display: inline-block;
}

@media only screen and (max-width: 767px) {
    .cup-btn {
        padding: 0.2em 0.3em;
        margin-right: 0px;
    }

    .bopea-fmc-posts {
        width: 100% !important;
    }

    .bopea-fmc-categories {
        width: 100% !important;
    }

    .bopea-fmc-container {
        flex-direction: column !important;
    }
}

.cup-actions {
    display: flex;
    align-items: center;
    gap: .6em;
}

.cup-loader {
    width: 16px;
    height: 16px;
    border: 2px solid #999;
    border-top-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: cupspin .8s linear infinite;
}

@keyframes cupspin {
    to {
        transform: rotate(360deg);
    }
}

#cup-popup {
    position: fixed;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 99999;
}

#cup-popup.show {
    opacity: .95;
}

/* Buton devre dışı görünümü */
.cup-btn[disabled],
.cup-btn[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form kilitliyken fazladan güvenlik: */
.js-cup-register.is-loading,
.js-cup-login.is-loading {
    pointer-events: none;
    /* tüm iç tıklamaları yok sayar */
}

/* Ama loader dönmeye devam etmeli, bu yüzden loader için pointer-events geri açılabilir */
.js-cup-register.is-loading .cup-loader,
.js-cup-login.is-loading .cup-loader {
    pointer-events: auto;
}

.cup-actions{
    display: flex;
    flex-direction: column;
}