.populate-rental-products .gfield_checkbox {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.populate-rental-products .tsp-rental-card-wrapper {
    margin: 0;
    padding: 0;
    display: flex;
}

.tsp-rental-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tsp-rental-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tsp-rental-card-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tsp-rental-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tsp-rental-card-info {
    flex-grow: 1;
    margin-bottom: 16px;
}

.tsp-rental-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #1e293b;
    line-height: 1.3;
}

.tsp-rental-card-price {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.tsp-rental-card-price .amount {
    color: #0f172a;
    font-weight: 600;
}

.tsp-rental-card-qty {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    border-top: 1px solid #f1f5f9 !important;
    padding-top: 12px !important;
    margin-top: auto !important;
}

.tsp-rental-card-qty label {
    font-size: 14px !important;
    color: #475569 !important;
    font-weight: 600 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

/* 100% remove native number spinners across all engines (Webkit, Blink, Firefox, Edge) */
.tsp-rental-card input[type="number"].tsp-qty-input,
.tsp-qty-stepper input[type="number"],
input[type="number"].tsp-qty-input {
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
    appearance: none !important;
    margin: 0 !important;
}

.tsp-rental-card input[type="number"].tsp-qty-input::-webkit-outer-spin-button,
.tsp-rental-card input[type="number"].tsp-qty-input::-webkit-inner-spin-button,
.tsp-qty-stepper input[type="number"]::-webkit-outer-spin-button,
.tsp-qty-stepper input[type="number"]::-webkit-inner-spin-button,
input[type="number"].tsp-qty-input::-webkit-outer-spin-button,
input[type="number"].tsp-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    display: none !important;
}

.tsp-qty-stepper {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    width: auto !important;
    box-sizing: border-box !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    padding: 0 !important;
    margin: 0 !important;
}

.tsp-qty-stepper:focus-within {
    border-color: var(--orange, #FF6715) !important;
    box-shadow: 0 0 0 2px rgba(255, 103, 21, 0.15) !important;
}

.tsp-qty-btn {
    flex: 0 0 36px !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 35px !important;
    min-height: 35px !important;
    max-height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 35px !important;
    color: #475569 !important;
    background: #f8fafc !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    user-select: none !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
    outline: none !important;
}

.tsp-qty-btn:hover:not(:disabled) {
    background: #fff7ed !important;
    color: var(--orange, #FF6715) !important;
}

.tsp-qty-btn:active:not(:disabled) {
    background: #fed7aa !important;
    color: #c2410c !important;
}

.tsp-qty-btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
}

.tsp-qty-input {
    flex: 0 0 46px !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 35px !important;
    min-height: 35px !important;
    max-height: 35px !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: 1.5px solid #cbd5e1 !important;
    border-right: 1.5px solid #cbd5e1 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    outline: none !important;
    line-height: 35px !important;
    vertical-align: middle !important;
}

/* Out of Stock Styles */
.tsp-rental-card.tsp-out-of-stock {
    opacity: 0.6;
    filter: grayscale(0.5);
    cursor: not-allowed;
    background: #f8fafc;
}

.tsp-rental-card.tsp-out-of-stock .tsp-qty-btn,
.tsp-rental-card.tsp-out-of-stock .tsp-qty-input {
    pointer-events: none;
    background: #e2e8f0;
    color: #94a3b8;
}

.tsp-out-of-stock-label {
    display: inline-block;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-left: 8px;
    vertical-align: middle;
}

.tsp-next-available {
    margin-top: 8px;
    font-size: 13px;
    color: #64748b;
    background: #f1f5f9;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-block;
}

.tsp-next-available strong {
    color: #0f172a;
    font-weight: 700;
}

/* Variable Product Card Styles - Option 1 Pill Selector */
.tsp-rental-card-wrapper-variable {
    grid-column: span 1;
}

.tsp-rental-card-variable {
    position: relative;
}

.tsp-variation-pills-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 12px 0;
}

.tsp-var-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 9999px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
    line-height: 1.2 !important;
    outline: none !important;
}

