/*
Theme Name: Beauty Revival
Theme URI: https://spidrweb.co.uk/beauty-revival/
Author: Spidrweb Ltd
Author URI: https://spidrweb.co.uk/
Description: A custom block theme for Beauty Revival by Samantha Hill
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: beauty-revival
Tags: 
*/

/*
Booking Form CSS
*/

/* Base form styles */
.wc-bookings-booking-form {
	border: none;
	padding: 0;
    margin-bottom: 0;
}

.wc-bookings-booking-form fieldset {
	margin: 0;
}

/* WooCommerce form overrides */
:where(.wp-block-woocommerce-add-to-cart-form > * + *) {
	margin-top: 0;
}

.woocommerce form .form-row {
	padding: 0;
}

/* Date picker styles */
.wc-bookings-date-picker {
    border: none;
    padding: 0;
    padding-top: 0;
}

.wc-bookings-date-picker-timezone-block {
    margin-top: 0;
    line-height: 1;
    text-align: left;
    font-size: var(--wp--preset--font-size--custom-2);
}

.wc-bookings-date-picker-timezone {
    font-weight: 700;
}

/* Date picker navigation */
.ui-datepicker-prev, 
.wc-bookings-date-picker .ui-datepicker .ui-datepicker-next {
	top: -1px;
	background: var(--wp--preset--color--custom-brand-400);
	border-radius: 0;
	font-weight: normal;
	border: none;
	height: 2.5em;
	width: 2em;
}

.wc-bookings-date-picker .ui-datepicker-header {
	background: var(--wp--preset--color--custom-brand-400);
	border: 0;
	border-top: 1px solid var(--wp--preset--color--custom-brand-600);
	color: #fff;
}

.wc-bookings-date-picker .ui-widget-content {
	border: none;
	background: var(--wp--preset--color--custom-brand-200);
	box-shadow: 0 1px 3px rgba(0,0,0,.19);
}

.wc-bookings-date-picker .ui-datepicker td.bookable a {
	background: var(--wp--preset--color--custom-brand-600) !important;
}

/* Booking form button */
.wc-bookings-booking-form-button.single_add_to_cart_button {
    background-color: var(--wp--preset--color--custom-brand-600);
    color: #fff;
    padding: 1em 2em;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    margin-top: 1.5em;
}

.wc-bookings-booking-form-button.single_add_to_cart_button:hover {
    background-color: var(--wp--preset--color--custom-brand-400);
}

.wc-bookings-booking-form-button.single_add_to_cart_button:focus {
    outline: 2px solid var(--wp--preset--color--custom-brand-400);
    outline-offset: 2px;
}

/* Booking cost display */
.wc-bookings-booking-form .wc-bookings-booking-cost {
	background: var(--wp--preset--color--custom-accent-50);
	border-top: 4px solid var(--wp--preset--color--custom-accent-400);
	margin: 0 0 1.5rem 0;
	padding: 1em;
    border-radius: 0.25rem;
}

/* Deposit information */
.deposit-info {
    margin: 0 0 1.5rem 0;
    padding: 1rem;
    background: var(--wp--preset--color--custom-accent-50);
    border-radius: 0.25rem;
    border-left: 4px solid var(--wp--preset--color--custom-accent-400);
}

/* Deposit options */
.deposit-options {
    transition: all 0.3s ease;
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid var(--wp--preset--color--custom-accent-200);
    border-radius: 0.25rem;
    display: none;
    background: var(--wp--preset--color--custom-accent-50);
    border-top: 4px solid var(--wp--preset--color--custom-accent-400);
}

.deposit-options h4 {
    color: var(--wp--preset--color--custom-brand-700);
    font-size: 1.1em;
}

.deposit-option {
    display: flex;
    align-items: center;
    padding: 0;
}

.deposit-option input[type="radio"] {
    margin-right: 0.75rem;
}

.deposit-option label {
    cursor: pointer;
    font-weight: 500;
}

/* Ensure deposit options are visible when shown */
.deposit-options:not([style*="display: none"]) {
    display: block !important;
}

/* Animation for showing/hiding */
.deposit-options.sliding {
    
}

/* Store Credit Removal Restriction Styles */
.disabled-remove {
    pointer-events: none !important;
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    text-decoration: line-through !important;
    color: #999 !important;
}

.disabled-remove:hover {
    text-decoration: line-through !important;
    color: #999 !important;
    background-color: transparent !important;
}

.removal-restricted-notice {
    font-size: 11px !important;
    color: #d63638 !important;
    margin-top: 5px !important;
    font-style: italic !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

/* Enhanced styling for restricted removal buttons */
.product-remove .disabled-remove {
    position: relative;
}

.product-remove .disabled-remove::after {
    content: "🔒";
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 12px;
    background: #d63638;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* WooCommerce product gallery */
.woocommerce-product-gallery__image {
    border-radius: 0.25rem !important;
}

/* Product addon styles */
.wc-pao-addon-name .required {
    color: red;
}

.wc-pao-addon-description p {
    margin: 0;
}

/* Block picker */
.block-picker {
    border-radius: 0.25rem;
}

.woocommerce-page label {
	margin-bottom: 0;
}

div.product-addon-totals {
	margin-bottom: 0;
}

.postid-520 .wc-bookings-booking-cost {
    display: none !important;
}