/**
 * BIN CLEANING ORDER FORM STYLES
 */
body, html {
    scroll-behavior: smooth;
}

#bin-cleaning-orders img {
    max-width: 100%;
}

.plan-row {
    display: flex;
    margin: 0 0 0 -48px;
    padding: 0;
    font-size: 0;
}

.plan-col {
    margin-bottom: 24px;
    padding-left: 48px;
    width: 33.33333%;
    display: inline-block;
    vertical-align: top;
    flex: 1;
    position: relative;
}

.select-plan {
    opacity: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    pointer-events: none;
}

.plan-label {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(0,0,0, .16);
    overflow: hidden;
    background: white;
    height: 100%;
    transition: all .25s ease;
}

.select-plan:checked + .plan-label {
    pointer-events: none;
    background: #f3fff2;
    transform: scale(1.04);
}

.select-plan:not(:checked) + .plan-label:hover {
    box-shadow: 0 8px 12px rgba(0,0,0, .26);
    opacity: 1;
}

.select-plan:checked + .plan-label {
    opacity: 1;
}

.plan-label-row {
    padding: 12px;
    text-align: center;
}

.plan-title {
    display: block;
    text-transform: uppercase;
    font-size: 28px;
    background: #eeeeee;
    transition: background .25s ease;
    margin: 0;
}

.plan-label:hover .plan-title {
}

.plan-price-container {
    margin-bottom: 24px;
}

.plan-price {
    font-size: 60px;
    line-height: 1.2;
}

.plan-price-unit {
    text-transform: uppercase;
    font-size: 14px;
}

.plan-description {
    text-align: center;
    font-weight: normal;
    color: #777;

}

.plan-description p {
    font-size: 16px;
    line-height: 1.4;
}

.select-plan:checked + .platinum .plan-title {
    color: white;
    background: #74d959;
}
.select-plan:checked + .gold .plan-title {
    color: white;
    background: #fba43b;
}
.select-plan:checked + .single .plan-title {
    color: white;
    background: #953B9B;
}

.plan-cta {
    display: block;
    width: 100%;
}

.plan-selected {
    background: var(--color-link-hover) !important;
    color: white !important;
    border: none !important;
}

.select-plan:not(:checked) + .plan-label .plan-selected,
.select-plan:checked + .plan-label .plan-cta {
    display: none !important;
}

.select-plan:checked + .plan-label .plan-selected {
    display: block;
    box-shadow: 0 2px 6px rgba(0,0,0,.26);
    text-transform: uppercase;
}


.wc-block-cart__submit-button,
input[type=submit],
input[type=button],
#bin-cleaning-orders .button,
#bin-cleaning-orders button,
.wc-block-components-button {
    color: #fff;
    background-color: #5cb85c;
    padding: 12px 24px;
    display: inline-block;
    margin-bottom: 0;
    font-weight: normal;
    text-align: center;
    vertical-align: middle;
    touch-action: manipulation;
    cursor: pointer;
    background-image: none;
    white-space: nowrap;
    font-size: 16px;
    line-height: 1.42857;
    border-radius: 4px;
    user-select: none;
    border: none;
    box-sizing: border-box;
}

.wc-block-cart__submit-button:hover,
input[type=submit]:hover,
input[type=button]:hover,
#bin-cleaning-orders .button:hover,
#bin-cleaning-orders button:hover {
    color: #fff;
    text-decoration: underline;
}

button.disabled {
    pointer-events: none !important;
    background: #eee !important;
    color: #999 !important;
}

.button-text {
    background: none;
    color: inherit;
    font-weight: bold;
}

a.wc-block-cart__submit-button:hover,
a.button:hover {
    color: white;
}


#order-calculations,
#single-oscar-service {
    display: none;
}

.no-oscar * {
    pointer-events: none;
}

/**
 * UNTIL TABLET DEVICE BREAKPOINT
 */
@media screen and (max-width: 740px) {
    .plan-row {
        margin: 0 0 0 -24px;
    }
    .plan-col {
        padding-left: 24px;
    }
}


/**
 * UNTIL SMALL DEVICE BREAKPOINT
 */
@media screen and (max-width: 576px) {
    .plan-row {
        display: block;
        margin: 0;
    }
    .plan-col {
        margin-bottom: 24px;
        padding-left: 0;
        width: 100%;
        display: inline-block;
        vertical-align: top;
    }
    .select-plan:checked + .plan-label {
        transform: none;
    }
    .plan-title + .plan-label-row {
        display: flex;
        align-items: center;
    }
    .plan-title + .plan-label-row .plan-description {
        width: 100%;
        padding: 0 0 0 48px;
    }
    .plan-price-container {
        margin-bottom: 0;
    }

    .plan-label {
        height: auto;
        min-height: 0;
    }

}


/**
 * WOOCOMMERCE STYLES
 */
.wc-block-components-order-summary-item__image {
    width: 0 !important;
}

#end-date-input-container,
.wc-block-cart-item__quantity .wc-block-components-quantity-selector,
.wc-block-cart-item__image,
.wc-block-cart-items__header-product,
.wc-block-components-order-summary .wc-block-components-order-summary-item__image > img,
.wp-block-woocommerce-empty-cart-block .wp-block-separator ~ *,
.wc-block-components-product-details__cleaning-plan {
    display: none;
}

.wc-block-cart-item__product {
    width: 100%;
}

.wc-block-components-product-name {
    pointer-events: none;
    color: inherit;
    text-decoration: none;
}

.wc-block-components-product-details {

}

.wc-block-components-product-details__name {
    margin-top: .5em;
}

ul.wc-block-components-product-details li {
    margin-bottom: 0;
    font-size: 14px;
}

.wc-block-components-product-metadata__description p {
    font-size: 14px;
}

.wc-block-cart-item__prices .wc-block-components-product-price {
    font-weight: bold;
    font-size: 18px;
}

li.wc-block-components-product-details__plan span {
    font-size: 20px;
}

.woocommerce .woocommerce-order ul.order_details {
    padding: 0;
}

.woocommerce .woocommerce-order ul.order_details li {
    padding-right:20px;
}

.woocommerce-page .wc-block-components-product-metadata {
    font-size: inherit;
}

.wc-block-components-product-details.wc-block-components-product-details,
ul.wc-item-meta * {
    font-size: 14px;
}

/**
 * FORM STYLES
 */
#bin-cleaning-orders label {
    font-size: 16px;
}

#bin-cleaning-orders .form-field .description {
    margin-top: 6px;
    font-size: 16px;
}

#bin-cleaning-orders .form-field {
    margin-bottom: 24px;
}

#bin-cleaning-orders .error {
    color: red;
    padding: .2em 0;
    display: none;
}

#bin-cleaning-orders .invalid .error {
    display: block;
}

/**
 * DATEPICKER STYLES
 */
.datepicker-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: 100%;
}

.calendar-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    pointer-events: none;
}


/**
 * DATEPICKER STYLES
 */
.datepicker-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: 100%;
}

.calendar-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    pointer-events: none;
}

#ui-datepicker-div.ui-datepicker .ui-state-default span {
    border: 1px solid var(--color-link-hover);
}

#ui-datepicker-div.ui-datepicker .ui-state-default.ui-state-collection a {
    border: 2.5px solid var(--color-link-hover);
}

#ui-datepicker-div.ui-datepicker .ui-state-default.ui-state-collection .ui-state-active {
    background: var(--color-link-hover);
    color: white;
}