.cart_totals {
    display: flex;
    flex-direction: column;
}

.cart_totals > h2 {
    order: 1;
}

.rws-totals-period {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: end;
    width: 100%;
    max-width: none;
}

.rws-cart-period-panel {
    order: 2;
    margin: 0.75rem 0;
    padding: 0.85rem 0;
    border-top: 1px solid rgba(128, 128, 128, 0.35);
    border-bottom: 1px solid rgba(128, 128, 128, 0.35);
    border-top-color: color-mix(in srgb, currentColor 22%, transparent);
    border-bottom-color: color-mix(in srgb, currentColor 22%, transparent);
}

.rws-cart-period-panel__title {
    font-family: inherit;
    font-size: 1em;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 0.65rem;
}

.woocommerce-checkout-review-order-table .rws-checkout-period-row td {
    padding: 0.85rem 0 1rem;
    border-top: 1px solid rgba(128, 128, 128, 0.35);
    border-top-color: color-mix(in srgb, currentColor 22%, transparent);
}

.woocommerce-checkout-review-order-table .rws-checkout-period-row + tr th,
.woocommerce-checkout-review-order-table .rws-checkout-period-row + tr td {
    padding-top: 1rem;
}

.rws-rental-tier-discount .rws-rental-tier-title {
    display: block;
}

.rws-rental-tier-discount th small,
.rws-rental-tier-discount .rws-rental-tier-note {
    display: block;
    font-size: 0.72em;
    font-weight: 500;
    line-height: 1.35;
    margin-top: 0.2rem;
    opacity: 0.72;
}

.rws-rental-tier-discount td,
.rws-rental-tier-discount th {
    color: currentColor;
    vertical-align: top;
}

.cart_totals .rws-rental-tier-discount th,
.cart_totals .rws-rental-tier-discount td,
.woocommerce-checkout-review-order-table .rws-rental-tier-discount th,
.woocommerce-checkout-review-order-table .rws-rental-tier-discount td {
    background: transparent;
    border: 0;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.cart_totals .rws-rental-tier-discount small,
.cart_totals .rws-rental-tier-discount .rws-rental-tier-note,
.woocommerce-checkout-review-order-table .rws-rental-tier-discount small {
    color: inherit;
    opacity: 0.78;
}

.cart_totals .rws-rental-tier-discount td,
.woocommerce-checkout-review-order-table .rws-rental-tier-discount td {
    text-align: right;
}

.rws-cart-item-tier-label {
    display: block;
    font-size: 0.72em;
    font-weight: 500;
    line-height: 1.35;
    margin-top: 0.25rem;
    opacity: 0.72;
}

.rws-totals-period label,
.rws-rental-modal__fields label {
    display: grid;
    gap: 0.35rem;
    font-family: inherit;
    font-size: 0.92em;
    font-weight: 600;
    min-width: 0;
}

.rws-totals-period input,
.rws-rental-modal input {
    appearance: none;
    background: #FFFFFF1A;
    border: 1px solid #FFFFFF4D;
    border-radius: 10px;
    color: currentColor;
    font-family: inherit;
    font-size: 1em;
    min-height: 2.7rem;
    outline: none;
    padding: 0.65rem 0.8rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    width: 100%;
}

.rws-totals-period input:focus,
.rws-rental-modal input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #a53cff;
    box-shadow: 0 0 0 3px rgba(165, 60, 255, 0.18), 0 0 22px rgba(165, 60, 255, 0.28);
}

.cart_totals > table,
.cart_totals > .shop_table {
    order: 3;
}

.cart_totals > .wc-proceed-to-checkout,
.cart_totals > .checkout-button,
.cart_totals > a.checkout-button,
.cart_totals > .button {
    order: 9;
}

.rws-period-status {
    color: #64748b;
    display: block;
    font-size: 0.875rem;
    grid-column: 1 / -1;
    min-height: 1.2em;
}

.ui-datepicker {
    background: rgba(27, 29, 29, 0.96);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 34px rgba(165, 60, 255, 0.24);
    color: #fff;
    display: none;
    font-family: inherit;
    padding: 1rem;
    position: absolute;
    width: 20rem;
    z-index: 999999 !important;
}

.ui-datepicker-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.ui-datepicker-title {
    color: #fff;
    font-weight: 700;
    order: 2;
    text-align: center;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: transparent;
    cursor: pointer;
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    position: relative;
    width: 2rem;
}

