/**
 * File Path: assets/css/mbs-admin-settings-affiliate.css
 * Earn More (Affiliate) tab styles — panel-disabled overlay and custom store rows; loaded when tab is active.
 * @package MyBookShowroom
 * @since   1.0.0
 */

/* ----- Tab wrapper ----- */
.mbs-tab-affiliate {
    max-width: 900px;
    padding-top: 12px;
}

/* ----- PRO upgrade notice ----- */
/* Base layout provided by WordPress .notice.notice-info.inline.
   .mbs-pro-notice is an MBS hook for spacing and theme overrides. */
.mbs-pro-notice {
    margin: 0 0 16px 0;
}

/* ----- Disabled panel overlay (FREE tier) ----- */
/* Applied to .mbs-affiliate-tab-body when mbs_is_pro() is false.
   The render template also sets inline style as a belt-and-suspenders
   fallback for browsers that block external stylesheets. */
.mbs-panel-disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* ----- Custom store rows (built by child-admin-earn-more.js) ----- */
.mbs-custom-store-row {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 10px;
    background: #fafafa;
}

.mbs-store-row-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mbs-store-row-header strong {
    flex: 1 0 auto;
}

.mbs-store-url-preview {
    color: #666;
    font-size: 12px;
}

.mbs-store-favicon {
    vertical-align: middle;
    border-radius: 2px;
}

.mbs-store-row-header .mbs-remove-store {
    color: var(--mbs-status-err);
    text-decoration: none;
    margin-left: auto;
}

.mbs-store-row-header .mbs-remove-store:hover {
    color: #a00;
}

.mbs-store-button-preview {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    margin-top: 8px;
    font-size: 13px;
}

.mbs-btn-pill {
    background: #0073aa;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    line-height: 1.6;
}

/* ----- Custom store add-form table ----- */
.mbs-store-form-table th {
    width: 160px;
    font-weight: 500;
    padding: 8px 10px 8px 0;
}

.mbs-store-form-table td {
    padding: 8px 0;
}
