/* Yeekit Admin Styles */

/* Base Container */
.yeekit-rules-container {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Header */
.yeekit-rules-header {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
    padding: 12px 16px;
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
}

/* List */
.yeekit-rules-list {
    background: #fff;
}

/* Row */
.yeekit-rule-row {
    display: flex;
    border-bottom: 1px solid #f0f0f1;
    padding: 16px;
    align-items: flex-start;
    transition: background 0.2s;
}

.yeekit-rule-row:last-child {
    border-bottom: none;
}

.yeekit-rule-row:hover {
    background: #fafafa;
}

/* Columns */
.yeekit-col-conditions {
    width: 50%;
    padding-right: 15px;
    box-sizing: border-box;
}

.yeekit-col-costs {
    width: 30%;
    padding-right: 15px;
    box-sizing: border-box;
}

.yeekit-col-special {
    width: 10%;
    padding-right: 15px;
    box-sizing: border-box;
}

.yeekit-col-actions {
    width: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Wrapper Styling */
.yeekit-condition-wrapper {
    background: #fcfcfc;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 4px;
}

/* Field Groups */
.yeekit-field-group {
    margin-bottom: 0;
}

.yeekit-field-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: #646970;
    font-weight: 500;
}

/* Input Styles */
.yeekit-rules-container input[type="text"],
.yeekit-rules-container input[type="number"],
.yeekit-rules-container select {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 0 8px;
    height: 36px !important;
    line-height: normal;
    color: #3c434a;
}

.yeekit-rules-container input:focus,
.yeekit-rules-container select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

/* Flex Helper */
.yeekit-flex-row {
    display: flex;
    gap: 8px;
}

.yeekit-flex-row>* {
    flex: 1;
    min-width: 0;
    /* Important for flex child overflow */
}

/* Condition Specifics */
.yeekit-condition-settings {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
    box-sizing: border-box;
}

.yeekit-sub-label {
    font-size: 11px;
    color: #8c8f94;
    margin-bottom: 4px;
    display: block;
    font-weight: 500;
}

/* Footer */
.yeekit-rules-footer {
    padding: 12px 16px;
    background: #f8f9fa;
    border-top: 1px solid #e5e5e5;
    text-align: right;
}

/* Remove Button */
.yeekit-remove-rule {
    color: #d63638;
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.2s;
    margin-top: 24px;
}

.yeekit-remove-rule:hover {
    background: #fbeaea;
}

.yeekit-rules-container input[type="text"],
.yeekit-rules-container input[type="number"],
.yeekit-rules-container select {
    width: 100% !important;
}

/* Input Group */
.yeekit-input-group {
    display: flex;
    align-items: center;
}

.yeekit-input-group input {
    flex: 1;
}

.yeekit-input-suffix {
    background: #f7f7f7;
    border: 1px solid #dcdcde;
    border-left: none;
    line-height: 34px;
    padding: 0 10px;
    border-radius: 0 4px 4px 0;
    font-size: 12px;
    color: #555;
    height: 36px;
    box-sizing: border-box;
    display: none;
}

.yeekit-input-group.has-suffix input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.yeekit-input-group.has-suffix .yeekit-input-suffix {
    display: block;
}

/* Additional Costs Repeater */
.yeekit-ac-list {
    margin-top: 5px;
}

.yeekit-ac-row {
    display: flex;
    gap: 5px;
    align-items: flex-end;
    margin-bottom: 5px;
    background: #fbfbfb;
    padding: 5px;
    border-radius: 3px;
    border: 1px solid #eee;
}

.yeekit-ac-field-group {
    margin-bottom: 0 !important;
}

.yeekit-ac-field-group label {
    font-size: 10px;
    color: #999;
    margin-bottom: 2px;
}

.yeekit-remove-ac {
    color: #ccc;
    cursor: pointer;
    font-size: 18px;
    margin-bottom: 8px;
    /* Align with input center somewhat */
    padding: 2px;
}

.yeekit-remove-ac:hover {
    color: #d63638;
}

/* Responsive (Minimal) */
@media (max-width: 782px) {
    .yeekit-rules-header {
        display: none;
    }

    .yeekit-rule-row {
        flex-direction: column;
    }

    .yeekit-col-conditions,
    .yeekit-col-costs,
    .yeekit-col-special,
    .yeekit-col-actions {
        width: 100%;
        padding-right: 0;
        margin-bottom: 15px;
    }

    .yeekit-col-actions {
        justify-content: flex-end;
        padding-top: 0;
        margin-bottom: 0;
    }
}

/* Import / Export Card */
.yeekit-rules-actions {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 15px 20px !important;
    margin-top: 30px !important;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

.yeekit-rules-actions h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 15px 0 !important;
    border-bottom: 1px solid #f0f0f1;
    padding-bottom: 10px;
}

.yeekit-rules-actions p.description {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #646970;
}

.yeekit-import-group {
    background: #f6f7f7;
    padding: 10px;
    border-radius: 4px;
    border: 1px dashed #c3c4c7;
}

.yeekit-import-group input[type="file"] {
    font-size: 13px;
    color: #50575e;
}

/* ==========================================================================
   YeeShipping Info Tab Styles
   ========================================================================== */

.yeekit-info-wrapper {
    max-width: 1200px;
}

.yeekit-info-wrapper h3 {
    margin-top: 0;
    font-size: 18px;
}

.yeekit-info-wrapper h4 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 14px;
}

.yeekit-info-wrapper code {
    background: #f0f0f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

.yeekit-info-section {
    background: #fff;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.yeekit-info-section.border-blue {
    border-left: 4px solid #2271b1;
}

.yeekit-info-section.border-green {
    border-left: 4px solid #00a32a;
}

.yeekit-info-section.border-red {
    border-left: 4px solid #d63638;
}

.yeekit-info-section.border-yellow {
    border-left: 4px solid #f0c33c;
}

.yeekit-info-section.border-light-blue {
    border-left: 4px solid #72aee6;
}

.yeekit-info-section.border-purple {
    border-left: 4px solid #9b51e0;
}

.yeekit-info-section.support {
    background: #f0f0f1;
    text-align: center;
}

.yeekit-info-section ol,
.yeekit-info-section ul {
    line-height: 2;
}

.yeekit-info-section ul.square {
    list-style-type: square;
    margin-left: 20px;
}

.yeekit-info-section ul.disc {
    list-style-type: disc;
    margin-left: 20px;
}

/* Quick Action Button */
.yeekit-quick-action {
    display: inline-block;
    margin: 20px 0;
}

.yeekit-quick-action .button-primary {
    font-size: 14px;
    height: auto;
    padding: 10px 20px;
}

.yeekit-quick-action .description {
    margin-top: 8px;
    color: #646970;
}