/* Container Styles */
.loyalty-program-settings-container {
background: #ffffff;
padding: 20px;
border-radius: 0 10px 10px 10px;
/* border: 1px solid #ddd; */
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
font-weight: 400;
font-size: 12px;
color: #636363;
}
h2.loyalty-title {
font-size: 18px;
font-weight: 500;
}
/* Title and Subtitle */
.loyalty-title {
font-size: 20px;
font-weight: bold;
color: #333;
margin-bottom: 10px;
}
.loyalty-subtitle {
font-size: 16px;
font-weight: 600;
color: #333;
margin-top: 20px;
margin-bottom: 10px;
}
h3.loyalty-subtitle {
font-size: 18px;
font-weight: 500;
}
/* Description Text */
.description {
font-size: 14px;
color: #666;
margin-bottom: 20px;
}
/* Form Group */
.form-group {
margin-bottom: 20px;
}
label {
font-size: 14px;
font-weight: bold;
color: #444;
display: block;
margin-bottom: 5px;
}
input[type="checkbox"] {
margin-right: 10px;
vertical-align: middle;
}
input[type="text"] {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 14px;
box-sizing: border-box;
}
.field-description {
font-size: 12px;
color: #777;
margin-top: 5px;
}
/* Table Styles */
.synced-details {
background: #fff;
margin-top: 0px;
/* border: 1px solid #ddd; */
/* border-radius: 8px; */
overflow: hidden;
padding: 0px;
}
.synced-details h3 {
margin-bottom: 20px;
font-size: 18px;
color: #333;
font-weight: 600;
}
.synced-details table {
width: 100%;
border-collapse: collapse;
margin-top: 10px;
}
.synced-details th, .synced-details td {
padding: 15px;
text-align: left;
border-bottom: 1px solid #ddd;
font-size: 14px;
}
.synced-details th {
background-color: #f9f9f9;
color: #333;
font-weight: bold;
text-align: left;
}
.synced-details td {
color: #555;
}
.synced-details tr:last-child td {
border-bottom: none;
}
/* Save Changes Button */
.save-changes {
background-color: #007BFF;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 4px;
font-size: 14px;
cursor: pointer;
display: inline-block;
transition: background-color 0.3s ease;
}
.save-changes:hover {
background-color: #0056b3;
}
/* styles.css */


label.labelcard {
cursor: pointer;
}
section.options {
margin: 30px;
}
header h1 {
font-size: 24px;
margin-bottom: 10px;
}
header p {
font-size: 14px;
color: #666;
}
.toggle-section {
margin: 20px 0;
}
.toggle {
display: flex;
align-items: center;
justify-content: space-between;
background: #f7f7f7;
padding: 10px 15px;
border: 1px solid #ddd;
border-radius: 8px;
font-size: 14px;
color: #333;
}
.toggle input {
display: none;
}
.toggle .slider {
display: inline-block;
width: 40px;
height: 20px;
background: #ccc;
border-radius: 50px;
position: relative;
margin-left: 10px;
cursor: pointer;
transition: background 0.4s;
}
.toggle input:checked + .slider {
background: #4caf50;
}
.slider::before {
content: '';
width: 14px;
height: 14px;
background: #fff;
border-radius: 50%;
position: absolute;
top: 3px;
left: 3px;
transition: transform 0.4s;
}
input:checked + .slider::before {
transform: translateX(20px);
}
.options h2 {
font-size: 18px;
margin-bottom: 10px;
}
.options p {
color: #666;
margin-bottom: 20px;
font-size: 14px;
}
.row {
display: flex;
gap: 15px;
}
.card {
flex: 1;
border: 1px solid #ddd;
border-radius: 8px;
padding: 15px;
background: #f7f7f7;
cursor: pointer;
transition: border-color 0.3s;
}
.card-inner{
cursor: pointer;
}
.card:hover {
border-color: #007bff;
}
.card.selected {
border-color: #007bff;
background: #e7f3ff;
}
.card h3 {
font-size: 16px;
margin-bottom: 10px;
}
.card ul {
padding-left: 20px;
}
.card ul li {
font-size: 14px;
display: flex;
align-items: center;
margin-bottom: 5px;
}
.green { 
color: #4caf50;
margin-right: 10px;
}
.gray {
color: #999;
margin-right: 10px;
}




