/**
 * StrongWomanCrushing.com - Animated CTA Component
 * 
 * A lightweight, customizable CTA component that can be embedded in any page
 * Features:
 * - Animated background with subtle zoom effect
 * - Responsive design for all screen sizes
 * - Customizable text, colors, and background
 * - Lightweight CSS animations for performance
 * - Easy integration with any theme
 */

/* ===== COMPONENT CSS ===== */
.swc-cta-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--swc-border-radius, 4px);
    margin: 20px 0;
}

/* Background Image and Animation */
.swc-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform-origin: center;
    animation: swc-subtle-zoom 30s infinite alternate ease-in-out;
    z-index: 1;
}

/* Overlay for better text readability */
.swc-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        var(--swc-overlay-start, rgba(0,0,0,0.7)) 0%, 
        var(--swc-overlay-end, rgba(0,0,0,0.5)) 100%);
    z-index: 2;
}

/* Content Container */
.swc-cta-content {
    position: relative;
    padding: var(--swc-container-padding, 40px 20px);
    text-align: center;
    z-index: 3;
    animation: swc-fade-in 1s ease-out;
}

/* Typography */
.swc-cta-title {
    font-size: var(--swc-title-size, 28px);
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--swc-text-color, #FFFFFF);
    animation: swc-slide-up 0.8s ease-out;
}

