/* --- Base Cart Panel --- */
.side-cart {
    position: fixed;
    right: -400px;
    top: 0;
    width: 350px;
    height: 100%;
    color: #333333; /* Dark text */
    background: #ffffff; /* White background */
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif; /* Use a default sans-serif */
}

.side-cart.open {
    right: 0;
}

/* --- Cart Header --- */
.side-cart-header {
    padding: 15px;
    background: #ffffff; /* Light background */
    border-bottom: 1px solid #e5e0d5; /* Light border */
}

.sp-cart-top-icons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    padding-bottom: 15px;
    color: #333;
}

.sp-cart-top-icons a,
.sp-cart-top-icons div {
    color: inherit;
    cursor: pointer;
}

.sp-cart-top-icons svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: currentColor;
}

#cart-header-icon {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #333;
}

#ajax-side-cart-header-count {
    background: red;
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    transform: translate(-5px, -5px);
}

.sp-cart-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sp-cart-title {
    font-family: serif; /* Or a specific font like 'Playfair Display' if you have it */
    font-size: 20px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #333;
    margin: 0;
    flex-grow: 1;
    text-align: left; /* Aligns with XD screenshot */
}

.close-cart {
    cursor: pointer;
    font-size: 28px;
    font-weight: 300;
    color: #666;
    line-height: 1;
}

/* --- Cart Content --- */
.side-cart-content {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.cart-items-scroll {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cart-item {
    padding: 15px;
    border-bottom: 1px solid #e5e0d5;
}

/* --- 1. Date Block Styles (from XD) --- */
.sp-stay-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e5e0d5;
}

.sp-stay-col {
    display: flex;
    flex-direction: column;
}

.sp-stay-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #b0a58c; /* Grey-gold */
    font-weight: 600;
    margin-bottom: 4px;
}

.sp-stay-main {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.sp-stay-day {
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    color: #c9a55c; /* Gold */
}

.sp-stay-monyear {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    padding-top: 2px; /* Align baseline */
}

.sp-stay-weekday {
    font-size: 12px;
    color: #666;
    line-height: 1.2;
    margin-top: 2px;
}

.sp-stay-sep {
    font-size: 20px;
    color: #c9a55c;
}

/* --- 2. Package Block Styles --- */
.sp-package-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e5e0d5;
}

.sp-package-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.sp-stay-length { /* This class comes from ajax-handler.php */
    font-size: 14px;
    color: #666;
}

.sp-edit-link {
    font-size: 12px;
    color: #c9a55c;
    text-decoration: none;
    flex-shrink: 0;
    margin-left: 10px;
}

/* --- 3. Item Details Block Styles --- */
.sp-item-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.sp-item-details {
    flex-grow: 1;
    margin-right: 10px;
}

.sp-item-title {
    font-size: 16px;
    font-weight: bold;
    color: #c9a55c; /* Gold */
    margin-bottom: 4px;
    text-transform: uppercase;
}

.sp-item-price {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.sp-item-meta {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.sp-item-occupancy {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    margin-top: 4px;
}

.sp-price-breakdown {
    font-size: 12px;
    color: #c9a55c;
    text-decoration: underline;
    margin-top: 8px;
    cursor: pointer;
}

.remove-cart-item {
    background: #f1f1f1;
    border: 1px solid #e5e0d5;
    border-radius: 50%;
    color: #c9a55c;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.remove-cart-item svg {
    width: 16px;
    height: 16px;
}


/* --- Cart Footer --- */
.side-cart-footer {
    padding: 20px 15px;
    background: #f9f7f2; /* Light beige background */
    border-top: 1px solid #e5e0d5;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

#checkout-button {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid #c9a55c; /* Gold border */
    color: #c9a55c; /* Gold text */
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s ease;
}

#checkout-button:hover {
    background: #c9a55c;
    color: #ffffff;
}

/* --- Loader --- */
.cart-loader {
    text-align: center;
    padding: 20px;
    font-size: 16px;
    color: #666;
}

/* --- Old Classes (to prevent breakage) --- */
/* These are just reset in case they are somewhere else */
.cart-item-title,
.cart-item-price,
.cart-item-subtotal {
    display: none;
}