/* Pixistock PMPro Order Bump Frontend Styles */
.pixistock-ob-card {
    border: 2px dashed #000000;
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    padding: 10px;
}

.pixistock-ob-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: .25rem;
    padding-top: .25rem;
}

.pixistock-ob-toggle-switch { /* The container for the input and label */
    display: flex; /* Make it a flex container */
    align-items: center; /* Vertically align items within this switch container */
    flex-grow: 1; /* Allow it to take up available space */
}

.pixistock-ob-toggle-switch .form-check-input {
    width: 3em; /* Larger toggle */
    height: 1.5em;
	cursor: pointer;
}

.pixistock-ob-toggle-switch .form-check-label {
    font-weight: bold;
    font-size: 1.1em;
    margin-left: 0.5em; /* Space between toggle and text */
	cursor: pointer;
    line-height: 1.5;
}

.pixistock-ob-title {
	/* Style for the bump level name */
}

.pixistock-ob-price {
    font-weight: bold;
    font-size: 1.1em;
    color: #28a745; /* Bootstrap success color or your theme's */
}

.pixistock-ob-description {
    font-size: .9em;
    color: #555;
    padding-top: .5rem;
    margin: 6px 66px 0px 59px;
}

.pmpro-order-bump--disabled .pixistock-ob-toggle-switch .form-check-input {
    opacity: 0.5;
    cursor: not-allowed;
}

.pmpro-order-bump--disabled .pixistock-ob-toggle-switch .form-check-label {
    color: #6c757d; /* Bootstrap muted color */
}

.pixistock-ob-already-owned {
    color: #17a2b8; /* Bootstrap info color */
    font-style: italic;
}


.pixistock-ob-card .card-body {
    padding: 1rem;
    position: relative; /* For potential absolute positioning inside if needed */
}

/* STYLES FOR THE UPDATED PRICING DETAILS SECTION */
.pixistock-ob-updated-pricing-details-wrapper {
    /* THIS IS THE HIDDEN/INITIAL STATE */
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin-top: 1rem; 
    transition: opacity 0.3s ease-in-out, max-height 0.4s ease-in-out; /* Smooth transition */
}

.pixistock-ob-updated-pricing-details-wrapper.visible {
    /* THIS IS THE VISIBLE STATE */
    opacity: 1;
    max-height: 185px; /* --- FIX --- Increased height to accommodate multi-line content. */
}

hr.pixistock-ob-divider {
    margin: 33px 0 !important;
    border: 0;
    border-top: 1px solid rgba(0,0,0,.1);
}

.pixistock-ob-updated-price-text,
.pixistock-ob-updated-expiration-text {
    font-size: 0.95em; /* Slightly smaller than main price, or adjust as desired */
    padding: 0.25rem 0; 
    color: var(--pmpro--color--accent, #0c3d54); /* Use PMPro accent or fallback */
    text-align: center;
}

/* --- NEW --- Added styling for the list in Scenario 2 */
.pixistock-ob-updated-price-text ul {
    list-style-type: disc;
    margin-top: 0.5em !important;
    margin-left: 4.5em !important;
    text-align: left;
}
.pixistock-ob-updated-price-text li {
    padding-bottom: 0.25em;
}

.pixistock-ob-updated-price-text strong,
.pixistock-ob-updated-expiration-text strong {
    font-weight: bold; /* Ensure strong tags are bold */
}

.pixistock-ob-updated-total-wrapper.visible {
    display: block !important; /* Override inline style if needed, but opacity is better */
    opacity: 1;
}

.pixistock-ob-updated-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em;
    font-weight: bold;
    padding: 0.5rem 0; /* Padding around the total text */
    color: var(--pmpro--color--accent, #0c3d54); /* Use PMPro accent or fallback */
    font-family: 'Avenir';
}

#pixistock_ob_new_total_amount {
    /* Specific styling for the amount itself if needed */
}