.swc-cta-subtitle {
    font-size: var(--swc-subtitle-size, 22px);
    margin-bottom: 20px;
    color: var(--swc-text-color, #FFFFFF);
    animation: swc-slide-up 0.8s ease-out 0.1s backwards;
}

.swc-cta-description {
    font-size: var(--swc-description-size, 16px);
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--swc-text-color, #FFFFFF);
    animation: swc-slide-up 0.8s ease-out 0.2s backwards;
}

/* CTA Button */
.swc-cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--swc-primary-color, #FF6600);
    color: var(--swc-button-text-color, #FFFFFF);
    text-decoration: none;
    font-weight: bold;
    border-radius: var(--swc-border-radius, 4px);
    transition: background-color 0.3s, transform 0.3s;
    animation: swc-pulse 2s infinite, swc-slide-up 0.8s ease-out 0.3s backwards;
}

.swc-animation-pulse {
	animation: swc-pulse 2s infinite, swc-slide-up 0.8s ease-out 0.3s backwards;
}

.swc-cta-button:hover {
    background-color: var(--swc-primary-hover-color, #FF8533);
    transform: translateY(-3px);
    animation: none;
}

/* if there is no bg image adds border */
.no-bg-image {
    border-width: medium;
    border-style: solid;
    border-color: #ff6900;
}


/* Animations */
@keyframes swc-subtle-zoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

@keyframes swc-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes swc-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes swc-pulse {
  0% { transform: scale(1);}
  50% { transform: scale(1.05);}
  100% { transform: scale(1);}
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .swc-cta-title {
        font-size: var(--swc-mobile-title-size, 24px);
    }
    
    .swc-cta-subtitle {
        font-size: var(--swc-mobile-subtitle-size, 18px);
    }
    
    .swc-cta-description {
        font-size: var(--swc-mobile-description-size, 14px);
    }
}

/* Optional: Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .swc-cta-bg,
    .swc-cta-content,
    .swc-cta-title,
    .swc-cta-subtitle,
    .swc-cta-description,
    .swc-cta-button {
        animation: none;
    }
}

.membership-swiper-wrapper {
	position: relative;
	padding: 20px 0;
}
.membership-swiper {
	padding-bottom: 30px;
}
.membership-swiper .swiper-wrapper {
	display: flex;

}
@media (min-width: 1355px) {
	.membership-swiper .swiper-wrapper {
		justify-content: center;
	}
}

.popular-plan {
	border: 2px solid #ff6900;
}
.premium-plan {
	border: 2px solid #ffe200;
}
.popular-badge {
	position: absolute;
	top: -2px;
	left: -2px;
	background: #ff6900;
	color: #000;
	padding: 3px 8px;
	font-size: 12px;
	font-weight: bold;
	border-radius: 4px;
	z-index: 10;
}
.premium-badge {
	position: absolute;
	top: -2px;
	left: -2px;
	background: #ffe200;
	color: #000;
	padding: 3px 8px;
	font-size: 12px;
	font-weight: bold;
	border-radius: 4px;
	z-index: 10;
}
.membership-title {
	font-size: 18px;
	font-weight: bold;
	color: #fff;
	margin-bottom: 10px;
	margin-top: 20px;
}
.membership-description {
	font-size: 14px;
	color: #ccc;
	margin-bottom: 20px;
}
.membership-product {
	margin-top: auto;
	flex-direction: column;
}
.membership-product .button {
	background-color: #28a745;
	color: white;
	border: none;
	padding: 12px 18px;
	border-radius: 6px;
	text-transform: uppercase;
	font-weight: bold;
	cursor: pointer;
	text-align: center;
	display: inline-block;
	text-decoration: none;
	font-size: 16px;
	transition: background 0.3s ease;
}
.membership-product .button:hover {
	background-color: #218838;
}
.view-product-link {
	display: inline-block;
	margin-top: 10px;
	color: #fff;
	text-decoration: underline;
	font-size: 13px;
}
.membership-swiper-prev,
.membership-swiper-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background-color: #ff6900;
	color: #fff;
	padding: 8px 12px;
	cursor: pointer;
	border-radius: 4px;
	font-size: 24px;
	z-index: 10;
}
.membership-swiper-prev {
	left: -10px;
}
.membership-swiper-next {
	right: -10px;
}
.view-product-link {
	display: inline-block !important;
	margin-top: 10px;
	color: #fff;
	text-decoration: underline;
	font-size: 13px;
	width: unset !important;
	height: unset !important;
	position: relative !important;
}

.membership-product .woocommerce ul.products li.product .button {
	margin-left: auto;
	margin-right: auto;
	/*width: unset !important;
	height: unset !important;*/
	position: relative !important;
}
.membership-product .woocommerce-LoopProduct-link.woocommerce-loop-product__link {
	display: block;
	/*width: unset !important;
	height: unset !important;*/
	position: relative !important;
}
.membership-message {
	text-align: center;
	margin: 10px 0;
	padding: clamp(5px, 10px, 20px) clamp(5px, 10px, 20px);
	/*background: linear-gradient(rgba(0, 0, 0, .8), rgba(0, 0, 0, .8)), url(https://www.strongwomancrushing.com/wp-content/uploads/2021/07/princ_TO_Faircart_Smashed_001.jpg) top / cover no-repeat;*/
	background: #ff6900;
	color: #000;
	background: linear-gradient(to bottom, #FF6A00, #E84E0F);
}

.membership-message-wrapper {
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.membership-message-wrapper * {
  font-size: clamp(1rem, 4vw, 20px);
}

.membership-swiper-wrapper * {
  font-size-adjust: 0.5;
}

.membership-swiper-slide {
    width: calc(100% - 82px) !important;
    flex-shrink: 0;
    margin-right: 5px;
    margin-left: 5px;
    background-color: var(--swc-u-card);
    padding: 20px;
    border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, .06);
    display: flex !important;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 300px;
    /* border: 1px solid #444; */
    position: relative;
    height: 480px;
    max-width: 266px;
    height: auto !important;
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
}

.membership-benefits {
	list-style: none;
	padding: 0;
	margin: 0 0 15px 0;
}

.benefit-item {
    color: #4ade80; /* green */
    font-weight: 500;
}
.limitation-item {
    color: #f87171; /* red */
    font-weight: 500;
}

.benefit-item::before {
  content: "✓";
  color: #22c55e; /* green */
  margin-right: 0.5em;
}

.limitation-item::before {
  content: "✗" !important; /* or use "\2717" */
  color: #ef4444 !important; /* red */
  margin-right: 0.5em;
}

.membership-benefits li {
	color: #fff;
	font-size: 14px;
	margin-bottom: 6px;
	position: relative;
	padding-left: 20px;
}
/*
.membership-benefits li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: #00e676;
	font-weight: bold;
}
*/


.woocommerce ul.products li.product .price, .woocommerce div.product p.price {
	color: #ff6900;
	font-size: 1.2rem;
}
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .wc-block-components-button {
	background-color: #ff6900;
	border-radius: 30px;
}
.trust-badges {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px; /* Adjust gap as needed */
	margin-top: 20px; /* Add some space above */
	padding: 0 15px; /* Add padding for smaller screens */
}
.trust-badges .badge {
	display: flex;
	align-items: center;
	gap: 8px; /* Space between icon and text */
	font-size: 14px; /* Adjust font size */
	color: #ccc; /* Adjust color */
}
.trust-badges .badge svg {
	width: 18px; /* Adjust icon size */
	height: 18px;
	stroke: #ccc; /* Adjust icon color */
}
.policy-links {
	text-align: center;
	margin-top: 15px; /* Space above the links */
	margin-bottom: 10px; /* Space below the links */
}
.policy-links a {
	font-size: 13px;
	color: #aaa;
	text-decoration: none;
	margin: 0 5px; /* Space around the links/separator */
}
.policy-links a:hover {
	text-decoration: underline;
	color: #fff; /* Optional: change color on hover */
}

@media (max-width: 768px) {
	.membership-swiper-wrapper * {
  		font-size-adjust: unset;
	}
}

.price {
  color: #fff !important;
}

bdi {
  color: #ff6900;
  font-size: clamp(1.5rem,1.2vh,1.8rem);
}

del {
    font-size: clamp(1.5rem, 1.2vh, 1.8rem);
}

del bdi {
  color: #823202;
}

.woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .wc-block-components-button:hover {
    color: #ff6900;
    background-color: rgba(255, 106, 0, 0);
    border-style: solid;
    border-width: 2px;
    border-color: #ff6900;
}

.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .wc-block-components-button {
    border-style: solid;
    border-width: 2px;
    border-color: #ff6900;
}

button, html input[type="button"], input[type="reset"], input[type="submit"], a.button, a.wp-block-button__link:not(.has-background) {
    color: #ffffff;
    background-color: #ff6900;
    border-style: solid;
    border-width: 2px;
    border-color: #ff6900;
}

button:hover, html input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover, a.button:hover, button:focus, html input[type="button"]:focus, input[type="reset"]:focus, input[type="submit"]:focus, a.button:focus, a.wp-block-button__link:not(.has-background):active, a.wp-block-button__link:not(.has-background):focus, a.wp-block-button__link:not(.has-background):hover {
    color: #ffffff;
    background-color: rgba(255, 106, 0, 0);
}

.membership-product {
    display: flex;
    align-items: center;
    flex-direction: column;
}
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid #ff6900;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}


a.custom-cta-button {
    color: #fff;
    background-color: #ff6900;
    padding: 10px 16px;
    border-radius: 6px;
    margin: 5px;
    display: inline-block;
    font-weight: bold;
    border-style: solid;
    border-width: 1px;
    border-color: #ff6900;
    transition: all 0.3s ease;
}

a.custom-cta-button:hover {
    background-color: rgb(0 0 0 / 0%) !important;
}

.cta-buttons-wrapper {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    position: relative;
    bottom: 80px;
}

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