/**
 * Wihainvitation Frontend Styles
 *
 * @package Wihainvitation
 */

/* =====================
   General
   ===================== */
.whi-btn {
	display: inline-block;
	padding: 10px 20px;
	background: #2271b1;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	border: none;
	cursor: pointer;
	font-size: 14px;
	text-align: center;
}

.whi-btn:hover {
	background: #135e96;
	color: #fff;
}

.whi-btn-primary {
	background: #2271b1;
}

.whi-btn-primary:hover {
	background: #135e96;
}

.whi-btn-block {
	display: block;
	width: 100%;
}

.whi-btn-small {
	padding: 4px 10px;
	font-size: 12px;
}

.whi-message {
	padding: 15px;
	background: #f0f0f1;
	border-left: 4px solid #2271b1;
	margin: 20px 0;
}

/* =====================
   Forms
   ===================== */
.whi-form {
	max-width: 500px;
	margin: 0 auto;
}

.whi-form h3 {
	margin-top: 0;
	text-align: center;
}

.whi-form-field {
	margin-bottom: 15px;
}

.whi-form-field label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
}

.whi-form-field .required {
	color: #d63638;
}

.whi-form input.input {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
}

.whi-form input.input:focus {
	border-color: #2271b1;
	outline: none;
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

.whi-form-footer {
	margin-top: 20px;
	text-align: center;
}

.whi-form-links {
	text-align: center;
	margin-top: 15px;
	font-size: 14px;
}

.whi-terms {
	font-size: 12px;
	color: #666;
}

.whi-form-message {
	margin-top: 15px;
	padding: 10px;
	border-radius: 4px;
	text-align: center;
}

.whi-form-message.success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.whi-form-message.error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* =====================
   Pricing
   ===================== */
.whi-pricing-wrapper {
	max-width: 1000px;
	margin: 30px auto;
}

.whi-pricing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}

.whi-pricing-card {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.2s, box-shadow 0.2s;
}

.whi-pricing-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.whi-pricing-header {
	background: #2271b1;
	color: #fff;
	padding: 20px;
	text-align: center;
}

.whi-pricing-header .whi-plan-name {
	margin: 0 0 10px;
	font-size: 20px;
}

.whi-pricing-header .whi-plan-price {
	font-size: 32px;
	font-weight: bold;
}

.whi-pricing-header .whi-plan-duration {
	font-size: 14px;
	opacity: 0.9;
}

.whi-pricing-body {
	padding: 20px;
}

.whi-pricing-body .whi-plan-description {
	color: #666;
	margin-bottom: 15px;
}

.whi-pricing-body .whi-plan-features {
	list-style: none;
	padding: 0;
	margin: 0;
}

.whi-pricing-body .whi-plan-features li {
	padding: 8px 0;
	border-bottom: 1px solid #eee;
}

.whi-pricing-body .whi-plan-features li:last-child {
	border-bottom: none;
}

.whi-pricing-body .whi-plan-features li:before {
	content: "✓";
	color: #5cb85c;
	margin-right: 10px;
	font-weight: bold;
}

.whi-pricing-footer {
	padding: 20px;
	padding-top: 0;
}

/* =====================
   Checkout
   ===================== */
.whi-checkout-wrapper {
	max-width: 600px;
	margin: 30px auto;
}

.whi-checkout-summary {
	background: #f9f9f9;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 30px;
}

.whi-checkout-summary h3 {
	margin-top: 0;
}

.whi-checkout-table {
	width: 100%;
}

.whi-checkout-table td {
	padding: 10px 0;
}

.whi-checkout-table td:last-child {
	text-align: right;
}

.whi-checkout-table .whi-price {
	font-size: 18px;
	font-weight: bold;
	color: #2271b1;
}

.whi-payment-methods {
	margin: 20px 0;
}

.whi-payment-method {
	display: block;
	padding: 15px;
	border: 2px solid #ddd;
	border-radius: 8px;
	margin-bottom: 10px;
	cursor: pointer;
	transition: border-color 0.2s;
}

.whi-payment-method:hover {
	border-color: #2271b1;
}

.whi-payment-method.selected {
	border-color: #2271b1;
	background: rgba(34, 113, 177, 0.05);
}

.whi-payment-method input {
	margin-right: 10px;
}

.whi-method-icon {
	vertical-align: middle;
	margin-right: 10px;
}

.whi-method-name {
	font-weight: bold;
}

/* =====================
   Dashboard
   ===================== */
.whi-dashboard {
	max-width: 1200px;
	margin: 30px auto;
}

.whi-dashboard-header {
	margin-bottom: 30px;
}

.whi-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
}

.whi-card {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
}

.whi-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	border-bottom: 1px solid #ddd;
	background: #f9f9f9;
}

.whi-card-header h3 {
	margin: 0;
	font-size: 16px;
}

.whi-card-body {
	padding: 20px;
}

.whi-card-body p {
	margin: 10px 0;
}

.whi-badge {
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: bold;
}

.whi-badge-active {
	background: #d4edda;
	color: #155724;
}

.whi-badge-inactive {
	background: #f8d7da;
	color: #721c24;
}

.whi-quick-actions {
	list-style: none;
	padding: 0;
	margin: 0;
}

.whi-quick-actions li {
	margin-bottom: 10px;
}

.whi-quick-actions li:last-child {
	margin-bottom: 0;
}

.whi-card-link {
	font-size: 13px;
}

/* =====================
   Tables
   ===================== */
.whi-table {
	width: 100%;
	border-collapse: collapse;
}

.whi-table th,
.whi-table td {
	padding: 10px;
	text-align: left;
	border-bottom: 1px solid #eee;
}

.whi-table th {
	font-weight: bold;
	background: #f9f9f9;
}

.whi-table tr:hover {
	background: #f9f9f9;
}

.whi-status {
	padding: 3px 8px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: bold;
}

.whi-status-paid,
.whi-status-publish {
	background: #d4edda;
	color: #155724;
}

.whi-status-pending,
.whi-status-pending {
	background: #fff3cd;
	color: #856404;
}

.whi-status-expired,
.whi-status-trash,
.whi-status-failed {
	background: #f8d7da;
	color: #721c24;
}

.whi-empty {
	color: #999;
	font-style: italic;
}

/* =====================
   Invoice
   ===================== */
.whi-invoice {
	max-width: 700px;
	margin: 30px auto;
	background: #fff;
	padding: 40px;
	border: 1px solid #ddd;
	border-radius: 8px;
}

.whi-invoices {
	max-width: 1000px;
	margin: 30px auto;
}

/* =====================
   Restrict Content
   ===================== */
.whi-restrict-message {
	padding: 30px;
	text-align: center;
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 8px;
	margin: 30px 0;
}

.whi-restrict-login,
.whi-restrict-upgrade,
.whi-restrict-plan {
	border-left: 4px solid #2271b1;
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 768px) {
	.whi-pricing-grid,
	.whi-dashboard-grid {
		grid-template-columns: 1fr;
	}

	.whi-invoice {
		padding: 20px;
	}
}