.ui-datepicker-prev::before,
.ui-datepicker-next::before {
    color: #fff;
    font-size: 1.15rem;
    line-height: 1;
}

.ui-datepicker-prev::before {
    content: "\2039";
}

.ui-datepicker-next::before {
    content: "\203A";
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
    background: linear-gradient(135deg, #7c2cff, #c13dff);
    box-shadow: 0 0 18px rgba(165, 60, 255, 0.45);
}

.ui-datepicker-prev span,
.ui-datepicker-next span {
    display: none;
}

.ui-datepicker-prev {
    order: 1;
}

.ui-datepicker-next {
    order: 3;
}

.ui-datepicker-calendar {
    border-collapse: collapse;
    width: 100%;
}

.ui-datepicker-calendar th,
.ui-datepicker-calendar td {
    border: 0;
    padding: 0.18rem;
    text-align: center;
}

.ui-datepicker-calendar th {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.ui-datepicker-calendar a,
.ui-datepicker-calendar span {
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.86);
    display: block;
    padding: 0.48rem 0.25rem;
    text-decoration: none;
    transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.ui-datepicker-calendar a:hover {
    background: rgba(165, 60, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(165, 60, 255, 0.55);
    color: #fff;
}

.ui-datepicker-calendar .ui-datepicker-current-day a,
.ui-datepicker-calendar .ui-state-active {
    background: linear-gradient(135deg, #7c2cff, #c13dff);
    box-shadow: 0 0 18px rgba(165, 60, 255, 0.48);
    color: #fff;
}

.ui-datepicker-calendar .ui-state-highlight {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.ui-datepicker .ui-state-disabled span,
.ui-datepicker .rws-date-unavailable span,
.ui-datepicker .rws-date-unavailable a {
    color: rgba(255, 255, 255, 0.22);
    opacity: 1;
    text-decoration: line-through;
}

.rws-rental-modal {
    align-items: center;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(8px);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 99999;
}

.rws-rental-modal.is-open {
    display: flex;
}

.rws-rental-modal__panel {
    background-color: #222323;
    backdrop-filter: blur(20px);
    border: 1px solid #FFFFFF4D;
    border-radius: 18px;
    color: #fff;
    max-width: 34rem;
    padding: 1.65rem;
    position: relative;
    width: 100%;
}

.rws-rental-modal .rws-rental-modal__panel .rws-rental-modal__close{
 width:36px;
 height:36px;
 font-size:12px;
 border-radius:99px;
 background-color: #FFFFFF1A;
  border: 1px solid #FFFFFF4D;
  color: #fff
}

.rws-rental-modal__fields label input[type=text]{
 border-radius:99px;
 background-color: #FFFFFF1A;
    backdrop-filter: blur(20px);
    border: 1px solid #FFFFFF4D;
}

.rws-rental-modal__panel h2 {
    color: inherit;
    font-family: inherit;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 2.5rem 1.25rem 0;
}

.rws-rental-modal__close {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.4rem;
    height: 2.25rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 1rem;
    top: 1rem;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    width: 2.25rem;
}

.rws-rental-modal__close:hover,
.rws-rental-modal__close:focus {
    background: linear-gradient(135deg, #7c2cff, #c13dff);
    box-shadow: 0 0 20px rgba(165, 60, 255, 0.5);
    outline: none;
    transform: translateY(-1px);
}

.rws-rental-modal__fields {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.rws-rental-modal__error {
    color: #ffb4b4;
    font-size: 0.92rem;
    font-weight: 500;
    margin: 0 0 1rem;
}

.rws-rental-modal__error[hidden] {
    display: none;
}

.rws-modal-save {
    background: linear-gradient(135deg, #8f32ff, #c13dff) !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: 0 0 28px rgba(165, 60, 255, 0.58) !important;
    color: #fff !important;
    display: inline-flex !important;
    font-family: inherit !important;
    font-weight: 700 !important;
    justify-content: center;
    line-height: 1.2 !important;
    min-height: 3rem;
    padding: 0.85rem 1.6rem !important;
    text-align: center;
    width: 100%;
}

.rws-modal-save:hover,
.rws-modal-save:focus {
    box-shadow: 0 0 36px rgba(165, 60, 255, 0.72) !important;
    filter: brightness(1.05);
    outline: none;
}

@media (max-width: 560px) {
    .rws-rental-modal__panel {
        padding: 1.35rem;
    }

    .rws-rental-modal__fields {
        grid-template-columns: 1fr;
    }

     #rws-rental-modal-title{
  font-size:30px;
 }
}
