/* Lustia Bump Auto-Renew — front-end styles */

/* ----------------------------------------------------------------
 * Inline toggle (sits next to the bump packages on bump screen)
 * ---------------------------------------------------------------- */
.lustia-ar-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f7f7f9;
    border: 1px solid #eeeef2;
    border-radius: 14px;
    cursor: pointer;
    margin: 16px 0;
    font-size: 15px;
    color: #111113;
    user-select: none;
}
.lustia-ar-toggle input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 44px;
    height: 24px;
    background: #d0d0d8;
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    transition: background .2s ease;
    flex: 0 0 auto;
    margin: 0;
}
.lustia-ar-toggle input[type="checkbox"]::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.lustia-ar-toggle input[type="checkbox"]:checked {
    background: #111113;
}
.lustia-ar-toggle input[type="checkbox"]:checked::before {
    transform: translateX(20px);
}
.lustia-ar-toggle .lustia-ar-toggle-label {
    flex: 1;
}
.lustia-ar-toggle .lustia-ar-toggle-label strong {
    display: block;
    font-weight: 700;
    margin-bottom: 2px;
}
.lustia-ar-toggle .lustia-ar-toggle-label small {
    color: #666;
    font-size: 13px;
}
.lustia-ar-toggle .lustia-ar-toggle-label small a {
    color: #1d6fff;
    text-decoration: none;
    font-weight: 600;
}
.lustia-ar-toggle .lustia-ar-toggle-label small a:hover {
    text-decoration: underline;
}

/* ----------------------------------------------------------------
 * My Account → Auto-Bumps
 * ---------------------------------------------------------------- */
.lustia-autorenew h2 {
    font-size: 24px;
    font-weight: 800;
    color: #111113;
    margin: 0 0 8px;
}
.lustia-ar-intro {
    color: #666;
    margin: 0 0 24px;
    font-size: 15px;
}
.lustia-ar-empty {
    background: #f7f7f9;
    border: 1px solid #eeeef2;
    border-radius: 14px;
    padding: 32px;
    text-align: center;
}
.lustia-ar-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.lustia-ar-item {
    background: #fff;
    border: 1px solid #eeeef2;
    border-radius: 14px;
    padding: 18px;
}
.lustia-ar-item-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.lustia-ar-title {
    font-size: 17px;
    font-weight: 700;
    color: #111113;
    margin-bottom: 4px;
}
.lustia-ar-title a {
    color: inherit;
    text-decoration: none;
}
.lustia-ar-title a:hover {
    text-decoration: underline;
}
.lustia-ar-meta {
    font-size: 13px;
    color: #666;
}
.lustia-ar-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #f7f7f9;
    border: 1px solid #eeeef2;
    color: #444;
    white-space: nowrap;
}
.lustia-ar-status.status-active {
    background: #f0f7f0;
    border-color: #d5e8d4;
    color: #2d5a2d;
}
.lustia-ar-status.status-needs_payment {
    background: #fdf5e7;
    border-color: #f0dab0;
    color: #8a5a00;
}
.lustia-ar-details {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 14px 0;
    border-top: 1px solid #f0f0f4;
    font-size: 14px;
    color: #444;
}
.lustia-ar-label {
    color: #888;
    margin-right: 4px;
}
.lustia-ar-alert {
    background: #fdf5e7;
    border: 1px solid #f0dab0;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 12px 0;
    font-size: 14px;
    color: #8a5a00;
}
.lustia-ar-alert a {
    color: #8a5a00;
    font-weight: 700;
}
.lustia-ar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f4;
    align-items: center;
}
.lustia-ar-actions .lustia-ar-plan {
    padding: 8px 12px;
    border: 1px solid #eeeef2;
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    min-width: 180px;
}
.lustia-ar-actions .button {
    border-radius: 999px !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}
.lustia-ar-actions .lustia-ar-cancel {
    background: transparent !important;
    color: #b00 !important;
    border: 1px solid #f0c0c0 !important;
}
.lustia-ar-actions .lustia-ar-change {
    background: #111113 !important;
    color: #fff !important;
    border: 0 !important;
}

/* ----------------------------------------------------------------
 * Toast
 * ---------------------------------------------------------------- */
.lustia-ar-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #111113;
    color: #fff;
    padding: 14px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 99999;
    max-width: 90%;
    text-align: center;
}
.lustia-ar-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.lustia-ar-toast-err {
    background: #8a2020;
}

@media (max-width: 600px) {
    .lustia-ar-item-head { flex-direction: column; }
    .lustia-ar-details { gap: 12px; }
    .lustia-ar-actions { flex-direction: column; align-items: stretch; }
    .lustia-ar-actions .lustia-ar-plan { width: 100%; min-width: 0; }
}
