.wc-block-checkout__shipping-method-container { width: 100%; display: flex; gap: $gap; justify-content: space-between; } // This nested selector is solely for specificity to override a quite specific style set in the button component. // We have avoided nesting all the styles in case specificity changes introduce regressions elsewhere. .edit-post-visual-editor { .wc-block-checkout__shipping-method-container { .wc-block-components-button.wc-block-checkout__shipping-method-option { min-height: 80px; } } } .edit-post-visual-editor .wc-block-components-button.wc-block-checkout__shipping-method-option, .wc-block-components-button.wc-block-checkout__shipping-method-option { flex-grow: 1; display: flex; flex-direction: row; justify-content: center; align-items: center; height: 100%; min-height: 80px; flex-basis: 0; gap: 4px; padding: 16px 12px; color: inherit !important; // Overwriting Gutenberg styles background-color: transparent; border: none; box-shadow: none !important; outline: 1px solid $universal-border-light !important; // Overwriting Gutenberg styles border-radius: $universal-border-radius; cursor: pointer; &.components-button:hover:not(:disabled), &.components-button:focus:not(:disabled), &:focus, &:hover { background-color: $universal-background; border-color: #d5d5d5; color: #333; } &.wc-block-checkout__shipping-method-option--selected { outline: 1px solid $universal-border-strong; background-color: $universal-background; &:focus { outline: 1px solid $universal-border-strong; background-color: $universal-background; } } } .wc-block-checkout__shipping-method-option-icon { fill: currentColor; } .wc-block-checkout__shipping-method-option-title { @include font-size(regular, 1rem); font-weight: bold; } .wc-block-checkout__shipping-method-option-price { @include font-size(small, 1rem); em { text-transform: uppercase; font-style: inherit; } }