/* Membership Manager front-end styles */

.ddcs-plans {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin: 20px 0;
}
.ddcs-plan-card {
	flex: 1 1 260px;
	max-width: 360px;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 24px;
	background: #fff;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.06 );
	display: flex;
	flex-direction: column;
}
.ddcs-plan-name {
	margin: 0 0 8px;
}
.ddcs-plan-price {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 12px;
}
.ddcs-plan-desc {
	flex: 1 1 auto;
	margin-bottom: 16px;
	color: #444;
}
.ddcs-plan-initiation {
	font-size: 13px;
	color: #646970;
	margin-bottom: 12px;
}
.ddcs-plan-benefits {
	list-style: none !important;
	margin: 0 0 16px;
	padding: 0 !important;
	flex: 1 1 auto;
}
.ddcs-plan-benefits li {
	list-style: none !important;
	position: relative;
	padding-left: 22px;
	margin-bottom: 6px;
	margin-left: 0;
}
/* Suppress theme list bullets/markers so only our checkmark shows. */
.ddcs-plan-benefits li::marker {
	content: "";
}
.ddcs-plan-benefits li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: #1a7f37;
	font-weight: 700;
}
.ddcs-plan-spouse {
	display: block;
	font-size: 13px;
	background: #f0f6fc;
	border-left: 3px solid #2271b1;
	padding: 6px 10px;
	margin-bottom: 16px;
	cursor: pointer;
}
.ddcs-plan-signup {
	margin-top: auto;
}
.ddcs-spouse-fields {
	margin: 1em 0;
	padding: 1em;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
}
.ddcs-agreement {
	margin: 1.5em 0;
	padding: 16px 18px;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	background: #fafafa;
}
.ddcs-agreement h3 {
	margin-top: 0;
}
.ddcs-agree-row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.4;
}
.ddcs-agree-row input[type="checkbox"] {
	margin-top: 3px;
	flex: 0 0 auto;
}
.ddcs-plan-cta {
	align-self: flex-start;
}

/* Plans-page disclaimers */
.ddcs-disclaimer-marker {
	color: #d63638;
	font-weight: 700;
}
.ddcs-marked-disclaimers {
	font-size: 13px;
	color: #646970;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
	line-height: 1.5;
}
.ddcs-marked-disclaimers li {
	margin: 0 0 4px;
}
.ddcs-plans-disclaimer {
	font-size: 13px;
	color: #646970;
	margin-top: 20px;
	line-height: 1.5;
}
.ddcs-dd-disclaimer-link {
	margin-top: 8px;
	font-size: 13px;
}

/* Disclaimer modal */
.ddcs-modal[hidden] {
	display: none;
}
.ddcs-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ddcs-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.5 );
}
.ddcs-modal-box {
	position: relative;
	z-index: 1;
	background: #fff;
	max-width: 640px;
	width: calc( 100% - 40px );
	max-height: 80vh;
	overflow: auto;
	padding: 28px 24px 24px;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.25 );
}
.ddcs-modal-content {
	font-size: 13px;
	line-height: 1.5;
	color: #333;
}
.ddcs-modal-close {
	position: absolute;
	top: 6px;
	right: 12px;
	background: none;
	border: 0;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #646970;
}

.ddcs-cart-banner {
	background: #f0f6fc;
	border: 1px solid #2271b1;
	border-radius: 6px;
	padding: 10px 14px;
	margin-bottom: 16px;
	font-size: 14px;
}
.ddcs-cart-banner a {
	font-weight: 600;
}

.ddcs-eligibility-note {
	font-size: 13px;
	color: #646970;
	margin: 0 0 12px;
}

.ddcs-welcome {
	background: #edfaef;
	border: 1px solid #1a7f37;
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 20px;
}
.ddcs-welcome h2 {
	margin-top: 0;
	color: #1a7f37;
}
.ddcs-bookmark {
	margin: 0 0 16px;
}
.ddcs-bookmark-link {
	text-decoration: none;
	font-weight: 600;
}
.ddcs-bookmark-hint {
	margin-left: 8px;
	color: #646970;
	font-size: 13px;
}

