/**
 * Frontend Styles for Partial Delivery System
 */

/* Cart Notice Box */
.pds-cart-notice {
    margin: 20px 0;
}

.pds-cart-notice-box {
    padding: 20px;
    border: 2px solid #dc3232;
    background: #fff5f5;
    border-radius: 4px;
    margin-bottom: 15px;
}

.pds-cart-notice-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #333;
}

.pds-cart-notice-text {
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.6;
}

.pds-cart-notice-default {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.6;
}

.pds-cart-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.pds-cart-checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.pds-cart-checkbox-label span {
    color: #333;
}

/* In Stock Items Section */
.pds-in-stock-section {
    margin: 30px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pds-in-stock-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 20px 0;
    color: #333;
}

.pds-in-stock-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pds-in-stock-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.pds-item-image {
    flex-shrink: 0;
}

.pds-item-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.pds-item-details {
    flex: 1;
}

.pds-item-name {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.pds-item-status {
    margin-bottom: 5px;
}

.pds-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.pds-status-in-stock {
    color: #46b450;
    font-weight: 500;
}

.pds-item-price {
    font-weight: bold;
    color: #333;
}

.pds-item-quantity {
    flex-shrink: 0;
}

.pds-partial-delivery-notice {
    margin: 20px 0;
    padding: 15px;
    border-left: 4px solid #0073aa;
    background: #f0f8ff;
    border-radius: 4px;
}

.pds-partial-delivery-notice.forced {
    border-left-color: #dc3232;
    background: #ffeaea;
}

.pds-partial-delivery-notice.recommended {
    border-left-color: #f0b849;
    background: #fff8e5;
}

.pds-partial-delivery-notice.optional {
    border-left-color: #46b450;
    background: #eafaea;
}

.pds-partial-delivery-notice h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.pds-partial-delivery-notice p {
    margin-bottom: 15px;
}

.pds-split-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pds-split-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.pds-split-button.yes {
    background-color: #46b450;
    color: #fff;
}

.pds-split-button.yes:hover {
    background-color: #3a9a42;
}

.pds-split-button.no {
    background-color: #666;
    color: #fff;
}

.pds-split-button.no:hover {
    background-color: #555;
}

.pds-split-button.later {
    background-color: #0073aa;
    color: #fff;
}

.pds-split-button.later:hover {
    background-color: #005a87;
}

.pds-split-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pds-item-list {
    margin: 15px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.pds-item-list ul {
    margin: 0;
    padding-left: 20px;
}

.pds-item-list li {
    margin: 5px 0;
}

