/*
Theme Name: Avada Child
Template: Avada
*/
/* Specific styles for the vital signs form */
#vital-signs-form-container {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

#vital-signs-form-container h2,
#vital-signs-form-container h3 {
    color: #2c3e50;
}

/* Form Styles */
#dietary-form {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
}

/* Shift Selection Styles */
#dietary-form .shift-selection {
    margin-bottom: 20px;
}

#dietary-form .shift-selection label {
    margin-right: 15px;
}

/* Patient Section Styles */
#dietary-form .patient-section {
    margin-bottom: 30px;
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Table Styles */
#dietary-form table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

#dietary-form th,
#dietary-form td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

#dietary-form th {
    background-color: #f2f2f2;
}

/* Input Styles */
#dietary-form input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Button Styles */
#dietary-form button {
    background-color: #3498db;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#dietary-form button:hover {
    background-color: #2980b9;
}

#dietary-form #submitForm {
    background-color: #2ecc71;
    font-size: 1.1em;
    margin-top: 20px;
}

#dietary-form #submitForm:hover {
    background-color: #27ae60;
}

/* Error Message Styles */
#dietary-form [id$="-error-messages"] {
    color: #e74c3c;
    margin-top: 10px;
}

/* Modal Styles */
#vital-signs-form-container .modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

#vital-signs-form-container .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 5px;
}

#vital-signs-form-container #closeModal {
    background-color: #e74c3c;
}

#vital-signs-form-container #closeModal:hover {
    background-color: #c0392b;
}

/* Change "Report to Nurse" button color to red */
#dietary-form button[id^="report"] {
    background-color: #dc3545;
}

#dietary-form button[id^="report"]:hover {
    background-color: #c82333;
}
.page-id-7212 main#main {
    padding: 30px !important;
}

.wc-block-components-sidebar-layout {
    display: flex;
    flex-wrap: wrap;
    margin: 100px auto auto 16px !important;
    position: relative;
}

.wc-block-checkout__sidebar.is-sticky {
    position: sticky !important;
    top: 200px !important;
	margin-top: 40px;
}

.wc-block-components-sidebar.wc-block-checkout__sidebar.wp-block-woocommerce-checkout-totals-block.is-sticky.is-large {
    box-sizing: border-box;
	padding-right: 0 !important;
    width: 35% !important;
}

.wc-block-components-notice-banner__content div {
    font-size: 20px;
    font-weight: 600;
}

.wp-block-woocommerce-checkout-order-summary-block {
    padding: 10px;
}

.fusion-body .wc-block-components-notice-banner.is-error:before {
    content: "\f071";
    font-size: 20px;
}

.wc-block-components-notices {
    display: block;
    margin: 0;
    width: auto !important;
    justify-self: center !important;
}

.als_return-note.fusion-alert-capitalize {
	background-color: #f2dede;
    border: 1px solid rgba(166, 66, 66, 1);
    color: rgba(166, 66, 66, 1);
    border-radius: 0px 0px 0px 0px;
	margin: 40px 0 10px 0 !important;
}

.als_cart-return-note.fusion-alert-capitalize {
	background-color: #f2dede;
    border: 1px solid rgba(166, 66, 66, 1);
    color: rgba(166, 66, 66, 1);
    border-radius: 0px 0px 0px 0px;
	margin: 60px 60px -40px 60px !important;
}

.als_return-note .fusion-alert.fusion-alert-center .alert-icon {
    margin-right: 10px;
    color: #8F0000 !important;
    font-size: 20px !important;
}

.als_return-note span.fusion-alert-content {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #8F0000 !important;
}

.wc-block-checkout__billing-fields .wc-block-components-address-form, .wc-block-checkout__shipping-fields .wc-block-components-address-form {
        display: flex;
        flex-wrap: wrap;
        gap: 20px 20px;
        justify-content: space-between;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__total-price {
    margin-left: auto;
    padding-top: 4px;
    text-align: right;
    font-size: 14px !important;
    color: #8F0000 !important;
    font-weight: 500 !important;
}

.wp-block-woocommerce-checkout-order-summary-block {
    border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
	color: #8F0000 !important;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 15px !important;
    line-height: 1.4;
    font-weight: 500 !important;
}

.wc-block-components-totals-item.wc-block-components-totals-footer-item span {
    font-size: 20px !important;
    font-weight: 600 !important;
}

.wc-block-components-sidebar-layout .wc-block-components-main {
    box-sizing: border-box;
    margin: 0;
    width: 60%;
}


/* Responsive Design */
@media screen and (max-width: 768px) {
    #vital-signs-form-container {
        padding: 10px;
        font-size: 14px;
        /* Slightly reduce font size on mobile */
    }

    #dietary-form {
        padding: 10px;
    }

    #dietary-form table,
    #dietary-form thead,
    #dietary-form tbody,
    #dietary-form th,
    #dietary-form td,
    #dietary-form tr {
        display: block;
    }

    #dietary-form thead tr {
        position: absolute;
        
    }

    #dietary-form tr {
        margin-bottom: 10px;
    }

    #dietary-form td {
        border: none;
        position: relative;
        padding: 5px 5px 5px 50%;
        text-align: left;
    }

    #dietary-form td:before {
        content: attr(data-label);
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
    }

    #dietary-form input[type="text"] {
        width: 100%;
        padding: 5px;
        font-size: 14px;
    }

    #dietary-form button {
        width: 100%;
        margin: 5px 0;
        padding: 10px;
        font-size: 14px;
    }

    /* Adjust shift selection for mobile */
    #dietary-form .shift-selection {
        display: flex;
        flex-direction: column;
    }

    #dietary-form .shift-selection label {
        margin-bottom: 10px;
    }
}

