/*
 Theme Name:     Otretek
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Otretek - Divi Child Theme
 Author:         Konsulenten Reidar Nygård AS
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/
 
/* =Theme customization starts here

/* Product Attachments Styling */
.product-attachments {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.product-attachments h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.attachments-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.attachments-table th {
    background: #34495e;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.attachments-table th:first-child {
    width: 70%; /* Make name column wider */
}

.attachments-table th:last-child {
    width: 30%; /* Make type column narrower */
    text-align: center;
}

.attachments-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.attachments-table tr:last-child td {
    border-bottom: none;
}

.attachments-table tr:hover {
    background: #f8f9fa;
}

/* Name/Title column with link */
.attachment-title a {
    color: #3498db;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.attachment-title a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* File type icons */
.file-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    border-radius: 3px;
    position: relative;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.file-icon.file-pdf {
    background-color: #e74c3c;
}

.file-icon.file-jpg,
.file-icon.file-jpeg,
.file-icon.file-png {
    background-color: #9b59b6;
}

.file-icon.file-doc,
.file-icon.file-docx {
    background-color: #3498db;
}

/* File type badges */
.attachment-type {
    text-align: center;
}

.file-type-badge {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 6px 12px;
    /* border-radius: 20px; */
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    min-width: 40px;
}

/* Different colors for different file types */
.file-type-badge {
    background: #2c3e50;
    color: white;
}

/* NOBB number styling */
.product-nobb {
    margin: 20px 0;
    padding: 15px;
    background: #e8f5e8;
    border-left: 4px solid #27ae60;
    border-radius: 4px;
}

.product-nobb p {
    margin: 0;
    font-size: 16px;
}

/* Responsive design */
@media (max-width: 768px) {
    .attachments-table {
        font-size: 14px;
    }
    
    .attachments-table th,
    .attachments-table td {
        padding: 10px 12px;
    }
    
    .attachment-title a {
        gap: 6px;
    }
    
    .file-icon {
        width: 18px;
        height: 18px;
    }
    
    .file-type-badge {
        padding: 4px 8px;
        font-size: 11px;
    }
}


/* Global body text */
body, p, li, textarea, select {
    font-family: 'lemance', sans-serif !important;
  }
  
  /* Global headers */
  h1, h2, h3, h4, h5, h6 {
    font-family: 'ivypresto-headline', serif !important;
  }
  
  /* Menytekster – hoved- og undermeny */
  #top-menu li a {
    font-family: 'ivypresto-headline', serif !important;
  }
  /* Mobilmenytekst */
  .et_mobile_menu li a {
    font-family: 'ivypresto-headline', serif !important;
  }
  #top-menu li a,
  .et_mobile_menu li a {
    font-family: 'ivypresto-headline', serif !important;
    font-weight: 400;
    letter-spacing: 0.5px;
  /*  text-transform: uppercase;  valgfritt, fjern hvis ikke ønsket */
  }
  
  
  .faktaboks {
      border: 1px solid #333;
      padding: 10px 10px 10px 15px;
  }
  .faktaboks li {
          font-size: 14px;
  }
  .faktaboks h3 {
      font-size: 32px;
  }
  
  /* Increase width of drop-down menus */
  @media screen and (min-width: 981px) {
      .et_fullwidth_nav #main-header .container {
          padding-left: 0;
          padding-right: 0;
      }
      #et-top-navigation {
          /* height:110px; */
          background-color: #f0edea;
          padding: 20px 0 10px 0;
      }
      .et_header_style_centered #main-header .logo_container {
          height:90px;
          padding-left:32px;
      }
  .sub-menu {
      min-width: 220px;
  }
  #top-menu li li a {
      width: 200px;
      /* Extra - Reduce padding on list items */
      padding: 2px 8px;
      }
  }
  .et-cart-info {
      display: none !important;
  }
  
  #et-top-navigation {
      text-align: center;
  }
  .et_header_style_centered #main-header .container {
      /*	text-align: left; */
  
  }