/*
Theme Name: BASARA_tcd100_child
Version: 1.9
Template: basara_tcd100
*/


/* WooCommerce Multiple Shipping カスタムスタイル */
.wcms-shipping-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* WCMS 進捗インジケーター */
.wcms-progress-indicator {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.wcms-step {
    display: flex;
    align-items: center;
    margin: 0 20px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.wcms-step.active {
    opacity: 1;
}

.wcms-step .step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #e0e0e0;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
    color: #666;
}

.wcms-step.active .step-number {
    background: #0073aa;
    color: white;
}

/* WCMSアクションヘッダー */
.wcms-action-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    padding: 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

/* WCMSボタンスタイル */
.wcms-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.wcms-btn-primary {
    background: #0073aa;
    color: white;
}

.wcms-btn-primary:hover {
    background: #005a87;
}

.wcms-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.wcms-btn-secondary:hover {
    background: #e0e0e0;
}

.wcms-btn-success {
    background: #28a745;
    color: white;
}

.wcms-btn-success:hover {
    background: #218838;
}

.wcms-btn-outline {
    background: transparent;
    border: 2px solid #0073aa;
    color: #0073aa;
}

.wcms-btn-outline:hover {
    background: #0073aa;
    color: white;
}

.wcms-btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.wcms-btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.wcms-btn-danger {
    background: #dc3545;
    color: white;
}

.wcms-btn-danger:hover {
    background: #c82333;
}

/* WCMSテーブルスタイル */
.wcms-table-wrapper {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.wcms-shipping-table {
    width: 100%;
    border-collapse: collapse;
}

.wcms-shipping-table th {
    background: #f8f9fa;
    padding: 16px;
    font-weight: 600;
    text-align: left;
    border-bottom: 2px solid #e0e0e0;
}

.wcms-shipping-table td {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.wcms-product-row:hover {
    background: #f8f9fa;
}

/* WCMS商品情報 */
.wcms-product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wcms-product-name {
    font-weight: 600;
    color: #333;
}

.wcms-product-meta {
    font-size: 12px;
    color: #666;
}

/* WCMS数量入力 */
.wcms-qty-input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

/* WCMS住所セレクト */
.wcms-address-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

/* WCMSアクションボタン */
.wcms-action-buttons {
    display: flex;
    gap: 8px;
}

/* WCMS使用状況サマリー */
.wcms-usage-summary {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
}

.wcms-usage-summary h3 {
    margin: 0 0 16px 0;
    color: #333;
}

.wcms-usage-grid {
    display: grid;
    gap: 16px;
}

.wcms-usage-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wcms-usage-product {
    min-width: 200px;
    font-weight: 500;
}

.wcms-usage-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.wcms-progress-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.wcms-progress-fill {
    height: 100%;
    background: #28a745;
    transition: width 0.3s ease;
}

.wcms-usage-text {
    min-width: 40px;
    font-size: 12px;
    color: #666;
}

/* WCMSフォームアクション */
.wcms-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* WCMSヘルプノート */
.wcms-help-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #e7f3ff;
    border: 1px solid #bee5eb;
    border-radius: 6px;
    margin-top: 20px;
}

.wcms-help-note i {
    color: #0073aa;
    margin-top: 2px;
}

.wcms-help-note p {
    margin: 0;
    color: #004085;
}

/* WCMSツールチップ */
.wcms-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.wcms-tooltip-text {
    visibility: hidden;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 12px;
}

.wcms-tooltip:hover .wcms-tooltip-text {
    visibility: visible;
}

/* WCMSレスポンシブデザイン */
@media (max-width: 768px) {
    .wcms-shipping-container {
        padding: 10px;
    }
    
    .wcms-action-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .wcms-shipping-table {
        font-size: 14px;
    }
    
    .wcms-shipping-table th,
    .wcms-shipping-table td {
        padding: 8px;
    }
    
    .wcms-form-actions {
        flex-direction: column;
        gap: 16px;
    }
    
    .wcms-usage-item {
        flex-direction: column;
        align-items: flex-start;
    }
}