/*
    Utility Classes
*/
.text-black {
    color: var(--color-black) !important;
}
.no-border {
    border: none !important;    
}

/*
    Backgrounds
*/
.ewf-faded-grey-bg {
    background-color: #FAFBFD !important;
}
.ewf-faded-grey-bg .form-control {
    background-color: #fff !important;
    border: 2px solid #F1F2F4 !important;
}
.ewf-faded-grey-bg .form-group {
    margin: 0.2rem 0 !important;
    padding: 0px !important;    
}
.ewf-faded-grey-bg .col-md-6 {    
    padding-left: 0px !important;
    padding-right: 0px !important;
}

.ewf-faded-blue-bg {
    background-color: #E0EBFF !important;
}

/*
    Widgets
*/
.ewf-image-top {
    height: 50%;
    overflow: hidden;
    width: 100%;
}
.ewf-image-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    display: block;
}
.ewf-link-1 {
    font-weight: bold !important;
    color: var(--color-blue-subtle) !important;
}

.ewf-link-muted {
    font-size: 14px; 
    font-weight: 600;
    color: #6c757d;    
    text-decoration: none;
    float: right;
}
.ewf-link-muted:hover {
    text-decoration: underline;
    color: #495057;
}
.ewf-bullet-list {
    list-style-type: disc;    
    padding-left: 1.5rem;
}
.ewf-bullet-list li::marker {
    color: var(--color-blue-light);
    margin-top: 5px;
    font-size: 1.2em;
}
.ewf-bullet-list li {
    color: var(--color-black);    
}
.ewf-bordered-box {
    border: 1px solid lightgray;    
    padding: 1rem;
    background: var(--color-white);
    font-size: 1rem;
    position: relative;
}
.ewf-small-wing {
    max-width: 10% !important;
}
@media (max-width: 576px) {
    .ewf-small-wing {
        max-width: 100% !important;
        margin: 0 2rem !important;
    }
}
.ewf-small-wing--15 {
    max-width: 15% !important;
}
@media (max-width: 576px) {
    .ewf-small-wing--15 {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 2rem !important;
    }
}
.ewf-large-wing {
    max-width: 95% !important;
}
@media (max-width: 576px) {
    .ewf-small-wing {
        max-width: 100% !important;
        margin: 0 2rem !important;
    }
}

.ewf-modal-fullscreen {
    width: 90vw;
    max-width: none;
    height: 90vh;
    margin: auto !important;
    display: flex;
    align-items: center;
}

.ewf-modal-fullscreen .modal-header {
    background-color: var(--color-blue-light);
}

.ewf-modal-fullscreen .modal-content {
    height: 100%;
    width: 100%;
    border: 0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.ewf-modal-fullscreen .modal-body {
    flex: 1;
    overflow: hidden;
}

.ewf-modal-fullscreen iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.ewf-visa {
    color: #1a1f71;
}

.ewf-mastercard {
    color: #eb001b;
}

.ewf-amex {
    color: #2e77bb;
}

.ewf-coupon-field{
    display: flex;
    align-items: center;
    border: 1px solid lightgray;    
    border-radius: 4px;
    overflow: hidden;
    background: var(--color-white);
}

/* override bootstrap form-control */
.ewf-coupon-field .form-control{
    border: none !important;
    box-shadow: none !important;
    background: transparent !important; 
    flex: 1;
}

/* Apply button */
.ewf-coupon-apply{
    padding: 0 12px;
    font-weight: 600;
    color: var(--color-blue-subtle);
    background: transparent;    
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.ewf-coupon-apply:hover{
    text-decoration: underline;
}

.ewf-radio-icon {
    position: relative;
    margin-bottom: 1rem;
}

.ewf-radio-icon input[type="radio"] {
    display: none;
}

.ewf-radio-icon label {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 2px;
    margin: 5px;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: #fff;
}

.ewf-radio-icon label:hover {
    border-color: #007bff;
}

.ewf-radio-icon .card-icon {
    max-height: 26px;
    max-width: 100%;
}

.ewf-radio-icon .marker {
    display: none;
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--color-secondary);
    color: #fff;
    border-radius: 50%;
    padding: 0px 5px;
    font-size: 12px;
}

.ewf-radio-icon input[type="radio"]:checked + label {
    border-color: #007bff;
    background-color: #e9f2ff;
}

.ewf-radio-icon input[type="radio"]:checked + label .marker {
    display: inline-block;
}

.ewf-form-button {
    background-color: #D25B4B !important;
}

/*
    Bootstrap overrides
*/
.ewf-login-box {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}
.ewf-login-box .col-md-6 {
    max-height: 4rem !important;
}
.ewf-login-box .form-control {
    background: transparent !important;
    border: 1px solid #B6B6B6 !important;
}
.ewf-login-box select {    
    border: 1px solid #B6B6B6 !important;
}
.ewf-login-box .custom-select {
    background: transparent !important;
}
.ewf-login-box--bordered {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    margin-bottom: 2rem !important;
}
.ewf-left-border {
    border-left: 1px solid #ccc !important;
}

/*
    STEPS
*/
.ewf-step {
    margin-left: -2.5rem !important;
    margin-right: -2.5rem !important;
    padding: 1.5rem 2.5rem !important;
    font-weight: normal !important;
}

.ewf-step-heading {
    font-weight: normal !important;
    font-size: 1.2rem !important;
}

/* PLAN GROUP */

.ewf-plan-group {
    border: 1px solid #e2e6ea;
    border-radius: 6px;
    margin-bottom: 0.2rem;
    overflow: hidden;
    background: #fff;
}


/* HEADER */

.ewf-plan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    cursor: pointer;
    background: #ECF0FD;
}

