/* TPCS Stock Sync — Add-to-Cart Check Styles */

/* Spinner */
.tpcs-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tpcs-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}

@keyframes tpcs-spin {
    to { transform: rotate(360deg); }
}

/* Button checking state */
button.tpcs-checking {
    opacity: 0.8;
    cursor: wait;
    pointer-events: none;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    line-height: 1.3;
}

/* Sub-message below spinner */
.tpcs-checking-sub {
    display: block;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.85;
    letter-spacing: 0;
    text-transform: none;
}

/* Error message */
.tpcs-atc-error {
    margin-bottom: 16px !important;
    padding: 12px 16px !important;
    border-left: 4px solid #e2401c !important;
    background: #fef7f6 !important;
    color: #333 !important;
    border-radius: 3px !important;
    font-size: 14px !important;
    list-style: none !important;
}

.tpcs-atc-error::before {
    content: none !important;
}
