diff --git a/make_post_sell/static/css/common.css b/make_post_sell/static/css/common.css
index 179533b..1160f7e 100644
--- a/make_post_sell/static/css/common.css
+++ b/make_post_sell/static/css/common.css
@@ -1263,6 +1263,46 @@ div.message-ribbon {
color: #666;
}
+[data-theme="dark"] .note-text {
+ color: #c0c0c0;
+}
+
+[data-theme="dark"] .status-message {
+ color: #c0c0c0;
+}
+
+[data-theme="dark"] .error-indicator {
+ color: #ff6b6b;
+ font-weight: bold;
+}
+
+/* Flash message styling for dark mode */
+[data-theme="dark"] .alert-danger,
+[data-theme="dark"] .alert-error {
+ color: #ff6b6b;
+ background-color: #2d1f20;
+ border-color: #ff6b6b;
+}
+
+[data-theme="dark"] .alert-warning {
+ color: #ffd93d;
+ background-color: #2d2a1f;
+ border-color: #ffd93d;
+}
+
+[data-theme="dark"] .alert-info,
+[data-theme="dark"] .alert-notice {
+ color: var(--blue-color);
+ background-color: #1f252d;
+ border-color: var(--blue-color);
+}
+
+[data-theme="dark"] .alert-success {
+ color: var(--green-color);
+ background-color: #1f2d1f;
+ border-color: var(--green-color);
+}
+
.inline-label {
display: inline;
}
diff --git a/make_post_sell/templates/shop_settings.j2 b/make_post_sell/templates/shop_settings.j2
index a4f84c2..2e391b6 100644
--- a/make_post_sell/templates/shop_settings.j2
+++ b/make_post_sell/templates/shop_settings.j2
@@ -144,9 +144,10 @@
name = "stripe_public_api_key"
type = "text"
id = "stripe_public_api_key"
- class = "mps-stripe-public-api-key"
+ class = "mps-stripe-public-api-key{% if not request.shop.stripe_enabled %} disabled-input{% endif %}"
value = "{% if stripe_public_api_key %}{{ stripe_public_api_key }}{% endif %}"
placeholder = "Stripe Public API Key (pk)"
+ {% if not request.shop.stripe_enabled %}readonly{% endif %}
/>
@@ -157,19 +158,30 @@
name = "stripe_secret_api_key"
type = "text"
id = "stripe_secret_api_key"
- class = "mps-stripe-secret-api-key"
+ class = "mps-stripe-secret-api-key{% if not request.shop.stripe_enabled %} disabled-input{% endif %}"
value = "{% if stripe_secret_api_key %}{{ stripe_secret_api_key }}{% endif %}"
placeholder = "Stripe Secret API Key (sk)"
+ {% if not request.shop.stripe_enabled %}readonly{% endif %}
/>
{% if request.shop.stripe_enabled %}
+ ✓ Stripe configured and ready to accept credit card payments
+
+
{% else %}
+ ✗ Stripe payments are currently disabled
+
+
+ Your API keys are preserved but customers cannot select credit card as a payment method.
+
+
+ Re-enable Stripe payments to update your API keys
{% endif %}
@@ -260,7 +272,7 @@
-