/**
 * WooCommerce Express Delivery Pro - Frontend Styles
 */

/* Główny kontener */
.wc-express-delivery-options {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.express-title {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Dropdown */
.express-select {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.express-select:hover {
    border-color: #999;
}

.express-select:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Radio buttons */
.express-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.express-radio-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.express-radio-option:hover {
    border-color: #999;
    background: #f5f5f5;
}

.express-radio-option input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.express-radio-option input[type="radio"]:checked {
    accent-color: #e74c3c;
}

.express-radio-option input[type="radio"]:checked + .express-radio-label {
    font-weight: 600;
}

.express-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.express-icon {
    font-size: 18px;
}

.express-name {
    flex: 1;
}

.express-price {
    color: #e74c3c;
    font-weight: 600;
}

/* Buttons (Cards) */
.express-buttons-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.express-button {
    padding: 20px 15px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.express-button:hover {
    border-color: #999;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.express-button.active {
    border-color: #e74c3c;
    background: #fff5f5;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
}

.express-button-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.express-button-icon {
    font-size: 28px;
    line-height: 1;
}

.express-button-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.express-button-subtitle {
    font-size: 12px;
    color: #666;
}

.express-button-price {
    font-size: 13px;
    color: #e74c3c;
    font-weight: 600;
}

/* Podgląd daty */
.express-date-preview {
    margin-top: 15px;
    padding: 12px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 6px;
}

.express-date-info {
    margin: 0;
    color: #2e7d32;
    font-size: 14px;
    font-weight: 500;
}

/* Responsywność */
@media (max-width: 768px) {
    .express-buttons-group {
        grid-template-columns: 1fr;
    }
    
    .wc-express-delivery-options {
        padding: 15px;
    }
}

/* Animacje */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wc-express-delivery-options {
    animation: fadeIn 0.3s ease;
}
