/* The Custom fields block of the Checkout block and the waiver tick box in the block order summary (1.0.10, W5). */
.sicf-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-block-start: 16px;
}

.sicf-block__item > .wc-block-components-text-input,
.sicf-block__item > .wc-blocks-components-select {
    margin-block-start: 0;
}

.sicf-block__label {
    display: block;
    margin-block-end: 4px;
}

.sicf-block__heading {
    margin: 8px 0 4px;
    font-size: 1.1em;
}

.sicf-block__description {
    margin-block-start: 4px;
    font-size: 0.875em;
    opacity: 0.85;
}

.sicf-block__description p {
    margin: 0 0 0.5em;
}

.sicf-block__input {
    box-sizing: border-box;
    width: 100%;
    min-height: 3em;
    padding: 8px 12px;
    font: inherit;
    border: 1px solid currentColor;
    border-radius: 4px;
    background: transparent;
    color: inherit;
}

.sicf-block__control--color .sicf-block__input {
    width: 4em;
    padding: 4px;
}

.sicf-block__control--textarea textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 5em;
    padding: 8px 12px;
    font: inherit;
    border: 1px solid currentColor;
    border-radius: 4px;
    background: transparent;
    color: inherit;
}

.sicf-block__choices {
    margin: 0;
    padding: 0;
    border: 0;
}

.sicf-block__choices legend {
    padding: 0;
}

.sicf-block__choice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    cursor: pointer;
}

.sicf-block__choice input {
    margin: 0;
}

.sicf-block__file input[type="file"] {
    display: block;
    max-width: 100%;
}

.sicf-block__file-status {
    display: block;
    margin-block-start: 4px;
    font-size: 0.875em;
}

.sicf-block__file.is-busy .sicf-block__file-status {
    opacity: 0.7;
}

.sicf-block__remove {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

.sicf-block__id {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sicf-block [aria-invalid="true"] {
    border-color: #cc1818;
}

.sicf-block--editor {
    padding: 12px 16px;
    border: 1px dashed currentColor;
    border-radius: 4px;
    opacity: 0.8;
}

.sicf-block--editor p {
    margin: 0 0 4px;
}

/* the optional damage waiver in the Cart and Checkout blocks' order summary (the slot's wrapper gives its children
   "padding: 16px 0"; the summary's own rows sit 16px in) */
.wc-block-components-order-meta .sicf-waiver-choice,
.wc-block-components-totals-wrapper.slot-wrapper > * > .sicf-waiver-choice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    padding: 16px;
}

.sicf-waiver-choice .wc-block-components-checkbox {
    margin-block-start: 0;
}

.sicf-waiver-choice__description {
    flex-basis: 100%;
    margin: 0;
    font-size: 0.875em;
    opacity: 0.85;
}