#wpbody-content .container {
    padding: 40px;
}
#wpbody-content .container header h4 {font-weight: 600;}
#wpbody-content .container .toggle-section {
    border-bottom: 1px solid #000;
    margin: 0 0 10px 0;
    padding-bottom: 10px;
}
#wpbody-content .container .toggle-section label.toggle {
    background: transparent;
    border: none;
    padding: 0;
}
#wpbody-content .container section.options {
    margin: 20px 0;
}
#wpbody-content .container section.options h2 span {
    color: #fabb05;
}
#wpbody-content .container section.options h2 {
    font-weight: 600;
}
#wpbody-content .container section.options .row {
    margin: 0;
    justify-content: space-between;
    gap: 2%;
}
#wpbody-content .container section.options .row .card {max-width: 49%;width: 100%;margin: 0;padding: 0;background: transparent;}
#wpbody-content .container section.options .row .card h3 {
    padding: 15px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
    background: #bcc4d1;
}
#wpbody-content .container section.options .row .card.selected h3 {background: #727c8c;}
#wpbody-content .container section.options .row .card p, #wpbody-content .container section.options .row .card ul {
    padding: 0 15px;
    margin: 14px 0 10px;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
}
#wpbody-content .container section.options .row .card ul li {
    align-items: baseline;
    padding-left: 15px;
    position: relative;
    overflow: hidden;
}
#wpbody-content .container section.options .row .card ul li span {
    line-height: normal;
    width: 8px;
    height: 8px;
    background: #4caf50;
    text-indent: -999px;
    border-radius: 100%;
    position: absolute;
    left: 0;
    top: 5px;
}
#wpbody-content .container section.options .row .card h3 label {
    margin: 0;
    color: #fff;
}
#wpbody-content .container section.options .row .card h3 label:before {
    content: "";
    position: absolute;
    left: 15px;
    width: 15px;
    height: 15px;
    background: #fff;
    box-shadow: 0 0 2px 1px #000;
    align-items: center;
    justify-content: center;
    display: flex;
}
#wpbody-content .container section.options .row .card h3 input:checked+label:before {
    content: "\2714";
    color: #000;
}
#wpbody-content .container section.options .row .card input {
    z-index: 99;
    opacity: 0;
}

