/**
 * Rental Core Plugin Styles
 *
 * @package RentalCore
 */

/* General Styles */
:root {
    --rental-primary-color: #0073aa;
    --rental-secondary-color: #23282d;
    --rental-accent-color: #00a0d2;
    --rental-light-color: #f1f1f1;
    --rental-border-color: #ddd;
    --rental-success-color: #46b450;
    --rental-error-color: #dc3232;
    --rental-warning-color: #ffb900;
    --rental-info-color: #00a0d2;
}

.rental-core-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Product Page Styles */
.rental-core-product-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.rental-core-product-header {
    margin-bottom: 20px;
}

.rental-core-product-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--rental-secondary-color);
}

.rental-core-product-short-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.rental-core-product-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.rental-core-product-left {
    flex: 1;
    min-width: 300px;
}

.rental-core-product-right {
    flex: 1;
    min-width: 300px;
}

.rental-core-field-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rental-border-color);
}

.rental-core-field-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.rental-core-field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.rental-core-field {
    flex: 1;
    min-width: 200px;
}

.rental-core-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.rental-core-field input[type="text"],
.rental-core-field input[type="email"],
.rental-core-field input[type="tel"],
.rental-core-field input[type="number"],
.rental-core-field select,
.rental-core-field textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--rental-border-color);
    border-radius: 4px;
    font-size: 14px;
}

.rental-core-field input[type="text"]:focus,
.rental-core-field input[type="email"]:focus,
.rental-core-field input[type="tel"]:focus,
.rental-core-field input[type="number"]:focus,
.rental-core-field select:focus,
.rental-core-field textarea:focus {
    border-color: var(--rental-accent-color);
    outline: none;
    box-shadow: 0 0 0 1px var(--rental-accent-color);
}

.rental-core-field .required {
    color: var(--rental-error-color);
}

.rental-core-datepicker {
    position: relative;
}

.rental-core-datepicker input {
    padding-right: 30px;
}

.rental-core-datepicker:after {
    content: "\f508";
    font-family: dashicons;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.rental-core-file-upload {
    margin-top: 20px;
}

.rental-core-file-upload label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.rental-core-file-upload-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--rental-accent-color);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.rental-core-file-upload-button:hover {
    background-color: var(--rental-primary-color);
}

.rental-core-file-upload-list {
    margin-top: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    font-size: 14px;
}

.rental-core-file-upload-list .file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.rental-core-file-upload-list .file-item:last-child {
    border-bottom: none;
}

.rental-core-file-upload-list .file-remove {
    color: var(--rental-error-color);
    cursor: pointer;
}

/* Cart Page Styles */
.rental-core-cart-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.rental-core-cart-header {
    margin-bottom: 20px;
}

.rental-core-cart-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--rental-secondary-color);
}

.rental-core-cart-items {
    margin-bottom: 30px;
}

.rental-core-cart-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--rental-border-color);
}

.rental-core-cart-item:last-child {
    border-bottom: none;
}

.rental-core-cart-item-details {
    display: flex;
    flex: 3;
    gap: 20px;
}

.rental-core-cart-item-thumbnail {
    width: 100px;
    height: 100px;
}

.rental-core-cart-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.rental-core-cart-item-info {
    flex: 1;
}

.rental-core-cart-item-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--rental-secondary-color);
}

.rental-core-cart-item-custom-data {
    margin-top: 15px;
    font-size: 14px;
}

.rental-core-cart-item-custom-data h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--rental-secondary-color);
}

.rental-core-cart-item-custom-data ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rental-core-cart-item-custom-data li {
    margin-bottom: 5px;
}

.rental-core-cart-item-custom-data strong {
    font-weight: 600;
}

.rental-core-cart-item-price {
    flex: 1;
    text-align: right;
    font-size: 18px;
    font-weight: 600;
    color: var(--rental-secondary-color);
}

.rental-core-cart-item-remove {
    margin-left: 20px;
    align-self: center;
}