.tsp-var-pill:hover {
    background: #fff7ed !important;
    border-color: var(--orange, #FF6715) !important;
    color: var(--orange, #FF6715) !important;
}

.tsp-var-pill.active {
    background: var(--orange, #FF6715) !important;
    border-color: var(--orange, #FF6715) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(255, 103, 21, 0.4) !important;
}

.tsp-var-pill.active .tsp-pill-text {
    color: #ffffff !important;
}

.tsp-var-pill.out-of-stock {
    opacity: 0.5 !important;
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
}

.tsp-var-pill.out-of-stock.active {
    border-color: #ef4444 !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35) !important;
}

.tsp-var-pill.has-qty:not(.active) {
    border-color: var(--orange, #FF6715) !important;
    background: #fff7ed !important;
    color: #c2410c !important;
    font-weight: 600 !important;
}

.tsp-pill-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    background: var(--orange, #FF6715) !important;
    color: #ffffff !important;
    border-radius: 9999px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
}

.tsp-var-pill.active .tsp-pill-badge {
    background: #ffffff !important;
    color: var(--orange, #FF6715) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
}

.tsp-active-var-meta {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 3px solid var(--orange, #FF6715);
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tsp-active-var-name {
    font-size: 12px;
    font-weight: 700;
    color: #9a3412;
    line-height: 1.3;
}

.tsp-active-var-meta .tsp-variation-stock-badge {
    font-size: 11px;
    color: #059669;
    font-weight: 600;
}

.tsp-active-var-meta .tsp-out-of-stock-label {
    display: inline-block;
    align-self: flex-start;
    margin: 2px 0 0 0;
}

.tsp-active-var-meta .tsp-next-available {
    margin-top: 4px;
    padding: 4px 8px;
    font-size: 11px;
}

/* Total Rental Days Field in Date Row */
.tsp-days-counter-field {
    grid-column: span 4 !important;
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 0 !important;
}

@media (max-width: 640px) {
    .tsp-days-counter-field {
        grid-column: span 12 !important;
    }
}

.tsp-days-counter-field label.gfield_label,
.tsp-days-counter-field label.gform-field-label,
.tsp-days-counter-field label {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: var(--content-color-blue, #013E7A) !important;
    margin-bottom: 6px !important;
    display: block !important;
    letter-spacing: 0.3px !important;
    line-height: 1.2 !important;
}

.tsp-days-counter-field .ginput_container {
    width: 100% !important;
}

.tsp-days-counter-field input.tsp-days-display {
    background: #ffffff !important;
    border: 1px solid rgba(1, 62, 122, 0.2) !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--content-color-blue, #013E7A) !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    cursor: default !important;
    box-shadow: none !important;
    line-height: 1 !important;
    outline: none !important;
}

.tsp-rental-summary {
    margin-top: 30px;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #1e293b;
}

.tsp-rental-summary h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
}

.tsp-summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    color: #475569;
}

.tsp-summary-line span:last-child {
    font-weight: 600;
    color: #1e293b;
}

.tsp-summary-total {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 2px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    font-size: 20px;
    color: #0f172a;
}

.tsp-summary-total strong {
    color: #10b981;
    /* Green color for total */
}

/* Thank You Page Styles */
.tsp-rental-thankyou-info {
    background: #f0f9ff;
    border: 2px solid #bae6fd;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    color: #0369a1;
}

.tsp-rental-thankyou-info h2 {
    color: #0c4a6e;
    margin-top: 0;
    font-size: 24px;
    margin-bottom: 10px;
}

.tsp-rental-dates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
}

.tsp-rental-date-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #bae6fd;
    text-align: center;
}

.tsp-rental-date-box strong {
    display: block;
    font-size: 14px;
    color: #0369a1;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tsp-rental-date-box span {
    font-size: 20px;
    font-weight: 700;
    color: #0c4a6e;
}

.tsp-rental-pickup-location {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #bae6fd;
}

.tsp-rental-pickup-location h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #0c4a6e;
}

.tsp-rental-pickup-location address {
    font-style: normal;
    line-height: 1.6;
    color: #075985;
    font-weight: 500;
    font-size: 16px;
}

/* My Rentals Account Page */
.tsp-my-rentals-section {
    margin-top: 30px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.tsp-my-rentals-header {
    background: #f8fafc;
    padding: 20px 24px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tsp-my-rentals-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tsp-my-rentals-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 !important;
}

.tsp-my-rentals-table thead th {
    background: #f1f5f9;
    padding: 12px 24px !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.05em;
    text-align: left;
    border: none !important;
}

.tsp-my-rentals-table tbody td {
    padding: 20px 24px !important;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    font-size: 14px;
}

.tsp-my-rentals-table tbody tr:last-child td {
    border-bottom: none;
}

.tsp-my-rentals-table tbody tr:hover {
    background: #fdfdfd;
}

.tsp-rental-period-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tsp-rental-period-label {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.tsp-rental-order-link {
    font-weight: 700;
    color: #0284c7;
    text-decoration: none;
    transition: color 0.2s;
}

.tsp-rental-order-link:hover {
    color: #0369a1;
    text-decoration: underline;
}

.tsp-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.tsp-badge-success {
    background: #dcfce7;
    color: #166534;
}

.tsp-badge-pending {
    background: #fef9c3;
    color: #854d0e;
}

.tsp-badge-warning {
    background: #ffedd5;
    color: #9a3412;
}

@media (max-width: 768px) {
    .tsp-my-rentals-table thead {
        display: none;
    }

    .tsp-my-rentals-table tbody td {
        display: block;
        padding: 12px 24px !important;
        border-bottom: none;
    }

    .tsp-my-rentals-table tbody td:before {
        content: attr(data-title);
        display: block;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        color: #64748b;
        margin-bottom: 4px;
    }

    .tsp-my-rentals-table tbody tr {
        border-bottom: 2px solid #e2e8f0;
        display: block;
        padding: 10px 0;
    }
}