/* Engraving / extra options. Uses the classes of TM Extra Product Options,
   so the same rules also style the real plugin on the live site. */
.single-product div.product form.cart { flex-wrap: wrap; }
.single-product div.product form.cart .tc-extra-product-options { flex: 1 0 100%; order: -1; }
.tc-extra-product-options { margin: 0 0 6px; }
.tc-extra-product-options .tm-extra-product-options-fields { list-style: none; margin: 0; padding: 0; }
.tc-extra-product-options .cpf-section { display: flex; flex-direction: column; gap: 14px; }
.tc-extra-product-options .cpf-element[hidden],
.tc-extra-product-options [hidden] { display: none !important; }
.tc-extra-product-options .tc-epo-label { display: block; font-family: var(--wm-font-text, "Roboto", sans-serif); font-size: 14px; font-weight: 500; color: var(--wm-brand-navy); margin-bottom: 6px; }
.tc-extra-product-options .tc-epo-required { color: var(--wm-red); }
.tc-extra-product-options select.tmcp-select,
.tc-extra-product-options input.tmcp-textfield { width: 100%; height: 46px; padding: 0 14px; border: 1px solid #d9d0bf; border-radius: 8px; background-color: #fff; font-size: 15px; color: var(--wm-text); }
.tc-extra-product-options input.tmcp-textfield { padding-right: 64px; }
.tc-extra-product-options select.tmcp-select:focus,
.tc-extra-product-options input.tmcp-textfield:focus { outline: none; border-color: var(--wm-brand-blue); box-shadow: 0 0 0 3px rgba(35, 57, 118, .15); }
.tc-extra-product-options .cpf-element.wm-epo-error select,
.tc-extra-product-options .cpf-element.wm-epo-error input { border-color: var(--wm-red); }
.tc-extra-product-options .cpf-element.wm-epo-error .tc-epo-label::after { content: " – obavezno polje"; color: var(--wm-red); font-weight: 400; }
.tc-extra-product-options .tc-element-container { position: relative; }
.tc-extra-product-options .wm-epo-count { position: absolute; right: 12px; top: 13px; font-size: 12px; color: #8a8f99; }
.tc-extra-product-options .tc-inline-description { font-size: 13px; margin-top: 6px; color: #4a5263; }
.tc-extra-product-options .tc-inline-description:empty { display: none; }
.tc-extra-product-options .tc-inline-description strike { color: #8a8f99; margin-right: 6px; }

/* What the engraving costs (the plugin's hidden "Gravura" product) */
.tc-extra-product-options .wm-epo-fee { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px dashed #d9d0bf; border-radius: 8px; padding: 10px 14px; }
.tc-extra-product-options .wm-epo-fee .tc-epo-label { margin: 0; }
.tc-extra-product-options .wm-epo-fee .tc-price { font-weight: 600; color: var(--wm-brand-navy); }
.tc-extra-product-options .wm-epo-fee del { color: #8a8f99; font-weight: 400; margin-right: 6px; }
.tc-extra-product-options .wm-epo-fee ins { text-decoration: none; color: var(--wm-green); }

/* WooCommerce colours any .price olive and large – keep add-on prices small and navy */
.woocommerce div.product .tc-extra-product-options .price,
.woocommerce div.product .tc-extra-product-options .amount { color: var(--wm-brand-navy) !important; font-size: 15px !important; font-weight: 600; }
.woocommerce div.product .tc-extra-product-options .wm-epo-bag-text .price,
.woocommerce div.product .tc-extra-product-options .wm-epo-bag-text .amount { font-size: 13px !important; font-weight: 500; color: #4a5263 !important; }

/* Font samples */
/* Font samples: full width of the select above, click opens the full-size image */
.tc-extra-product-options .wm-epo-help { display: block; margin-top: 10px; font-size: 13px; color: var(--wm-brand-blue); text-decoration: none; }
.tc-extra-product-options .wm-epo-help img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid #d9d0bf; background: #fff; }
.tc-extra-product-options .wm-epo-help span { display: block; margin-top: 6px; }

/* Gift bag */
.tc-extra-product-options .wm-epo-bag { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px 14px; background: #fff; border: 1px solid #e6dfd1; border-radius: 10px; cursor: pointer; transition: border-color .2s; }
.tc-extra-product-options .wm-epo-bag:hover,
.tc-extra-product-options .wm-epo-bag:has(input:checked) { border-color: var(--wm-brand-navy); }
.tc-extra-product-options .wm-epo-bag input { width: 18px; height: 18px; accent-color: var(--wm-brand-navy); flex: 0 0 auto; }
.tc-extra-product-options .wm-epo-bag-img img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; display: block; }
.tc-extra-product-options .wm-epo-bag-text { display: flex; flex-direction: column; font-size: 14px; }
.tc-extra-product-options .wm-epo-bag-text b { font-weight: 500; color: var(--wm-brand-navy); }
.tc-extra-product-options .wm-epo-bag-text .tc-price { color: #4a5263; font-size: 13px; }

/* ---------- Real TM Extra Product Options (live) ----------
   The plugin renders its options right before form.cart (not inside it): join both into one beige panel. */
.single-product .summary > .tc-extra-product-options:has(.cpf-element) { background: var(--wm-cream); border-radius: 4px 4px 0 0; padding: 16px 16px 4px; margin: 18px 0 0; }
.single-product .summary > .tc-extra-product-options:has(.cpf-element) + form.cart { margin-top: 0; border-radius: 0 0 4px 4px; padding-top: 12px; }
.single-product .summary > .tc-extra-product-options .tc-container.cpf-element { margin-bottom: 14px; }
.tc-extra-product-options .tc-epo-label { display: flex; gap: 4px; }
.tc-extra-product-options .tc-epo-label .tm-epo-required { order: 2; color: var(--wm-red); }
.tc-extra-product-options .tmcp-ul-wrap { margin: 0; padding: 0; list-style: none; }
.tc-extra-product-options .tmcp-field-wrap { margin: 0; padding: 0; }
.tc-extra-product-options .tm-epo-field-label.fullwidth { display: block; width: 100%; }
.tc-extra-product-options select.tmcp-select { appearance: auto; }
.tc-extra-product-options .tc-price-wrap .tc-price.tm-hidden { display: none; }
/* Engraving fee line (built by epo.js) instead of the bare hidden-product price */
.tc-extra-product-options .wm-epo-has-fee > .tc-element-inner-wrap { display: none; }
.tc-extra-product-options .wm-epo-has-fee .wm-epo-fee { padding: 12px 14px; }
.tc-extra-product-options .wm-epo-fee .tc-epo-label { font-weight: 500; font-size: 14px; }
/* Text field: "0/35" counter inside the field (epo.js), plugin's own counter hidden */
.tc-extra-product-options .wm-epo-has-count .tc-chars { display: none; }
.tc-extra-product-options .wm-epo-has-count .tm-epo-field-label { position: relative; display: block; }
.tc-extra-product-options .wm-epo-has-count .wm-epo-count { top: 50%; transform: translateY(-50%); }
.tc-extra-product-options .wm-epo-count b { font-weight: 600; color: var(--wm-brand-navy); }
.tc-extra-product-options input.tmcp-textfield::placeholder { color: #8a8f99; }
/* Font sample images: width of the select */
.tc-extra-product-options .cpf-type-select img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid #d9d0bf; background: #fff; margin: 10px 0 0; }
/* Gift bag (product checkbox): card with image + price (epo.js) */
.tc-extra-product-options .cpf-type-product-checkbox .tc-epo-element-product-checkbox { margin: 0; }
.tc-extra-product-options label.wm-epo-bag { margin-top: 2px; }
.tc-extra-product-options label.wm-epo-bag .tc-epo-style-wrapper { display: inline-flex; align-items: center; flex: 0 0 auto; }
.tc-extra-product-options label.wm-epo-bag .tc-epo-style-wrapper input { position: static; opacity: 1; width: 18px; height: 18px; margin: 0; accent-color: var(--wm-brand-navy); }
.tc-extra-product-options label.wm-epo-bag .tc-epo-style-wrapper .tm-epo-style { display: none; }
/* Plugin's floating totals box and price totals */
.tm-floating-box { display: none !important; }
.single-product form.cart .tc-totals-form.tm-totals-form-main { flex: 1 0 100%; }
.single-product .tc-epo-totals .tm-final-totals, .single-product .tc-epo-totals .tm-options-totals { color: var(--wm-brand-navy); }
.single-product .tc-epo-totals dl.tm-extra-product-options-totals { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin: 4px 0 0; font-size: 14px; }
.single-product .tc-epo-totals dt { font-weight: 400; color: #4a5263; }
.single-product .tc-epo-totals dd { margin: 0; text-align: right; }
.single-product .tc-epo-totals .amount { color: var(--wm-brand-navy) !important; font-size: 15px !important; font-weight: 600; }
.tc-extra-product-options .tmcp-field-wrap:has(> label.wm-epo-bag) { display: block; width: 100%; }
.tc-extra-product-options label.wm-epo-bag { display: flex !important; width: 100%; box-sizing: border-box; }
.tc-extra-product-options label.wm-epo-bag .tc-epo-style-wrapper input { visibility: visible !important; display: block; }
.tc-extra-product-options .wm-epo-fee .wm-epo-price { font-weight: 600; color: var(--wm-brand-navy); }
.tc-extra-product-options .wm-epo-bag-text .wm-epo-price { color: #4a5263; font-size: 13px; }
.tc-extra-product-options label.wm-epo-bag { border: 1px solid #e6dfd1 !important; background: #fff; }
.tc-extra-product-options label.wm-epo-bag:has(input:checked) { border-color: var(--wm-brand-navy) !important; }
.tc-extra-product-options .wm-epo-fee .wm-epo-price { white-space: nowrap; }
/* TM EPO zeroes the padding of .tm-epo-field-label – give the gift-bag card its room back */
.tc-extra-product-options label.tm-epo-field-label.wm-epo-bag { padding: 12px 14px !important; gap: 14px; align-items: center; border-radius: 10px; cursor: pointer; }
.tc-extra-product-options label.wm-epo-bag .tc-epo-style-wrapper { width: 18px; height: 18px; }
.tc-extra-product-options label.wm-epo-bag .wm-epo-bag-img { flex: 0 0 52px; }
.tc-extra-product-options label.wm-epo-bag .wm-epo-bag-img img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; display: block; }
.tc-extra-product-options label.wm-epo-bag .wm-epo-bag-text { gap: 2px; line-height: 1.35; }
.tc-extra-product-options label.wm-epo-bag .wm-epo-bag-text b { font-weight: 500; font-size: 14px; color: var(--wm-brand-navy); }