.rental-core-cart-item-remove a {
    color: var(--rental-error-color);
    text-decoration: none;
}

.rental-core-cart-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.rental-core-cart-actions .button {
    padding: 10px 20px;
    background-color: var(--rental-accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.rental-core-cart-actions .button:hover {
    background-color: var(--rental-primary-color);
}

.rental-core-cart-collaterals {
    margin-top: 30px;
}

.rental-core-cart-totals-table {
    width: 100%;
    border-collapse: collapse;
}

.rental-core-cart-totals-label {
    font-weight: 600;
    padding: 10px 0;
}

.rental-core-cart-totals-value {
    text-align: right;
    padding: 10px 0;
}

.rental-core-cart-subtotal,
.rental-core-cart-discount,
.rental-core-cart-shipping,
.rental-core-cart-fee,
.rental-core-cart-tax-rate,
.rental-core-cart-tax-total,
.rental-core-cart-order-total {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--rental-border-color);
}

.rental-core-cart-order-total {
    border-bottom: none;
    font-weight: 700;
    font-size: 18px;
    color: var(--rental-secondary-color);
}

.rental-core-cart-proceed-checkout {
    margin-top: 20px;
}

.rental-core-cart-proceed-checkout .checkout-button {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background-color: var(--rental-success-color);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.rental-core-cart-proceed-checkout .checkout-button:hover {
    background-color: #389e40;
}

/* Checkout Page Styles */
.rental-core-checkout-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.rental-core-checkout-progress {
    margin-bottom: 30px;
    position: relative;
}

.rental-core-checkout-progress-bar {
    height: 4px;
    background-color: var(--rental-success-color);
    position: absolute;
    top: 20px;
    z-index: 1;
    transition: width 0.3s;
}

.rental-core-checkout-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.rental-core-checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 33%;
}

.rental-core-checkout-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid var(--rental-border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    margin-bottom: 10px;
}

.rental-core-checkout-step.active .rental-core-checkout-step-number {
    background-color: var(--rental-success-color);
    border-color: var(--rental-success-color);
    color: white;
}

.rental-core-checkout-step.completed .rental-core-checkout-step-number {
    background-color: var(--rental-success-color);
    border-color: var(--rental-success-color);
    color: white;
}

.rental-core-checkout-step-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--rental-secondary-color);
    text-align: center;
}

.rental-core-checkout-billing,
.rental-core-checkout-review,
.rental-core-checkout-payment {
    margin-bottom: 30px;
}

.rental-core-checkout-billing h3,
.rental-core-checkout-review h3,
.rental-core-checkout-payment h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--rental-secondary-color);
}

.rental-core-checkout-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.rental-core-back-button,
.rental-core-next-button {
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
}

.rental-core-back-button {
    background-color: var(--rental-light-color);
    color: var(--rental-secondary-color);
    border: 1px solid var(--rental-border-color);
}

.rental-core-back-button:hover {
    background-color: #e5e5e5;
}

.rental-core-next-button {
    background-color: var(--rental-success-color);
    color: white;
    border: none;
}

.rental-core-next-button:hover {
    background-color: #389e40;
}

.rental-core-review-order-table {
    width: 100%;
    margin-bottom: 30px;
}

.rental-core-review-order-header {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 2px solid var(--rental-border-color);
    font-weight: 600;
    color: var(--rental-secondary-color);
}

.rental-core-review-order-product-name {
    flex: 3;
}

.rental-core-review-order-product-total {
    flex: 1;
    text-align: right;
}

.rental-core-review-order-product {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--rental-border-color);
}

.rental-core-review-order-product-info {
    flex: 3;
}

.rental-core-review-order-custom-data {
    margin-top: 10px;
    font-size: 14px;
}

.rental-core-review-order-custom-data h4 {
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--rental-secondary-color);
}

.rental-core-review-order-custom-data ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rental-core-review-order-custom-data li {
    margin-bottom: 3px;
}

.rental-core-review-order-footer {
    margin-top: 20px;
}

