/* 
 * Button styling 
 **/
.buy-widget-button {					
    padding: 12px 20px;
    background-color: #61ce70; 
    color: white;
    font-weight: bold;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;			
    transition: background-color 0.3s ease, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}	

.buy-widget-button svg {
    fill: white;
}

.buy-widget-button:not(.disabled):hover {			
    transform: scale(1.1);
}

.buy-widget-button:hover , .buy-widget-button.disabled:hover { 
    color: white !important
}

.buy-widget-button.disabled {
    background-color: #666; 
    cursor: not-allowed;
}	

.selected_price {
    color: #61ce70;
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 0px;
}
.selected_price > span {
    font-size: 50%;
    font-weight: 400;
}

.price_subtext {
    font-size: 12px;
    text-align: center;
    margin-top: 0px;
    margin-bottom: 20px;
}






/**
 * Start pricing options
 **/
 .gotr_hidden {
    display: none !important;
}
/* Hide the radio buttons */
.gotr-plugin-option {
    position: absolute;
    left: -9999px;
    visibility: hidden;
}

/* Basic styling for the option wrappers */
.gotr-plugin-option-wrap {
    margin-bottom: 20px;
}




.no_margin {
    margin-bottom: 0 !important;
}

/* Pseudo radio button */
.gotr-plugin-option-wrap label::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 2px solid #ddd;
    background-color: transparent;
    border-radius: 50%;
}

/* change the alignment for the all access page */
.edd-buy-widget.all-access .gotr-plugin-option-wrap label::before {
    top: 30px !important;
}

/* Checked state for pseudo radio button */
.gotr-plugin-option:checked + label::before {
    background-color: #61ce70;
    border-color: #61ce70;
    box-shadow: 0 0 0 4px #444, 0 0 0 5px #61ce70;
}

/* Add a checkmark using the ::after pseudo-element */
.gotr-plugin-option:checked + label::after {
    content: "";
    position: absolute;
    left: 21px;
    top: 45%;
    transform: translateY(-45%) rotate(45deg);
    width: 10px;
    height: 15px;
    border: solid white;
    border-width: 0 3px 3px 0;
    background-color: transparent;
}

/* change the alignment for the all access page */
.edd-buy-widget.all-access .gotr-plugin-option-wrap label::after {
    top: 27px !important;
}

.gotr-plugin-option-wrap label {
    display: flex;
    padding: 15px 25px;
    padding-left: 50px;				
    border-top-width: 7px;
    border-left-width: 0;
    border-right-width: 0;
    border-bottom-width: 0;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border-style: solid;
    border-color: #7e7e7e;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.15s ease;				
    width: 100%;
    background-color: #3D3D3D;
    color: #ddd;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* change the alignment for the all access page */
.edd-buy-widget.all-access .gotr-plugin-option-wrap label {
    align-items: flex-start !important;
}

/* Hover effect for dark theme */
.gotr-plugin-option-wrap:hover label {
    border-color: #61ce70;
    transform: scale(1.01);
}

/* Selected/focus effect: When the associated radio button is selected, the label will change styles */
.gotr-plugin-option:checked + label {			
    color: #fff;
    border-color: #61ce70;
    transform: scale(1.01);
}

/* Focus effect: Useful for keyboard navigation */
.gotr-plugin-option-wrap label:focus-within {
    box-shadow: 0 0 5px rgba(81, 203, 238, 1);
}		

.gotr-plugin-option-wrap label .option-label.flex {
    display: flex;
    flex-direction: column;
}
.gotr-plugin-option-wrap label .option-label .label {
    font-weight: bold;
    font-size: 20px;
    color: white;
}
.gotr-plugin-option-wrap label .option-label .subtext {
    font-style: italic;
    font-size: 16px;
}

.gotr-plugin-option-wrap label .option-price {
    font-size: 32px;
    font-weight: bold;
    color: white;
    min-width: 100px;
    text-align: right;
}

.gotr-plugin-option-wrap label .option-price .price {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.gotr-plugin-option-wrap label .option-price .price > span:not(.gotr_old_price) {
    font-size: 14px;
    font-weight: 400;
}

.gotr_old_price {
	font-size: 18px;
	position: relative;
	margin-right: 10px;
}

.gotr_old_price:before {
	content: "";
  	width: 110%;
  	height: 4px;
  	background-color: red;
  	display: block;
  	position: absolute;
  	top: calc( 50% - 2px );
	left: -5%;
  	rotate: 165deg;
}

.gotr-plugin-option-wrap label span.save {
    background-color: #FFD700;
    color: #313131;
    padding: 7px 7px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 5px;
    border: 1px solid #FFD700;
    text-align: center;
    margin-bottom: 20px;
    display: inline-block;
    line-height: 1;
}

h4.bundle-save {
    margin-top: 15px;
    margin-bottom: 5px;
    text-transform: uppercase !important;			
}

.subplugin {
    color: white;
    font-size: 17px
}

.subplugin a {
    color: #61ce70;
    font-size: 17px;
}
.subplugin a:hover {
    color: #61ce70;
    font-size: 17px;
    text-decoration: underline;
}
.currency {
    font-size: 12px;
}

@media only screen and (max-width: 768px) {
    .gotr-plugin-option-wrap label { 
        display: block !important;
    }
    
    .gotr-plugin-option-wrap label .option-price .price {
        justify-content: flex-start;
    }
}



/* The switch container */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    vertical-align: middle; /* For vertical alignment with labels */
}

/* Hide the default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider (background) */
.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #61ce70;
    transition: .4s;
    border-radius: 34px;
    cursor: pointer;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

/* When the input is checked, modify the slider's background */
input:checked + .slider {
    background-color: #61ce70;
}

/* Move the slider to the right when checked */
input:checked + .slider:before {
    transform: translateX(26px);
}

/* Labels */
.label-text {
    font-size: 20px;    
    font-weight: bold;
    vertical-align: middle; /* For vertical alignment with the switch */
    cursor: pointer;
    color: white;
}

/* Centering with Flexbox */
.gotr-pricing-toggle {
    display: flex;
    justify-content: center; /* Horizontal centering */
    align-items: center; /* Vertical centering */
    gap: 10px;
    margin-bottom: 20px;
}

.gotr-buy-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3); /* semi-transparent white border */
    border-radius: 50%;
    border-top: 4px solid white; /* white for the spinning section */
    width: 24px; /* adjusted size to better fit the button */
    height: 24px;
    animation: spin 1s linear infinite;
    display: none; /* Hidden by default */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}