/* Shared text actions, matched to the cart's catalog button. Icon tools keep their own geometry. */

/* Flex avoids an extra grid row from the zero-size legacy text node. */
:root body :is(
  .gp-header-menu-close,
  .gp-help-dialog .gp-help-close,
  .gp-help-invite button:last-child,
  .request-modal.is-call-request .request-modal-close,
  .request-modal-close,
  .category-dialog-close
) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-sizing: border-box;
  flex: 0 0 34px;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid rgba(198, 170, 111, .26);
  border-radius: 6px;
  background: #141519;
  color: #c9cbd0;
  font-size: 0;
  line-height: 0;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}
:root body :is(
  .gp-header-menu-close,
  .gp-help-dialog .gp-help-close,
  .gp-help-invite button:last-child,
  .request-modal.is-call-request .request-modal-close,
  .request-modal-close,
  .category-dialog-close
)::before {
  content: "";
  position: static;
  display: block;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("../icons/lucide/x.svg") center / contain no-repeat;
  mask: url("../icons/lucide/x.svg") center / contain no-repeat;
  pointer-events: none;
}
:root body :is(
  .gp-header-menu-close,
  .gp-help-dialog .gp-help-close,
  .gp-help-invite button:last-child,
  .request-modal.is-call-request .request-modal-close,
  .request-modal-close,
  .category-dialog-close
):hover {
  border-color: #c6a15f;
  background: #20232a;
  color: #ffffff;
}
:root body :is(
  .gp-header-menu-close,
  .gp-help-dialog .gp-help-close,
  .gp-help-invite button:last-child,
  .request-modal.is-call-request .request-modal-close,
  .request-modal-close,
  .category-dialog-close
):focus-visible {
  outline: 2px solid #c6a15f;
  outline-offset: 3px;
}
@media (max-width: 680px), (pointer: coarse) {
  :root body :is(
  .gp-header-menu-close,
  .gp-help-dialog .gp-help-close,
  .gp-help-invite button:last-child,
  .request-modal.is-call-request .request-modal-close,
  .request-modal-close,
  .category-dialog-close
) {
    flex-basis: 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }
}
:root body :is(
  .gp-action-button,
  .request-modal.is-call-request .button.primary.full,
  .hero-sample-button,
  .gp-help-button,
  .gp-help-actions button,
  .gp-materials-actions button,
  .gp-service-form__actions button,
  [data-contact-callback],
  .catalog-all-models,
  .category-dialog .card-actions button,
  .category-dialog .sample-add,
  .open-model,
  .add-to-cart,
  .category-reset,
  .home-link,
  .constructor-header > button,
  .order-header .header-actions .button
) {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 34px;
  height: auto;
  max-width: 100%;
  padding: 6px 13px;
  border: 1px solid rgba(198, 170, 111, .26);
  border-radius: 6px;
  background: #141519;
  color: #f0f2f5;
  box-shadow: none;
  font: 400 14px/1.4 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}
:root body :is(
  .gp-action-button,
  .request-modal.is-call-request .button.primary.full,
  .hero-sample-button,
  .gp-help-button,
  .gp-help-actions button,
  .gp-materials-actions button,
  .gp-service-form__actions button,
  [data-contact-callback],
  .catalog-all-models,
  .category-dialog .card-actions button,
  .category-dialog .sample-add,
  .open-model,
  .add-to-cart,
  .category-reset,
  .home-link,
  .constructor-header > button,
  .order-header .header-actions .button
):hover:not(:disabled) {
  border-color: #c6a15f;
  background: #20232a;
  color: #ffffff;
  box-shadow: none;
}
:root body :is(
  .gp-action-button,
  .request-modal.is-call-request .button.primary.full,
  .hero-sample-button,
  .gp-help-button,
  .gp-help-actions button,
  .gp-materials-actions button,
  .gp-service-form__actions button,
  [data-contact-callback],
  .catalog-all-models,
  .category-dialog .card-actions button,
  .category-dialog .sample-add,
  .open-model,
  .add-to-cart,
  .category-reset,
  .home-link,
  .constructor-header > button,
  .order-header .header-actions .button
):focus-visible {
  outline: 2px solid #c6a15f;
  outline-offset: 3px;
}
:root body :is(
  .gp-action-button,
  .request-modal.is-call-request .button.primary.full,
  .hero-sample-button,
  .gp-help-button,
  .gp-help-actions button,
  .gp-materials-actions button,
  .gp-service-form__actions button,
  [data-contact-callback],
  .catalog-all-models,
  .category-dialog .card-actions button,
  .category-dialog .sample-add,
  .open-model,
  .add-to-cart,
  .category-reset,
  .home-link,
  .constructor-header > button,
  .order-header .header-actions .button
):disabled {
  opacity: .45;
  cursor: default;
}
:root body :is(
  .gp-action-button,
  .request-modal.is-call-request .button.primary.full,
  .hero-sample-button,
  .gp-help-button,
  .gp-help-actions button,
  .gp-materials-actions button,
  .gp-service-form__actions button,
  [data-contact-callback],
  .catalog-all-models,
  .category-dialog .card-actions button,
  .category-dialog .sample-add,
  .open-model,
  .add-to-cart,
  .category-reset,
  .home-link,
  .constructor-header > button,
  .order-header .header-actions .button
)[aria-pressed="true"] {
  border-color: #c6a15f;
  background: #20232a;
}
@media (max-width: 680px), (pointer: coarse) {
  :root body :is(
  .gp-action-button,
  .request-modal.is-call-request .button.primary.full,
  .hero-sample-button,
  .gp-help-button,
  .gp-help-actions button,
  .gp-materials-actions button,
  .gp-service-form__actions button,
  [data-contact-callback],
  .catalog-all-models,
  .category-dialog .card-actions button,
  .category-dialog .sample-add,
  .open-model,
  .add-to-cart,
  .category-reset,
  .home-link,
  .constructor-header > button,
  .order-header .header-actions .button
) { min-height: 44px; }
}

:root body .catalog-all-models span { font: inherit; }
:root body .catalog-all-models:hover { text-shadow: none; }
