.kg-stamp-box {
    margin: 12px 0 16px 0;
    padding: 14px 16px;
    background: #fafafa;
    border: 1px solid #e2e4e8;
    border-radius: 8px;
    clear: both;
    width: 100%;
    max-width: 520px;
}

.kg-stamp-heading {
    font-size: 14px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 10px;
}

.kg-stamp-unit {
    padding-top: 4px;
}

.kg-stamp-unit + .kg-stamp-unit {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #d5d8de;
}

.kg-stamp-unit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.kg-stamp-unit-title {
    font-size: 13px;
    font-weight: 600;
    color: #eb6642;
}

.kg-stamp-copy-btn {
    background: #ffffff;
    border: 1px solid #d0d4dc;
    border-radius: 4px;
    color: #555555;
    font-size: 11px;
    line-height: 1.3;
    padding: 3px 8px;
    cursor: pointer;
}

.kg-stamp-copy-btn:hover {
    border-color: #eb6642;
    color: #eb6642;
}

.kg-stamp-line-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.kg-stamp-line-row:last-child {
    margin-bottom: 0;
}

.kg-stamp-line-label {
    width: 82px;
    flex: 0 0 82px;
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    color: #444444;
}

.kg-stamp-line-field {
    flex: 1 1 auto;
}

.kg-stamp-box .kg-stamp-input {
    width: 100%;
    height: 34px;
    padding: 5px 10px;
    font-size: 13px;
    color: #333333;
    background-color: #ffffff;
    border: 1px solid #bdc2c9;
    border-radius: 6px;
    box-shadow: none;
}

.kg-stamp-box .kg-stamp-input:focus {
    border-color: #eb6642;
    outline: none;
}

@media (max-width: 480px) {
    .kg-stamp-line-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .kg-stamp-line-label {
        width: 100%;
        flex: none;
        margin-bottom: 3px;
    }
}

/* Cart summary stamp lines */
.kg-cart-stamps {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
}

.kg-cart-stamp-item {
    background: #f7f8fa;
    border: 1px solid #e6e8ec;
    border-radius: 4px;
    padding: 3px 8px;
    margin-top: 4px;
    display: block;
    color: #444444;
    word-break: break-word;
}

.kg-cart-stamp-badge {
    font-weight: 600;
    color: #333333;
    margin-right: 4px;
}

.kg-cart-stamp-empty {
    color: #888888;
    font-style: italic;
}

.kg-remove-stamp-unit {
    display: inline-block;
    margin-left: 6px;
    color: #cc3333;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
}

.kg-remove-stamp-unit:hover {
    color: #990000;
    text-decoration: none;
}
