/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.gift-added-msg {
    display: inline-block;
    background: #4caf50;
    color: #fff;
    padding: 6px 12px;
    margin-top: 6px;
    border-radius: 5px;
    font-size: 14px;
    animation: fadeIn 0.4s ease;
}

.gift-error-msg {
    display: inline-block;
    background: #ff4d4d;
    color: #fff;
    padding: 6px 12px;
    margin-top: 6px;
    border-radius: 5px;
    font-size: 14px;
    animation: fadeIn 0.4s ease;
}

.wps-par-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    z-index: 999999;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.wps-par-toast.wps-par-toast-hide {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
}

/* New Reduced-Variable CSS */

/* :root { */
	/* --brand-main: #8200db;   Replaces purple/pink variations */
	/* --brand-accent: #2563eb; Replaces blue variations */
/* } */

/* Original black/gray colors remain unchanged */

.wps-par_claim-wrap {
	border: 2px solid var(--brand-main);
	border-radius: 20px;
	padding: 20px;
	max-width: 800px;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 20px;
	background: linear-gradient(to right, #eff6ff, #faf5ff);
	cursor: pointer;
}

.wps-par_form {
	margin: 0 0 30px;
}

.wps-par_claim-wrap:hover {
	box-shadow: 0 2px 5px 2px rgba(0, 0, 0, 0.2);
}

.wps-par_claim-box {
	justify-content: space-between;
	align-items: center;
	display: flex;
}

.wps-par-claim-box-wrap {
	background: #ffffff;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wps-par_claim-box-text {
	align-items: center;
	display: flex;
	gap: 20px;
}

.wps-par_claim-box-reward,
.wps-par_claim-box-gift {
	color: var(--brand-main);
	width: 24px;
	height: 24px;
}

.wps-par_claim-box-content h3 {
	font-size: 16px;
	color: var(--brand-main);
	font-weight: 400;
}

.wps-par_claim-box-content p {
	color: var(--brand-main);
	font-size: 16px;
}

.wps-par-form-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 99999;
}

.wps-par_form-wrap {
	background: #ffffff;
	padding: 30px 20px;
	max-width: 530px;
	box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.2);
	border-radius: 10px;
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 99999;
	max-height: 60vh;
	overflow-y: auto;
	transform: translate(-50%, -50%);
	width: calc(100% - 30px);
}

.wps-par_form-box {
	display: flex;
	align-items: center;
	gap: 20px;
}

.wps-par_form-box-wrap {
	background: linear-gradient(to right, #eff6ff, #faf5ff);
	padding: 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

svg.wps-par-form-gift {
	color: var(--brand-main);
}

.wps-par_form-box-content h2 {
	font-size: 24px;
	font-weight: 600;
}

.wps-par_form-box-content p {
	font-size: 16px;
}

.wps-par_form-select-btn {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 20px;
	border: 2px solid #ebe6e7;
	border-radius: 20px;
	cursor: pointer;
	margin: 20px 0;
}

.wps-par_form-select-btn h4 {
	color: #101828;
	font-weight: 600;
	font-size: 16px;
}

.wps-par_form-select {
	margin-top: 20px;
}

.wps-par_form-select-btn p {
	color: #4a5565;
	font-weight: 500;
	font-size: 14px;
}

.wps-par_form-select-btn:hover {
	border-color: var(--brand-main);
	background: #fbf9fa;
}

.wps-par-form-select-one-gift,
.wps-par-form-select-two-box-wrap {
	background: #ffffff;
	height: 40px;
	width: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 10px;
}

.wps-par_form-select-btn:active {
	background: #faf5ff;
}

.wps-par-form-select-two-reward {
	color: var(--brand-main);
}

.wps-par-form-button-wrap {
	color: white;
	background: linear-gradient(to right, var(--brand-main), var(--brand-main));
	padding: 10px;
	border-radius: 5px;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin: 10px 0 0;
}

.wps-par-form-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: transparent;
	border: none;
	cursor: pointer;
}

.wps-par-form-select-two-content-span {
	color: var(--brand-main);
}

.wps-par-gift-wrapper,
.wps-par-form-button {
	flex-direction: column;
	gap: 20px;
	animation: fadeIn 0.3s ease-in;
	display: none;
}

.wps-par-gift-wrapper.active-box,
.wps-par-form-button.active-box {
	display: block;
}

.wps-par-gift-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 20px 0;
}

.wps-par-gift-count {
	background: #f1f1f1;
	padding: 4px 8px;
	font-size: 12px;
	border-radius: 6px;
	font-weight: 500;
}

.wps-par-gift-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	align-items: flex-start;
}

