@font-face {
  font-family: 'Verdana';
  src: url('../fonts/Verdana.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Palatino Linotype';
  src: url('../fonts/PalatinoLinotype.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'bungee-tint';
  src: url('../fonts/bungee-tint.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

#epd-designer-wrapper {
  /*
    border: 1px solid #ccc;
    padding: 20px;
    margin-bottom: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    max-width: 650px;
    */
    float: left;
margin-top: 30px;
    width: 100%;
}

@media (min-width: 600px) {
  .epd-fields-left {
    width: 45%;
    float: left;
    margin-right: 5%;
  }

  .epd-canvas-right {
    width: 50%;
    float: left;
  }
}

#epd-designer-wrapper label {
  display: block;
/*  margin-top: 7px;*/
    font-weight: 500;
        min-height: 30px;
    line-height: 1.4;
}

#epd-designer-wrapper label.datoer {
	/*margin-bottom: 20px;*/
}


#epd-designer-wrapper input[type="text"] {
    margin-bottom: 10px;
    padding: .7rem 1rem;
    font-size: 14px;
    display: block;
}

body.woocommerce .quantity .qty {
padding: .85rem 1rem;
}

.canvas-container {
	max-width: 100%;
    max-height: 650px;
}

#epd-designer-wrapper .lower-canvas {
    display: block;
    border: 1px solid #888;
    margin-top: 15px;
    background-color: #fff;
    border-radius: 16px;
}

#epd-designer-wrapper .lower-canvas,
#epd-designer-wrapper .upper-canvas {
    max-width: 100%;
    height: auto !important;
}

#epd-generate-svg {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #222;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
}

#epd-generate-svg:hover {
    background-color: #444;
}

.epd-date-fields {
    margin-bottom: 20px;
}

.epd-date-row {
    display: grid;
    grid-template-columns: 24% 6% 13% 13% 20%;
    gap: 2.5%;
}

.epd-date-row select {
    font-size: 14px;
    padding: 4px;
}

#epd-birth-symbol option,
#epd-death-symbol option {
    font-family: 'Segoe UI Symbol', 'DejaVu Sans', 'Arial', sans-serif;
    font-size: 18px;
}

@media (max-width: 600px) {
    .epd-date-row {
        grid-template-columns: 1fr 1fr;
    }
}

.epd-checkout-preview {
    padding: 15px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}
.epd-checkout-preview h3 {
    margin-top: 0;
    font-size: 16px;
}

.woocommerce .epd-date-icon{
	height: 20px;
	vertical-align: middle;
	margin-right: 5px;
    margin-top: 5px;
}

.epd-placement-grid {
/*  background: #e87e1c;*/
/*  padding: 1rem;*/
      padding: 1rem 0;
  border-radius: 0;
  color: white;
      max-width: 300px;
  margin-bottom: 1rem;
  position: relative;
    border: none;
}

.epd-placement-grid legend {
  position: absolute;
  top: 0;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color:black;
}

.epd-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0px;
  margin-top: 10px;
    max-width: 130px;
}

.epd-grid-item {
  background: white;
  color: #e87e1c;
  text-align: center;
  border: 10px solid #f0c193;
  border-radius: 0;
  padding: 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.epd-grid-item input[type="radio"] {
  display: none;
}

.epd-grid-item span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.epd-grid-item input[type="radio"]:checked + span {
  /*background: #e87e1c;*/
  color: white;
  border-radius: 2px;
    position: absolute;
    top: 0;
    left: 0;
}

.epd-grid-item input[type="radio"]:checked + span::after {
  content: "✔";
  position: absolute;
  font-size: 1.6rem;
  color: black;
}

table.variations th {
    font-weight: 700;
    text-align: left;
}

body.woocommerce div.product form.cart .variations {
    width: auto;
}

.woocommerce table tbody>tr:nth-child(odd)>td,
.woocommerce table tbody>tr:nth-child(odd)>th {
    background-color: transparent;
}

.woocommerce table tbody tr:hover>td,
.woocommerce table tbody tr:hover>th {
    background-color: transparent;
}

.price::before {
  content: "Pris: ";
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price {
    color: #000;
    font-size: 1.3em;
}

.woocommerce-variation-add-to-cart {
    display: block!important
}

select {
    max-width: 100%;
    min-width: 75%;
    display: inline-block;
    margin-right: 1em;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 3em;
    background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXItY2hldnJvbi1kb3duIj48cG9seWxpbmUgcG9pbnRzPSI2IDkgMTIgMTUgMTggOSI+PC9wb2x5bGluZT48L3N2Zz4=) no-repeat;
    background-size: 16px;
    -webkit-background-size: 16px;
    background-position: calc(100% - 12px) 50%;
    -webkit-background-position: calc(100% - 12px) 50%
}

body.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price,
body.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price {
    color: var(--e-global-color-primary);;
    font-size: 1.65em;
}

.woocommerce div.product form.cart .variations th {
    padding-left: 0;
}

@media (max-width: 600px) {
  .canvas-container {
      max-height: 400px;
  }
}
