/*product page price and button add to cart*/
.wcpa-total-price {
    font-size: 1.5rem; 
    color: #00ff88;
}
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price, .woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price {
    color: #958e09;
    font-size: 1.25em;
    display: none;
}
.wcpa_form_outer .wcpa_form_item .select_arrow {
    display: none !important;
}

/*woocommerce fileds no need to update it!! */
.woocommerce form .form-row label {
    line-height: 1.5;
}

.woocommerce #payment #place_order, .woocommerce-page #payment #place_order {
    float: left !important;
}
.woocommerce-privacy-policy-text p{
	color:#fff !important;
}

.woocommerce-terms-and-conditions-checkbox-text, .hostinger-reach-optin__checkbox-text{
	color:#fff !important;
}

.woocommerce-billing-fields h3{
	color:#fff !important;
	font-size: 1.5rem !important;
    line-height: 1.4 !important;
}

.woocommerce form .form-row .required {
    color: red !important;
    font-weight: 700 !important;
    margin: 0 1px 3px -5px !important;
}

.woocommerce .return-to-shop .button:hover{
    background: linear-gradient(to bottom, #0C4F81, #158DE7) !important;
    border-bottom: 2px solid #35A8FF !important;
    color:#ffffff !important;
    border-radius: 10px !important;
}

.woocommerce-page .woocommerce-message .button{
    background: linear-gradient(to bottom, #8b46ff, #5a19e6) !important;
    border-bottom: 2px solid #3B3C45 !important;
    color:#ffffff !important;
    border-radius: 10px !important;
}

.woocommerce-page .woocommerce-message .button:hover{
    background: linear-gradient(to bottom, #a066ff, #6b2cff) !important;
    border-bottom: 2px solid #35A8FF !important;
    color:#ffffff !important;
    border-radius: 10px !important;
}

.woocommerce .return-to-shop .button{
    background: linear-gradient(to bottom, #8b46ff, #5a19e6) !important;
    border-bottom: 2px solid #3B3C45 !important;
    color:#ffffff !important;
    border-radius: 10px !important;
}

.woocommerce .return-to-shop .button:hover{
    background: linear-gradient(to bottom, #a066ff, #6b2cff) !important;
    border-bottom: 2px solid #35A8FF !important;
    color:#ffffff !important;
    border-radius: 10px !important;
}

.woocommerce-message {
    padding: 1em 2em 1em 3.5em !important;
    margin: 0 0 2em !important;
    position: relative !important;
    background-color: #24085a !important;
    color: #fff !important;
    list-style: none outside !important;
    width: auto !important;
    word-wrap: break-word !important;
}

/* === COMPACT PAYMENT METHODS WITH RAINBOW EFFECT === */

/* Reset all WooCommerce payment styles */
.woocommerce-checkout #payment {
    background: rgba(129, 110, 153, .14) !important;
    border-radius: 12px !important;
}

.woocommerce-checkout-payment #payment {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}


.woocommerce-checkout-payment #payment ul.wc_payment_methods {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns */
    grid-column: 1 / span 2 !important;
    gap: 12px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    width: 100% !important;
}

/* Make sure payment methods are visible */
.woocommerce-checkout-payment #payment ul.wc_payment_methods li.wc_payment_method {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    margin: 5px 0 !important;
    padding: 0 !important;
    list-style: none !important;
    min-height: auto !important;
}


/* Mobile responsive */
@media (max-width: 768px) {
    .woocommerce-checkout-payment #payment ul.wc_payment_methods {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
}

/* ================================================= */
/* 2. AESTHETIC FIXES (UIKIT DIMENSIONS & COLORS)    */
/* ================================================= */

.woocommerce-checkout input.uk-input,
.woocommerce-checkout select.uk-select,
.woocommerce-checkout textarea.uk-textarea,
.woocommerce-checkout .input-text.uk-input {
    height: 55px !important;
    border-radius: 12px !important;
    font-size: 16px;
    padding: 0 12px !important;

    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;

    width: 100%;
    box-shadow: none !important;
    transition: all 0.2s ease-in-out;
}

.woocommerce-checkout textarea.uk-textarea {
    height: auto !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.woocommerce-checkout input.uk-input:focus,
.woocommerce-checkout select.uk-select:focus,
.woocommerce-checkout textarea.uk-textarea:focus {
    border-color: #1e87f0 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 0 1px #1e87f0 !important;
    outline: none !important;
}

.woocommerce-checkout label.uk-form-label {
    color: #fff !important;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

/* ================================================= */
/* PAYMENT CARDS                                     */
/* ================================================= */

.payment-radio-card {
    position: relative;
    display: flex !important;
    align-items: center !important;

    width: 100% !important;
    min-height: 60px !important;

    padding: 12px 16px !important;
    margin: 5px 0 !important;

    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;

    cursor: pointer;
    overflow: hidden;
    box-sizing: border-box !important;
    transition: all 0.3s ease;
}

.payment-radio-card:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-1px);
}

/* Hide default radio button */
.payment-radio-card input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

/* Selected state */
.payment-radio-card.selected {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Thin animated rainbow border */
.payment-radio-card.selected::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1.5px;

    background: linear-gradient(90deg, #ff00ff, #00ffff, #ffff00, #00ff00, #ff00ff);
    background-size: 200% 100%;

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    animation: geminiBorderFlow 2.5s linear infinite;
    z-index: 1;
}

/* Glow */
.payment-radio-card.selected::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;

    background: linear-gradient(
        90deg,
        rgba(255, 0, 255, 0.12),
        rgba(0, 255, 255, 0.12),
        rgba(255, 255, 0, 0.12),
        rgba(0, 255, 0, 0.12),
        rgba(255, 0, 255, 0.12)
    );
    background-size: 200% 100%;

    filter: blur(6px);
    opacity: 0.6;
    animation: geminiGlowFlow 2.5s linear infinite;
    z-index: 0;
}

/* Animations */
@keyframes geminiBorderFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes geminiGlowFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ================================================= */
/* INNER CONTENT - RADIO LEFT, TEXT CENTER, LOGO RIGHT */
/* ================================================= */

.payment-radio-box {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 12px;
}

.payment-radio-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex: 1;
    position: relative;
    z-index: 2;
}

/* Custom radio circle - LEFT */
.payment-radio-circle {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
    z-index: 3;
}

.payment-radio-card.selected .payment-radio-circle {
    background: #00ff88;
    border-color: #00ff88;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

/* Dot */
.payment-radio-card.selected .payment-radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Title - CENTER */
.payment-radio-title {
    font-weight: 500;
    font-size: 15px !important;
    color: #fff;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 !important;
    text-align: center !important;
    white-space: nowrap;
    z-index: 2;
}

/* Icons - RIGHT */
.payment-icons {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-shrink: 0 !important;
    gap: 4px;
    margin-left: auto;
    z-index: 2;
}

.payment-icons img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    filter: brightness(0.95);
    display: inline-block;
    margin: 0 !important;
    padding: 0 !important;
}

/* Multiple card icons */
.payment-icons img + img {
    margin-left: 4px !important;
}

/* Fix for specific payment methods */
.payment_method_paypal .payment-icons img {
    max-height: 26px !important;
}

.payment_method_apple_pay .payment-icons img {
    max-height: 26px !important;
}

.payment_method_ppcp .payment-icons img,
.payment_method_stripe .payment-icons img,
.payment_method_square .payment-icons img {
    max-height: 22px !important;
}

/* Credit cards - smaller icons */
.payment_method_ppcp_gateway_braintree_credit_card .payment-icons img,
.payment_method_stripe_cc .payment-icons img {
    max-height: 18px !important;
    max-width: 35px !important;
}

/* Google Pay */
.payment_method_google_pay .payment-icons img {
    max-height: 24px !important;
}

/* Extra payment box */
.payment-radio-extra {
    grid-column: 1 / -1;
    margin-top: 10px;
    padding: 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    display: block !important;
    z-index: 1;
}

/* WooCommerce cleanup */
.woocommerce-checkout-payment .wc_payment_method > label:first-child {
    display: none !important;
}

.woocommerce-checkout-payment .wc_payment_method,
.woocommerce-checkout-payment .payment_box {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 10px 0 !important;
}

/* Make boxes visible */
.payment_method_paypal .payment_box,
.payment_method_stripe .payment_box,
.payment_method_ppcp .payment_box,
.payment_method_square .payment_box {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ========== RESPONSIVE BREAKPOINTS ========== */

/* Tablet & Small Desktop */
@media (max-width: 992px) {
    .payment-radio-title {
        font-size: 14px !important;
    }
    
    .payment-icons {
        max-width: 130px; /* Slightly reduced but still big */
    }
    
    /* Slightly bigger on tablet */
    .payment_method_paypal .payment-icons img,
    .payment_method_apple_pay .payment-icons img {
        max-height: 28px !important;
    }
    
    .payment_method_google_pay .payment-icons img {
        max-height: 26px !important;
    }
}

/* Mobile - Landscape & Large Phones - LOGOS BIGGER HERE */
@media (max-width: 768px) {
    .payment-radio-box {
        gap: 8px;
        min-height: 38px; /* Increased for bigger logos */
    }
    
    .payment-radio-title {
        font-size: 13px !important;
        position: static;
        transform: none;
        left: auto;
        text-align: left;
        margin-left: 8px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        min-width: 0;
    }
    
    .payment-radio-content {
        display: grid !important;
        grid-template-columns: auto 1fr auto;
        gap: 10px; /* Increased gap */
        width: 100%;
        align-items: center;
    }
    
    /* LOGOS BIGGER ON MOBILE - RIGHT SIDE */
    .payment-icons {
        max-width: 120px !important; /* Increased width */
        margin-left: 0;
        gap: 8px; /* More spacing between logos */
        justify-self: end; /* Ensure alignment to right */
    }
    
    .payment-icons img {
        max-height: 32px !important; /* Bigger logos */
        max-width: 49px !important; /* Bigger logos */
    }
    
    /* Specific BIGGER logos for mobile */
    .payment_method_paypal .payment-icons img,
    .payment_method_apple_pay .payment-icons img {
        max-height: 36px !important; /* Even bigger */
        max-width: 59px !important;
    }
    
    .payment_method_ppcp .payment-icons img,
    .payment_method_stripe .payment-icons img,
    .payment_method_square .payment-icons img {
        max-height: 35px !important; /* Even bigger */
        max-width: 55px !important;
    }
    
    .payment_method_ppcp_gateway_braintree_credit_card .payment-icons img,
    .payment_method_stripe_cc .payment-icons img {
        max-height: 30px !important; /* Even bigger */
        max-width: 54px !important;
    }
    
    .payment_method_google_pay .payment-icons img {
        max-height: 33px !important; /* Even bigger */
        max-width: 58px !important;
    }
}

/* Small Mobile - Portrait - STILL BIG LOGOS */
@media (max-width: 480px) {
    .payment-radio-box {
        gap: 6px;
        min-height: 34px;
    }
    
    .payment-radio-title {
        font-size: 12px !important;
        margin-left: 6px !important;
        max-width: 120px; /* Limit text to make room for logos */
    }
    
    .payment-radio-circle {
        width: 14px;
        height: 14px;
    }
    
    .payment-radio-card.selected .payment-radio-circle::after {
        width: 6px;
        height: 6px;
    }
    
    /* KEEP LOGOS BIG on small mobile */
    .payment-icons {
        max-width: 110px !important;
        gap: 6px;
    }
    
    .payment-icons img {
        max-height: 30px !important; /* Still big */
        max-width: 46px !important; /* Still big */
    }
    
    /* Keep big logos for specific methods */
    .payment_method_paypal .payment-icons img,
    .payment_method_apple_pay .payment-icons img {
        max-height: 30px !important;
        max-width: 50px !important;
    }
    
    .payment_method_google_pay .payment-icons img {
        max-height: 30px !important;
        max-width: 52px !important;
    }
    
    .payment-radio-extra {
        padding: 12px;
        font-size: 13px;
    }
}

/* Very Small Screens - Adjust but keep logos visible */
@media (max-width: 360px) {
    .payment-radio-title {
        font-size: 11px !important;
        max-width: 100px; /* Even more room for logos */
    }
    
    .payment-icons {
        max-width: 100px !important;
        gap: 4px;
    }
    
    /* Slightly smaller but still good size */
    .payment-icons img {
        max-height: 30px !important;
        max-width: 44px !important;
    }
    
    .payment_method_paypal .payment-icons img,
    .payment_method_apple_pay .payment-icons img {
        max-height: 30px !important;
        max-width: 46px !important;
    }
    
    .payment-radio-extra {
        padding: 10px;
        font-size: 12px;
    }
}

/* Special adjustment for landscape mode */
@media (max-width: 768px) and (orientation: landscape) {
    .payment-icons {
        max-width: 140px !important; /* Even wider in landscape */
    }
    
    .payment-icons img {
        max-height: 35px !important;
        max-width: 55px !important;
    }
}

/* Fix for long payment method names - give more room for logos */
@media (max-width: 640px) {
    .payment-radio-title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 130px; /* Reduced to make more room for logos */
    }
}

/* Ensure payment boxes stack properly on mobile */
@media (max-width: 768px) {
    .woocommerce-checkout-payment .wc_payment_method {
        margin: 8px 0 !important;
    }
    
    .payment-radio-extra {
        margin-top: 8px;
    }
    
    /* Force logos to stay on the right */
    .payment-radio-content {
        grid-template-areas: "radio title icons";
        grid-template-columns: auto 1fr auto;
    }
    
    .payment-radio-circle {
        grid-area: radio;
    }
    
    .payment-radio-title {
        grid-area: title;
    }
    
    .payment-icons {
        grid-area: icons;
        justify-self: end !important;
    }
}

/* WooCommerce Order Success Message */
.woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received {
    /* Background and Colors */
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    
    /* Typography */
    font-size: 1.3em;
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
    
    /* Spacing with icon space */
    padding: 25px 30px 25px 90px;
    margin: 0 0 30px 0;
    
    /* Borders and Effects */
    border-radius: 12px;
    border-left: 6px solid #388E3C;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
    
    /* Positioning */
    position: relative;
    overflow: hidden;
    
    /* Animation */
    animation: slideIn 0.6s ease-out;
    
    /* Center content vertically */
    display: flex;
    align-items: center;
    min-height: 70px;
}

/* Checkmark Icon */
.woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received:before {
    content: '✓';
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #4CAF50;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
    
    /* Animation */
    animation: 
        checkmarkDraw 0.5s ease-out 0.3s backwards,
        checkmarkPulse 2s infinite 1s;
}

/* Animation Keyframes */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes checkmarkDraw {
    0% {
        transform: translateY(-50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translateY(-50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
}

@keyframes checkmarkPulse {
    0%, 100% {
        box-shadow: 
            0 3px 10px rgba(0, 0, 0, 0.2),
            0 0 0 0 rgba(76, 175, 80, 0);
    }
    50% {
        box-shadow: 
            0 3px 15px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(76, 175, 80, 0.3);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received {
        padding: 20px 25px 20px 75px;
        font-size: 1.1em;
        min-height: 60px;
    }
    
    .woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received:before {
        left: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.5em;
    }
}