@media (min-width: 768px) {
	.wps-par-gift-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.wps-par-gift-card {
	background: #fff;
	border: 2px solid #eaeaea;
	border-radius: 14px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	transition: 0.3s ease;
}

.wps-par-gift-card:hover {
	border-color: var(--brand-main);
	box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.08);
	transform: translateY(-4px);
}

.wps-par-gift-card-locked:hover {
	transform: none;
	box-shadow: none;
	border-color: #eaeaea;
}

.wps-par-gift-img-box {
	position: relative;
}

.wps-par-gift-img-box img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	border-radius: 10px;
}

.wps-par-gift-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	background: var(--brand-main);
	padding: 4px 8px;
	font-size: 12px;
	border-radius: 6px;
	color: white;
}

.wps-par-gift-title {
	margin: 0;
	font-weight: normal;
	font-size: 16px;
	color: #000000;
}

.wps-par-gift-desc {
	font-size: 14px;
	color: #666;
	margin: 0;
}

.wps-par-gift-btn {
	background: linear-gradient(to right, var(--brand-main), var(--brand-accent));
	color: white;
	padding: 8px 12px;
	border-radius: 8px;
	width: 100%;
	border: none;
	cursor: pointer;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
	justify-content: center;
	transition: 0.3s;
}

.wps-par-gift-btn:hover {
	background: linear-gradient(to right, var(--brand-main), var(--brand-accent));
	transform: scale(1.03);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.wps-par-gift-btn svg {
	width: 18px;
	height: 18px;
}

.wps-par-gift-btn.wps-par-btn-loading {
	cursor: wait;
	opacity: 0.85;
	transform: none;
}

.wps-par-btn-spinner {
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #fff;
	border-radius: 50%;
	display: inline-block;
	animation: wps-par-spin 0.6s linear infinite;
}

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

.wps-par-current-points {
	font-size: 14px;
	font-weight: 600;
	color: var(--brand-main);
	margin: 6px 0 0;
}

.wps-par-available-for-gifts {
	color: #4a5565;
	font-weight: 500;
}

.wps-par-gift-header h3 {
	font-size: 18px;
	font-weight: unset;
}

.wps-par_form-select-btn.active-selected {
	border: 2px solid var(--brand-main);
	background: #faf5ff;
	box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.2);
}

.wps-par-form-button {
	border: 2px solid var(--brand-main);
	background: #faf5ff;
	padding: 20px;
	border-radius: 20px;
}

.wps-par-form-button-span {
	color: white;
	background: var(--brand-main);
	padding: 4px;
	border-radius: 5px;
}

.wps-par-form-button h3 {
	color: #101828;
	font-weight: 600;
	font-size: 16px;
	margin: 0px 0px 10px;
}

.wps-par-form-button p {
	color: #4a5565;
	font-weight: 400;
	font-size: 14px;
	margin: 10px 0;
}

.wps-par_form-select-btn::after {
	content: "";
	position: absolute;
	height: 10px;
	width: 10px;
	background: #808080;
	border-radius: 100%;
	right: 35px;
}

.wps-par_form-select-btn.active-selected::after {
	background: var(--brand-main);
}

.wps-par-gift-tier-notice {
	background: #faf5ff;
	border: 1px dashed var(--brand-main);
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 14px;
	color: #4a5565;
	margin-bottom: 16px;
}

.wps-par-gift-tier-notice strong {
	color: var(--brand-main);
}

.wps-par-claimed-gifts {
	border: 1px solid #eaeaea;
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 16px;
}

.wps-par-claimed-gifts h4 {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
	color: #101828;
}

.wps-par-claimed-gift-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 6px 0;
}

.wps-par-claimed-gift-row + .wps-par-claimed-gift-row {
	border-top: 1px solid #f1f1f1;
}

.wps-par-claimed-gift-name {
	font-size: 14px;
	color: #4a5565;
}

.wps-par-claimed-gift-qty {
	color: #9ca3af;
	margin-left: 4px;
}

.wps-par-remove-gift-btn {
	background: #fff;
	border: 1px solid #ff4d4d;
	color: #ff4d4d;
	border-radius: 6px;
	padding: 4px 10px;
	font-size: 13px;
	cursor: pointer;
	white-space: nowrap;
}

.wps-par-remove-gift-btn:hover {
	background: #ff4d4d;
	color: #fff;
}

.wps-par-remove-gift-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.wps-par-gift-card-locked {
	opacity: 0.55;
}

.wps-par-gift-card-locked .wps-par-gift-img-box img {
	filter: grayscale(1);
}

.wps-par-gift-btn-locked {
	background: #d1d5db;
	color: #4b5563;
	cursor: not-allowed;
}

.wps-par-gift-btn-locked:hover {
	background: #d1d5db;
	transform: none;
	box-shadow: none;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(5px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