/* Refresh Button Styling */
.refresh-btn {
    background: #0073aa;
    color: #fff;
    border: 1px solid #0073aa;
    border-radius: 4px;
    padding: 6px 10px;
    margin-left: 12px;
    cursor: pointer;
    font-size: 11px;
    line-height: 1.2;
    vertical-align: middle;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 32px;
    height: 28px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.refresh-btn:hover {
    background: #005a87;
    border-color: #005a87;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

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

.refresh-btn:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.refresh-btn .dashicons {
    font-size: 20px;
    width: 45px;
    height: 19px;
    line-height: 1;
}

.refresh-btn.loading .dashicons:before {
    content: "\f463";
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Refresh Icon */
.custom-refresh-icon {
	display: inline-block;
	width: 16px;
	height: 16px;
	position: relative;
}

.custom-refresh-icon::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-radius: 50%;
	border-top-color: transparent;
	border-right-color: transparent;
	/* No animation by default */
}

.custom-refresh-icon::after {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 0;
	height: 0;
	border-left: 4px solid currentColor;
	border-top: 2px solid transparent;
	border-bottom: 2px solid transparent;
	transform: rotate(45deg);
}

@keyframes refresh-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Only spin when loading */
.refresh-btn.loading .custom-refresh-icon::before {
	animation: refresh-spin 0.8s linear infinite;
}

.refresh-btn:disabled .custom-refresh-icon::before {
	border-color: #999;
	border-top-color: transparent;
	border-right-color: transparent;
}

.refresh-btn:disabled .custom-refresh-icon::after {
	border-left-color: #999;
}

/* Refresh text styling */
.refresh-text {
	margin-left: 6px;
	font-size: 12px;
	font-weight: 500;
}

/* Loyalty Settings Success Message Styling - Small Popup */
.loyalty-settings-message {
	position: fixed;
	top: 42px;
	right: 42px;
	z-index: 999999;
	width: 300px;
	animation: slideInFromRight 0.4s ease-out;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	border-radius: 8px;
	overflow: hidden;
}

.loyalty-settings-message .notice {
	margin: 0;
	border: none;
	border-left: 4px solid #00a32a;
	background: #ffffff;
	padding: 12px 16px;
	border-radius: 8px;
}

.loyalty-settings-message .notice.notice-error {
	border-left-color: #d63638;
	background: #ffffff;
}

.loyalty-settings-message .notice.notice-error strong {
	color: #d63638;
}

.loyalty-settings-message .notice p {
	margin: 4px 0;
	color: #1e1e1e;
	font-size: 13px;
	line-height: 1.4;
}

.loyalty-settings-message .notice strong {
	color: #00a32a;
	font-weight: 600;
	font-size: 14px;
}

@keyframes slideInFromRight {
	from {
		opacity: 0;
		transform: translateX(100%);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Auto-hide animation */
.loyalty-settings-message.fade-out {
	animation: slideOutToRight 0.4s ease-out forwards;
}

@keyframes slideOutToRight {
	from {
		opacity: 1;
		transform: translateX(0);
	}
	to {
		opacity: 0;
		transform: translateX(100%);
	}
}

/* Apply Reward Button Styles */
.apply-reward-btn {
	background-color: #0073aa;
	color: white;
	border: none;
	padding: 8px 16px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.3s ease;
}

.apply-reward-btn:hover:not(:disabled) {
	transform: translateY(-1px);
}

.apply-reward-btn:disabled,
.apply-reward-btn.disabled {
	background-color: #ccc;
	color: #666;
	cursor: not-allowed;
	opacity: 0.6;
	transform: none;
}

.apply-reward-btn:disabled:hover,
.apply-reward-btn.disabled:hover {
	background-color: #ccc;
	transform: none;
}

/* Loyalty Program Endpoint Styles */
.loyalty-program {
	padding: 20px;
	background-color: #f9f9f9;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Loyalty Balance Section */
.loyalty-balance h3 {
	font-size: inherit;
	/* Inherit font size from theme */
	color: #333;
}

.loyalty-balance p {
	font-size: inherit;
	/* Inherit font size from theme */
	color: #555;
}

/* Progress Bar Section */
.loyalty-progress-section {
	margin: 5px 0;
}

.loyalty-progress-section h4 {
	font-size: inherit;
	color: #333;
	margin: 0 0 15px 0;
	font-weight: 600;
}

.progress-bar-container {
	margin: 15px 0;
}

.progress-bar {
	width: 100%;
	height: 20px;
	background-color: #e0e0e0;
	overflow: hidden;
	position: relative;
}

.progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
	transition: width 0.3s ease-in-out;
	position: relative;
}

.progress-fill::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
	animation: shimmer 2s infinite;
}

@keyframes shimmer {
	0% { transform: translateX(-100%); }
	100% { transform: translateX(100%); }
}

.progress-text {
	font-size: inherit;
	color: #555;
	margin: 10px 0 0 0;
}

/* Rewards Title Section */
.rewards-title h3 {
	font-size: inherit;
	/* Inherit font size from theme */
	color: #333;
	margin-top: 30px;
	margin-bottom: 20px;
}

/* Rewards Table */
.rewards-table table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 30px;
}

.rewards-table th,
.rewards-table td {
	padding: 12px;
	border: 1px solid #ddd;
	text-align: center;
	font-size: inherit;
	/* Inherit font size from theme */
}

.rewards-table th {
	background-color: #f2f2f2;
	color: #333;
}

.rewards-table td {
	background-color: #fff;
	color: #333;
}

.rewards-table tr:nth-child(even) {
	background-color: #f9f9f9;
}

.rewards-table td:last-child {
	font-weight: bold;
}

/* Available for Redemption Section */
.rewards-available h4 {
	font-size: inherit;
	/* Inherit font size from theme */
	color: #333;
	margin-top: 30px;
}

.rewards-available p {
	font-size: inherit;
	/* Inherit font size from theme */
	color: #555;
}

/* Just Out of Reach Section */
.rewards-out-of-reach h4 {
	font-size: inherit;
	/* Inherit font size from theme */
	color: #333;
	margin-top: 30px;
}

.rewards-out-of-reach ul {
	list-style-type: none;
	padding-left: 0;
}

.rewards-out-of-reach li {
	font-size: inherit;
	/* Inherit font size from theme */
	color: #555;
}

/* Apply Reward and Remove Reward Button Loading and Success States */
.apply-reward-btn.loading,
#blocks-remove-loyalty-reward.loading {
	opacity: 0.7;
	cursor: not-allowed;
	position: relative;
}

.apply-reward-btn.loading .spinner,
#blocks-remove-loyalty-reward.loading .spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-right: 8px;
	vertical-align: middle;
}

