/*
Theme Name:     Giftpak
Theme URI:      n/a
Template:       kadence
Author:         rdbm.pl
Author URI:     n/a
Description:    Child Theme Description
Version:        1.0.1
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/
.grecaptcha-badge {
	visibility: hidden;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

/* width */
::-webkit-scrollbar {
	width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
	background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
	background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
	background: #555;
}

.transparent-header #wrapper #masthead .site-main-header-wrap {
	box-shadow: 0px 4px 7.6px rgba(0, 0, 0, 0.05);
}

.main-navigation {
	.primary-menu-container  {
		& > ul { 
			li {
				&.header-contact-button {
					margin-left: 2.5rem;
					& > a {
						padding: 1rem;
						background-color: #364250;
						border-radius: 14px;
						transition: all 0.3s ease-in-out;
						line-height: 1;

						.menu-label-icon-wrap {
							transition: all 0.3s ease-in-out;
							.menu-label-icon {

								svg {
									transform: rotate(90deg);
									font-size: 1.125rem;
									line-height: 1;
								}
							}
						}

						&::after {
							display: none;
						}

						&:hover {
							background-color: var(--global-palette1);

							.menu-label-icon-wrap {
								color: #364250 !important;
							}
						}
					}
				}
			}
		}
	}
}

.hero-buttons {
	@media(max-width: 359px) {
		display: flex;
		flex-direction: column;

		.kb-button {
			width: 100%;
		}
	}
}


.form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 16px;
  align-items: start;
  
  @media(max-width: 640px) {
    grid-template-columns: 1fr;
  }

  .full-width {
    grid-column: 1 / 3;

    @media(max-width: 640px) {
      grid-column: 1;
    }
  }

  .wpcf7-form-control-wrap {
    position: relative;
    width: 100%;
  }
}

.wp-block-contact-form-7-contact-form-selector {
  .full-width-date {
    grid-column: 1 / 3;

    @media(max-width: 640px) {
      grid-column: 1;
    }
  }
}

.form-button-wrapper {
  position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}

.form-wrapper input[type="text"],
.form-wrapper input[type="email"],
.form-wrapper input[type="date"],
.form-wrapper input[type="number"],
.form-wrapper select,
.form-wrapper textarea {
  font-family: var(--global-body-font-family);
  color: #fff;
  background: transparent;
  border-color: #E3E3E3;
  border-radius: 24px;
  flex-basis: 100%;
  flex-grow: 1;
  max-width: 100%;
  min-height: 40px;
  padding: 13px 14px;
  vertical-align: middle;
  width: 100%;
  z-index: 10;
  font-size: 13px;
  line-height: 20px;
  position: relative;
}

.form-wrapper textarea {
  height: 148px;
  resize: none;
}

.form-wrapper input[type="text"]::placeholder, 
.form-wrapper input[type="email"]::placeholder, 
.form-wrapper textarea::placeholder {
  color: #fff;
}

.form-inner-wrapper {
  position: relative;

  &:where(:not(.no-bg)) {
    background: transparent;
  }

	&.margin-top {
		margin-top: -1rem;
	}
  
  label {
    &[for="your-files"] {
      display: block;
      font-size: 13px;
      line-height: 20px;
      margin-bottom: 4px;
    }
    &.input-label {
      position: absolute;
      top: 0;
      left: 0;
      font-size: 13px;
      line-height: 20px;
      transform: translate(14px, calc(50% + 4px)); /* Initial position */
      z-index: 10;
      transition: transform .3s ease;
      margin-right: 10px;
      background-color: transparent;
			color: #fff;
      &.active {
        transform: translate(4px, -24px); /* Moves label above input */
        font-size: 12px; /* Optional */
        color: #fff; /* Optional */
        background-color: transparent;
      }
    }
  }
  &:not(.select-wrapper):focus-within,
  &:not(.number-wrapper):focus-within {
    label {
      &.input-label {
        transform: translate(4px, -24px);
				font-size: 12px;
      }
    }
  }

	&.number-wrapper {
		label {
			&.input-label {
				transform: translate(4px, -24px);
				font-size: 12px;
			}
		}
	}
	&.select-wrapper {
		&::after {
			content: '';
			position: absolute;
			top: 20px;
			right: 10px;
			width: 12px;
			height: 8px;
			background-image: url(/wp-content/themes/giftpak/assets/arrow-down.svg);
			background-size: 12px 8px;
			background-repeat: no-repeat;
		}
		label {
			&.input-label {
				transform: translate(4px, -24px);
				font-size: 12px;
			}
		}
	}
}

.wpcf7-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.wpcf7 form .wpcf7-response-output {
  border-radius: 0;
  margin: 1rem 0 0 0;
  padding: 6px 12px;
  border: 2px solid #00a0d2;
  font-size: 12px;
}

.wpcf7 form.sent .wpcf7-response-output {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;

}

.wpcf7 form.invalid .wpcf7-response-output, 
.wpcf7 form.unaccepted .wpcf7-response-output, 
.wpcf7 form.payment-required .wpcf7-response-output {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.form-wrapper .wpcf7-not-valid-tip {
  color: #fff;
  background-color: #dc3232;
  border-color: #dc3232;
  position: relative;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 0 0 24px 24px;
  font-size: 9px;
}

.form-wrapper input[type="text"].wpcf7-not-valid, 
.form-wrapper input[type="email"].wpcf7-not-valid, 
.form-wrapper textarea.wpcf7-not-valid {
  border-radius: 24px 24px 0 0;
  border-color: #dc3232;
  border-width: 1px;
}

.form-wrapper .wpcf7-list-item {
  margin: 0;
}

.form-wrapper  .wpcf7-acceptance {
  line-height: 1.15em;
}

.form-wrapper input[type="checkbox"] {
  display: none;
}

.form-wrapper .wpcf7-list-item label {
  position: relative;
  display: flex;
  padding-left: 38px;
}

.form-wrapper .wpcf7-list-item-label::before {
  content: '';
  position: absolute;
  left: 0;
  height: 24px;
  width: 24px;
  border: 1px solid #E3E3E3;
  margin: 0;
  border-radius: 8px;
}

.form-wrapper .wpcf7-list-item-label::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  height: 14px;
  width: 14px;
  background-color: #fff;
  border-radius: 4px;
  visibility: hidden;
}

