/* 
 * Custom styles for Public Style.
 *
 * For additional information on potential customization options,
 * read the developers' documentation:
 *
 * @package yourpropfirm
 */
/*Yourpropfirm Global*/
.yourpropfirm-checkout {
    abbr[title] {
        text-decoration: unset;
    }
}

/* Checkout Notice*/
.checkout-content .woocommerce .woocommerce-error, 
.checkout-content .woocommerce .woocommerce-info, 
.checkout-content .woocommerce .woocommerce-message {
    padding: 1em 2em 1em 3.5em!important;
}

/* Add your custom CSS here */
.yourpropfirm_mt_version abbr[title] {
    text-decoration: none!important;
}
.yourpropfirm_mt_version_field_radio_wrapper{
	margin-left: 3px;
}
.ypf_mt_version_radio_option {
    display: flex; 
    flex-wrap: wrap; 
    gap: 15px; 
    align-items: center;
    padding: 0px;
    margin: 10px 0px 0px 0px;
}
.ypf_mt_version_radio_option .field-group {
    display: flex; 
    align-items: center; 
    gap: 10px;
    width: 45%;
    padding: 10px 0px;
}

.yourpropfirm-column .card{
    background-color: transparent;
    border-color: transparent;
}

.yourpropfirm-checkout-style-2 .card{
    background-color: transparent;
    border-color: transparent;
}

/* Image styling with a consistent size */
.ypf_mt_version_radio_option .field-group img {
    margin-right: 10px;
    max-height: 40px;
}

/* Label and text alignment */
.ypf_mt_version_radio_option .field-group label {
    display: flex;
    align-items: center;
    margin: 0;
}

/*yourpropfirm checkout style 1*/
.yourpropfirm-checkout .yourpropfirm-col-set{
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    gap: 20px;
}
.yourpropfirm-checkout .yourpropfirm-col-set .yourpropfirm-col{
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 50%;
    float: unset;
}

/*yourpropfirm checkout style 2*/
.yourpropfirm-checkout-style-2 .card {
    padding: 24px 32px 15px;
    border-radius: 16px;
    border: 1px solid rgb(18 18 18 / 20%);
}

/*Order Review Table*/
.yourpropfirm-checkout table{
    border: none!important;
}
.yourpropfirm-checkout table thead:first-child tr:first-child th{
    border:none;
    border-bottom: 1px solid #FFFFFF33;
}

.yourpropfirm-checkout table td, 
.yourpropfirm-checkout table th {
    padding: 9px 0px;
    border: none;
    border-bottom: 1px solid #FFFFFF33;
}

.yourpropfirm-checkout table td:nth-child(even), 
.yourpropfirm-checkout table th:nth-child(even) {
    text-align:right;
}

.yourpropfirm-checkout table tbody>tr:nth-child(odd)>td,
.yourpropfirm-checkout table tbody>tr:nth-child(odd)>th {
    background-color: transparent;
}

.yourpropfirm-checkout table tfoot th,
.yourpropfirm-checkout table tfoot td{
    font-weight:normal;
}

.yourpropfirm-checkout table tfoot .order-total th,
.yourpropfirm-checkout table tfoot .order-total td{
    font-size: var(--e-global-typography-1c0112f-font-size);
    font-weight: var(--e-global-typography-1c0112f-font-weight);
    line-height: var(--e-global-typography-1c0112f-line-height);
}

/*Coupon Code*/
.yourpropfirm-coupon-form{
    display: flex;
    gap: .5em;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}
.yourpropfirm-coupon-form .yourpropfirm-coupon-code-container{
    display: flex;
    gap: 10px;
    justify-content: space-between;
    flex-direction: row;
    flex-grow: 1;
}
.yourpropfirm-coupon-code-input{
    width: 70%;
}
.yourpropfirm-apply-coupon-button{
    width: 30%;
}
/*.ypf_mt_version_radio_option .field-group span{
	display: none;
}*/

