/**
 * PWS portal pages – checkout, dashboard, thank-you layout inside theme grid.
 */

body.pws-portal-page #content-wrapper {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	background: var(--pws-light, #f0f6ff);
	border: none;
	border-radius: 0;
	box-shadow: none;
}

body.pws-portal-page #content-wrapper .row {
	width: 100%;
	max-width: var(--pws-container);
	margin: 0 auto;
	overflow: visible;
}

body.pws-portal-page #content-wrapper .grid_12 {
	float: none;
	width: 100%;
	margin: 0 !important;
}

.pws-portal-page .maincontent-no-sidebar {
	width: 100%;
	max-width: var(--pws-container, 1200px);
	margin: 0 auto;
	padding: 48px 24px 72px;
	background: none;
	box-sizing: border-box;
}

.pws-portal-page .pws-portal-inner {
	width: 100%;
}

.pws-checkout-page {
	width: 100%;
}

.pws-checkout-intro {
	max-width: 720px;
	margin: 0 0 36px;
}

.pws-checkout-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 18px;
	color: var(--pws-primary, #2563eb);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.pws-checkout-back:hover {
	color: var(--pws-primary-dark, #1d4ed8);
}

.pws-checkout-intro .pws-eyebrow {
	display: inline-block;
	margin-bottom: 12px;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(37, 99, 235, 0.08);
	border: 1px solid rgba(37, 99, 235, 0.14);
	color: var(--pws-primary, #2563eb);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.pws-checkout-intro h1 {
	margin: 0 0 10px;
	color: var(--pws-heading, #0f172a);
	font-size: clamp(1.9rem, 3.5vw, 2.6rem);
	line-height: 1.15;
	letter-spacing: -0.035em;
}

.pws-checkout-intro > p {
	margin: 0;
	color: var(--pws-text, #475569);
	font-size: 16px;
	line-height: 1.7;
}

.pws-checkout-container {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
	gap: 28px;
	align-items: start;
}

.pws-checkout-left,
.pws-checkout-right {
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
	border: 1px solid #e2e8f0;
}

.pws-checkout-left {
	padding: 28px;
	min-width: 0;
}

.pws-checkout-right {
	padding: 0;
	position: sticky;
	top: 110px;
}

.pws-checkout-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 28px;
	padding-bottom: 22px;
	border-bottom: 1px solid #eef2f7;
}

.pws-checkout-steps span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	color: #64748b;
	font-size: 13px;
	font-weight: 600;
}

.pws-checkout-steps span.is-active {
	background: rgba(37, 99, 235, 0.08);
	border-color: rgba(37, 99, 235, 0.2);
	color: var(--pws-primary, #2563eb);
}

.pws-checkout-steps em {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #e2e8f0;
	color: #334155;
	font-style: normal;
	font-size: 12px;
	font-weight: 800;
}

.pws-checkout-steps span.is-active em {
	background: var(--pws-primary, #2563eb);
	color: #fff;
}

.pws-checkout-form-head {
	margin-bottom: 22px;
}

.pws-checkout-form-head h2 {
	margin: 0 0 6px;
	font-size: 1.35rem;
	color: var(--pws-heading, #0f172a);
	letter-spacing: -0.02em;
}

.pws-checkout-form-head p {
	margin: 0;
	color: #64748b;
	font-size: 14px;
}

.pws-checkout-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.pws-checkout-field {
	margin-bottom: 18px;
}

.pws-checkout-field label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--pws-heading, #0f172a);
}

.pws-checkout-field label span {
	color: #ef4444;
}

.pws-checkout-field label small {
	color: #94a3b8;
	font-weight: 500;
}

.pws-checkout-field input,
.pws-checkout-field textarea {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid #dbe3f0;
	border-radius: 12px;
	background: #fff;
	color: var(--pws-heading, #0f172a);
	font-size: 15px;
	line-height: 1.4;
	box-sizing: border-box;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.pws-checkout-field input:focus,
.pws-checkout-field textarea:focus {
	outline: none;
	border-color: var(--pws-primary, #2563eb);
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.pws-checkout-field textarea {
	resize: vertical;
	min-height: 110px;
}

.pws-checkout-secure {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 8px 0 18px;
}

.pws-checkout-secure span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 10px;
	border-radius: 999px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
	font-size: 12px;
	font-weight: 700;
}

.pws-checkout-secure span::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #22c55e;
}

.pws-pay-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 16px 20px;
	border: none;
	border-radius: 14px;
	background: var(--pws-primary, #2563eb);
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	cursor: pointer;
	box-sizing: border-box;
	box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
	transition: background 0.2s, transform 0.15s;
}

.pws-pay-btn:hover {
	background: var(--pws-primary-dark, #1d4ed8);
	transform: translateY(-1px);
}

.pws-pay-btn span {
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	font-size: 13px;
	font-weight: 700;
}

.pws-checkout-fineprint {
	margin: 14px 0 0;
	color: #94a3b8;
	font-size: 12.5px;
	line-height: 1.55;
	text-align: center;
}

.pws-order-summary {
	padding: 28px;
	border: none;
	border-radius: 22px;
	background: transparent;
}

.pws-order-summary-top {
	margin-bottom: 22px;
	padding-bottom: 20px;
	border-bottom: 1px solid #eef2f7;
}

.pws-order-label {
	display: inline-block;
	margin-bottom: 10px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(37, 99, 235, 0.08);
	color: var(--pws-primary, #2563eb);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.pws-order-summary-top h2 {
	margin: 0 0 8px;
	font-size: 1.55rem;
	color: var(--pws-heading, #0f172a);
	letter-spacing: -0.03em;
}

.pws-order-summary-top p {
	margin: 0;
	color: #64748b;
	font-size: 14px;
	line-height: 1.55;
}

.pws-order-price-box {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 20px;
}

.pws-order-price-box > div {
	padding: 16px;
	border-radius: 16px;
	background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
	border: 1px solid #e2e8f0;
}

.pws-order-price-box strong {
	display: block;
	margin-bottom: 4px;
	color: var(--pws-heading, #0f172a);
	font-size: 1.15rem;
	letter-spacing: -0.02em;
}

.pws-order-price-box span {
	color: #64748b;
	font-size: 12px;
	font-weight: 600;
}

.pws-order-lines {
	list-style: none;
	padding: 0;
	margin: 0 0 22px;
}

.pws-order-lines li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #eef2f7;
	color: #475569;
	font-size: 14px;
}

.pws-order-lines li.total {
	margin-top: 4px;
	border-bottom: 0;
	border-top: 2px solid #e2e8f0;
	padding-top: 14px;
	font-size: 16px;
	font-weight: 800;
	color: var(--pws-heading, #0f172a);
}

.pws-order-includes {
	margin: 0 0 20px;
	padding-top: 4px;
	border-top: 1px solid #eef2f7;
}

.pws-order-includes h3 {
	margin: 16px 0 10px;
	font-size: 14px;
	font-weight: 800;
	color: var(--pws-heading, #0f172a);
}

.pws-order-includes ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}

.pws-order-includes li {
	position: relative;
	display: block;
	margin: 0;
	padding: 9px 0 9px 24px;
	border: 0;
	border-top: 1px solid #f1f5f9;
	color: #475569;
	font-size: 13px;
	line-height: 1.45;
	justify-content: initial;
	gap: 0;
}

.pws-order-includes li:first-child {
	border-top: 0;
}

.pws-order-includes li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 12px;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: #dcfce7;
}

.pws-order-includes li::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 15px;
	width: 5px;
	height: 8px;
	border: solid #16a34a;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.pws-order-change {
	display: inline-flex;
	color: var(--pws-primary, #2563eb);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.pws-order-change:hover {
	color: var(--pws-primary-dark, #1d4ed8);
	text-decoration: underline;
}

.pws-checkout-empty {
	max-width: 560px;
	margin: 40px auto;
	padding: 48px 36px;
	border-radius: 24px;
	background: #fff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
	text-align: center;
}

.pws-checkout-empty h1 {
	margin: 12px 0 10px;
	font-size: 2rem;
	color: var(--pws-heading, #0f172a);
}

.pws-checkout-empty p {
	margin: 0 0 24px;
	color: #64748b;
}

@media (max-width: 960px) {
	.pws-checkout-container {
		grid-template-columns: 1fr;
	}

	.pws-checkout-right {
		position: static;
		order: -1;
	}
}

@media (max-width: 640px) {
	.pws-checkout-left {
		padding: 22px 18px;
	}

	.pws-checkout-field-row,
	.pws-order-price-box {
		grid-template-columns: 1fr;
	}

	.pws-pay-btn {
		flex-direction: column;
		justify-content: center;
		text-align: center;
	}
}

.pws-dashboard-wrapper {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 10px;
}

.pws-dashboard-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
	flex-wrap: wrap;
	gap: 15px;
}

.pws-dashboard-header h2 {
	margin: 0;
	color: #222;
}

.pws-dashboard-actions a {
	display: inline-block;
	margin-left: 10px;
	padding: 8px 16px;
	background: #0073e6;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 14px;
}

.pws-dashboard-actions a:hover {
	background: #005bb5;
}

.pws-dashboard-actions a.logout {
	background: #666;
}

.pws-table-wrap {
	overflow-x: auto;
}

.pws-subscriptions-table {
	width: 100%;
	min-width: 700px;
	border-collapse: collapse;
	background: #fff;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	overflow: hidden;
}

.pws-subscriptions-table th,
.pws-subscriptions-table td {
	padding: 14px 16px;
	text-align: left;
	border-bottom: 1px solid #eee;
}

.pws-subscriptions-table th {
	background: #f5f5f5;
	font-weight: 600;
}

.pws-status-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.pws-status-active { background: #d4edda; color: #155724; }
.pws-status-pending { background: #fff3cd; color: #856404; }
.pws-status-cancelled { background: #f8d7da; color: #721c24; }
.pws-status-expired { background: #e2e3e5; color: #383d41; }

a.pws-btn-renew,
a.pws-btn-renew:link,
a.pws-btn-renew:visited,
a.pws-btn-renew:active,
.pws-btn-renew {
	display: inline-block;
	padding: 6px 14px;
	background: #0073e6;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 13px;
}

a.pws-btn-renew:hover,
.pws-btn-renew:hover {
	color: #fff;
}

.pws-btn-cancel {
	background: #dc3545;
	color: #fff;
	border: none;
	padding: 6px 14px;
	border-radius: 4px;
	font-size: 13px;
	cursor: pointer;
}

.pws-notice-success {
	background: #d4edda;
	color: #155724;
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 20px;
}

.pws-empty-state {
	text-align: center;
	padding: 40px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.pws-thankyou-wrapper {
	background: #fff;
	padding: 50px 30px;
	margin: 0 auto;
	max-width: 800px;
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.pws-thankyou-wrapper h2 {
	color: #0073e6;
	font-size: 32px;
	margin-bottom: 20px;
}

.pws-thankyou-wrapper .pws-order-summary {
	margin-top: 30px;
	text-align: left;
	display: inline-block;
	background: #f9f9f9;
	padding: 20px 24px;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
}

.pws-thankyou-wrapper .pws-order-summary ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pws-thankyou-wrapper .pws-order-summary ul li {
	display: block;
	padding: 8px 0;
	border-bottom: 1px solid #eee;
	font-size: 16px;
	color: #334155;
}

.pws-thankyou-wrapper .pws-order-summary ul li strong {
	width: 150px;
	display: inline-block;
	color: #0f172a;
}

.pws-thankyou-wrapper .pws-portal-btn {
	display: inline-block;
	margin-top: 30px;
	margin-right: 10px;
	background: #0073e6;
	color: #fff;
	padding: 12px 24px;
	border-radius: 5px;
	text-decoration: none;
	font-size: 16px;
}

.pws-thankyou-wrapper .pws-portal-btn.secondary {
	background: #666;
}

.pws-thankyou-error {
	color: #721c24;
	background: #f8d7da;
	padding: 15px;
	border-radius: 6px;
}
