/* Shared storefront corner scale. Circular swatches, icons and artwork keep their shape. */
body.gd-ui-corners{
 --gd-radius-panel:8px;
 --gd-radius-control:5px;
 --gd-radius-detail:3px;
 --theme-button-border-radius:5px;
 --theme-form-field-border-radius:5px;
}

/* Large surfaces: homepage, catalogue, product, quote, guides and account. */
body.gd-ui-corners :is(
 .gds-hero,.gds-benefits>div,.gds-categories>a,.gds-panel,.gds-deals,
 .gds-banner,.gds-spotlight,.gds-product,
 .gdf-hero,.gdf-brand-panel,.gdf-help-grid>a,.gdf-pick,.gdf-uses article,
 .gdh-slider,.gdc-quote,.gdc-categories>a,.gdc-filter-panel,
 .gdax-filters,ul.products>li.product,.gdax-availability,.gdax-print-scroll,
 .gdax-variant-view .gdax-variant-photo,.gdax-gallery-status,
 .woocommerce-product-gallery .flexy-view,.summary form.cart,
 .gdmp-product,.gdmp-config,.gdmp-summary,.gdmp,
 .gdax-bulk-form,.gdax-quote-layout,.gdax-cart-note,.gdax-quote-lines,
 .gdax-guide-hero,.gdax-steps article,.gdax-guide-tip,.gdax-guide-cta,
 .gdax-faq details,.gdax-guide-cards article,.gdax-brand-grid a,
 .gdax-selection-tray,.gdax-selection-message,.gdax-compare-scroll,.gdax-favorite-grid article,
 .gdax-product-quote,.gdax-picker-panel,.gdls-panel,.gdn-departments,
 .gdm-hero,.gdm-advisor,.gdm-recommendations,.gdm-method,.gdm-comparison,
 .gdm-file-visual,.gdm-cost,.gdm-final,.gd-auth,
 .gda-account .gda-sidebar,.gda-account .gda-welcome,.gda-account .gda-stat,
 .gda-account .gda-panel,.gda-account .gda-content>form,
 .gda-account .woocommerce-address-fields,.gda-account .woocommerce-order-details,
 .gda-account .woocommerce-customer-details,.gda-account .woocommerce-Address,
 .gda-account .gda-content table,.gda-account .woocommerce-OrderUpdate,
 .wc-block-components-sidebar,.wc-block-checkout__additional_fields,
 .woocommerce-info,.woocommerce-message,.woocommerce-error,
 .woocommerce-coming-soon-store-only,.gd-hero,.gd-about
){border-radius:var(--gd-radius-panel)!important}

/* Smaller cards, photos, choices and controls. */
body.gd-ui-corners :is(
 .gds-cat-image,.gds-pill,.gds-view,.gds-tabs button,.gds-tag,.gds-hero-copy>span,
 .gds-gallery-choices,.gds-gallery-choices button,.gds-gallery-choices img,
 .gds-search-bottom form,.gdf-category-image,.gdf-button,.gdf-art-label,
 .gdf-hero-visual figcaption,.gdh-cta,.gdh-payment,.gdh-search,
 .gdax-filter-fields button,.gdax-filter-submit,.gdax-picker-trigger,
 .gdax-picker-option,.gdn-branch>summary,.gdn-subcategory-links>a,
 .gdn-subcategory-more>summary,.gdc-results .product figure,
 ul.products .product figure,.woocommerce-pagination .page-numbers,
 .gdax-swatches .gdax-swatch--text,.gdax-stock-swatches .gdax-swatch.gdax-swatch-card,
 .gdax-availability-scroll,.gdax-pick-variation,.gdax-open-gallery,
 .gdax-lightbox-thumb,.gdax-variant-thumbs button,.gdax-gallery-status button,
 .flexy-pills [class*=ct-media],.summary .quantity,.gdax-quote-link,
 .gdmp-jump,.gdmp-calculate,.gdmp-result,.gdmp-variant-label,.gdmp-continue,
 .gdmp-technique-card,.gdmp-positions button,.gdmp-confirm-selection,
 .gdmc-add,.gdmc-status,.gdax-bulk-form button,.gdax-bulk-message,
 .gdax-file-field,.gdax-quote-product,.gdax-form-result,.gdax-quote-form button[type=submit],
 .gdax-cart-note a,.gdax-guide-cta a,.gdax-public-button,.gdax-public-hero-photo,
 .gdax-brand-logo,.gdax-pick-actions button,.gdax-selection-tabs button,.gdax-clear-selection,
 .gdm-button,.gdm-hero-image figcaption,.gdm-choice,.gdm-recommended-links a,
 .gdm-file-visual>div:not(.gdm-file-check),.gdm-upload-note,
 .gda-sidebar-help,.gda-account .gda-button,.gda-account fieldset,
 .gda-account .woocommerce-MyAccount-navigation li a,
 .gda-account .gda-welcome-icon,.gda-account .gda-empty-icon,.gda-account .gda-card-icon,
 .gda-account .gda-avatar,.gd-auth-tag,.gd-button,.gd-search,
 .wc-block-cart-item__image img,.wc-block-components-quantity-selector,
 .button,.ct-button,.wp-element-button,.wp-block-button__link,
 .wc-block-components-button,.select2-selection--single,
 #search-modal .ct-search-form-inner,#header .ct-header-search,
 input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=color]),
 select,textarea
){border-radius:var(--gd-radius-control)!important}

body.gd-ui-corners :is(
 .gdax-swatch-card .gdax-swatch-photo,.gdax-variant-thumbnail,
 .gdax-lightbox .pswp__img,.gdax-lightbox-thumb img,.gdls-product img,
 .gdax-public-photo,.gdax-steps article>span,.gdn-department-link,.gdn-leaf,.gdn-more-count,
 .gdax-selection-tabs button span,.gdmp-availability,.gdm-sample>span,.gda-status
){border-radius:var(--gd-radius-detail)!important}
body.gd-ui-corners input::file-selector-button{border-radius:var(--gd-radius-detail)!important}

/* Joined fields and intentionally square surfaces retain their open edges. */
body.gd-ui-corners .gds-search-bottom{border-radius:8px 8px 0 0!important}
body.gd-ui-corners .gds-search-bottom input[type=search]{border-radius:5px 0 0 5px!important}
body.gd-ui-corners .gdh-search input[type=search]{border-radius:5px 0 0 5px!important}
body.gd-ui-corners #header .gdh-search button{border-radius:0 5px 5px 0!important}
body.gd-ui-corners .gds-deal-title{border-radius:0 5px 5px 0!important}
body.gd-ui-corners .gdn-mega{border-radius:0 0 8px 8px!important}
body.gd-ui-corners .gdmp .gdmp-feedback{border-radius:0 5px 5px 0!important}
body.gd-ui-corners .gdmp-product .gdmp-position-group,
body.gd-ui-corners .gdmp-product .gdmp-config .gdmp-arranged .gdmp-hint,
body.gd-ui-corners .gds-tab-panel .gds-product{border-radius:0!important}
body.gd-ui-corners.woocommerce-account:not(.logged-in) .ct-woo-unauthorized{border-radius:0!important}
body.gd-ui-corners .gdax-lightbox .pswp__button:not(.pswp__button--arrow--left):not(.pswp__button--arrow--right){border-radius:5px!important}
@media(max-width:760px){
 body.gd-ui-corners .gds-deal-title{border-radius:5px!important}
 body.gd-ui-corners .gdn-mega{border-radius:5px!important}
 body.gd-ui-corners .gda-account .gda-content table.shop_table_responsive tbody tr{border-radius:5px!important}
}
