/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* WinzerSerif Font Family */
@font-face {
  font-family: 'WinzerSerif';
  src: url('font/WinzerSerif/WinzerSerif-Thin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'WinzerSerif';
  src: url('font/WinzerSerif/WinzerSerif-ThinItalic.otf') format('opentype');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'WinzerSerif';
  src: url('font/WinzerSerif/WinzerSerif-ExtraLight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'WinzerSerif';
  src: url('font/WinzerSerif/WinzerSerif-ExtraLightItalic.otf') format('opentype');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'WinzerSerif';
  src: url('font/WinzerSerif/WinzerSerif-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'WinzerSerif';
  src: url('font/WinzerSerif/WinzerSerif-LightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'WinzerSerif';
  src: url('font/WinzerSerif/WinzerSerif-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'WinzerSerif';
  src: url('font/WinzerSerif/WinzerSerif-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'WinzerSerif';
  src: url('font/WinzerSerif/WinzerSerif-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'WinzerSerif';
  src: url('font/WinzerSerif/WinzerSerif-SemiBoldItalic.otf') format('opentype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'WinzerSerif';
  src: url('font/WinzerSerif/WinzerSerif-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'WinzerSerif';
  src: url('font/WinzerSerif/WinzerSerif-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'WinzerSerif';
  src: url('font/WinzerSerif/WinzerSerif-ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'WinzerSerif';
  src: url('font/WinzerSerif/WinzerSerif-ExtraBoldItalic.otf') format('opentype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'WinzerSerif';
  src: url('font/WinzerSerif/WinzerSerif-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'WinzerSerif';
  src: url('font/WinzerSerif/WinzerSerif-BlackItalic.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

.max-width {
  max-width: 100%;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding: 0 5%;

  @media (min-width: 478px) {
    width: 100% !important;
    padding: 0 5%;
  }

  @media (min-width: 767px) {
    width: 100% !important;
    padding: 0 5%;
  }

  @media (min-width: 991px) {
    width: 991px !important;
    padding: 0;
  }

  @media (min-width: 1279px) {
    width: 1279px !important;
    padding: 0;
  }
}

[visibility=hidden] {
  visibility: hidden;
}

.full-width {
  max-width: 100%;
  width: 100%;
  /* 保证容器宽度充满可用空间 */
  margin-left: auto;
  margin-right: auto;
  /* 使容器在父元素中水平居中 */
  box-sizing: border-box;
  /* 确保padding和border不超出最大宽度 */
}


/* 1行省略 */
.text-line-clamp-1 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 150%;
}

/* 2行省略 */
.text-line-clamp-2 {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 150%;
}

/* 3行省略 */
.text-line-clamp-3 {
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}


.input_nobutton input[type="number"] {
  -moz-appearance: textfield;
}

.input_nobutton input[type="number"]::-webkit-outer-spin-button,
.input_nobutton input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


.full-width.brxe-section {
  text-align: left !important;
}

.max-width.brxe-container {
  text-align: left !important;
}

.max-width.brxe-block {
  text-align: left !important;
}

.max-width.brxe-section {
  text-align: left !important;
}

:where(p) {
    margin-block: 0;
}

/* Reorder 按钮加载动画 */
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

[reorder]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
