/* K-Ship Management Form Styles */
#kship-management-wrapper {
    background: #fff;
    border: 1px solid #ccd0d4;
    padding: 20px 30px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

#kship-management-wrapper h2 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.kship-city-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.kship-city-row input[type="text"],
.kship-city-row input[type="number"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.kship-remove-city {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s;
}

.kship-remove-city:hover {
    background: #e53935;
    color: #fff;
    border-color: #e53935;
}

.kship-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kship-notice {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}
.kship-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}
.kship-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* Checkout Page Styles */
.woocommerce-checkout .select2-container .select2-selection--single {
    height: 44px !important;
    line-height: 44px !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px !important;
}

/* Styles pour la section d'import CSV */
.kship-import-section {
    background: #f0f6fc;
    border: 1px solid #c8e1ff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.kship-import-section h2 {
    margin-top: 0;
}

.kship-import-section form {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* K-Ship Rate Viewer Shortcode Styles */
#kship-rate-viewer-wrapper {
    background: #f9f9f9;
    border: 1px solid #e1e1e1;
    padding: 25px 30px;
    border-radius: 8px;
    max-width: 600px;
    margin: 25px auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

#kship-rate-viewer-wrapper h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4em;
    color: #333;
}

#kship-rate-viewer-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

#kship-rate-viewer-wrapper select {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 1em;
    box-sizing: border-box; /* Assure que le padding ne casse pas la largeur */
}

#kship-rate-display {
    margin-top: 20px;
    padding: 15px;
    background: #e7f3ff;
    border: 1px solid #b3d7ff;
    border-left: 5px solid #21759b;
    border-radius: 4px;
    text-align: center;
    font-size: 1.1em;
    color: #31708f;
}