.ddcs-account {
	max-width: 1040px;
	margin: 0 auto;
	color: #1f2937;
}

/* Two-column layout: main (~66%) + sidebar (~33%), stacks on mobile. */
.ddcs-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: flex-start;
}
.ddcs-col-main {
	flex: 1 1 60%;
	min-width: 300px;
}
.ddcs-col-side {
	flex: 1 1 28%;
	min-width: 240px;
}

/* Cards */
.ddcs-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 20px 22px;
	margin: 0 0 20px;
	box-shadow: 0 1px 2px rgba( 0, 0, 0, 0.04 );
}
.ddcs-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}
.ddcs-card-title {
	margin: 0;
	font-size: 22px;
	line-height: 1.2;
}
.ddcs-card-subtitle {
	margin: 0 0 14px;
	font-size: 16px;
}
.ddcs-muted {
	color: #6b7280;
	font-size: 14px;
}

/* Status badge */
.ddcs-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	white-space: nowrap;
}
.ddcs-badge-active { background: #e7f7ec; color: #12813a; }
.ddcs-badge-pending { background: #fdf3e2; color: #8a6d3b; }
.ddcs-badge-past_due,
.ddcs-badge-suspended { background: #fdeaea; color: #b3261e; }
.ddcs-badge-cancelled { background: #f0f0f1; color: #555; }

/* Detail rows */
.ddcs-detail {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}
.ddcs-detail th {
	text-align: left;
	font-weight: 600;
	color: #4b5563;
	padding: 9px 0;
	width: 46%;
	vertical-align: top;
}
.ddcs-detail td {
	padding: 9px 0;
	vertical-align: top;
}
.ddcs-detail tr + tr th,
.ddcs-detail tr + tr td {
	border-top: 1px solid #f0f1f3;
}

/* Collapsible manage actions */
.ddcs-manage {
	border-top: 1px solid #f0f1f3;
	padding: 6px 0;
}
.ddcs-manage:first-of-type {
	border-top: 0;
}
.ddcs-manage > summary {
	cursor: pointer;
	font-weight: 600;
	padding: 8px 0;
	list-style: revert;
}
.ddcs-manage[open] > summary {
	margin-bottom: 8px;
}
.ddcs-manage input[type="text"] {
	display: block;
	width: 100%;
	max-width: 320px;
	margin-top: 4px;
}

/* Bookmark helper (subtle) */
.ddcs-bookmark {
	text-align: right;
	font-size: 13px;
}
.ddcs-alert {
	padding: 12px 16px;
	border-radius: 6px;
	margin: 12px 0;
	border-left: 4px solid #b32d2e;
	background: #fbeaea;
}
.ddcs-alert-past_due {
	border-left-color: #8a6d3b;
	background: #fcf3e3;
}
.ddcs-alert-cancelled {
	border-left-color: #646970;
	background: #f0f0f1;
}
.ddcs-summary {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 24px;
}
.ddcs-summary th,
.ddcs-summary td {
	text-align: left;
	padding: 8px 6px;
	border-bottom: 1px solid #eee;
}
.ddcs-summary th {
	width: 40%;
	color: #555;
}

.ddcs-update-payment input[type="text"] {
	display: block;
	width: 100%;
	max-width: 320px;
	margin-top: 4px;
}
.ddcs-inline-error {
	margin-bottom: 12px;
}

.ddcs-status {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
}
.ddcs-status.active { background: #edfaef; color: #1a7f37; }
.ddcs-status.pending { background: #fcf3e3; color: #8a6d3b; }
.ddcs-status.past_due { background: #fbeaea; color: #b32d2e; }
.ddcs-status.cancelled { background: #f0f0f1; color: #646970; }

.ddcs-cancel-button {
	background: #b32d2e !important;
	color: #fff !important;
}