/*YPF Platform Fields & YPF Addons Fields*/
.yourpropfirm_trading_platform_field,
.yourpropfirm-addons-fields {
    display: flex;
    gap:10px;
    flex-direction: column;
}
.yourpropfirm-addons-fields .ypf-addon-option,
.yourpropfirm_trading_platform_field .ypf-platform-option {
    display: flex;
    align-items: center;
    padding: 14px;
    border: 1px solid #9599a1;
    border-radius: 8px;
}

.yourpropfirm-addons-fields .ypf-addon-option .yourpropfirm_addon_input {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid #9599a1;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}
/* Custom checked state */
.yourpropfirm-addons-fields .ypf-addon-option .yourpropfirm_addon_input:checked{
    background-color: #000; 
    border-color: #fff;
    color:#fff;
}
.yourpropfirm-addons-fields .ypf-addon-option .yourpropfirm_addon_input:checked::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 8px;
    height: 16px;
    border: solid #ffffff;
    border-width: 0 4px 4px 0;
    transform: rotate(45deg);
}  
.yourpropfirm-addons-fields .ypf-addon-option label {
    width: 100%;
    line-height: normal;
    cursor: pointer;
}
.yourpropfirm_trading_platform_field .ypf-platform-option .yourpropfirm_platform_input:checked{
    accent-color: #000;
}
.yourpropfirm_trading_platform_field .ypf-platform-option .yourpropfirm_platform_input{
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}
.yourpropfirm_trading_platform_field .ypf-platform-option label {
    width: 100%;
    cursor: pointer;
}

/*YPF Popup*/
.ypf-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.ypf-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    width: 400px;
    text-align: center;
}

.ypf-ok-button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: var(--tripleaColor);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
}

.ypf-ok-button:hover {
    background-color: #0056b3;
}

/**/

/*YPF Popup*/
#yourpropfirm-variant-switcher{
    margin: 20px auto 0px;
}

#yourpropfirm-variant-switcher .yourpropfirm-radio-group {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 10px 0px;
}

.yourpropfirm-radio-option {
    width: 48.3%;
    display: flex;
    align-items: center;
    position: relative;    
}

.yourpropfirm-radio-option input[type="radio"] {
    position: absolute;
    left: 16px;
    opacity: 1;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.yourpropfirm-radio-option input[type="radio"]::before {
    content: "";
    position: absolute;
    top: -9px;
    left: -16px;
    opacity: 1;
    width: 100%;
    min-width: 100vh;
    height: 37px;
    background-color: transparent;
    cursor: pointer;
}

.yourpropfirm-radio-option label {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 24px 14px 43px;
    border: 1px solid #9599a1;
    border-radius: 8px;
    cursor: pointer;
}

.yourpropfirm-radio-option input[type="radio"]:checked + label {
    accent-color: var(--e-global-color-accent);
    border: 1px solid var(--e-global-color-accent);
}

.yourpropfirm-attribute-index-2 .yourpropfirm-disabled-option{
    display: none;
}
/**/

/*Responsive Mobile*/
@media (max-width: 768px) {
    .yourpropfirm-checkout .yourpropfirm-col-set{
        flex-direction: column;
        gap: 20px;
    }
    .yourpropfirm-coupon-form .yourpropfirm-coupon-code-container {
        flex-direction: column;
    }
    .yourpropfirm-apply-coupon-button {
        width: 100%;
    }
    #yourpropfirm-variant-switcher .yourpropfirm-radio-group{
        justify-content: space-between;
    }
    .yourpropfirm-radio-group.yourpropfirm-attribute-index-1 .yourpropfirm-radio-option {
        width: 100%;
    }
    .yourpropfirm-radio-group.yourpropfirm-attribute-index-2 .yourpropfirm-radio-option {
        width: 46%;
    }
}

@media (max-width: 576px) {
    .ypf_mt_version_radio_option .field-group {
        padding: 10px 0px 0px 0px;
    }
    .ypf_mt_version_radio_option .field-group label {
        padding: 10px 0px 0px 0px;
    }
    .ypf_mt_version_radio_option .field-group img {
        height: 20px;
    }
}