.course-time-limit-notice {
    display: none;
    margin-top: 1em;
    padding: 0.5em;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9em;
    clear: both;  /* Force it to a new line */
    display: block; /* Ensure block-level display */
    width: 100%;   /* Take up full width */
    float: none;   /* Prevent floating */
}

.woocommerce div.product .course-time-limit-notice {
    display: block;
    clear: both;
    width: 100%;
    margin-top: -19px;
    margin-bottom: 18px;
}

.course-consent-container {
    background: #ffffff;
    padding: 0 2em;
    margin-bottom: 30px;
    border: 3px solid #ff6b6b;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
    clear: both;
    width: 100%;
}

.course-consent-content {
    max-width: 800px;
    margin: 0 auto;
}

.course-consent-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.course-consent-content h3 {
    font-size: 18px;
    margin-top: 0px;
    margin-bottom: 12px;
    text-align: center;
}

.course-consent-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

.course-consent-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.course-consent-content ul li {
    margin-bottom: 10px;
    font-size: 16px;
}

.consent-checkbox-wrapper {
    text-align: center;
    padding: 20px 0;
    background: #f8f8f8;
    border-radius: 4px;
}

.consent-checkbox-wrapper label {
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.consent-checkbox-wrapper input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

/* Blur effect for checkout content */
.checkout-content-blur {
    filter: blur(1px);
    opacity: 0.6;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
}

.checkout-content-blur.consent-given {
    filter: none;
    opacity: 1;
    pointer-events: auto;
}

/* Preserve WooCommerce column layout */
.checkout-content-blur #customer_details {
    display: flex;
    flex-wrap: wrap;
}

.checkout-content-blur #customer_details .col-1,
.checkout-content-blur #customer_details .col-2 {
    flex: 1;
    min-width: 48%;
}

@media (max-width: 768px) {
    .checkout-content-blur #customer_details .col-1,
    .checkout-content-blur #customer_details .col-2 {
        flex: 0 0 100%;
    }
}