.apply-reward-btn.success,
#blocks-remove-loyalty-reward.success {
	background-color: #46b450 !important;
	border-color: #46b450 !important;
	color: #fff !important;
	opacity: 1;
}

.apply-reward-btn.success:hover,
#blocks-remove-loyalty-reward.success:hover {
	background-color: #3a9e42 !important;
	border-color: #3a9e42 !important;
}

/* Remove Reward Button specific styles */
#blocks-remove-loyalty-reward {
	background-color: #dc3232;
	border-color: #dc3232;
	color: #fff;
	padding: 8px 16px;
	border-radius: 3px;
	cursor: pointer;
	transition: all 0.3s ease;
}

#blocks-remove-loyalty-reward:hover {
	background-color: #111111;
	border-color: #111111;
}

#blocks-remove-loyalty-reward:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Loyalty Enrollment Message */
.loyalty-enrollment-message {
	text-align: center;
	padding: 40px 20px;
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	margin: 20px 0;
}

.loyalty-enrollment-message h3 {
	color: #333;
	margin-bottom: 15px;
	font-size: 1.5em;
}

.loyalty-enrollment-message p {
	color: #666;
	font-size: 1.1em;
	line-height: 1.6;
	margin: 0;
}

/* Responsive Design for Enrollment Message */
@media (max-width: 768px) {
	.loyalty-enrollment-message {
		padding: 30px 15px;
	}
	
	.loyalty-enrollment-message h3 {
		font-size: 1.3em;
	}
	
	.loyalty-enrollment-message p {
		font-size: 1em;
	}
}

/* WordPress spinner animation */
.spinner.is-active {
	animation: spin 1s linear infinite;
}

/* Refresh Button Styles */
.refresh-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 12px;
	border: 1px solid #0073aa;
	background: #0073aa;
	color: #fff;
	border-radius: 3px;
	cursor: pointer;
	font-size: 13px;
	transition: all 0.3s ease;
	margin-left: 10px;
	min-width: 80px;
}

.refresh-btn:hover {
	background: #005a87;
	border-color: #005a87;
}

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

.refresh-btn .custom-refresh-icon {
	width: 16px;
	height: 16px;
	background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"/></svg>') no-repeat center;
	background-size: contain;
	animation: spin 1s linear infinite;
}

.refresh-btn.loading .refresh-text {
	display: none;
}

.refresh-btn.loading .custom-refresh-icon {
	display: block !important;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}
