/* TE24 Shop – CPS-Versand-Box auf der Produktseite (ausgelagert aus wp_add_inline_style des Child-Themes). */
/* Container - clean without background/border */
.cps-product-shipping {
    padding: 0;
    margin: 20px 0;
}
.cps-product-shipping h4 {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

/* Form fields */
.cps-field {
    margin-bottom: 18px;
    position: relative;
}
.cps-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}
.cps-field .required {
    color: #d63638;
}

/* Input styling - unified with fixed height */
.cps-field input[type="text"],
.cps-field select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 48px;
    background: #fff;
    color: #333;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cps-field input[type="text"]:focus,
.cps-field select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
}
.cps-field input[type="text"]::placeholder {
    color: #999;
    line-height: 48px;
}

/* Error styling */
.cps-field .cps-error {
    color: #d63638;
    font-size: 12px;
    margin-top: 6px;
    display: block;
}
.cps-field input.cps-input-error {
    border-color: #d63638;
    box-shadow: 0 0 0 2px rgba(214, 54, 56, 0.2);
}
.cps-field input.cps-input-error:focus {
    border-color: #d63638;
    box-shadow: 0 0 0 2px rgba(214, 54, 56, 0.3);
}

/* Success styling */
.cps-field input.cps-input-valid {
    border-color: #00a32a;
}
.cps-field input.cps-input-valid:focus {
    border-color: #00a32a;
    box-shadow: 0 0 0 2px rgba(0, 163, 42, 0.2);
}

/* Shake animation for errors */
@keyframes cps-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}
.cps-shake {
    animation: cps-shake 0.4s ease;
}

/* SlimSelect - high z-index and unified styling */
.cps-product-shipping .ss-main {
    position: relative;
    z-index: 100;
}
.cps-product-shipping .ss-main .ss-single-selected {
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 48px;
    min-height: 48px;
    padding: 0 14px;
    background: #fff;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cps-product-shipping .ss-main .ss-single-selected:focus,
.cps-product-shipping .ss-main.ss-open .ss-single-selected {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
}
.cps-product-shipping .ss-main .ss-single-selected .placeholder {
    color: #999;
}

/* SlimSelect dropdown - very high z-index */
.ss-content {
    z-index: 99999 !important;
}
.ss-content .ss-list {
    max-height: 300px;
}
.ss-content .ss-list .ss-option {
    padding: 12px 14px;
    font-size: 14px;
}
.ss-content .ss-list .ss-option:hover,
.ss-content .ss-list .ss-option.ss-highlighted {
    background: #f0f7fc;
}
.ss-content .ss-list .ss-option.ss-selected {
    background: #0073aa;
    color: #fff;
}
.ss-content .ss-list .ss-optgroup-label {
    padding: 10px 14px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    background: #f5f5f5;
}

/* Flatpickr - high z-index */
.flatpickr-calendar {
    z-index: 99998 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.cps-product-shipping .flatpickr-input,
.cps-product-shipping input.flatpickr-input {
    height: 48px !important;
    padding: 0 14px !important;
    line-height: 48px !important;
    background: #fff !important;
    cursor: pointer;
}
/* Flatpickr alt input (visible input) */
.cps-product-shipping input.flatpickr-input + input,
.cps-product-shipping .flatpickr-alt-input {
    height: 48px !important;
    padding: 0 14px !important;
    line-height: 48px !important;
}

/* Notices */
.cps-notices {
    margin-top: 15px;
}
.cps-notice {
    padding: 12px 14px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 13px;
}
.cps-notice.info {
    background: #e7f3ff;
    border-left: 4px solid #0073aa;
    color: #004085;
}
.cps-notice.warning {
    background: #fff8e5;
    border-left: 4px solid #dba617;
    color: #856404;
}
.cps-notice.success {
    background: #e7ffe7;
    border-left: 4px solid #00a32a;
    color: #155724;
}

/* Summary */
.cps-summary {
    padding: 15px 0;
    margin-top: 15px;
    border-top: 1px solid #eee;
}
.cps-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}
.cps-summary-row span:last-child {
    font-weight: 600;
    color: #0073aa;
}

/* Timeslot field */
.cps-field-timeslot {
    margin-top: 10px;
}

/* States */
.cps-loading {
    opacity: 0.6;
    pointer-events: none;
}
.cps-field-disabled {
    opacity: 0.5;
    pointer-events: none;
}
.cps-field-disabled input,
.cps-field-disabled .ss-main {
    background: #f5f5f5 !important;
    cursor: not-allowed;
}

/* SlimSelect disabled state */
.ss-main.ss-disabled {
    background: #f5f5f5 !important;
    pointer-events: none;
}
.ss-main.ss-disabled .ss-single-selected {
    background: #f5f5f5 !important;
    cursor: not-allowed;
}

/* Variation notice styling */
#cps-variation-notice {
    margin-bottom: 15px;
}
