/**

 * All of the CSS for your public-facing functionality should be

 * included in this file.

 */

.parmis-shop-sync-btn {
    position: relative;
    padding: 5px 10px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
}

.parmis-shop-sync-btn:hover {
    background: #006291;
}

.parmis-shop-sync-btn.updating-message {
    padding-right: 25px;
}

.parmis-shop-sync-btn.updating-message:after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.sync-status span {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    line-height: 1.4;
}

.status-completed {
    background: #46b450;
    color: #fff;
}

.status-failed {
    background: #dc3232;
    color: #fff;
}

.status-processing {
    background: #00a0d2;
    color: #fff;
}

.status-pending {
    background: #f0b849;
    color: #fff;
}

.sync-message {
    margin: 5px 0;
}

.sync-message .notice {
    margin: 5px 0;
}

tr.sync-error {
    background-color: #fef7f7;
}

.last-sync-time {
    color: #666;
    font-size: 12px;
}

/* RTL Support */
.rtl .parmis-shop-sync-btn.updating-message {
    padding-right: 10px;
    padding-left: 25px;
}

.rtl .parmis-shop-sync-btn.updating-message:after {
    right: auto;
    left: 8px;
}