/**
 * Frontend Styles for Stripe Subscription Plugin
 *
 * Styles for the checkout form and subscription-related frontend elements.
 * Includes:
 * - Checkout form container
 * - Stripe Payment Element wrapper
 * - Error and success messages
 * - Submit button styles
 * - Loading states
 * - Already subscribed message
 * - Responsive styles
 *
 * @package WPSubscription
 */

/* ==========================================================================
   Checkout Form Container
   ========================================================================== */

.ss-checkout-wrapper {
	max-width: 600px;
	margin: 0 auto;
	padding: 20px;
}

.ss-checkout-form {
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Price Selection
   ========================================================================== */

.ss-price-selection {
	margin-bottom: 25px;
}

.ss-price-selection-title {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin: 0 0 15px 0;
	text-align: center;
}

.ss-price-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ss-price-option {
	display: flex;
	align-items: center;
	padding: 16px 20px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
	background: #fff;
}

.ss-price-option:hover {
	border-color: #635bff;
	background: #fafafe;
}

.ss-price-option-selected {
	border-color: #635bff;
	background: #f5f4ff;
}

.ss-price-option-disabled {
	pointer-events: none;
	opacity: 0.7;
}

.ss-price-option-switchable {
	cursor: pointer;
}

.ss-price-radio {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.ss-price-option-content {
	flex: 1;
}

.ss-price-nickname {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	margin-bottom: 4px;
}

.ss-price-amount {
	font-size: 24px;
	font-weight: 700;
	color: #635bff;
}

.ss-price-interval {
	font-size: 13px;
	color: #666;
	margin-top: 2px;
}

.ss-price-check {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 2px solid #e0e0e0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: transparent;
	transition: all 0.2s ease;
	flex-shrink: 0;
	margin-left: 15px;
}

.ss-price-option-selected .ss-price-check {
	background: #635bff;
	border-color: #635bff;
	color: #fff;
}


/* ==========================================================================
   Coupon Code Section
   ========================================================================== */

.ss-coupon-section {
	margin: 20px 0;
	padding: 15px;
	background: #f9f9f9;
	border-radius: 6px;
}

.ss-coupon-input-wrapper {
	display: flex;
	gap: 10px;
}

.ss-coupon-input {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.ss-coupon-input:focus {
	outline: none;
	border-color: #635bff;
	box-shadow: 0 0 0 2px rgba(99, 91, 255, 0.1);
}

.ss-coupon-input:disabled {
	background: #f0f0f0;
	color: #666;
}

.ss-coupon-btn {
	padding: 10px 20px;
	background: #635bff;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

.ss-coupon-btn:hover {
	background: #5449d4;
}

.ss-coupon-btn:disabled {
	background: #9e9e9e;
	cursor: not-allowed;
}

.ss-coupon-result {
	margin-top: 12px;
	padding: 10px 14px;
	background: #d4edda;
	color: #155724;
	border-radius: 4px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	font-weight: 500;
}

.ss-coupon-success-text {
	flex: 1;
}

.ss-remove-coupon {
	background: none;
	border: none;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #155724;
	padding: 0 5px;
	opacity: 0.7;
	transition: opacity 0.2s ease;
}

.ss-remove-coupon:hover {
	opacity: 1;
}

.ss-coupon-error {
	margin-top: 10px;
	padding: 10px 14px;
	background: #f8d7da;
	color: #721c24;
	border-radius: 4px;
	font-size: 14px;
}

/* ==========================================================================
   Price Summary
   ========================================================================== */

.ss-price-summary {
	margin: 15px 0;
	padding: 15px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
}

.ss-price-row {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	font-size: 14px;
}

.ss-discount-row {
	color: #28a745;
}

.ss-total-row {
	font-weight: 700;
	font-size: 16px;
	border-top: 1px solid #e0e0e0;
	padding-top: 10px;
	margin-top: 6px;
}

/* ==========================================================================
   Payment Element Wrapper
   ========================================================================== */

.ss-payment-element-wrapper {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

/* ==========================================================================
   Price Display (Legacy)
   ========================================================================== */

.ss-price-display {
	text-align: center;
	margin-bottom: 25px;
	padding-bottom: 20px;
	border-bottom: 1px solid #eee;
}

.ss-product-name {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin-bottom: 8px;
}

/* ==========================================================================
   Stripe Payment Element
   ========================================================================== */

.ss-payment-element {
	margin-bottom: 20px;
	padding: 15px 0;
	min-height: 100px;
}

#ss-payment-element {
	/* Stripe Payment Element will be inserted here */
	/* The element styles are controlled by Stripe */
}

/* ==========================================================================
   Payment Form Loading Indicator
   ========================================================================== */

.ss-payment-loading {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 30px 20px;
}

.ss-loading-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid #e0e0e0;
	border-top-color: #635bff;
	border-radius: 50%;
	animation: ss-spin 0.8s linear infinite;
	margin-bottom: 15px;
}

.ss-loading-text {
	font-size: 14px;
	color: #666;
}

/* ==========================================================================
   Error Messages
   ========================================================================== */

.ss-error-message {
	background: #f8d7da;
	color: #721c24;
	padding: 12px 15px;
	border: 1px solid #f5c6cb;
	border-left-width: 4px;
	border-radius: 4px;
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 1.5;
}

.ss-error-message:empty {
	display: none;
}

.ss-error-message strong {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
}

/* ==========================================================================
   Success Messages
   ========================================================================== */

.ss-success-message {
	background: #d4edda;
	color: #155724;
	padding: 12px 15px;
	border: 1px solid #c3e6cb;
	border-left-width: 4px;
	border-radius: 4px;
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 1.5;
}

.ss-success-message:empty {
	display: none;
}

/* ==========================================================================
   Submit Button
   ========================================================================== */

.ss-submit-btn {
	width: 100%;
	padding: 14px 20px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background: #635bff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	margin-top: 10px;
	box-shadow: 0 2px 4px rgba(99, 91, 255, 0.2);
}

.ss-submit-btn:hover {
	background: #5449d4;
	box-shadow: 0 4px 8px rgba(99, 91, 255, 0.3);
	transform: translateY(-1px);
}

.ss-submit-btn:active {
	background: #4a3fc7;
	box-shadow: 0 1px 2px rgba(99, 91, 255, 0.2);
	transform: translateY(0);
}

.ss-submit-btn:disabled {
	background: #9e9e9e;
	cursor: not-allowed;
	opacity: 0.6;
	box-shadow: none;
	transform: none;
}

/* ==========================================================================
   Loading State
   ========================================================================== */

.ss-submit-btn.loading {
	position: relative;
	color: transparent;
	pointer-events: none;
}

.ss-submit-btn.loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #fff;
	animation: ss-spin 0.8s linear infinite;
}

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

/* ==========================================================================
   Already Subscribed Message
   ========================================================================== */

.ss-already-subscribed {
	max-width: 600px;
	margin: 40px auto;
	padding: 20px;
}

.ss-message-box {
	background: #d1ecf1;
	color: #0c5460;
	padding: 30px;
	border: 2px solid #bee5eb;
	border-left-width: 4px;
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ss-message-box h3 {
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 24px;
	color: #0c5460;
}

.ss-message-box p {
	margin: 10px 0;
	font-size: 16px;
	line-height: 1.6;
}

.ss-login-link {
	display: inline-block;
	padding: 10px 20px;
	margin-top: 10px;
	background: #0c5460;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	transition: all 0.2s ease;
}

.ss-login-link:hover {
	background: #094854;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ss-login-link:active {
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Hidden Fields
   ========================================================================== */

.ss-checkout-form input[type="hidden"] {
	display: none;
}

/* ==========================================================================
   Form Labels and Descriptions
   ========================================================================== */

.ss-form-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
	font-size: 14px;
}

.ss-form-description {
	display: block;
	margin-top: 5px;
	margin-bottom: 15px;
	font-size: 13px;
	color: #666;
	line-height: 1.5;
}

/* ==========================================================================
   Processing Overlay
   ========================================================================== */

.ss-processing-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.ss-processing-overlay.hidden {
	display: none;
}

.ss-processing-content {
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.ss-processing-spinner {
	width: 50px;
	height: 50px;
	margin: 0 auto 20px;
	border: 4px solid rgba(99, 91, 255, 0.2);
	border-radius: 50%;
	border-top-color: #635bff;
	animation: ss-spin 0.8s linear infinite;
}

.ss-processing-text {
	font-size: 16px;
	color: #333;
	font-weight: 600;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media screen and (max-width: 768px) {
	.ss-checkout-wrapper {
		padding: 15px;
	}

	.ss-checkout-form {
		padding: 20px 15px;
	}

	.ss-submit-btn {
		padding: 12px 18px;
		font-size: 15px;
	}

	.ss-message-box {
		padding: 20px 15px;
	}

	.ss-message-box h3 {
		font-size: 20px;
	}

	.ss-message-box p {
		font-size: 15px;
	}

	.ss-price-option {
		padding: 14px 16px;
	}

	.ss-price-amount {
		font-size: 20px;
	}

	.ss-price-nickname {
		font-size: 15px;
	}
}

@media screen and (max-width: 480px) {
	.ss-checkout-wrapper {
		padding: 10px;
	}

	.ss-checkout-form {
		padding: 15px;
		border-radius: 4px;
	}

	.ss-submit-btn {
		padding: 12px 15px;
		font-size: 14px;
	}

	.ss-error-message,
	.ss-success-message {
		padding: 10px 12px;
		font-size: 13px;
	}

	.ss-message-box {
		padding: 15px;
	}

	.ss-message-box h3 {
		font-size: 18px;
	}

	.ss-message-box p {
		font-size: 14px;
	}

	.ss-login-link {
		padding: 8px 16px;
		font-size: 14px;
	}
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.ss-submit-btn:focus {
	outline: 2px solid #635bff;
	outline-offset: 2px;
}

.ss-login-link:focus {
	outline: 2px solid #0c5460;
	outline-offset: 2px;
}

/* Screen reader only */
.ss-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
	.ss-submit-btn,
	.ss-login-link {
		display: none;
	}

	.ss-checkout-form {
		box-shadow: none;
		border: 1px solid #ddd;
	}
}

/* ==========================================================================
   Subscription Management Styles
   ========================================================================== */

.ss-manage-container {
	max-width: 600px;
	margin: 0 auto;
	padding: 20px;
}

/* Message Display */
.ss-manage-message {
	padding: 12px 15px;
	border-radius: 4px;
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 1.5;
}

.ss-message-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.ss-message-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Current Subscription Section */
.ss-current-subscription {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 25px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ss-current-subscription h3 {
	margin: 0 0 15px 0;
	font-size: 18px;
	color: #333;
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
}

.ss-subscription-details {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ss-detail-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
}

.ss-detail-label {
	font-weight: 600;
	color: #555;
	font-size: 14px;
}

.ss-detail-value {
	color: #333;
	font-size: 14px;
}

/* Status Badges */
.ss-status-active {
	color: #155724;
	font-weight: 600;
}

.ss-status-trialing {
	color: #0c5460;
	font-weight: 600;
}

.ss-status-past_due {
	color: #856404;
	font-weight: 600;
}

.ss-status-canceled {
	color: #721c24;
	font-weight: 600;
}

.ss-status-canceling .ss-canceling-notice {
	display: inline-block;
	margin-left: 8px;
	font-size: 12px;
	color: #856404;
	font-weight: normal;
}

/* Switch Plan Section */
.ss-switch-plan-section {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 25px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ss-switch-plan-section h3 {
	margin: 0 0 8px 0;
	font-size: 18px;
	color: #333;
}

.ss-section-description {
	margin: 0 0 20px 0;
	font-size: 14px;
	color: #666;
	line-height: 1.5;
}

/* Plan Options */
.ss-plan-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ss-plan-option {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	background: #fafafa;
	transition: all 0.2s ease;
}

.ss-plan-option:hover {
	border-color: #635bff;
	background: #f5f5ff;
}

.ss-plan-option-current {
	border-color: #635bff;
	background: #f0f0ff;
}

.ss-plan-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ss-plan-name {
	font-weight: 600;
	color: #333;
	font-size: 15px;
}

.ss-plan-price {
	color: #666;
	font-size: 14px;
}

.ss-current-badge {
	display: inline-block;
	padding: 6px 12px;
	background: #635bff;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	border-radius: 4px;
}

.ss-switch-btn {
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 600;
	color: #635bff;
	background: #fff;
	border: 2px solid #635bff;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ss-switch-btn:hover {
	background: #635bff;
	color: #fff;
}

.ss-switch-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Cancel Section */
.ss-cancel-section {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 25px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ss-cancel-section h3 {
	margin: 0 0 8px 0;
	font-size: 18px;
	color: #333;
}

.ss-cancel-btn {
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	color: #dc3545;
	background: #fff;
	border: 2px solid #dc3545;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ss-cancel-btn:hover {
	background: #dc3545;
	color: #fff;
}

.ss-cancel-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Resume Section */
.ss-resume-section {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 25px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ss-resume-section h3 {
	margin: 0 0 8px 0;
	font-size: 18px;
	color: #333;
}

.ss-resume-btn {
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: #28a745;
	border: 2px solid #28a745;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ss-resume-btn:hover {
	background: #218838;
	border-color: #218838;
}

.ss-resume-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Responsive Styles for Management */
@media screen and (max-width: 768px) {
	.ss-manage-container {
		padding: 15px;
	}

	.ss-detail-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.ss-plan-option {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.ss-switch-btn,
	.ss-current-badge {
		width: 100%;
		text-align: center;
	}
}

@media screen and (max-width: 480px) {
	.ss-manage-container {
		padding: 10px;
	}

	.ss-current-subscription,
	.ss-switch-plan-section,
	.ss-cancel-section,
	.ss-resume-section,
	.ss-payment-methods-section {
		padding: 15px;
	}

	.ss-cancel-btn,
	.ss-resume-btn {
		width: 100%;
	}
}

/* ==========================================================================
   Payment Methods Section
   ========================================================================== */

.ss-payment-methods-section {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 25px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Highlight effect when user needs to add payment method */
.ss-payment-methods-section.ss-highlight-section {
	border-color: #635bff;
	box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.2), 0 2px 8px rgba(99, 91, 255, 0.15);
}

.ss-payment-methods-section h3 {
	margin: 0 0 8px 0;
	font-size: 18px;
	color: #333;
}

/* Payment Methods List */
.ss-payment-methods-list {
	margin-bottom: 20px;
}

.ss-payment-method-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	margin-bottom: 10px;
	background: #fafafa;
	transition: all 0.2s ease;
}

.ss-payment-method-item:last-child {
	margin-bottom: 0;
}

.ss-payment-method-default {
	border-color: #635bff;
	background: #f5f5ff;
}

.ss-payment-method-info {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.ss-card-brand {
	font-weight: 600;
	color: #333;
	font-size: 14px;
	text-transform: capitalize;
}

.ss-card-last4 {
	color: #666;
	font-size: 14px;
	font-family: monospace;
}

.ss-card-expiry {
	color: #888;
	font-size: 13px;
}

.ss-default-badge {
	display: inline-block;
	padding: 3px 8px;
	background: #635bff;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	border-radius: 3px;
	text-transform: uppercase;
}

.ss-payment-method-actions {
	display: flex;
	gap: 8px;
}

.ss-set-default-btn {
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 500;
	color: #635bff;
	background: #fff;
	border: 1px solid #635bff;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ss-set-default-btn:hover {
	background: #635bff;
	color: #fff;
}

.ss-set-default-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.ss-delete-pm-btn {
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 500;
	color: #dc3545;
	background: #fff;
	border: 1px solid #dc3545;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ss-delete-pm-btn:hover {
	background: #dc3545;
	color: #fff;
}

.ss-delete-pm-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	background: #fff;
	color: #dc3545;
}

.ss-no-payment-methods {
	color: #666;
	font-style: italic;
	padding: 15px;
	text-align: center;
	background: #f9f9f9;
	border-radius: 6px;
}

/* Add Payment Method */
.ss-add-payment-method {
	margin-top: 15px;
}

.ss-add-pm-btn {
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: #635bff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ss-add-pm-btn:hover {
	background: #5449d4;
}

/* Add Payment Method Form */
.ss-add-pm-form {
	margin-top: 15px;
	padding: 20px;
	background: #f9f9f9;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
}

#ss-payment-element-container {
	margin-bottom: 15px;
}

#ss-card-element {
	padding: 12px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	min-height: 44px;
}

#ss-card-element.StripeElement--focus {
	border-color: #635bff;
	box-shadow: 0 0 0 2px rgba(99, 91, 255, 0.1);
}

#ss-card-element.StripeElement--invalid {
	border-color: #dc3545;
}

.ss-card-errors {
	color: #dc3545;
	font-size: 13px;
	margin-top: 8px;
	display: none;
}

.ss-add-pm-actions {
	display: flex;
	gap: 10px;
	margin-top: 15px;
}

.ss-save-pm-btn {
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: #28a745;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ss-save-pm-btn:hover {
	background: #218838;
}

.ss-save-pm-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.ss-cancel-add-pm-btn {
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 500;
	color: #666;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ss-cancel-add-pm-btn:hover {
	background: #f5f5f5;
}

.ss-cancel-add-pm-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Loading indicator for payment methods */
#ss-pm-loading {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 15px;
	color: #666;
	font-size: 14px;
}

#ss-pm-loading .ss-spinner {
	width: 20px;
	height: 20px;
	border: 2px solid #e0e0e0;
	border-top-color: #635bff;
	border-radius: 50%;
	animation: ss-spin 0.8s linear infinite;
}

/* Responsive styles for payment methods */
@media screen and (max-width: 768px) {
	.ss-payment-method-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.ss-payment-method-actions {
		width: 100%;
	}

	.ss-set-default-btn,
	.ss-delete-pm-btn {
		flex: 1;
		text-align: center;
	}

	.ss-add-pm-actions {
		flex-direction: column;
	}

	.ss-save-pm-btn,
	.ss-cancel-add-pm-btn {
		width: 100%;
	}
}
