/**
 * WooCommerce Multi-Address Shipping Styles
 * Version: 1.0.0
 */

.woocommerce-multiship-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.woocommerce-multiship-wrapper .multiship-tabs ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    border-bottom: 2px solid #ddd;
    display: flex;
    flex-wrap: wrap;
}

.woocommerce-multiship-wrapper .multiship-tabs li {
    margin-right: 20px;
    margin-bottom: 10px;
}

.woocommerce-multiship-wrapper .multiship-tabs li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.woocommerce-multiship-wrapper .multiship-tabs li.active a {
    border-bottom-color: #be1f2d;
    font-weight: bold;
    color: #be1f2d;
}

.woocommerce-multiship-wrapper .multiship-tabs li a:hover {
    color: #be1f2d;
    background-color: #f9f9f9;
}

.woocommerce-multiship-wrapper .multiship-recipient-form {
    margin: 20px 0;
    padding: 0;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.woocommerce-multiship-wrapper .multiship-form-header {
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.woocommerce-multiship-wrapper .multiship-form-header:hover {
    background: #f5f5f5;
}

.woocommerce-multiship-wrapper .multiship-form-toggle {
    font-size: 20px;
    font-weight: bold;
    color: #be1f2d;
    transition: transform 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woocommerce-multiship-wrapper .multiship-form-header.active .multiship-form-toggle {
    transform: rotate(45deg);
}

.woocommerce-multiship-wrapper .multiship-form-content {
    padding: 20px;
    display: none;
    background: #fff;
}

.woocommerce-multiship-wrapper .multiship-form-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.woocommerce-multiship-wrapper .multiship-recipients-list {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.woocommerce-multiship-wrapper .multiship-recipient-form input[type="text"],
.woocommerce-multiship-wrapper .multiship-recipient-form input[type="email"],
.woocommerce-multiship-wrapper .multiship-recipient-form select {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.woocommerce-multiship-wrapper .multiship-recipient-form input[type="text"]:focus,
.woocommerce-multiship-wrapper .multiship-recipient-form input[type="email"]:focus,
.woocommerce-multiship-wrapper .multiship-recipient-form select:focus {
    outline: none;
    border-color: #be1f2d;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.woocommerce-multiship-wrapper .multiship-recipient-form label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.woocommerce-multiship-wrapper .form-row {
    margin-bottom: 15px;
}

.woocommerce-multiship-wrapper .form-row-first {
    float: left;
    width: 48%!important;
    margin-right: 2%!important;
}

.woocommerce-multiship-wrapper .form-row-last {
    float: right;
    width: 48%!important;
    margin-left: 2%;
}

.woocommerce-multiship-wrapper .form-row-wide {
    clear: both;
    width: 100%;
}

.woocommerce-multiship-wrapper .form-row::after {
    content: "";
    display: table;
    clear: both;
}

.woocommerce-multiship-wrapper table.multiship-recipients-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.woocommerce-multiship-wrapper .multiship-recipients-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.woocommerce-multiship-wrapper .multiship-recipients-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
}

.woocommerce-multiship-wrapper .multiship-recipients-table tr:hover {
    background-color: #f8f9fa;
}

.woocommerce-multiship-wrapper .multiship-order-form {
    margin: 20px 0;
}

.woocommerce-multiship-wrapper .recipient-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.woocommerce-multiship-wrapper .button-edit {
    background: #f0ad4e;
    border-color: #eea236;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.woocommerce-multiship-wrapper .button-edit:hover {
    background: #ec971f;
    border-color: #d58512;
    color: #fff;
}

.woocommerce-multiship-wrapper .edit-form-row {
    display: none;
    background: #fff;
}

.woocommerce-multiship-wrapper .edit-form-row.editing {
    display: table-row;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 500px; }
}

.woocommerce-multiship-wrapper .edit-form-row td {
    padding: 20px;
    background: #fff;
    border: 2px solid #be1f2d;
    border-radius: 4px;
}

.woocommerce-multiship-wrapper .view-row.editing {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .woocommerce-multiship-wrapper .multiship-tabs ul {
        flex-direction: column;
    }
    
    .woocommerce-multiship-wrapper .multiship-tabs li {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .woocommerce-multiship-wrapper .form-row-first,
    .woocommerce-multiship-wrapper .form-row-last {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }
    
    .woocommerce-multiship-wrapper .multiship-recipients-table {
        font-size: 14px;
    }
    
    .woocommerce-multiship-wrapper .multiship-recipients-table th,
    .woocommerce-multiship-wrapper .multiship-recipients-table td {
        padding: 8px;
    }
    
    .woocommerce-multiship-wrapper .recipient-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .woocommerce-multiship-wrapper .recipient-actions .button {
        width: 100%;
        text-align: center;
    }
}

/* WooCommerce Integration */
.woocommerce-multiship-wrapper .button {
    background: #be1f2d;
    border-color: #be1f2d;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.woocommerce-multiship-wrapper .button:hover {
    background: #005a87;
    border-color: #005a87;
    color: #fff;
}

.woocommerce-multiship-wrapper .button-primary {
    background: #be1f2d;
    border-color: #be1f2d;
}

.woocommerce-multiship-wrapper .button-secondary {
    background: #6c757d;
    border-color: #6c757d;
}

.woocommerce-multiship-wrapper .button-secondary:hover {
    background: #5a6268;
    border-color: #5a6268;
}

/* Success/Error Messages */
.woocommerce-multiship-wrapper .woocommerce-message,
.woocommerce-multiship-wrapper .woocommerce-error {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.woocommerce-multiship-wrapper .woocommerce-message {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.woocommerce-multiship-wrapper .woocommerce-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* File Upload Styling */
.woocommerce-multiship-wrapper input[type="file"] {
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.woocommerce-multiship-wrapper input[type="file"]:hover {
    border-color: #be1f2d;
}

.woocommerce-multiship-wrapper input[type="file"]:focus {
    border-color: #be1f2d;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* Checkbox Styling */
.woocommerce-multiship-wrapper input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Table Responsive */
@media (max-width: 600px) {
    .woocommerce-multiship-wrapper .multiship-recipients-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .woocommerce-multiship-wrapper .multiship-recipients-table th,
    .woocommerce-multiship-wrapper .multiship-recipients-table td {
        min-width: 120px;
    }
}

/* Delete order button styles */
.multiship-delete-order-btn {
    color: #b11c29 !important;
    padding: 4px 8px !important;
    min-width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 3px !important;
    transition: all 0.2s ease !important;
}

.multiship-delete-order-btn:hover { transform: translateY(-1px);}

.multiship-delete-order-btn:disabled {
    background: #6c757d !important;
    border-color: #6c757d !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.multiship-delete-order-btn .dashicons {
    color: #b11c29 !important;
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

/* Loading animation for delete button */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.multiship-delete-order-btn .dashicons-update {
    animation: spin 1s linear infinite;
}

/* Table actions column */
.woocommerce-multiship-wrapper .shop_table th:last-child,
.woocommerce-multiship-wrapper .shop_table td:last-child {
    text-align: center;
    width: 250px;
}

select.ms-bulk-action {
    width: 170px;
}


/* Bulk toolbar inline layout */
.woocommerce-multiship-wrapper #ms-bulk-form,
.woocommerce-multiship-wrapper .ms-bulk-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.woocommerce-multiship-wrapper #ms-bulk-form select,
.woocommerce-multiship-wrapper .ms-bulk-form select { min-width: 160px; }
.woocommerce-multiship-wrapper #ms-bulk-form .button,
.woocommerce-multiship-wrapper .ms-bulk-form .button { padding: 6px 10px; font-size: 12px; }

/* Removed selected count badge */

/* List headers with inline actions */
.woocommerce-multiship-wrapper .ms-list-header {
    margin-top: 15px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}
.woocommerce-multiship-wrapper .ms-list-header h4 { margin: 0; }
.woocommerce-multiship-wrapper .ms-list-actions { display: inline-flex; align-items: center; gap: 10px; }
.woocommerce-multiship-wrapper .ms-rename-form input[type="text"] { width: auto; max-width: 300px; }

/* Collapsible list body container */
.woocommerce-multiship-wrapper .ms-list-body { margin-top: 6px; }

/* Icon-only buttons for row actions */
.woocommerce-multiship-wrapper .ms-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #111827;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow .15s ease, transform .15s ease, background-color .15s ease;
}
.woocommerce-multiship-wrapper .ms-icon-btn:hover { background: transparent; transform: translateY(-1px); box-shadow: none; }
.woocommerce-multiship-wrapper .ms-icon-btn:active { transform: translateY(0); }
.woocommerce-multiship-wrapper .ms-icon-btn .dashicons { line-height: 1; }
.woocommerce-multiship-wrapper .ms-icon-btn--danger { color: #b11c29; }
.woocommerce-multiship-wrapper .ms-icon-btn--danger .dashicons { color: #b11c29; }

.ms-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 10px;
    background: #e6f4ea;
    color: #1e7e34;
    font-size: 12px;
    border: 1px solid #c3e6cb;
}

/* Orders table tweaks */
.woocommerce-multiship-wrapper .ms-orders-table th { font-size: 13px; }
.woocommerce-multiship-wrapper .ms-orders-table td { font-size: 14px; vertical-align: middle; }
.woocommerce-multiship-wrapper .ms-orders-table .ms-col-id { width: 60px; }
.woocommerce-multiship-wrapper .ms-orders-table .ms-order-name { font-weight: 600; }
.woocommerce-multiship-wrapper .ms-orders-table .ms-order-sub { color: #666; font-size: 12px; margin-top: 2px; }
.woocommerce-multiship-wrapper .ms-orders-table .ms-order-actions .button { padding: 6px 10px; font-size: 12px; margin-right: 6px; }
.woocommerce-multiship-wrapper .ms-orders-table .multiship-delete-order-btn { padding: 6px 8px !important; height: auto !important; }
.woocommerce-multiship-wrapper .ms-orders-table .dashicons { vertical-align: middle; }
/* Center-align actions within the Actions column */
.woocommerce-multiship-wrapper .ms-orders-table .ms-order-actions { display: inline-flex; align-items: center; gap: 8px; justify-content: center; }

/* Orders table status and product pills (create orders page) */
.woocommerce-multiship-wrapper .ms-status-badge {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: #eef2f7;
    color: #1f2937;
    border: 1px solid #e5e7eb;
}
.woocommerce-multiship-wrapper .ms-status--draft {
    background: #e8f5ec;
    color: #1e7e34;
    border-color: #c3e6cb;
}
.woocommerce-multiship-wrapper .ms-status--paid {
    background: #e7f1ff;
    color: #0a58ca;
    border-color: #cfe2ff;
}

.woocommerce-multiship-wrapper .ms-products-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: #e8f6ec;
    color: #1e7e34;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #c3e6cb;
}
.woocommerce-multiship-wrapper a.ms-products-pill:hover {
    filter: brightness(0.98);
}

/* Mobile delete button adjustments */
@media (max-width: 768px) {
    .multiship-delete-order-btn {
        min-width: 28px !important;
        height: 28px !important;
        padding: 2px 6px !important;
    }
    
    .multiship-delete-order-btn .dashicons {
        font-size: 14px;
        width: 14px;
        height: 14px;
    }
}

/* Manage Order Layout */
.multiship-manage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 15px;
}

.multiship-products-panel, .multiship-recipients-panel {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
}

.multiship-product-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.multiship-product-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.ms-product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    transition: box-shadow .2s ease, border-color .2s ease;
}

.woocommerce-multiship-wrapper .ms-product-card:hover { box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.woocommerce-multiship-wrapper .ms-product-card.selected { border-color: #be1f2d; box-shadow: 0 0 0 2px rgba(0,115,170,.15); }
.woocommerce-multiship-wrapper .ms-product-card img { width: 100%; height: auto; border-radius: 3px; margin-bottom: 8px; }
.woocommerce-multiship-wrapper .ms-product-meta .name { font-weight: 600; margin-bottom: 4px; }
.woocommerce-multiship-wrapper .ms-product-meta .price { color: #be1f2d; }
.woocommerce-multiship-wrapper .ms-pagination { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.woocommerce-multiship-wrapper .ms-pagination a { padding: 6px 10px; border: 1px solid #ddd; border-radius: 3px; background: #fff; color: #333; text-decoration: none; }
.woocommerce-multiship-wrapper .ms-pagination a.current { background: #be1f2d; color: #fff; border-color: #be1f2d; }

/* In-card variation selector */
.woocommerce-multiship-wrapper .ms-product-variations { margin-top: 8px; }
.woocommerce-multiship-wrapper .ms-product-variations .ms-variation-label { display: block; font-size: 12px; color: #555; margin-bottom: 4px; }
.woocommerce-multiship-wrapper .ms-product-variations .ms-variation-select { width: 100%; padding: 6px 8px; border: 1px solid #ddd; border-radius: 3px; background: #fff; }

.woocommerce-multiship-wrapper .multiship-recipient-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 12px;
}
.woocommerce-multiship-wrapper .multiship-recipient-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.woocommerce-multiship-wrapper .multiship-recipient-items .ms-item-row { padding: 6px 8px; background: #f1f3f5; border-radius: 3px; margin-bottom: 6px; }
.woocommerce-multiship-wrapper .ms-item-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.woocommerce-multiship-wrapper .ms-item-title { flex: 1; font-weight: 500; }
.woocommerce-multiship-wrapper .ms-item-controls { display: inline-flex; align-items: center; gap: 6px; }
.woocommerce-multiship-wrapper .ms-qty-input { width: 60px; padding: 4px 6px; text-align: center; }

@media (max-width: 900px) {
    .multiship-manage-grid { grid-template-columns: 1fr; }
}

/* Global loading overlay */
.ms-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.ms-loading-overlay.visible { display: flex; }
.ms-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0, 115, 170, 0.25);
    border-top-color: #be1f2d;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

/* Order summary bar */
.multiship-summary {
    display: flex;
    gap: 20px;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e1e5ea;
    border-radius: 4px;
    padding: 10px 12px;
    margin: 10px 0 15px 0;
}
.multiship-summary .ms-summary-line { color: #333; }
.multiship-summary strong { margin-right: 6px; }

/* Order summary table */
.ms-order-summary-table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e1e5ea;
}
.ms-order-summary-table th,
.ms-order-summary-table td {
    padding: 10px 12px;
    
}
td.ordertable-second-row {border-bottom: 1px solid #eef1f4;}
.ms-order-summary-table thead th {
    background: #f8f9fa;
    font-weight: 600;
}
.ms-order-summary-table tfoot th {
    background: #f8f9fa;
}
.ms-order-summary-table .muted { color: #6c757d; }

/* Keep summary select compact */
.ms-ship-method-select {
    width: 130px;
}

/* Ensure prices align right consistently */
.ms-col-subtotal, .ms-col-shipping, .ms-col-tax, .ms-col-total {
    text-align: right;
}

/* Gift note section */
.ms-gift-all { margin: 12px 0 16px 0; padding: 12px; background: #f9fbfd; border: 1px solid #e1e5ea; border-radius: 4px; }
.ms-gift-all h4 { margin: 0 0 8px 0; }
.ms-gift-note-wrap { margin-top: 8px; }
.ms-gift-note { width: 100%; box-sizing: border-box; }
textarea.ms-gift-note {height:75px}

/* ----------------------------------------------------
   Modern UI Refresh (scoped to .woocommerce-multiship-wrapper)
   - color tokens
   - cards + shadows
   - tabs, buttons, inputs
   - micro-interactions
   ---------------------------------------------------- */
.woocommerce-multiship-wrapper {
	/* Color system (light) */
	--ms-primary: #be1f2d;
	--ms-primary-600: #a51b26;
	--ms-primary-700: #8c1821;
	--ms-on-primary: #ffffff;
	--ms-surface: #ffffff;
	--ms-surface-alt: #f8f9fb;
	--ms-border: #e7e9ee;
	--ms-text: #1f2937;
	--ms-text-muted: #475467;
	--ms-shadow: 0 6px 20px rgba(16, 24, 40, 0.06);
	--ms-radius-sm: 8px;
	--ms-radius: 12px;
	--ms-radius-lg: 16px;
	--ms-focus: 0 0 0 4px rgba(190, 31, 45, 0.15);

	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Headings inside wrapper */
.woocommerce-multiship-wrapper h2,
.woocommerce-multiship-wrapper h3,
.woocommerce-multiship-wrapper h4 { color: var(--ms-text); }

/* Tabs: compact, pill-like, elevated container */
.woocommerce-multiship-wrapper .multiship-tabs ul {
	border: 0px solid var(--ms-border);
	padding: 8px;
}
.woocommerce-multiship-wrapper .multiship-tabs li { margin: 6px 8px 6px 0; }
.woocommerce-multiship-wrapper .multiship-tabs li a {
	padding: 8px 10px;
}
.woocommerce-multiship-wrapper .multiship-tabs li a:hover {
	background: var(--ms-surface-alt);
	color: var(--ms-primary);
}
.woocommerce-multiship-wrapper .multiship-tabs li.active a {
	color: var(--ms-primary);
}

/* Cards & panels */
.woocommerce-multiship-wrapper .multiship-recipient-form,
.woocommerce-multiship-wrapper .multiship-recipients-list,
.woocommerce-multiship-wrapper .multiship-products-panel,
.woocommerce-multiship-wrapper .multiship-recipients-panel {
	background: var(--ms-surface);
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-radius);
	box-shadow: var(--ms-shadow);
}
.multiship-recipients-list{
    box-shadow: none !important;
    border: none !important;
    margin: 20px 0 !important;
    padding: 0px !important;
}
.woocommerce-multiship-wrapper .multiship-form-header {
	background: linear-gradient(180deg, #ffffff, #fbfbfd);
	border-bottom: 1px solid var(--ms-border);
	padding: 16px 20px;
}
.woocommerce-multiship-wrapper .multiship-form-content { background: var(--ms-surface); }

/* Inputs */
.woocommerce-multiship-wrapper .multiship-recipient-form input[type="text"],
.woocommerce-multiship-wrapper .multiship-recipient-form input[type="email"],
.woocommerce-multiship-wrapper .multiship-recipient-form select,
.woocommerce-multiship-wrapper .ms-qty-input,
.woocommerce-multiship-wrapper .ms-product-variations .ms-variation-select,
.woocommerce-multiship-wrapper .ms-gift-note {
	background: var(--ms-surface);
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-radius-sm);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.woocommerce-multiship-wrapper .multiship-recipient-form input[type="text"]:focus,
.woocommerce-multiship-wrapper .multiship-recipient-form input[type="email"]:focus,
.woocommerce-multiship-wrapper .multiship-recipient-form select:focus,
.woocommerce-multiship-wrapper .ms-qty-input:focus,
.woocommerce-multiship-wrapper .ms-product-variations .ms-variation-select:focus,
.woocommerce-multiship-wrapper .ms-gift-note:focus {
	outline: none;
	border-color: var(--ms-primary);
	box-shadow: var(--ms-focus);
}

/* Buttons */
.woocommerce-multiship-wrapper .button {
	border: none;
	border-radius: 10px;
	background: linear-gradient(180deg, var(--ms-primary) 0%, var(--ms-primary-600) 100%);
	color: var(--ms-on-primary);
	box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 16px rgba(190,31,45,.18);
	transform: translateY(0);
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.woocommerce-multiship-wrapper .button:hover {
	filter: brightness(0.98);
	transform: translateY(-1px);
	box-shadow: 0 2px 6px rgba(16,24,40,.06), 0 10px 24px rgba(190,31,45,.22);
}
.woocommerce-multiship-wrapper .button:active { transform: translateY(0); }
.woocommerce-multiship-wrapper .button:focus { box-shadow: var(--ms-focus); }
.woocommerce-multiship-wrapper .button-secondary {
	background: linear-gradient(180deg, #6c757d, #5a6268);
	box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 16px rgba(33,37,41,.12);
}
.woocommerce-multiship-wrapper .multiship-delete-order-btn {
	border-radius: 10px !important;
}

/* Tables */
.woocommerce-multiship-wrapper table.multiship-recipients-table {
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-radius);
	overflow: hidden;
}
.woocommerce-multiship-wrapper .multiship-recipients-table th {
	background: linear-gradient(180deg, #f9fafb, #f3f4f6);
	color: var(--ms-text);
}
.woocommerce-multiship-wrapper .multiship-recipients-table tr:nth-child(even) td { background: #fafbfc; }

/* Product cards */
.woocommerce-multiship-wrapper .ms-product-card {
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-radius-sm);
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.woocommerce-multiship-wrapper .ms-product-card:hover { transform: translateY(-2px); box-shadow: var(--ms-shadow); }
.woocommerce-multiship-wrapper .ms-product-card.selected { border-color: var(--ms-primary); }

/* Summary */
.woocommerce-multiship-wrapper .multiship-summary {
	background: var(--ms-surface-alt);
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-radius);
	box-shadow: var(--ms-shadow);
}

/* Badges */
.woocommerce-multiship-wrapper .ms-badge {
	background: #eef7f0;
	border: 1px solid #d5ebda;
	color: #167c3d;
	border-radius: 999px;
}

/* Links focus-visible for a11y */
.woocommerce-multiship-wrapper a:focus-visible { outline: none; box-shadow: var(--ms-focus); border-radius: 6px; }

/* Compact spacing on action clusters */
.woocommerce-multiship-wrapper .ms-list-actions .button { border-radius: 8px; padding: 8px 12px; }