.ewf-plan-header:hover {
    background: #f9fafc;
}


/* LEFT SIDE */

.ewf-plan-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ewf-plan-title {
    font-weight: 600;
    font-size: 1.1rem;    
}

/* SQUARE RADIO */

.ewf-radio {
    display: none;
}

.ewf-plan-square {
    margin: auto 0;    
    width: 18px;
    height: 18px;
    border: 2px solid #c5ccd6;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    display: inline-block;
}

/* checked state */
.ewf-radio:checked + .ewf-plan-square{
    border-color: var(--color-blue-subtle);
    background: var(--color-blue-subtle);
}

/* checkmark */
.ewf-radio:checked + .ewf-plan-square::after{
    content: "✓";
    position: absolute;
    color: white;
    font-size: 12px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
}

/* RIGHT SIDE */

.ewf-plan-right{
    display: flex;
    align-items: center;
    gap: 12px;
}

.ewf-plan-status{
    font-weight: 600;
}

.ewf-plan-toggle i {
    transition: transform .25s ease;
}

.ewf-plan-group.closed .ewf-plan-toggle i {
    transform: rotate(-90deg);
}

/* BODY */

.ewf-plan-body{    
    padding: 1.5rem;
    border-top: 1px solid #e2e6ea;
    background-color: #FAFBFD;
}

.ewf-plan-body .login-group-item {
    font-size: 1rem;
}

/* CLOSED STATE */

.ewf-plan-group.closed .ewf-plan-body{
    display: none;
}

.ewf-plan-group.closed .ewf-plan-status{
    font-weight: 500;
    color:#6c757d;
}

.ewf-plan-group.closed .ewf-plan-toggle i{
    transform: rotate(-90deg);
}

/* PRODUCT CARD REWORK */
.ewf-product-card {
    display: flex;
    flex-direction: column;    
    padding: 0.5rem;
    border: 1px solid #ddd;    
    background-color: #F9FAFC;
    cursor: pointer;    
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.ewf-card-header {
    display: flex;
    align-items: center;
    gap: 4px; /* smaller gap to bring checkbox and title closer */
    justify-content: flex-start; /* ensure everything sticks to the left */
}

.ewf-product-card .ewf-plan-square {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background: #fff;
    flex-shrink: 0;
}

.ewf-radio:checked + .ewf-plan-square {
    background-color: var(--color-blue-subtle);
    border-color: var(--color-blue-subtle);
}

.ewf-product-card .ewf-plan-title {
    font-weight: 600;
    font-size: 1rem;
    margin: 0; /* remove default margin */
}

.ewf-product-card .ewf-product-price {
    font-weight: 700;
    font-size: 0.95rem;
    color: #28a745;
    margin-top: 0.5rem; /* tighten spacing below title */
}

/*
    Payment Radio Buttons
*/
.payment-options {
    display: flex;
    flex-direction: column;    
}

.ewf-radio-option {
    position: relative;
}

.ewf-radio-option input[type="radio"] {
    display: none; /* hide default radio */
}

.ewf-radio-option label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: space-between;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ewf-radio-option label:hover {
    border-color: var(--color-blue-subtle);
}

.option-title {
    font-weight: 600;
    margin-right: auto;
}

.card-icons {
    display: flex;
    gap: 0.5rem;
}

.card-icon {
    height: 24px;
    width: auto;
}

.paypal-icon {
    height: 30px;
}

.ewf-radio-option input[type="radio"]:checked + label {
    border-color: var(--color-blue-subtle);
    background-color: #f0f8ff;
}

.marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-left: 0.5rem;
}

.ewf-radio-option input[type="radio"]:checked + label .marker {
    background-color: var(--color-blue-subtle);
    border-color: var(--color-blue-subtle);
    color: white;
}

.marker i {
    display: none;
}

.ewf-radio-option input[type="radio"]:checked + label .marker i {
    display: inline-flex;
    color: white;
}

.empty-product-group {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  text-align: center;
  color: #333;
  font-family: 'Arial', sans-serif;
}

.empty-product-group .empty-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.empty-product-group i {
  margin-bottom: 12px;
  color: #DFEAFE;
}