.rental-core-review-order-subtotal,
.rental-core-review-order-discount,
.rental-core-review-order-shipping,
.rental-core-review-order-fee,
.rental-core-review-order-tax,
.rental-core-review-order-total {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--rental-border-color);
}

.rental-core-review-order-total {
    border-bottom: none;
    font-weight: 700;
    font-size: 18px;
    color: var(--rental-secondary-color);
}

.rental-core-payment-methods {
    margin-bottom: 30px;
}

.rental-core-payment-methods ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rental-core-payment-methods li {
    padding: 15px;
    border: 1px solid var(--rental-border-color);
    border-radius: 4px;
    margin-bottom: 10px;
}

.rental-core-payment-methods li.payment_method_paypal img {
    max-height: 40px;
    margin-left: 10px;
    vertical-align: middle;
}

.rental-core-place-order {
    margin-top: 30px;
}

.rental-core-place-order .button {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background-color: var(--rental-success-color);
    color: white;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.rental-core-place-order .button:hover {
    background-color: #389e40;
}

.rental-core-checkout-complete {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.rental-core-checkout-complete-icon {
    margin-bottom: 20px;
}

.rental-core-checkout-complete-icon img {
    width: 80px;
    height: 80px;
}

.rental-core-checkout-complete h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--rental-success-color);
}

.rental-core-checkout-complete p {
    font-size: 16px;
    margin-bottom: 30px;
    color: #666;
}

.rental-core-checkout-order-details {
    max-width: 500px;
    margin: 0 auto 30px;
    text-align: left;
    padding: 20px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.rental-core-checkout-order-details h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--rental-secondary-color);
}

.rental-core-checkout-order-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rental-core-checkout-order-details li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.rental-core-checkout-order-details li:last-child {
    border-bottom: none;
}

.rental-core-checkout-complete-actions {
    margin-top: 30px;
}

.rental-core-checkout-complete-actions .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--rental-primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.rental-core-checkout-complete-actions .button:hover {
    background-color: #005d8c;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .rental-core-product-content {
        flex-direction: column;
    }
    
    .rental-core-cart-item-details {
        flex-direction: column;
    }
    
    .rental-core-cart-item-thumbnail {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }
    
    .rental-core-cart-item-price {
        margin-top: 10px;
    }
    
    .rental-core-checkout-step-label {
        font-size: 12px;
    }
}

/* Address Search Form Styles */
.rental-core-address-search-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.rental-core-address-search-form h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--rental-secondary-color);
    text-align: center;
}

.rental-core-address-search-form .form-row {
    margin-bottom: 20px;
}

.rental-core-address-search-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.rental-core-address-search-form input[type="text"],
.rental-core-address-search-form input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--rental-border-color);
    border-radius: 4px;
    font-size: 14px;
}

.rental-core-address-search-form input[type="text"]:focus,
.rental-core-address-search-form input[type="number"]:focus {
    border-color: var(--rental-accent-color);
    outline: none;
    box-shadow: 0 0 0 1px var(--rental-accent-color);
}

.rental-core-address-search-form .submit-row {
    text-align: center;
    margin-top: 30px;
}

.rental-core-address-search-form button {
    padding: 12px 24px;
    background-color: var(--rental-success-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.rental-core-address-search-form button:hover {
    background-color: #389e40;
}

.rental-core-address-search-form .error-message {
    color: var(--rental-error-color);
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

/* Success Image */
.rental-core-success-image {
    width: 100px;
    height: 100px;
    background-color: var(--rental-success-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.rental-core-success-image svg {
    width: 60px;
    height: 60px;
    fill: white;
}

#elementor-price-result {
    text-align: center;
    border: 1px solid #d8d8d8;
    margin: 0 0 20px;
    padding: 10px;
    font-size: 21px;
    font-weight: bold;
    width: 100%;
}

#elementor-price-result span {
    color: #e96565;
}

#elementor-price-result small {
    font-size: 14px;
}