.form-wrapper input[type="checkbox"]:checked + .wpcf7-list-item-label::after {
  visibility: visible;
}

.form-wrapper .wpcf7-list-item-label {
  color: #fff;
  font-size: 13px;
  line-height: 20px;
  font-style: normal;
  font-weight: inherit;
}

.contact-form-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1201;
  width: 100%;
  max-width: 700px;
  height: 100%;
  background-image: url(/wp-content/uploads/2025/09/texture_dark.webp);
  background-position: center center;
  background-size: contain;
  transform: translateX(100%);
  transition: transform .3s ease-in-out;
  padding: 50px;

  @media(max-width: 575px) {
    padding: 0;
  }
}

.contact-form-sidebar.shown {
  transform: translateX(0);
  filter: drop-shadow(0px 0px 15px #ac9576);
}

.contact-form-sidebar-btn {
  position: absolute;
  top: 70%;
  left: -22px;
  z-index: 1202;
  background-image: url(/wp-content/uploads/2025/09/texture_dark.webp);
  background-position: center center;
  background-size: contain;
  color: #fff;
  padding: 16px 40px;
  border-radius: 32px 32px 0 0;
  transform: translate(-50%, -50%) rotate(-90deg);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 14px;
  line-height: 2;
  cursor: pointer;
  animation: widgetButton 2s ease-out infinite both alternate;
  will-change: filter;
  transition: transform .3s linear, filter .2s ease-out;

  @media(max-width: 600px) {
    display: none;
  }
}

.contact-form-sidebar-btn span {
  display: block;
  width: 100%;
  color: #fff;
  text-align: center;
  line-height: 1;
  font-size: 17px;
}

.contact-form-sidebar-headline {
  margin-bottom: 24px;
}

.contact-form-sidebar.shown .contact-form-sidebar-btn {
  animation: none;
}

.contact-form-sidebar-content {
  height: 100%;
  overflow-y: auto;

  @media(max-width: 575px) {
    padding: 24px 18px;
  }
}

.sidebar-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 24px;
  height: 24px;
  opacity: 0.3;
  z-index: 1203;
}
.sidebar-close:hover {
  opacity: 1;
}
.sidebar-close:before,
.sidebar-close:after {
  position: absolute;
  left: 15px;
  content: " ";
  height: 24px;
  width: 2px;
  background-color: #fff;
}
.sidebar-close:before {
  transform: rotate(45deg);
}
.sidebar-close:after {
  transform: rotate(-45deg);
}

@keyframes widgetButton {
  0% {
      box-shadow: 0 0 0 #ac957600, 0 0 0 #ac957600, 0 0 0 #ac957600, 0 0 0 #ac957600;
  }

  30% {
      box-shadow: 0 0 0 #ac957600, 0 0 0 #ac957600, 0 0 0 #ac957600, 0 0 0 #ac957600;
  }

  to {
      box-shadow: 0 0 32px #ac957699, 0 0 48px #ac9576, 0 0 64px #ac9576, 0 0 96px #ac9576;
  }
}

.kadence-posts-list {
	.entry-list-item {
		article {
			&.entry {
				overflow: hidden;
				box-shadow: 0px 4px 4.8px rgba(0, 0, 0, 0.25);
				border-radius: 50px;

				.entry-summary p,
				.entry-header .entry-meta {
					font-size: 14px;
					line-height: 1.36;
				}

				.entry-header .entry-meta {
					margin: .5em 0;
				}

				@media(max-width: 768px) {
					border-radius: 32px;
				}
			}
		}
	}
}

.blog,
.category,
.tag,
.single-post {
	#inner-wrap {
    background-image: url(/wp-content/uploads/2025/09/bg-gp.svg);
    background-size: 450px auto;
    background-position: 100% 50%;
    background-attachment: fixed;
    background-repeat: no-repeat;
	}
}


.wp-block-categories-list {
  list-style-type: none;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: .75rem;
  padding: 0 !important;
  margin: 0;

  li {
    a {
      padding: 0.4em 1em;
      border: 0;
      font-size: 15px;
      line-height: 1.36;
      display: inline-block;
			padding: 8px 24px 8px 24px;
			border: 2px solid currentColor;
			color: var(--global-palette3);
			box-shadow: 0px 0px 0px -7px rgba(0, 0, 0, 0);
			border-radius: 50px;
			text-decoration: none;
			font-weight: 500;

      &:hover {
        text-decoration: none;
        color: var(--global-palette1);
        background: var(--global-palette3);
      }
    }

    &.current-cat {
      a {
        color: var(--global-palette1);
        background: var(--global-palette3);
      }
    }
  }
}

.single-post {
	.content-area {
		margin-top: 8rem;
	}

	.single-content p {
		margin-bottom: var(--global-xs-spacing);
	}
}

#mobile-menu {
	.header-contact-button {
		display: none;
	}
}

.footer-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}