.fusion-layout-column.fusion_builder_column.fusion-builder-column-0.fusion_builder_column_3_4.\33 _4.fusion-flex-column {
    width: 65% !important;
}

.fusion-layout-column.fusion_builder_column.fusion-builder-column-1.fusion_builder_column_1_4.\31 _4.fusion-flex-column {
    width: 35% !important;
}

div.fusion-woo-cart-totals-wrapper div.wc-proceed-to-checkout {
    display: flex !important;
    justify-content: space-between !important;
    flex-direction: row !important;
}

.fusion-text-4 a.added_to_cart.wc-forward {
    margin-top: 0px !important;
}

.woocommerce-cart-form__cart-item a.product-title {
    font-size: 12px;
}

.august-discount-note {
    color: #1f8b3d;
    font-size: 12px;
    line-height: 1.4;
    max-width: 140px;
    margin: 0 auto;
}
.woocommerce.add_to_cart_inline .add_to_cart_button.added:after{
    display: none !important;
}

.wp-block-woocommerce-checkout-order-summary-block::before {
    content: "All sales final. We do not accept returns.";
    display: block;
    width: 100%;
    text-align: center;
    font-weight: 600;
    margin: 0 0 15px;
    background-color: #f2dede;
    border: 1px solid rgba(166, 66, 66, 1);
    color: rgba(166, 66, 66, 1);
    border-radius: 0px 0px 0px 0px;
    padding: 20px 0;
}


tr.woocommerce-shipping-totals.shipping {
    display: none !important;
}

td.awb-shipping {
    display: none !important;
}

h3.wc-block-components-product-name {
    font-size: 16px !important;
	font-weight: 600;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__image>img {
    max-width: 100px !important;
    width: 80px !important;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__description {
    padding: 4px 12px 12px 50px !important;
    word-break: break-word;
}


/* Add some extra padding to the bottom of the form for mobile */
@media screen and (max-width: 768px) {
    #dietary-form {
        padding-bottom: 60px;
    }
}

/* Modal styles */
.vital-signs-modal.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    /* Ensure it's above other content */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.vital-signs-modal .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 5px;
    z-index: 1050;
}

/* Table styles */
.vital-signs-modal #summaryContent table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: Arial, sans-serif;
}

.vital-signs-modal #summaryContent th,
.vital-signs-modal #summaryContent td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.vital-signs-modal #summaryContent th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #333;
}

.vital-signs-modal #summaryContent tr:nth-child(even) {
    background-color: #f9f9f9;
}

.vital-signs-modal #summaryContent tr:hover {
    background-color: #f5f5f5;
}

/* Feedback column styles */
.vital-signs-modal #summaryContent td:last-child {
    font-weight: bold;
}

.vital-signs-modal #summaryContent td:last-child:contains('Correct') {
    color: #28a745;
}

.vital-signs-modal #summaryContent td:last-child:contains('Outside normal range'),
.vital-signs-modal #summaryContent td:last-child:contains('Differs from expected value') {
    color: #dc3545;
}

.vital-signs-modal #summaryContent td:last-child:contains('No data entered') {
    color: #ffc107;
}

/* Close button style */
.vital-signs-modal #closeModal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.vital-signs-modal #closeModal:hover,
.vital-signs-modal #closeModal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

p.product.woocommerce.add_to_cart_inline {
    border: none !important;
    padding: 0 !important;
}

p.product.woocommerce.add_to_cart_inline a {
    width: 100%;
    text-transform: none;
}

p.product.woocommerce.add_to_cart_inline + .fusion-align-block {
    display: none !important;
}

button.button.august-ebook-code-button {
   text-transform: none !important;
   border: none;
   width: 100%;
   margin-bottom: 20px !important; 
}

a.added_to_cart.wc-forward {
    margin-bottom: 10px;
    margin-top: 10px;
    color: var(--h2_typography-color);
}

/* Responsive design for smaller screens */
@media screen and (max-width: 600px) {
    .vital-signs-modal .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .vital-signs-modal #summaryContent table,
    .vital-signs-modal #summaryContent thead,
    .vital-signs-modal #summaryContent tbody,
    .vital-signs-modal #summaryContent th,
    .vital-signs-modal #summaryContent td,
    .vital-signs-modal #summaryContent tr {
        display: block;
    }

    .vital-signs-modal #summaryContent thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .vital-signs-modal #summaryContent tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
    }

    .vital-signs-modal #summaryContent td {
        border: none;
        position: relative;
        padding-left: 50%;
    }

    .vital-signs-modal #summaryContent td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        content: attr(data-label);
        font-weight: bold;
    }
}