.hmsc-wrap {
    box-sizing: border-box;
    max-width: 680px;
    margin: 24px 0;
    padding: 24px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
}

.hmsc-wrap *,
.hmsc-wrap *::before,
.hmsc-wrap *::after {
    box-sizing: border-box;
}

.hmsc-title {
    margin: 0 0 20px;
    font-size: 1.5em;
    line-height: 1.4;
}

.hmsc-form {
    display: grid;
    gap: 18px;
}

.hmsc-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

.hmsc-field input[type="date"],
.hmsc-field input[type="time"],
.hmsc-field input[type="text"],
.hmsc-field select {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background: #fff;
    color: #1d2327;
    font-size: 16px;
}

.hmsc-field input:focus,
.hmsc-field select:focus {
    border-color: #2271b1;
    outline: 2px solid transparent;
    box-shadow: 0 0 0 1px #2271b1;
}

.hmsc-help,
.hmsc-note {
    margin: 7px 0 0;
    color: #646970;
    font-size: 13px;
    line-height: 1.6;
}

.hmsc-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 20px;
    border: 0;
    border-radius: 4px;
    background: #1d2327;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
}

.hmsc-submit:hover {
    opacity: 0.88;
}

.hmsc-submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

.hmsc-result {
    margin-top: 20px;
    padding: 16px 18px;
    border-left: 4px solid #2271b1;
    background: #f0f6fc;
    color: #1d2327;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.7;
}

.hmsc-result.is-error {
    border-left-color: #d63638;
    background: #fcf0f1;
    color: #8a2424;
}

.hmsc-result.is-loading {
    font-size: 15px;
    font-weight: 400;
}

.hmsc-admin-page .hmsc-wrap {
    max-width: 720px;
}

.hmsc-shortcode-box {
    max-width: 720px;
    margin-top: 28px;
    padding: 20px;
    border: 1px solid #dcdcde;
    background: #fff;
}

.hmsc-shortcode-box code {
    display: block;
    overflow-x: auto;
    padding: 10px 12px;
    background: #f6f7f7;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .hmsc-wrap {
        padding: 18px;
    }
}
